-
Notifications
You must be signed in to change notification settings - Fork 0
/
stitches.config.ts
128 lines (115 loc) · 2.44 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
import { createStitches } from '@stitches/react';
const fallbackFonts =
'-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif';
export const {
styled,
css,
globalCss,
keyframes,
getCssText,
theme,
createTheme,
config,
} = createStitches({
theme: {
fonts: {
main: `ClashGrotesk-Variable, ${fallbackFonts}`,
websafe: `-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif`,
},
colors: {
bg: '#d4d6d4',
textColor: '#2d2d2d',
textColorDark: '#2e2e2e',
alertBg: '#DEDEDE',
},
},
media: {
['mobile-small']: '(max-width: 300px)',
mobile: '(max-width: 500px)',
tablet: '(max-width: 768px)',
laptop: '(max-width: 1024px)',
desktop: '(max-width: 1200px)',
tv: '(min-width: 1201px)',
},
});
export const darkTheme = createTheme({
colors: {
bg: '#2d2d2d',
textColor: '#d4d6d4',
textColorDark: '#d4d6d4',
alertBg: '#DEDEDE',
},
});
export const globalStyles = globalCss({
'*': {
margin: 0,
padding: 0,
boxSizing: 'border-box',
},
'html, body, #__next': {
width: '100%',
minHeight: '100vh',
height: 'fit-content',
fontSize: '62.5%',
fontFamily: '$main',
fontWeight: 400,
// fontStretch: '140%',
// fontOpticalSizing: 'auto',
overflowX: 'hidden',
'@laptop': {
fontSize: '58%',
},
'@tablet': {
fontSize: '54%',
},
'@mobile': {
fontSize: '48%',
},
'@mobile-small': {
fontSize: '42%',
},
},
html: {
backgroundColor: '$bg',
[`.${darkTheme}`]: {
backgroundColor: '$bg',
},
},
body: {
margin: '0 auto',
},
a: {
textDecoration: 'none',
color: 'inherit',
},
button: {
border: 'none',
},
input: {
border: 'none',
outline: 'none',
},
'@font-face': {
fontFamily: `ClashGrotesk-Variable`,
src: `url('/fonts/ClashGrotesk-Variable.woff2') format('woff2')`,
fontWeight: '200 700',
fontDisplay: 'optional',
fontStyle: 'normal',
},
'::-webkit-scrollbar': {
width: '6px',
'&:hover': {
width: '10px',
},
},
'::-webkit-scrollbar-track': {
borderRadius: '10px',
'&:hover': {
width: '10px',
},
},
'::-webkit-scrollbar-thumb': {
background: '$textColor',
borderRadius: '10px',
},
});