From 29d62fef943cc5644d9c0f57fca19a1195e7a8ef Mon Sep 17 00:00:00 2001 From: lovrozagar Date: Mon, 4 Mar 2024 13:06:20 -0800 Subject: [PATCH] style: mode-contrast text by default --- src/components/kbd/constants/constants.ts | 2 +- src/components/label/constants/constants.ts | 2 +- src/components/text-area/constants/constants.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/kbd/constants/constants.ts b/src/components/kbd/constants/constants.ts index f42302d..fbae92b 100644 --- a/src/components/kbd/constants/constants.ts +++ b/src/components/kbd/constants/constants.ts @@ -3,7 +3,7 @@ const DEFAULT_HOTKEY_OPTIONS = { } as const const DEFAULT_KBD_CLASSNAME = - 'render-ui-kbd flex justify-center items-center gap-1 text-xs bg-mode-accent font-[unset] font-medium rounded-md px-2 py-1.5 duration-fast transition-[background-color,box-shadow] shadow-[inset_0_-0.05em_0.5em_#00005506,inset_0_0.05em_hsla(0,0%,100%,0.95),inset_0_0.25em_0.5em_#00005506,inset_0_-0.05em_#00002f26,0_0_0_0.05em_#0009321f,0_0.08em_0.17em_#00062e32] dark:shadow-[inset_0_-0.05em_0.5em_#ddeaf814,inset_0_0.05em_#f1f7feb5,inset_0_0.25em_0.5em_#d8f4f609,inset_0_-0.1em_rgba(0,0,0,0.9),0_0_0_0.075em_#d9edff40,0_0.08em_0.17em_rgba(0,0,0,0.95)]' + 'render-ui-kbd flex justify-center items-center gap-1 text-xs text-mode-contrast bg-mode-accent font-[unset] font-medium rounded-md px-2 py-1.5 duration-fast transition-[background-color,box-shadow] shadow-[inset_0_-0.05em_0.5em_#00005506,inset_0_0.05em_hsla(0,0%,100%,0.95),inset_0_0.25em_0.5em_#00005506,inset_0_-0.05em_#00002f26,0_0_0_0.05em_#0009321f,0_0.08em_0.17em_#00062e32] dark:shadow-[inset_0_-0.05em_0.5em_#ddeaf814,inset_0_0.05em_#f1f7feb5,inset_0_0.25em_0.5em_#d8f4f609,inset_0_-0.1em_rgba(0,0,0,0.9),0_0_0_0.075em_#d9edff40,0_0.08em_0.17em_rgba(0,0,0,0.95)]' const DEFAULT_KBD_ICON_CLASSNAME = 'block h-4 w-4 fill-none stroke-current stroke-[1px]' diff --git a/src/components/label/constants/constants.ts b/src/components/label/constants/constants.ts index cb97c5e..50df297 100644 --- a/src/components/label/constants/constants.ts +++ b/src/components/label/constants/constants.ts @@ -1,3 +1,3 @@ -const DEFAULT_LABEL_CLASSNAME = 'render-ui-label text-base font-medium' +const DEFAULT_LABEL_CLASSNAME = 'render-ui-label text-base text-mode-contrast font-medium' export { DEFAULT_LABEL_CLASSNAME } diff --git a/src/components/text-area/constants/constants.ts b/src/components/text-area/constants/constants.ts index b3da074..4f458f6 100644 --- a/src/components/text-area/constants/constants.ts +++ b/src/components/text-area/constants/constants.ts @@ -2,6 +2,6 @@ const DEFAULT_TEXT_AREA_CONTAINER_CLASSNAME = 'render-ui-text-area-container min-h-[80px] h-[auto] max-h-fit' const DEFAULT_TEXT_AREA_CLASSNAME = - 'render-ui-text-area max-h-[200px] min-h-[inherit] m-0 p-0 w-full h-full block border-none appearance-none rounded bg-transparent p-3 text-sm outline-none data-[disabled=true]:cursor-[inherit] data-[disabled=true]:pointer-events-none placeholder:text-mode-foreground/50' + 'render-ui-text-area max-h-[200px] min-h-[inherit] m-0 p-0 w-full h-full block border-none appearance-none rounded bg-transparent p-3 text-sm text-mode-contrast outline-none data-[disabled=true]:cursor-[inherit] data-[disabled=true]:pointer-events-none placeholder:text-mode-foreground/50' export { DEFAULT_TEXT_AREA_CLASSNAME, DEFAULT_TEXT_AREA_CONTAINER_CLASSNAME }