-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
98 lines (96 loc) · 2.39 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
/** @type {import('tailwindcss').Config} */
import typography from "@tailwindcss/typography";
import forms from "@tailwindcss/forms";
import aspectRatio from "@tailwindcss/aspect-ratio";
import safeArea from "tailwindcss-safe-area";
export default {
content: ['./src/**/*.njk', './src/**/*.md'],
darkMode: "class",
theme: {
extend: {
borderRadius: {
xs: "4px",
sm: "6px",
DEFAULT: "10px",
},
colors: {
transparent: "transparent",
current: "currentColor",
inherit: "inherit",
white: "#fff",
black: "#000",
carbon: {
500: "#191919",
DEFAULT: "#191919",
},
skin: {
500: "#ECE3CA",
600: "#E5D8B4",
700: "#ADA17F",
DEFAULT: "#ECE3CA",
},
red: {
100: "#CF4037"
},
pale: {
500: "#dddddd",
DEFAULT: "#dddddd"
}
},
aspectRatio: {
auto: "auto",
box: "1",
landscape: "4/3",
portrait: "3/4",
video: "16/9",
},
maxWidth: {
"copy-xs": "25ch",
"copy-sm": "45ch",
"copy-md": "55ch",
"copy-lg": "65ch",
"copy-xl": "75ch",
"copy-2xl": "85ch",
},
},
},
plugins: [
typography,
forms,
aspectRatio,
safeArea,
({ addComponents, theme }) => {
addComponents({
".container": {
"@apply px-4 max-w-screen-2xl mx-auto": {},
},
"[data-theme=light] .prose": {
"--tw-prose-links": "#222",
"--tw-prose-quote-borders": "#222",
"--tw-prose-headings": "#222",
},
"[data-theme=dark] .prose": {
"--tw-prose-links": "#f2f2f2",
"--tw-prose-quote-borders": "#f2f2f2",
"--tw-prose-quotes": "#f2f2f2",
"--tw-prose-body": "#f2f2f2",
"--tw-prose-headings": "#f2f2f2",
"--tw-prose-bold": "#f2f2f2",
},
".prose": {
"@apply text-base md:text-lg": {},
},
".prose p": {
"@apply text-pretty": {},
},
'.prose :where(a):not(:where([class~="not-prose"] *))': {
textDecoration: "none",
"@apply hover:underline": {},
},
'.prose :where(span):not(:where([class~="not-prose"] *))': {
"@apply dark:text-white": {},
}
});
},
],
};