feat: cards

This commit is contained in:
TrèsAbhi committed 2026-01-10 12:43:39 -06:00
1 parent d42fc0e3f6
commit 9096644d51
9 files changed
+98 -19

No files matched your search

@@ -1,3 +1,7 @@
.text {
font-size: var(--font-size-regular);
&[data-size="minor"] {
font-size: var(--font-size-minor);
}
}
@@ -6,18 +6,21 @@ import "./index.css";
export interface TextProps extends ComponentProps<"span"> {
color?: Color;
lowContrast?: boolean;
size?: "regular" | "minor";
}
export function Text({
color = "gray",
lowContrast,
className,
size = "regular",
...props
}: TextProps) {
return (
<span
className={classNames("text", className)}
style={{ color: `var(--${color}-${lowContrast ? 11 : 12})` }}
data-size={size}
{...props}
/>
);