forked from KlasenK/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
101 lines (99 loc) · 2.91 KB
/
tailwind.config.cjs
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
const { tailwindExtractor } = require("tailwindcss/lib/lib/purgeUnusedStyles");
module.exports = {
purge: {
// mode: "all",
content: ["./src/**/*.svelte", "./src/contents/*.ts"],
options: {
defaultExtractor: (content) => [
// If this stops working, please open an issue at https://github.com/svelte-add/tailwindcss/issues rather than bothering Tailwind Labs about it
...tailwindExtractor(content),
// Match Svelte class: directives (https://github.com/tailwindlabs/tailwindcss/discussions/1731)
...[...content.matchAll(/(?:class:)*([\w\d-/:%.]+)/gm)].map(
([_match, group, ..._rest]) => group
),
],
},
},
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
backgroundImage: {
"gitpod-kumquat-gradient":
"linear-gradient(137.41deg, #FFAD33 14.37%, #FF8A00 91.32%)",
},
borderRadius: {
"4xl": "2rem",
},
colors: {
black: "var(--black)",
"dark-grey": "var(--dark-grey)",
"light-grey": "var(--light-grey)",
divider: "var(--divider)",
"sand-dark": "var(--sand-dark)",
"sand-light": "var(--sand-light)",
"off-white": "var(--off-white)",
white: "var(--white)",
"brand-hover": "var(--brand-hover)",
"black-hover": "var(--black-hover)",
gray: {
900: "var(--black)",
800: "var(--dark-grey)",
700: "var(--light-grey)",
400: "var(--divider)",
300: "var(--sand-dark)",
200: "var(--sand-light)",
100: "var(--off-white)",
},
orange: {
900: "var(--brand-almost-ripe)",
800: "var(--brand-ripe)",
700: "var(--brand-light)",
},
pink: {
900: "var(--salmon)",
},
},
fontSize: {
h1: "var(--h1)",
h2: "var(--h2)",
h3: "var(--h3)",
h4: "var(--h4)",
h5: "var(--h5)",
h6: "var(--h6)",
"p-large": "var(--p-large)",
"p-medium": "var(--p-medium)",
"p-small": "var(--p-small)",
"p-xsmall": "var(--p-xsmall)",
"btn-small": "var(--btn-small)",
"fine-print": "var(--fine-print)",
},
maxWidth: {
row: "var(--row-max-width)",
"container-normal": "var(--container-normal)",
},
spacing: {
huge: "var(--huge)",
"xx-large": "var(--xx-large)",
"x-large": "var(--x-large)",
large: "var(--large)",
medium: "var(--medium)",
small: "var(--small)",
"x-small": "var(--x-small)",
"xx-small": "var(--xx-small)",
micro: "var(--micro)",
macro: "var(--macro)",
},
boxShadow: {
normal: "var(--shadow)",
brand: "var(--shadow-brand)",
},
},
},
variants: {
extend: {
dropShadow: ["hover", "focus"],
grayscale: ["hover"],
},
},
plugins: [],
};