This repository has been archived by the owner on Jul 6, 2022. It is now read-only.
generated from pan93412/next-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
82 lines (80 loc) · 1.99 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
module.exports = {
mode: "jit",
darkMode: false, // or 'media' or 'class'
purge: [
"./components/**/*.ts",
"./components/**/*.tsx",
"./pages/**/*.tsx",
"./utilities/**/*.ts",
"./utilities/**/*.tsx",
],
theme: {
extend: {
fontFamily: {
sans: "'PT Sans', 'Noto Sans TC', sans-serif",
serif: "'Noto Serif TC', serif",
mono: "'JetBrains Mono', Menlo, monospace",
},
borderColor: {
button: "rgba(0, 0, 0, 0.25)",
accent: "#0A85F6",
positive: "#12B981",
neutral: "#F49E0B",
negative: "#EE4444",
},
minWidth: {
"2xl": "42rem",
},
},
colors: {
// common
primary: "#263238",
secondary: "#EEEEEE",
"secondary-hover": "#F4F4F4",
"on-surface": "#FFFFFF",
accent: "#0A85F6",
positive: "#12B981",
neutral: "#F49E0B",
negative: "#EE4444",
link: "#0761B6",
// text
"text-head": "#000000", // Navigation & Headlines
"text-head-white": "#FFFFFF", // Navigation & Headlines
"text-primary": "#424242", // Primary & Buttons
"text-secondary": "#757575", // Secondary (previously auxiliary)
"text-override": "#FFFFFF", // On Colored Surface
// the button of Page/Dashboard/StatusCard
"transparent-secondary": "rgba(255,255,255,0.25)",
},
/**
* @param {(theme: string) => Record<string,string>} theme
* @return {Record<string, string>}
*/
backgroundColor: (theme) => ({
...theme("colors"),
transparent: "rgba(0,0,0,0)",
}),
fontSize: {
h1: "2rem",
"number-input": "1.75rem",
h2: "1.25rem",
baseline: "1rem",
button: "1rem",
details: "0.8rem",
"card-emphasize": "1.7rem",
},
letterSpacing: {
header: "0.025em",
body: "0em",
button: "0.025em",
},
fontWeight: {
header: 700,
body: 400,
button: 500,
badge: 500,
},
},
variants: {},
plugins: [],
};