From 5cd149b2b942de546523d3f9e551a9c644a016fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sun, 25 Jan 2026 19:21:07 -0600 Subject: [PATCH] feat: higher constrast low contrast --- packages/website-ue/src/components/Text/index.css | 5 +++++ packages/website-ue/src/components/Text/index.tsx | 5 +---- packages/website-ue/src/core/tools/tools.ts | 14 +++++++------- 3 files changed, 13 insertions(+), 11 deletions(-) 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", + }, };