diff --git a/packages/website-ue/src/components/Text/index.css b/packages/website-ue/src/components/Text/index.css index b716e926b..cc8f81702 100644 --- a/packages/website-ue/src/components/Text/index.css +++ b/packages/website-ue/src/components/Text/index.css @@ -1,5 +1,10 @@ .text { font-size: var(--font-size-regular); + color: var(--gray-12); + + &[data-low-contrast="true"] { + color: var(--white-a9); + } &[data-size="minor"] { font-size: var(--font-size-minor); diff --git a/packages/website-ue/src/components/Text/index.tsx b/packages/website-ue/src/components/Text/index.tsx index 5a8dab968..63d31c0af 100644 --- a/packages/website-ue/src/components/Text/index.tsx +++ b/packages/website-ue/src/components/Text/index.tsx @@ -1,10 +1,8 @@ import type { ComponentProps } from "react"; import { classNames } from "../../core/ui/classNames"; -import type { Color } from "../../core/ui/color"; import "./index.css"; export interface TextProps extends ComponentProps<"span"> { - color?: Color | "accent"; weight?: "light" | "regular" | "medium" | "bold" | "black"; lowContrast?: boolean; size?: "regular" | "minor" | "major"; @@ -12,7 +10,6 @@ export interface TextProps extends ComponentProps<"span"> { } export function Text({ - color = "gray", lowContrast, className, size = "regular", @@ -24,7 +21,7 @@ export function Text({ return ( = { banner_background_position: "bottom", }, - api: { - id: "api", - - accent: "brown", - banner_background_position: "bottom", - }, - playlist: { id: "playlist", @@ -86,4 +79,11 @@ export const tools: Record = { accent: "blue", banner_background_position: "bottom", }, + + api: { + id: "api", + + accent: "brown", + banner_background_position: "bottom", + }, };