-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathstitches.config.ts
64 lines (56 loc) · 1.47 KB
/
stitches.config.ts
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
import { createStitches } from '@stitches/react';
import type * as Stitches from '@stitches/react';
export const { styled, css, getCssText, createTheme, globalCss, config } =
createStitches({
theme: {
colors: {
textPrimary: '#1c1c1c',
textSecondary: '#909090',
backgroundPrimary: '#fff',
backgroundSecondary: '#1c1c1c',
backgroundPrimary70: 'rgba(255, 255, 255, 0.7)',
gray500: '#909090',
white: '#ffffff',
functionalRed: '#be3455',
functionalGreen: '#45b26b',
},
radii: {
small: '4px',
rounded: '8px',
},
},
utils: {
bodyText: (level: 1 | 2) => {
if (level === 1) {
return {
fontSize: '20px',
lineHeight: '30px',
fontWeight: 'normal',
};
}
return {
fontSize: '14px',
lineHeight: '21px',
fontWeight: 'normal',
};
},
},
media: {
bp1: '(min-width: 360px)',
bp2: '(min-width: 768px)',
bp3: '(min-width: 1024px)',
bp4: '(min-width: 1280px)',
bp5: '(min-width: 1440px)',
bp6: '(min-width: 1920px)',
},
});
export const darkTheme = createTheme('dark', {
colors: {
textPrimary: '#ebebeb',
textSecondary: '#909090',
backgroundPrimary: '#1c1c1c',
backgroundSecondary: '#fff',
backgroundPrimary70: 'rgba(28, 28, 28, 0.7)',
},
});
export type CSS = Stitches.CSS<typeof config>;