mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 03:43:50 +00:00
6720626bd3
* style: add cursor indicator in all blocks * style: prevent reflows on width * style: harmonise white range * ux: focus elements on cursor nav * ux: prevent focus on indicators * refactor: convert to typescript * fix: missing dependency * chore: add linter rules for dependency arrays * style: style editable component * style: tweak input styles * style: tweak switch styles * style: style tweaks
84 lines
1.9 KiB
TypeScript
84 lines
1.9 KiB
TypeScript
import { extendTheme } from '@chakra-ui/react';
|
|
|
|
import {
|
|
ontimeButtonFilled,
|
|
ontimeButtonOutlined,
|
|
ontimeButtonSubtle,
|
|
ontimeButtonSubtleWhite,
|
|
} from './ontimeButton';
|
|
import { ontimeCheckboxOnDark } from './ontimeCheckbox';
|
|
import { ontimeEditable } from './ontimeEditable';
|
|
import { ontimeMenuOnDark } from './ontimeMenu';
|
|
import { ontimeSelect } from './ontimeSelect';
|
|
import { ontimeSwitch } from './ontimeSwitch';
|
|
import {
|
|
ontimeInputFilled,
|
|
ontimeTextAreaFilled,
|
|
ontimeTextAreaFilledOnLight,
|
|
} from './ontimeTextInputs';
|
|
import { ontimeTooltip } from './ontimeTooltip';
|
|
|
|
const theme = extendTheme({
|
|
components: {
|
|
Button: {
|
|
baseStyle: {
|
|
borderRadius: '3px',
|
|
},
|
|
variants: {
|
|
'ontime-filled': { ...ontimeButtonFilled },
|
|
'ontime-outlined': { ...ontimeButtonOutlined },
|
|
'ontime-subtle': { ...ontimeButtonSubtle },
|
|
'ontime-subtle-white': { ...ontimeButtonSubtleWhite },
|
|
},
|
|
},
|
|
Checkbox: {
|
|
variants: {
|
|
'ontime-ondark': { ...ontimeCheckboxOnDark },
|
|
},
|
|
},
|
|
Editable: {
|
|
variants: {
|
|
'ontime': { ...ontimeEditable },
|
|
},
|
|
},
|
|
Input: {
|
|
baseStyle: {
|
|
borderRadius: '3px',
|
|
border: '1px',
|
|
},
|
|
variants: {
|
|
'ontime-filled': { ...ontimeInputFilled },
|
|
},
|
|
},
|
|
Textarea: {
|
|
baseStyle: {
|
|
borderRadius: '3px',
|
|
},
|
|
variants: {
|
|
'ontime-filled': { ...ontimeTextAreaFilled },
|
|
'ontime-filled-onlight': { ...ontimeTextAreaFilledOnLight },
|
|
},
|
|
},
|
|
Tooltip: {
|
|
baseStyle: { ...ontimeTooltip},
|
|
},
|
|
Switch: {
|
|
variants: {
|
|
'ontime': { ...ontimeSwitch },
|
|
},
|
|
},
|
|
Select: {
|
|
variants: {
|
|
'ontime': { ...ontimeSelect },
|
|
},
|
|
},
|
|
Menu: {
|
|
variants: {
|
|
'ontime-on-dark': { ...ontimeMenuOnDark },
|
|
},
|
|
},
|
|
},
|
|
});
|
|
|
|
export default theme;
|