diff options
Diffstat (limited to 'src/alf/themes.ts')
-rw-r--r-- | src/alf/themes.ts | 85 |
1 files changed, 20 insertions, 65 deletions
diff --git a/src/alf/themes.ts b/src/alf/themes.ts index 7c6b7dab4..b36e782fd 100644 --- a/src/alf/themes.ts +++ b/src/alf/themes.ts @@ -71,7 +71,7 @@ export const lightPalette = { export const darkPalette: Palette = { white: tokens.color.gray_0, - black: tokens.color.gray_1000, + black: tokens.color.trueBlack, contrast_25: tokens.color.gray_975, contrast_50: tokens.color.gray_950, @@ -130,6 +130,11 @@ export const darkPalette: Palette = { negative_975: tokens.color.red_975, } as const +export const dimPalette: Palette = { + ...darkPalette, + black: tokens.color.gray_1000, +} as const + export const light = { name: 'light', palette: lightPalette, @@ -191,70 +196,6 @@ export const light = { }, } -export const dim: Theme = { - name: 'dim', - palette: darkPalette, - atoms: { - text: { - color: darkPalette.white, - }, - text_contrast_700: { - color: darkPalette.contrast_800, - }, - text_contrast_600: { - color: darkPalette.contrast_700, - }, - text_contrast_500: { - color: darkPalette.contrast_600, - }, - text_contrast_400: { - color: darkPalette.contrast_500, - }, - text_inverted: { - color: darkPalette.black, - }, - bg: { - backgroundColor: darkPalette.contrast_50, - }, - bg_contrast_25: { - backgroundColor: darkPalette.contrast_100, - }, - bg_contrast_50: { - backgroundColor: darkPalette.contrast_200, - }, - bg_contrast_100: { - backgroundColor: darkPalette.contrast_300, - }, - bg_contrast_200: { - backgroundColor: darkPalette.contrast_400, - }, - bg_contrast_300: { - backgroundColor: darkPalette.contrast_500, - }, - border: { - borderColor: darkPalette.contrast_200, - }, - border_contrast: { - borderColor: darkPalette.contrast_400, - }, - shadow_sm: { - ...atoms.shadow_sm, - shadowOpacity: 0.7, - shadowColor: tokens.color.trueBlack, - }, - shadow_md: { - ...atoms.shadow_md, - shadowOpacity: 0.7, - shadowColor: tokens.color.trueBlack, - }, - shadow_lg: { - ...atoms.shadow_lg, - shadowOpacity: 0.7, - shadowColor: tokens.color.trueBlack, - }, - }, -} - export const dark: Theme = { name: 'dark', palette: darkPalette, @@ -318,3 +259,17 @@ export const dark: Theme = { }, }, } + +export const dim: Theme = { + ...dark, + name: 'dim', + atoms: { + ...dark.atoms, + text_inverted: { + color: dimPalette.black, + }, + bg: { + backgroundColor: dimPalette.black, + }, + }, +} |