Updated colours to match theme.
This commit is contained in:
parent
d3a3aafb04
commit
0a1540325b
@ -82,14 +82,23 @@ export const ThemeProvider = ({ children }) => {
|
|||||||
return isCompact ? [theme.compactAlgorithm, baseAlgorithm] : [baseAlgorithm]
|
return isCompact ? [theme.compactAlgorithm, baseAlgorithm] : [baseAlgorithm]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const colors = {
|
||||||
|
colorPrimary: '#0091FF',
|
||||||
|
colorSuccess: '#30D158',
|
||||||
|
colorWarning: '#FF9230',
|
||||||
|
colorError: '#FF4245',
|
||||||
|
colorInfo: '#0A84FF',
|
||||||
|
colorLink: '#5AC8F5'
|
||||||
|
}
|
||||||
|
|
||||||
|
const getColors = () => {
|
||||||
|
return colors
|
||||||
|
}
|
||||||
|
|
||||||
const themeConfig = {
|
const themeConfig = {
|
||||||
algorithm: getThemeAlgorithm(),
|
algorithm: getThemeAlgorithm(),
|
||||||
token: {
|
token: {
|
||||||
colorPrimary: '#007AFF',
|
...colors,
|
||||||
colorSuccess: '#32D74B',
|
|
||||||
colorWarning: '#FF9F0A',
|
|
||||||
colorInfo: '#0A84FF',
|
|
||||||
colorLink: '#5AC8F5',
|
|
||||||
borderRadius: '12px'
|
borderRadius: '12px'
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@ -108,6 +117,7 @@ export const ThemeProvider = ({ children }) => {
|
|||||||
toggleCompact,
|
toggleCompact,
|
||||||
isSystem,
|
isSystem,
|
||||||
toggleSystem,
|
toggleSystem,
|
||||||
|
getColors,
|
||||||
themeConfig
|
themeConfig
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user