-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
88 lines (86 loc) · 2.48 KB
/
tailwind.config.js
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
const convert = require("color-convert")
const cwoDesigntokens = require("./cwo-designtokens")
// Returns a shadow-color rgb-string, something like 0,0,1
const shadowColor = convert.hex
.rgb(cwoDesigntokens.colors.primary[600])
.join(",")
module.exports = {
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true,
},
purge: process.env.NO_PURGE
? false
: ["./node_modules/@smetzdev/gatsby-theme-cwo/**/*.tsx", "./src/**/*.tsx"],
theme: {
boxShadow: {
xs: `0 0 0 1px rgba(${shadowColor}, 0.05)`,
sm: `0 1px 2px 0 rgba(${shadowColor}, 0.05)`,
default: `0 1px 3px 0 rgba(${shadowColor}, 0.1), 0 1px 2px 0 rgba(${shadowColor}, 0.06)`,
md: `0 4px 6px -1px rgba(${shadowColor}, 0.1), 0 2px 4px -1px rgba(${shadowColor}, 0.06)`,
lg: `0 10px 15px -3px rgba(${shadowColor}, 0.1), 0 4px 6px -2px rgba(${shadowColor}, 0.05)`,
xl: `0 20px 25px -5px rgba(${shadowColor}, 0.1), 0 10px 10px -5px rgba(${shadowColor}, 0.04)`,
"2xl": `0 25px 50px -12px rgba(${shadowColor}, 0.25)`,
inner: `inset 0 2px 4px 0 rgba(${shadowColor}, 0.06)`,
outline: `0 0 0 3px rgba(${shadowColor}, 0.5)`,
none: "none",
},
container: {
center: true,
padding: "1rem",
},
screens: {
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
},
typography: {
default: {
css: {
h1: {
color: cwoDesigntokens.colors.primary[400],
fontWeight: "800",
},
h2: {
color: cwoDesigntokens.colors.primary[400],
fontWeight: "700",
},
h3: {
color: cwoDesigntokens.colors.primary[400],
fontWeight: "600",
},
h4: {
color: cwoDesigntokens.colors.primary[400],
fontWeight: "600",
},
color: "#fff",
a: {
color: cwoDesigntokens.colors.primary[300],
"&:hover": {
color: cwoDesigntokens.colors.primary[500],
},
},
},
},
},
extend: {
colors: cwoDesigntokens.colors,
fontFamily: {
display: ["DaysLater", "Helvetica Neue", "sans-serif"],
},
spacing: {
72: "18rem",
80: "20rem",
88: "22rem",
96: "24rem",
104: "26rem",
112: "28rem",
120: "30rem",
128: "32rem",
},
},
},
variants: {},
plugins: [require("@tailwindcss/typography")],
}