-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstitches.config.ts
97 lines (89 loc) · 1.84 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
// import type * as Stitches from '@stitches/react'
import { createStitches } from '@stitches/react'
export const {
styled,
css,
globalCss,
keyframes,
getCssText,
theme,
createTheme,
config,
} = createStitches({
theme: {
fonts: {
main: 'ClashGrotesk-Variable',
display: 'Mago',
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 globalStyles = globalCss({
'*': {
margin: 0,
padding: 0,
boxSizing: 'border-box',
cursor: 'url("img/cursor.png"), auto',
},
'html, body, #__next': {
width: '100%',
minHeight: '100vh',
height: 'fit-content',
fontSize: '62.5%',
fontFamily: '$main',
fontWeight: 400,
overflowX: 'hidden',
// cursor: 'url("img/cursor.png"), auto',
'@laptop': {
fontSize: '58%',
},
'@tablet': {
fontSize: '54%',
},
'@mobile': {
fontSize: '48%',
},
'@mobile-small': {
fontSize: '42%',
},
},
html: {
backgroundColor: '$bg',
},
body: {
margin: '0 auto',
fontFamily: '$display',
lineHeight: '20px',
},
a: {
textDecoration: 'none',
color: 'inherit',
},
button: {
border: 'none',
},
input: {
border: 'none',
outline: 'none',
},
'@font-face': {
fontFamily: 'Mago',
src: `url('/fonts/mago2.woff2') format('woff2')`,
fontDisplay: 'optional',
fontStyle: 'normal',
},
})