-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
100 lines (99 loc) · 2.07 KB
/
tailwind.config.cjs
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
100
const {
colors: { white, black },
} = require("tailwindcss/defaultTheme");
const forms = require("./forms.config.cjs");
module.exports = {
mode: "jit",
corePlugins: {
// ie11
backgroundOpacity: false,
textOpacity: false,
},
purge: [
"./app/parts/**/*.html",
"./app/styles/functions/**/*.css",
"./app/styles/utils.css",
],
theme: {
fontSize: {
xs: [".67rem", ""], // 8pt 10.67px (2), -cost, item name
sm: [".75rem", ""], // 9pt 12px text, top-bar, smal cost, item count
base: [".83rem", ""], // 10pt 13.33px cost, menu item
button: [".88rem", ""], // 10.5pt 14px button
xl: ["1rem", ""], // 12pt 16px big cost
},
fontFamily: {
// esceped with quotes
// html font sans by default
sans: [
'"Lato"',
'"ui-sans-serif"',
'"system-ui"',
'"-apple-system"',
'"BlinkMacSystemFont"',
'"Segoe UI"',
'"Roboto"',
'"Helvetica Neue"',
'"Arial"',
'"Noto Sans"',
'"sans-serif"',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"',
],
hsans: [
'"Helvetica"',
'"Lato"',
'"ui-sans-serif"',
'"system-ui"',
'"-apple-system"',
'"BlinkMacSystemFont"',
'"Segoe UI"',
'"Roboto"',
'"Helvetica Neue"',
'"Arial"',
'"Noto Sans"',
'"sans-serif"',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"',
],
},
colors: {
white,
black,
gray: {
// sorted by gray-scale
200: "#f7f7f7", // menu item hover
300: "#eeeeee", // popup border, content splitter line
400: "#d3d3d3", // default border
500: "#cbcbcb", // input border
700: "#a3a2a2", // input placeholder
},
accent: {
// now in red-pink scale
light: "#ecc7d0",
DEFAULT: "#ea2260",
// dark: "#ea2260",
},
},
borderColor: (theme) => ({
...theme("colors"),
DEFAULT: theme("colors.gray.400", "currentColor"),
}),
extend: {
lineHeight: {
11: "2.875rem",
},
},
},
darkMode: false,
variants: { extend: {} },
plugins: [
forms({
strategy: "class",
}),
],
};