-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.js
74 lines (70 loc) · 1.3 KB
/
theme.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import { theme as chakraTheme } from '@chakra-ui/core';
let colors;
if (process.env.NEXT_PUBLIC_PLATFORM === 'app1') {
colors = require('./lib/palette/app1');
} else if (process.env.NEXT_PUBLIC_PLATFORM === 'app2') {
colors = require('./lib/palette/app2');
} else {
colors = require('./lib/palette/default');
}
const systemFontStack = [
'Inter var',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'Arial',
'"Noto Sans"',
'sans-serif',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"',
'sans-serif',
].join(',');
const systemMonoFontStack = [
'"SFMono-Regular"',
'Menlo',
'Consolas',
'"Liberation Mono"',
'Courier',
'monospace',
].join(',');
export const theme = {
...chakraTheme,
colors: colors,
fontSize: {
xs: '0.75rem',
sm: '0.875rem',
base: '1rem',
md: '1rem',
lg: '1.125rem',
xl: '1.25rem',
'2xl': '1.5rem',
'3xl': '1.875rem',
'4xl': '2.25rem',
'5xl': '3rem',
'6xl': '4rem',
'7xl': '6rem',
'8xl': '8rem',
'9xl': '9rem',
'10xl': '10rem',
},
fonts: {
body: systemFontStack,
heading: systemFontStack,
mono: systemMonoFontStack,
},
fontWeights: {
hairline: 100,
thin: 200,
light: 300,
normal: 400,
medium: 500,
semibold: 600,
bold: 700,
extrabold: 800,
black: 900,
},
};