-
Notifications
You must be signed in to change notification settings - Fork 2
/
stitches.config.ts
39 lines (36 loc) · 1005 Bytes
/
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
import sizes, { gr } from "@/styles/sizes";
import colors from "@/styles/colors";
import { createStitches } from "@stitches/react";
import fonts from "@/styles/fonts";
import media from "@/styles/media";
import transitions from "@/styles/transitions";
export type { VariantProps } from "@stitches/react";
export const { styled, keyframes } = createStitches({
media: media,
theme: {
colors: { ...colors },
fontSizes: {
gr1: "0.611rem",
gr2: "0.722rem",
gr3: "0.833rem",
gr4: "1rem",
gr5: `1.177rem`,
gr6: `1.318rem`,
gr7: `calc(1rem * ${gr(1)})`,
gr8: `calc(1rem * ${gr(2)})`,
gr9: `calc(1rem * ${gr(3)})`,
},
fonts: { ...fonts },
sizes: { ...sizes },
space: { ...sizes },
transitions: { ...transitions },
},
utils: {
heroBgImage: (value: string) => ({
"& :before": {
backgroundImage: value,
},
}),
marginX: (value: number) => ({ marginLeft: value, marginRight: value }),
},
});