[components] add button dark theme variant (#451)
* add dark theme variant * Create twenty-yaks-smash.md
This commit is contained in:
parent
f1715cede9
commit
67a68469db
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"@status-im/components": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
[components] add dark theme variant
|
|
@ -43,6 +43,9 @@ const textColors: MapVariant<typeof Base, 'variant'> = {
|
||||||
magenta: '$white-100',
|
magenta: '$white-100',
|
||||||
yin: '$white-100',
|
yin: '$white-100',
|
||||||
yang: '$neutral-100',
|
yang: '$neutral-100',
|
||||||
|
|
||||||
|
// dark theme
|
||||||
|
dark_darkGrey: '$white-100',
|
||||||
}
|
}
|
||||||
|
|
||||||
const textSizes: Record<NonNullable<Props['size']>, TextProps['size']> = {
|
const textSizes: Record<NonNullable<Props['size']>, TextProps['size']> = {
|
||||||
|
@ -214,6 +217,13 @@ const Base = styled(View, {
|
||||||
hoverStyle: { backgroundColor: '$yang-60' },
|
hoverStyle: { backgroundColor: '$yang-60' },
|
||||||
pressStyle: { backgroundColor: '$yang-50' },
|
pressStyle: { backgroundColor: '$yang-50' },
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// FIXME: DARK THEME
|
||||||
|
dark_darkGrey: {
|
||||||
|
backgroundColor: '$neutral-90',
|
||||||
|
hoverStyle: { backgroundColor: '$neutral-60' },
|
||||||
|
pressStyle: { backgroundColor: '$neutral-50' },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
disabled: {
|
disabled: {
|
||||||
|
|
Loading…
Reference in New Issue