-
Notifications
You must be signed in to change notification settings - Fork 174
/
tailwind.config.cjs
84 lines (82 loc) · 2.32 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
const { tailwindExtractor } = require("tailwindcss/lib/lib/purgeUnusedStyles");
module.exports = {
purge: {
// mode: "all",
content: ["./src/**/*.svelte"],
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)",
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)",
},
maxWidth: {
row: "var(--row-max-width)",
},
spacing: {
"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)",
},
},
},
variants: {
extend: {},
},
plugins: [],
};