-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstitches.config.ts
80 lines (77 loc) · 2.22 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
import type * as Stitches from '@stitches/react';
import { createStitches } from '@stitches/react';
const minWidth = (width: string) => `(min-width: ${width})`;
const stitches = createStitches({
theme: {
colors: {
main: '#6CCAFF',
gray100: 'hsl(0 0% 98.8%)',
gray200: 'hsl(0 0% 96.0%)',
gray300: 'hsl(0 0% 93.7%)',
gray400: 'hsl(0 0% 92.0%)',
gray500: 'hsl(0 0% 89.5%)',
gray600: 'hsl(0 0% 85.2%)',
gray700: 'hsl(0 0% 80.0%)',
gray800: 'hsl(0 0% 56.1%)',
gray900: 'hsl(0 0% 43.9%)',
gray1000: 'hsl(0 0% 7%)',
},
},
media: {
sm: minWidth('640px'),
md: minWidth('768px'),
lg: minWidth('1024px'),
xl: minWidth('1280px'),
'2xl': minWidth('1536px'),
},
utils: {
m: (value: Stitches.PropertyValue<'margin'>) => ({
margin: value,
}),
mt: (value: Stitches.PropertyValue<'marginTop'>) => ({
marginTop: value,
}),
mr: (value: Stitches.PropertyValue<'marginRight'>) => ({
marginRight: value,
}),
mb: (value: Stitches.PropertyValue<'marginBottom'>) => ({
marginBottom: value,
}),
ml: (value: Stitches.PropertyValue<'marginLeft'>) => ({
marginLeft: value,
}),
mx: (value: Stitches.PropertyValue<'margin'>) => ({
marginLeft: value,
marginRight: value,
}),
my: (value: Stitches.PropertyValue<'margin'>) => ({
marginTop: value,
marginBottom: value,
}),
p: (value: Stitches.PropertyValue<'padding'>) => ({
padding: value,
}),
pt: (value: Stitches.PropertyValue<'paddingTop'>) => ({
paddingTop: value,
}),
pr: (value: Stitches.PropertyValue<'paddingRight'>) => ({
paddingRight: value,
}),
pb: (value: Stitches.PropertyValue<'paddingBottom'>) => ({
paddingBottom: value,
}),
pl: (value: Stitches.PropertyValue<'paddingLeft'>) => ({
paddingLeft: value,
}),
px: (value: Stitches.PropertyValue<'padding'>) => ({
paddingLeft: value,
paddingRight: value,
}),
py: (value: Stitches.PropertyValue<'padding'>) => ({
paddingTop: value,
paddingBottom: value,
}),
},
});
export type CSS = Stitches.CSS<typeof stitches>;
export const { styled, css, getCssText } = stitches;