-
Notifications
You must be signed in to change notification settings - Fork 0
/
stitches.config.ts
100 lines (95 loc) · 2.06 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import type * as Stitches from '@stitches/react'
import { createStitches } from '@stitches/react'
import { mauve, mauveDark, violet, violetDark } from '@radix-ui/colors'
export const {
config,
createTheme,
css,
getCssText,
globalCss,
styled,
theme,
} = createStitches({
theme: {
colors: {
...mauve,
...violet,
discord: '#404EED',
green: '#3BA55D',
},
},
utils: {
marginX: (value: Stitches.PropertyValue<'margin'>) => ({
marginLeft: value,
marginRight: value,
}),
marginY: (value: Stitches.PropertyValue<'margin'>) => ({
marginTop: value,
marginBottom: value,
}),
paddingX: (value: Stitches.PropertyValue<'padding'>) => ({
paddingLeft: value,
paddingRight: value,
}),
paddingY: (value: Stitches.PropertyValue<'padding'>) => ({
paddingTop: value,
paddingBottom: value,
}),
align: (value: Stitches.PropertyValue<'alignItems'>) => ({
alignItems: value,
}),
justify: (value: Stitches.PropertyValue<'justifyContent'>) => ({
justifyContent: value,
}),
},
media: {
mobile: '(max-width: 460px)',
small: '(max-width: 720px)',
medium: '(max-width: 1000px)',
},
})
export const darkTheme = createTheme({
colors: {
...mauveDark,
...violetDark,
discord: '#404EED',
green: '#3BA55D',
},
})
const GlobalStyles = globalCss({
html: {
scrollBehavior: 'smooth',
},
'*': { margin: 0, padding: 0, boxSizing: 'border-box' },
body: {
backgroundColor: '$mauve1',
height: '100vh',
width: '100vw',
overflowX: 'hidden',
},
button: {
cursor: 'pointer',
border: 0,
background: 'transparent',
},
'body, input, textarea, button': {
fontFamily: 'Roboto',
},
a: {
textDecoration: 'none',
},
'p, h1, h2, h3, h4, h5, h6, strong': {
color: '$mauve12',
},
'::-webkit-scrollbar': {
width: 12,
},
'::-webkit-scrollbar-track': {
background: '$mauve3',
},
'::-webkit-scrollbar-thumb': {
background: '$mauve6',
borderRadius: 6,
},
})
GlobalStyles()