um-react/src/theme.ts

52 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-05-07 22:29:37 +00:00
import { extendTheme } from '@chakra-ui/react';
2023-06-09 22:11:30 +00:00
import { tabsTheme } from './themes/Tabs';
2023-05-07 22:29:37 +00:00
export const theme = extendTheme({
2023-06-03 13:58:17 +00:00
fonts: {
body: [
'-system-ui,-apple-system,BlinkMacSystemFont',
'Source Han Sans CN,Noto Sans CJK SC',
'Segoe UI,Helvetica,Arial,sans-serif',
'Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol',
].join(','),
2023-11-08 20:40:41 +00:00
mono: [
'SFMono-Regular,Menlo,Monaco',
2023-12-22 10:32:26 +00:00
'"Sarasa Mono CJK SC"',
2023-11-08 20:40:41 +00:00
'Consolas,"Liberation Mono","Courier New",monospace',
2023-12-22 10:32:26 +00:00
'"Microsoft YaHei UI"',
2023-11-08 20:40:41 +00:00
].join(','),
2023-06-03 13:58:17 +00:00
},
components: {
Button: {
baseStyle: {
fontWeight: 'normal',
},
defaultProps: {
colorScheme: 'teal',
},
},
2023-06-09 22:11:30 +00:00
Tabs: tabsTheme,
2023-06-12 21:55:09 +00:00
Link: {
baseStyle: {
color: 'blue.600',
},
},
2023-06-03 13:58:17 +00:00
},
2023-05-07 22:29:37 +00:00
styles: {
global: {
'#root': {
2023-05-07 22:29:37 +00:00
minHeight: '100vh',
maxHeight: '100vh',
display: 'flex',
flexDirection: 'column',
2023-05-07 22:29:37 +00:00
},
},
},
sizes: {
footer: {
container: '5rem',
content: '4rem',
2023-05-07 22:29:37 +00:00
},
},
});