-
Notifications
You must be signed in to change notification settings - Fork 0
/
Stitches.ts
105 lines (99 loc) · 2.19 KB
/
Stitches.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
import { createStitches } from "@stitches/react";
const shadows = {
1: `
0.2px 0.2px 0.3px hsl($colors$shadowColor / 0.67),
0.8px 0.9px 1.2px -3.3px hsl($colors$shadowColor / 0.51)
`,
2: `
0.2px 0.2px 0.3px hsl($colors$shadowColor / 0.93),
4px 4.5px 6.1px -3.3px hsl($colors$shadowColor / 0.71)
`,
3: `
0.2px 0.2px 0.3px hsl($colors$shadowColor / 0.87),
2.1px 2.3px 3.1px -1.1px hsl($colors$shadowColor / 0.76),
7.2px 7.9px 10.7px -2.2px hsl($colors$shadowColor / 0.66),
20px 22px 29.9px -3.3px hsl($colors$shadowColor / 0.55)
`,
};
export const colors = {
yellow: "rgb(241, 200, 146)",
salmon: "#ff8f8f",
background: "rgb(14, 24, 65)",
offWhite: "#fffcf5",
};
export const { styled, css, getCssText } = createStitches({
theme: {
colors: {
...colors,
gray500: "hsl(206,10%,76%)",
blue500: "hsl(206,100%,50%)",
purple500: "hsl(252,78%,60%)",
green500: "hsl(148,60%,60%)",
red500: "hsl(352,100%,62%)",
orange: "#ffaa48",
shadowColor: "254deg 38% 3%",
},
space: {
1: "1px",
2: "2px",
3: "4px",
4: "8px",
5: "16px",
6: "24px",
7: "48px",
8: "64px",
},
fontSizes: {
1: "0.8em",
2: "1em",
3: "1.2em",
4: "1.4em",
5: "1.6em",
6: "2.2em",
7: "2.8em",
8: "4.5em",
},
fonts: {
mono: "'Jetbrains Mono', monospace",
bodySerif: "Spectral, Times, serif",
headingSerif: "Cardo, Georgia",
},
fontWeights: {},
lineHeights: {},
letterSpacings: {},
sizes: {},
borderWidths: {
1: "1px",
2: "2px",
3: "4px",
},
borderStyles: {},
radii: {
1: "1px",
2: "2px",
3: "4px",
4: "8px",
5: "12px",
6: "16px",
7: "24px",
},
shadows: shadows,
zIndices: {},
transitions: {},
},
media: {
bp1: "(min-width: 640px)",
bp2: "(min-width: 768px)",
bp3: "(min-width: 1024px)",
},
utils: {
px: (value: string) => ({
paddingLeft: value,
paddingRight: value,
}),
py: (value: string) => ({
paddingTop: value,
paddingBottom: value,
}),
},
});