Adjust colors
This commit is contained in:
+13
-13
@@ -186,19 +186,19 @@ export function createThemes({
|
|||||||
white: color.gray_0,
|
white: color.gray_0,
|
||||||
black: color.trueBlack,
|
black: color.trueBlack,
|
||||||
|
|
||||||
contrast_25: color.gray_1000,
|
contrast_25: color.gray_975,
|
||||||
contrast_50: color.gray_975,
|
contrast_50: color.gray_950,
|
||||||
contrast_100: color.gray_950,
|
contrast_100: color.gray_900,
|
||||||
contrast_200: color.gray_900,
|
contrast_200: color.gray_800,
|
||||||
contrast_300: color.gray_800,
|
contrast_300: color.gray_700,
|
||||||
contrast_400: color.gray_700,
|
contrast_400: color.gray_600,
|
||||||
contrast_500: color.gray_600,
|
contrast_500: color.gray_500,
|
||||||
contrast_600: color.gray_500,
|
contrast_600: color.gray_400,
|
||||||
contrast_700: color.gray_400,
|
contrast_700: color.gray_300,
|
||||||
contrast_800: color.gray_300,
|
contrast_800: color.gray_200,
|
||||||
contrast_900: color.gray_200,
|
contrast_900: color.gray_100,
|
||||||
contrast_950: color.gray_100,
|
contrast_950: color.gray_50,
|
||||||
contrast_975: color.gray_50,
|
contrast_975: color.gray_25,
|
||||||
|
|
||||||
primary_25: color.primary_975,
|
primary_25: color.primary_975,
|
||||||
primary_50: color.primary_950,
|
primary_50: color.primary_950,
|
||||||
|
|||||||
@@ -202,28 +202,10 @@ export const Button = React.forwardRef<View, ButtonProps>(
|
|||||||
} else if (color === 'secondary') {
|
} else if (color === 'secondary') {
|
||||||
if (variant === 'solid') {
|
if (variant === 'solid') {
|
||||||
if (!disabled) {
|
if (!disabled) {
|
||||||
baseStyles.push({
|
baseStyles.push(t.atoms.bg_contrast_25)
|
||||||
backgroundColor: select(t.name, {
|
hoverStyles.push(t.atoms.bg_contrast_50)
|
||||||
light: t.palette.contrast_25,
|
|
||||||
dim: t.palette.contrast_100,
|
|
||||||
dark: t.palette.contrast_100,
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
hoverStyles.push({
|
|
||||||
backgroundColor: select(t.name, {
|
|
||||||
light: t.palette.contrast_50,
|
|
||||||
dim: t.palette.contrast_200,
|
|
||||||
dark: t.palette.contrast_200,
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
baseStyles.push({
|
baseStyles.push(t.atoms.bg_contrast_100)
|
||||||
backgroundColor: select(t.name, {
|
|
||||||
light: t.palette.contrast_100,
|
|
||||||
dim: t.palette.contrast_25,
|
|
||||||
dark: t.palette.contrast_25,
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
} else if (variant === 'outline') {
|
} else if (variant === 'outline') {
|
||||||
baseStyles.push(a.border, t.atoms.bg, {
|
baseStyles.push(a.border, t.atoms.bg, {
|
||||||
|
|||||||
+2
-2
@@ -295,7 +295,7 @@ export const darkTheme: Theme = {
|
|||||||
...defaultTheme.palette,
|
...defaultTheme.palette,
|
||||||
default: {
|
default: {
|
||||||
background: darkPalette.black,
|
background: darkPalette.black,
|
||||||
backgroundLight: darkPalette.contrast_50,
|
backgroundLight: darkPalette.contrast_25,
|
||||||
text: darkPalette.white,
|
text: darkPalette.white,
|
||||||
textLight: darkPalette.contrast_700,
|
textLight: darkPalette.contrast_700,
|
||||||
textInverted: darkPalette.black,
|
textInverted: darkPalette.black,
|
||||||
@@ -344,7 +344,7 @@ export const dimTheme: Theme = {
|
|||||||
default: {
|
default: {
|
||||||
...darkTheme.palette.default,
|
...darkTheme.palette.default,
|
||||||
background: dimPalette.black,
|
background: dimPalette.black,
|
||||||
backgroundLight: dimPalette.contrast_50,
|
backgroundLight: dimPalette.contrast_25,
|
||||||
text: dimPalette.white,
|
text: dimPalette.white,
|
||||||
textLight: dimPalette.contrast_700,
|
textLight: dimPalette.contrast_700,
|
||||||
textInverted: dimPalette.black,
|
textInverted: dimPalette.black,
|
||||||
|
|||||||
Reference in New Issue
Block a user