2021-11-29 15:19:07 +01:00
|
|
|
import { extendTheme } from '@chakra-ui/react'
|
|
|
|
|
|
|
|
const fonts = {
|
|
|
|
heading: 'Outfit',
|
|
|
|
body: 'Open Sans',
|
|
|
|
}
|
|
|
|
|
2022-03-31 09:49:23 +02:00
|
|
|
export const colors = {
|
2022-01-19 09:44:21 +01:00
|
|
|
gray: {
|
|
|
|
50: '#F9FAFB',
|
|
|
|
100: '#F3F4F6',
|
|
|
|
200: '#E5E7EB',
|
|
|
|
300: '#D1D5DB',
|
|
|
|
400: '#9CA3AF',
|
|
|
|
500: '#6B7280',
|
|
|
|
600: '#4B5563',
|
|
|
|
700: '#374151',
|
|
|
|
800: '#1F2937',
|
|
|
|
900: '#111827',
|
|
|
|
},
|
2021-11-29 15:19:07 +01:00
|
|
|
blue: {
|
|
|
|
50: '#e0edff',
|
|
|
|
100: '#b0caff',
|
|
|
|
200: '#7ea6ff',
|
|
|
|
300: '#4b83ff',
|
|
|
|
400: '#1a5fff',
|
|
|
|
500: '#0042da',
|
|
|
|
600: '#0036b4',
|
|
|
|
700: '#002782',
|
|
|
|
800: '#001751',
|
|
|
|
900: '#1a202c',
|
|
|
|
},
|
|
|
|
orange: {
|
|
|
|
50: '#fff1da',
|
|
|
|
100: '#ffd7ae',
|
|
|
|
200: '#ffbf7d',
|
|
|
|
300: '#ffa54c',
|
|
|
|
400: '#ff8b1a',
|
|
|
|
500: '#e67200',
|
|
|
|
600: '#b45800',
|
|
|
|
700: '#813e00',
|
|
|
|
800: '#4f2500',
|
|
|
|
900: '#200b00',
|
|
|
|
},
|
|
|
|
yellow: {
|
|
|
|
50: '#fff9da',
|
|
|
|
100: '#ffedad',
|
|
|
|
200: '#ffe17d',
|
|
|
|
300: '#ffd54b',
|
|
|
|
400: '#ffc91a',
|
|
|
|
500: '#e6b000',
|
|
|
|
600: '#b38800',
|
|
|
|
700: '#806200',
|
|
|
|
800: '#4e3a00',
|
|
|
|
900: '#1d1400',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
const components = {
|
|
|
|
Spinner: {
|
|
|
|
defaultProps: {
|
|
|
|
colorScheme: 'blue',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
NumberInput: {
|
|
|
|
defaultProps: {
|
|
|
|
focusBorderColor: 'blue.200',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Input: {
|
|
|
|
defaultProps: {
|
|
|
|
focusBorderColor: 'blue.200',
|
|
|
|
},
|
|
|
|
},
|
2022-01-14 07:49:24 +01:00
|
|
|
Textarea: {
|
|
|
|
defaultProps: {
|
|
|
|
focusBorderColor: 'blue.200',
|
|
|
|
},
|
|
|
|
},
|
2021-11-29 15:19:07 +01:00
|
|
|
Popover: {
|
|
|
|
baseStyle: {
|
|
|
|
popper: {
|
|
|
|
width: 'fit-content',
|
|
|
|
maxWidth: 'fit-content',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Link: {
|
|
|
|
baseStyle: {
|
|
|
|
_hover: { textDecoration: 'none' },
|
|
|
|
},
|
|
|
|
},
|
2022-01-29 11:22:22 +01:00
|
|
|
Menu: {
|
|
|
|
parts: ['list'],
|
|
|
|
defaultProps: {
|
|
|
|
list: {
|
|
|
|
shadow: 'lg',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-11-29 15:19:07 +01:00
|
|
|
}
|
|
|
|
|
2022-08-08 08:21:36 +02:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
|
export const customTheme: any = extendTheme({ colors, fonts, components })
|