-
Notifications
You must be signed in to change notification settings - Fork 526
/
Copy pathtailwind.config.ts
60 lines (58 loc) · 1.77 KB
/
tailwind.config.ts
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
/** @type {import('tailwindcss').Config} */
const NearFormColors = {
White: "hsla(0, 0%, 100%, 1)",
Black: "hsla(0, 0%, 0%, 1)",
Green: "hsla(163, 100%, 45%, 1)",
Purple: "hsla(260, 100%, 70%, 1)",
LightPurple: "hsla(262, 100%, 90%, 1)",
Blue: "hsla(218, 100%, 64%, 1)",
LightBlue: "hsla(217, 100%, 92%, 1)",
Grey: "hsla(0, 0%, 85%, 1)",
LightGrey: "#F4F8FA",
DeepGrey: "hsla(240, 8%, 29%, 1)",
Navy: "hsla(205, 78%, 21%, 1)",
LightNavy: "hsla(222, 25%, 43%, 1)",
DeepNavy: "hsla(225, 100%, 11%, 1)",
};
module.exports = {
corePlugins: {
preflight: false, // disable Tailwind's reset
},
content: ["./src/**/*.{js,jsx,ts,tsx}", "./docs/**/*.mdx"],
darkMode: ["class", '[data-theme="dark"]'],
theme: {
extend: {
colors: {
transparent: "transparent",
white: NearFormColors.White,
black: NearFormColors.Black,
grayscale: {
100: NearFormColors.White,
200: NearFormColors.LightGrey,
300: NearFormColors.Grey,
400: NearFormColors.DeepGrey,
500: NearFormColors.Black,
800: "#888888",
},
"theme-1": NearFormColors.Green,
"theme-2": NearFormColors.DeepNavy,
"theme-3": NearFormColors.DeepNavy,
"theme-4": NearFormColors.White,
"header-bg": NearFormColors.White,
"header-fg": NearFormColors.DeepNavy,
"button-bg": NearFormColors.Green,
"button-fg": NearFormColors.DeepNavy,
"button-bg-hover": NearFormColors.White,
"button-fg-hover": NearFormColors.DeepNavy,
"button-border": NearFormColors.Green,
error: "#FF0000",
},
width: {
prose: "90ch",
},
fontFamily: {
sans: ["Inter, Helvetica, Arial, sans-serif"],
},
},
},
};