-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.js
96 lines (94 loc) · 2.07 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
const defaultTheme = require("tailwindcss/defaultTheme");
const plugin = require("tailwindcss/plugin");
const fonts = [
{
fontWeight: 300,
file: "light.woff2",
},
{
fontWeight: 400,
file: "regular.woff2",
},
{
fontWeight: 500,
file: "medium.woff2",
},
{
fontWeight: 600,
file: "semi-bold.woff2",
},
{
fontWeight: 700,
file: "bold.woff2",
},
];
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: "class",
content: ["./data/**/*.js", "./server/api/cms.js"],
theme: {
extend: {
fontFamily: {
sans: ["SpaceGrotesk", ...defaultTheme.fontFamily.sans],
},
colors: {
themeBackground: "var(--background)",
red: {
50: "#FFEEF1",
100: "#FFC0CB",
200: "#FFA2B4",
300: "#FF859C",
400: "#FF687F",
500: "#FF4F64",
600: "#DE3243",
700: "#BC1F2A",
800: "#9B0F1C",
900: "#79040E",
},
blue: {
50: "#FCFCFC",
100: "#F2F9FC",
200: "#D6F9FF",
300: "#BCF7FE",
400: "#92ECFC",
500: "#64D8F5",
600: "#43CEEE",
700: "#28C6E6",
800: "#13C2E1",
900: "#00BDDC",
},
gray: {
50: "#F9FBFB",
100: "#E7F4F4",
200: "#D0E1E3",
300: "#A4BDC0",
400: "#8DA3A6",
500: "#697D80",
600: "#425659",
700: "#2A373A",
800: "#232E2F",
900: "#1F2728",
},
green: {
500: "#02a602",
600: "#037303",
},
},
},
},
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/forms"),
plugin(function ({ addBase }) {
addBase({
"@font-face": fonts.map(({ fontWeight, file }) => ({
fontFamily: "SpaceGrotesk",
fontStyle: "normal",
fontWeight,
fontDisplay: "swap",
src: `url("/fonts/space-grotesk/${file}") format("woff2");`,
})),
});
}),
],
};