mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 09:53:48 +00:00
770d12888d
* chore: upgrade local build documentation * style: keep scrolling event in screen * feat: delay is time entry * refactor: remove unused * refactor: remove unused * refactor: batch store updates * refactor: virtually remove cap on events * refactor: style and behaviour tweaks to event block * style: tweaks on schedules * chore: remove sentry from server * style: reorder menu * chore: update docs
111 lines
2.7 KiB
TypeScript
111 lines
2.7 KiB
TypeScript
import { extendTheme } from '@chakra-ui/react';
|
|
|
|
import {
|
|
ontimeButtonFilled,
|
|
ontimeButtonOutlined,
|
|
ontimeButtonSubtle,
|
|
ontimeButtonSubtleOnLight,
|
|
ontimeButtonSubtleWhite,
|
|
ontimeGhostOnLight,
|
|
} from './ontimeButton';
|
|
import { ontimeCheckboxOnDark } from './ontimeCheckbox';
|
|
import { ontimeEditable } from './ontimeEditable';
|
|
import { ontimeMenuOnDark } from './ontimeMenu';
|
|
import { ontimeModal } from './ontimeModal';
|
|
import { ontimeBlockRadio } from './ontimeRadio';
|
|
import { ontimeSelect } from './ontimeSelect';
|
|
import { lightSwitch, ontimeSwitch } from './ontimeSwitch';
|
|
import { ontimeTab } from './ontimeTab';
|
|
import {
|
|
ontimeInputFilled,
|
|
ontimeInputFilledOnLight,
|
|
ontimeTextAreaFilled,
|
|
ontimeTextAreaFilledOnLight,
|
|
} from './ontimeTextInputs';
|
|
import { ontimeTooltip } from './ontimeTooltip';
|
|
|
|
const theme = extendTheme({
|
|
components: {
|
|
Button: {
|
|
baseStyle: {
|
|
letterSpacing: '0.3px',
|
|
fontWeight: '400',
|
|
borderRadius: '3px',
|
|
},
|
|
variants: {
|
|
'ontime-filled': { ...ontimeButtonFilled },
|
|
'ontime-outlined': { ...ontimeButtonOutlined },
|
|
'ontime-subtle': { ...ontimeButtonSubtle },
|
|
'ontime-subtle-white': { ...ontimeButtonSubtleWhite },
|
|
'ontime-subtle-on-light': { ...ontimeButtonSubtleOnLight },
|
|
'ontime-ghost-on-light': { ...ontimeGhostOnLight },
|
|
},
|
|
},
|
|
Checkbox: {
|
|
variants: {
|
|
'ontime-ondark': { ...ontimeCheckboxOnDark },
|
|
},
|
|
},
|
|
Editable: {
|
|
variants: {
|
|
ontime: { ...ontimeEditable },
|
|
},
|
|
},
|
|
Input: {
|
|
baseStyle: {
|
|
borderRadius: '3px',
|
|
border: '1px',
|
|
},
|
|
variants: {
|
|
'ontime-filled': { ...ontimeInputFilled },
|
|
'ontime-filled-on-light': { ...ontimeInputFilledOnLight },
|
|
},
|
|
},
|
|
Modal: {
|
|
variants: {
|
|
ontime: { ...ontimeModal },
|
|
},
|
|
},
|
|
Radio: {
|
|
variants: {
|
|
'ontime-block': { ...ontimeBlockRadio },
|
|
},
|
|
},
|
|
Tabs: {
|
|
variants: {
|
|
ontime: { ...ontimeTab },
|
|
},
|
|
},
|
|
Textarea: {
|
|
baseStyle: {
|
|
borderRadius: '3px',
|
|
},
|
|
variants: {
|
|
'ontime-filled': { ...ontimeTextAreaFilled },
|
|
'ontime-filled-onlight': { ...ontimeTextAreaFilledOnLight },
|
|
},
|
|
},
|
|
Tooltip: {
|
|
baseStyle: { ...ontimeTooltip },
|
|
},
|
|
Switch: {
|
|
variants: {
|
|
ontime: { ...ontimeSwitch },
|
|
'ontime-on-light': { ...lightSwitch },
|
|
},
|
|
},
|
|
Select: {
|
|
variants: {
|
|
ontime: { ...ontimeSelect },
|
|
},
|
|
},
|
|
Menu: {
|
|
variants: {
|
|
'ontime-on-dark': { ...ontimeMenuOnDark },
|
|
},
|
|
},
|
|
},
|
|
});
|
|
|
|
export default theme;
|