-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtailwind.config.js
99 lines (99 loc) · 3.36 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
89
90
91
92
93
94
95
96
97
98
99
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"app/*.{html,md}",
"app/_layouts/**/*.html",
"app/_includes/**/*.{html,md}",
"app/_landing_pages/**/*.yaml",
"app/_gateway_entities/**",
"app/_how-tos/**/*.md",
"app/_plugins/**/*.rb",
"app/_assets/javascripts/**",
"app/gateway/**",
],
darkMode: "selector",
safelist: [
{
pattern: /grid-cols-[1-6]/,
variants: ["md", "lg"],
},
{
pattern: /col-span-[1-6]/,
variants: ["md", "lg"],
},
{
pattern: /gap-[1-12]/,
variants: ["md", "lg"],
},
"self-start",
"self-center",
"self-end",
"DocSearch-Commands",
],
theme: {
extend: {
screens: {
xs: "480px",
},
colors: {
brand: "rgb(var(--color-brand), <alpha-value>)",
"brand-saturated": "rgb(var(--color-brand-saturated), <alpha-value>)",
"semantic-red-primary":
"rgb(var(--color-semantic-red-primary), <alpha-value>)",
"semantic-red-secondary":
"rgb(var(--color-semantic-red-secondary), <alpha-value>)",
"semantic-yellow-primary":
"rgb(var(--color-semantic-yellow-primary), <alpha-value>)",
"semantic-yellow-secondary":
"rgb(var(--color-semantic-yellow-secondary), <alpha-value>)",
"semantic-blue-primary":
"rgb(var(--color-semantic-blue-primary), <alpha-value>)",
"semantic-blue-secondary":
"rgb(var(--color-semantic-blue-secondary), <alpha-value>)",
"semantic-green-primary":
"rgb(var(--color-semantic-green-primary), <alpha-value>)",
"semantic-green-secondary":
"rgb(var(--color-semantic-green-secondary), <alpha-value>)",
"semantic-grey-primary":
"rgb(var(--color-semantic-grey-primary), <alpha-value>)",
"semantic-grey-secondary":
"rgb(var(--color-semantic-grey-secondary), <alpha-value>)",
"semantic-purple-primary":
"rgb(var(--color-semantic-purple-primary), <alpha-value>)",
"semantic-purple-secondary":
"rgb(var(--color-semantic-purple-secondary), <alpha-value>)",
},
textColor: {
primary: "rgb(var(--color-text-primary), <alpha-value>)",
secondary: "rgb(var(--color-text-secondary), <alpha-value>)",
terciary: "rgb(var(--color-text-terciary), <alpha-value>)",
},
borderColor: {
primary: "rgb(var(--color-border-primary), <alpha-value>)",
},
divideColor: {
primary: "rgb(var(--color-border-primary), <alpha-value>)",
},
backgroundColor: {
primary: "rgb(var(--color-bg-primary), <alpha-value>)",
secondary: "rgb(var(--color-bg-secondary), <alpha-value>)",
terciary: "rgb(var(--color-bg-terciary), <alpha-value>)",
"code-block": "rgb(var(--color-bg-code-block), <alpha-value>)",
"code-block-header":
"rgb(var(--color-bg-code-block-header), <alpha-value>)",
"hover-component":
"rgb(var(--color-bg-hover-component), <alpha-value>)",
},
boxShadow: {
primary: "0 4px 12px 0 rgb(var(--color-shadow-primary))",
"hover-card": "0 4px 20px 0 rgb(var(--color-shadow-hover-card))",
},
},
},
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/forms")({
strategy: "class", // only generate classes
}),
],
};