-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
79 lines (78 loc) · 2.12 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
import defaultTheme from 'tailwindcss/defaultTheme'
import colors from 'tailwindcss/colors'
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [],
darkMode: 'class',
theme: {
extend: {
fontFamily: {
sans: [
'"Exo 2"',
'"Noto Sans JP"',
...defaultTheme.fontFamily.sans
]
},
// All custom classes start with prefix "ns" (Nyars)
backgroundImage: {
'ns-logo-light': `url('/favicon-96x96.png')`,
'ns-logo-dark': `url('/favicon-dark-96x96.png')`
},
colors: {
ns: {
100: '#e1edee',
200: '#c3dadd',
300: '#a6c8cd',
400: '#88b5bc',
500: '#6aa3ab',
600: '#558289',
700: '#406267',
800: '#2a4144',
900: '#152122',
gray: colors.zinc,
tag: {
common: colors.gray,
jyouyou: colors.slate,
insatsu: colors.slate,
jinmeiyou: colors.slate,
jlpt: colors.amber,
kanken: colors.pink,
grade: colors.teal,
shou: colors.teal,
chuu: colors.amber,
kou: colors.orange,
kanon: colors.slate,
souon: colors.slate,
touon: colors.slate,
goon: colors.slate,
kanyoon: colors.slate,
gai: colors.blue
},
// See types/models/edit/editStatus
'edit-status': {
1: '#1d90b3', // New
2: '#b31d1d', // Declined
3: '#1db336', // Accepted
4: '#b3b3b3', // Auto-accepted
5: '#aa1db3' // Reverted
},
// See types/models/edit/editType
'edit-type': {
1: '#1db336', // Create
2: '#1d90b3', // Edit
3: '#b31d1d', // Delete
4: '#a520c7' // Transfer
}
}
}
}
},
plugins: [],
safelist: [
{ pattern: /border-ns-edit-status-/ },
{ pattern: /text-ns-edit-status-/ },
{ pattern: /text-ns-edit-type-/ },
{ pattern: /text-ns-tag-/ },
{ pattern: /border-ns-tag-/ }
]
}