fix: styles of home page

This commit is contained in:
TrèsAbhi committed 2026-04-17 23:35:56 -05:00
1 parent a149af50fd
commit 6d31dcb74b
7 files changed
+47 -22

No files matched your search

@@ -1,6 +1,5 @@
.text {
font-size: var(--font-size-regular);
color: var(--gray-12);
&[data-size="minor"] {
font-size: var(--font-size-minor);
@@ -21,6 +21,13 @@ export function Text({
color = "gray",
...props
}: TextProps) {
const scale = color === "gray" && lowContrast ? "white" : color;
let power: string | number = 12;
if (lowContrast) {
power = color === "gray" ? "a9" : 11;
}
return (
<span
className={classNames(styles.text, className)}
@@ -28,7 +35,9 @@ export function Text({
data-size={size}
data-weight={weight}
data-align={align === "left" ? undefined : align}
style={{ color: `var(--${color}-${lowContrast ? 10 : 12})` }}
style={{
color: `var(--${scale}-${power})`,
}}
{...props}
/>
);
@@ -20,6 +20,7 @@ const toolStrings = strings.tools[tool.id as keyof typeof strings.tools];
<style>
.tool-card {
display: flex;
flex-direction: column;
height: 10rem;
position: relative;