Skip to content

Commit

Permalink
fix: themify yellow, red, green, blue
Browse files Browse the repository at this point in the history
  • Loading branch information
fabric-8 committed Nov 7, 2023
1 parent cbf8814 commit 642e08a
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/app/components/warning-label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function WarningLabel({ children, title, ...props }: WarningLabelProps) {
<Flag
bg="accent.warning"
borderRadius="10px"
img={<AlertIcon color={token('colors.yellow.600')} />}
img={<AlertIcon color={token('colors.warning')} />}
minHeight="48px"
px="base"
py="base-tight"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const uncertainLabel =

export function PsbtRequestDetailsHeader() {
const { isPsbtMutable } = usePsbtSignerContext();
const labelColor = isPsbtMutable ? token('colors.red.600') : token('colors.accent.text-subdued');
const labelColor = isPsbtMutable ? token('colors.error') : token('colors.accent.text-subdued');

return (
<Stack alignItems="center" isInline spacing="tight">
Expand Down
52 changes: 38 additions & 14 deletions theme/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,65 @@ export const colors = defineTokens.colors({
dark: { value: '#111' },
black: { value: '#000' },
white: { value: '#fff' },
red: {
lightModeRed: {
100: { value: '#FCEEED' },
300: { value: '#FFABB1' },
500: { value: '#FF5863' },
600: { value: '#FF2E3C' },
},
blue: {
darkModeRed: {
100: { value: '#38191A' },
300: { value: '#4F1A1D' },
500: { value: '#7C1E24' },
600: { value: '#AB1F29' },
},
lightModeBlue: {
100: { value: '#E6F2FF' },
300: { value: '#9BCAFF' },
500: { value: '#3795FF' },
600: { value: '#057AFF' },
},
yellow: {
darkModeBlue: {
100: { value: '#0C2644' },
300: { value: '#092F5A' },
500: { value: '#053E80' },
600: { value: '#004EA6' },
},
lightModeYellow: {
100: { value: '#FEF9E6' },
300: { value: '#FBE699' },
500: { value: '#F7CD33' },
600: { value: '#F5C000' },
},
green: {
darkModeYellow: {
100: { value: '#473D1C' },
300: { value: '#5C4F21' },
500: { value: '#A98D29' },
600: { value: '#D8B021' },
},
lightModeGreen: {
100: { value: '#E6F5ED' },
300: { value: '#99D8B9' },
500: { value: '#33B172' },
600: { value: '#009E4F' },
},
darkModeGreen: {
100: { value: '#1A3124' },
300: { value: '#19422C' },
500: { value: '#165C38' },
600: { value: '#00753A' },
},
lightModeBrown: {
1: { value: '#FFFFFF' },
2: { value: '#F5F1ED' },
3: { value: '#EAE5E0' },
4: { value: '#E4DDD6' },
5: { value: '#DED6CD' },
6: { value: '#D8CEC4' },
7: { value: '#C6B9AD' },
8: { value: '#948677' },
9: { value: '#12100F' },
10: { value: '#4A423B' },
2: { value: '#F7F5F3' },
3: { value: '#F5F1ED' },
4: { value: '#EAE5E0' },
5: { value: '#E4DDD6' },
6: { value: '#DED6CD' },
7: { value: '#D8CEC4' },
8: { value: '#C6B9AD' },
9: { value: '#948677' },
10: { value: '#64594D' },
11: { value: '#4A423B' },
12: { value: '#12100F' },
},
Expand Down Expand Up @@ -84,5 +108,5 @@ export const colors = defineTokens.colors({
10: { value: '#818181' },
11: { value: '#B1B1B1' },
12: { value: '#EEEEEE' },
},
}
});
14 changes: 7 additions & 7 deletions theme/semantic-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,20 @@ export const semanticTokens = defineSemanticTokens({
value: { base: '{colors.lightModeBrown.1}', _dark: '{colors.darkModeBrown.1}' },
},
disabled: {
value: { base: '{colors.blue.100}', _dark: '{colors.blue.100}' },
value: { base: '{colors.lightModeBlue.100}', _dark: '{colors.darkModeBlue.100}' },
},
focused: {
value: { base: '{colors.blue.500}', _dark: '{colors.blue.500}' },
},
warning: {
value: { base: '{colors.yellow.100}', _dark: '{colors.yellow.100}' },
value: { base: '{colors.lightModeBlue.500}', _dark: '{colors.darkModeBlue.500}' },
},
'notification-text': {
value: { base: '{colors.lightModeBrown.12}', _dark: '{colors.darkModeBrown.1}' },
value: { base: '{colors.lightModeBrown.12}', _dark: '{colors.darkModeBrown.12}' },
},
},
warning: {
value: { base: '{colors.lightModeYellow.100}', _dark: '{colors.darkModeYellow.100}' },
},
error: {
value: { base: '{colors.red.600}', _dark: '{colors.red.600}' },
value: { base: '{colors.lightModeRed.600}', _dark: '{colors.darkModeRed.600}' },
},
},
});

0 comments on commit 642e08a

Please sign in to comment.