rm icon and borderDark from pal
This commit is contained in:
@@ -21,8 +21,6 @@ export type PaletteColor = {
|
|||||||
textInverted: string
|
textInverted: string
|
||||||
link: string
|
link: string
|
||||||
border: string
|
border: string
|
||||||
borderDark: string
|
|
||||||
icon: string
|
|
||||||
[k: string]: string
|
[k: string]: string
|
||||||
}
|
}
|
||||||
export type Palette = Record<PaletteColorName, PaletteColor>
|
export type Palette = Record<PaletteColorName, PaletteColor>
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ export interface UsePaletteValue {
|
|||||||
viewLight: ViewStyle
|
viewLight: ViewStyle
|
||||||
btn: ViewStyle
|
btn: ViewStyle
|
||||||
border: ViewStyle
|
border: ViewStyle
|
||||||
borderDark: ViewStyle
|
|
||||||
text: TextStyle
|
text: TextStyle
|
||||||
textLight: TextStyle
|
textLight: TextStyle
|
||||||
textInverted: TextStyle
|
textInverted: TextStyle
|
||||||
@@ -41,9 +40,6 @@ export function usePalette(color: PaletteColorName): UsePaletteValue {
|
|||||||
border: {
|
border: {
|
||||||
borderColor: palette.border,
|
borderColor: palette.border,
|
||||||
},
|
},
|
||||||
borderDark: {
|
|
||||||
borderColor: palette.borderDark,
|
|
||||||
},
|
|
||||||
text: {
|
text: {
|
||||||
color: palette.text,
|
color: palette.text,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -17,8 +17,6 @@ export const defaultTheme: Theme = {
|
|||||||
textInverted: lightPalette.white,
|
textInverted: lightPalette.white,
|
||||||
link: lightPalette.primary_500,
|
link: lightPalette.primary_500,
|
||||||
border: lightPalette.contrast_100,
|
border: lightPalette.contrast_100,
|
||||||
borderDark: lightPalette.contrast_200,
|
|
||||||
icon: lightPalette.contrast_500,
|
|
||||||
},
|
},
|
||||||
primary: {
|
primary: {
|
||||||
background: colors.blue3,
|
background: colors.blue3,
|
||||||
@@ -28,8 +26,6 @@ export const defaultTheme: Theme = {
|
|||||||
textInverted: colors.blue3,
|
textInverted: colors.blue3,
|
||||||
link: colors.blue0,
|
link: colors.blue0,
|
||||||
border: colors.blue4,
|
border: colors.blue4,
|
||||||
borderDark: colors.blue5,
|
|
||||||
icon: colors.blue4,
|
|
||||||
},
|
},
|
||||||
secondary: {
|
secondary: {
|
||||||
background: colors.green3,
|
background: colors.green3,
|
||||||
@@ -39,8 +35,6 @@ export const defaultTheme: Theme = {
|
|||||||
textInverted: colors.green4,
|
textInverted: colors.green4,
|
||||||
link: colors.green1,
|
link: colors.green1,
|
||||||
border: colors.green4,
|
border: colors.green4,
|
||||||
borderDark: colors.green5,
|
|
||||||
icon: colors.green4,
|
|
||||||
},
|
},
|
||||||
inverted: {
|
inverted: {
|
||||||
background: darkPalette.black,
|
background: darkPalette.black,
|
||||||
@@ -50,8 +44,6 @@ export const defaultTheme: Theme = {
|
|||||||
textInverted: darkPalette.black,
|
textInverted: darkPalette.black,
|
||||||
link: darkPalette.primary_500,
|
link: darkPalette.primary_500,
|
||||||
border: darkPalette.contrast_100,
|
border: darkPalette.contrast_100,
|
||||||
borderDark: darkPalette.contrast_200,
|
|
||||||
icon: darkPalette.contrast_500,
|
|
||||||
},
|
},
|
||||||
error: {
|
error: {
|
||||||
background: colors.red3,
|
background: colors.red3,
|
||||||
@@ -61,8 +53,6 @@ export const defaultTheme: Theme = {
|
|||||||
textInverted: colors.red3,
|
textInverted: colors.red3,
|
||||||
link: colors.red1,
|
link: colors.red1,
|
||||||
border: colors.red4,
|
border: colors.red4,
|
||||||
borderDark: colors.red5,
|
|
||||||
icon: colors.red4,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
shapes: {
|
shapes: {
|
||||||
@@ -292,8 +282,6 @@ export const darkTheme: Theme = {
|
|||||||
textInverted: darkPalette.black,
|
textInverted: darkPalette.black,
|
||||||
link: darkPalette.primary_500,
|
link: darkPalette.primary_500,
|
||||||
border: darkPalette.contrast_100,
|
border: darkPalette.contrast_100,
|
||||||
borderDark: darkPalette.contrast_200,
|
|
||||||
icon: darkPalette.contrast_500,
|
|
||||||
},
|
},
|
||||||
primary: {
|
primary: {
|
||||||
...defaultTheme.palette.primary,
|
...defaultTheme.palette.primary,
|
||||||
@@ -311,8 +299,6 @@ export const darkTheme: Theme = {
|
|||||||
textInverted: darkPalette.white,
|
textInverted: darkPalette.white,
|
||||||
link: lightPalette.primary_500,
|
link: lightPalette.primary_500,
|
||||||
border: lightPalette.contrast_100,
|
border: lightPalette.contrast_100,
|
||||||
borderDark: lightPalette.contrast_200,
|
|
||||||
icon: lightPalette.contrast_500,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -330,8 +316,6 @@ export const dimTheme: Theme = {
|
|||||||
textInverted: dimPalette.black,
|
textInverted: dimPalette.black,
|
||||||
link: dimPalette.primary_500,
|
link: dimPalette.primary_500,
|
||||||
border: dimPalette.contrast_100,
|
border: dimPalette.contrast_100,
|
||||||
borderDark: dimPalette.contrast_200,
|
|
||||||
icon: dimPalette.contrast_500,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user