-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstitches.config.ts
175 lines (163 loc) · 4.27 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
import { createCss } from '@stitches/react';
const { css, styled, global, getCssString, theme } = createCss({
theme: {
fonts: {
system: 'system-ui',
mono: 'monospace',
inter:
"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",
indie: 'IndieFlower',
},
colors: {
// lightGreen: '#52b69a',
'grey-100': '#f8f9fa',
'grey-200': '#e9ecef',
'grey-300': '#dee2e6',
'grey-400': '#ced4da',
'grey-500': '#adb5bd',
'grey-600': '#6c757d',
'grey-700': '#495057',
'grey-800': '#343a40',
'grey-900': '#212529',
'yellow-light': '#fffed6',
yellow: '#ffb703',
'yellow-dark': '#ff7b00',
orange: '#ff6d00',
green: '#34a0a4',
red: '#f94144',
'red-light': '#fff0f3',
'dreamy-gradients-yellow': `#FFAA6C`,
'dreamy-gradients-orange': `radial-gradient(111.63% 111.63% at 42.64% -5.82%, #FFA800 33.65%, #FF0000 44.58%, #FF47D6 100%)`,
'dreamy-gradients-red': `radial-gradient(111.63% 111.63% at 42.64% -5.82%, #FF0000 33.65%, #FF47D6 44.58%, #FFA800 100%)`,
'dreamy-gradients-purple': `linear-gradient(141.55deg, #575EFF -3.79%, #E478FF 82.82%);`,
'dreamy-gradients-blue': `radial-gradient(111.63% 111.63% at 42.64% -5.82%, #00AAFF 33.65%, #00AAFF 44.58%, #00AAFF 100%)`,
'dreamy-gradients-green': `linear-gradient(180deg, #00FF85 0%, rgba(0, 255, 71, 0) 100%);`,
},
borderStyles: {
note: '2px solid #343a40',
},
radii: {
small: '1.1rem',
},
transitions: {
slow: '0.45s',
medium: '0.25s',
fast: '0.1s',
},
},
utils: {
flexRow: () => () => ({
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}),
flexColumn: () => (justifyContent) => ({
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: `${justifyContent}`,
}),
size: () => (size) => ({
width: `${size}`,
height: `${size}`,
}),
annoPos: () => (position: string) => {
const [top, right, bottom, left] = position.split(' ');
return {
'.anno': {
top,
right,
bottom,
left,
},
};
},
},
media: {
['mobile-small']: '(max-width: 300px)',
mobile: '(max-width: 480px)',
tablet: '(max-width: 768px)',
laptop: '(max-width: 1024px)',
desktop: '(max-width: 1200px)',
tv: '(min-width: 1201px)',
},
});
const darkTheme = theme('dark-theme', {
colors: {
'grey-900': '#f8f9fa',
'grey-800': '#e9ecef',
'grey-700': '#dee2e6',
'grey-600': '#ced4da',
'grey-500': '#adb5bd',
'grey-400': '#6c757d',
'grey-300': '#495057',
'grey-200': '#343a40',
'grey-100': '#212529',
},
});
const globalStyles = global({
'*': {
margin: 0,
padding: 0,
boxSizing: 'border-box',
},
'html, body, #__next': {
width: '100%',
minHeight: '100vh',
height: 'fit-content',
fontSize: '62.5%',
fontFamily: '$inter',
fontWeight: 400,
textRendering: 'optimizeLegibility',
overflowX: 'hidden',
'@laptop': {
fontSize: '58%',
},
'@tablet': {
fontSize: '54%',
},
'@mobile': {
fontSize: '48%',
},
'@mobile-small': {
fontSize: '42%',
},
},
span: {
fontSize: '2rem',
},
a: {
textDecoration: 'none',
},
button: {
// outline: 'none',
border: 'none',
},
input: {
border: 'none',
outline: 'none',
},
'.annotation': {
userSelect: 'none',
},
'@font-face': {
fontFamily: 'IndieFlower',
src: `url('/assets/fonts/IndieFlower-Regular.woff2') format('woff2'),
url('/assets/fonts/IndieFlower.woff') format('woff'),
url('/assets/fonts/IndieFlower.ttf') format('truetype'),
url('/assets/fonts/IndieFlower-Regular.eot?#iefix') format('embedded-opentype')`,
fontWeight: 'normal',
fontStyle: 'normal',
},
'::-webkit-scrollbar': {
width: '3px',
},
'::-webkit-scrollbar-track': {
borderRadius: '10px',
},
'::-webkit-scrollbar-thumb': {
background: '$grey-800',
borderRadius: '10px',
},
});
export { css, styled, global, getCssString, globalStyles, darkTheme, theme };