-
Notifications
You must be signed in to change notification settings - Fork 28
/
tailwind.config.js
97 lines (87 loc) · 3.52 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
97
import defaultTheme from 'tailwindcss/defaultTheme';
import forms from '@tailwindcss/forms';
import typography from '@tailwindcss/typography';
/** @type {import('tailwindcss').Config} */
export default {
darkMode: 'class',
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./vendor/laravel/jetstream/**/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
],
safelist: [
'bg-red-100',
'bg-green-100',
'hover:bg-red-400',
'hover:bg-green-400',
'active:bg-red-400',
'active:bg-green-400',
'border-red-200',
'border-green-200',
'bg-green-400',
'bg-red-400',
'border-red-400',
'border-green-400',
'text-green-800',
'text-red-800',
'flex-row',
'flex-row-reverse',
],
theme: {
extend: {
typography: {
DEFAULT: {
css: {
'--tw-prose-bold': 'var(--color-font-second)',
'--tw-prose-links': 'var(--color-font-second)',
'--tw-prose-code': 'var(--color-font-second)',
'--tw-prose-quotes': 'var(--color-font-second)',
'--tw-prose-headings': 'var(--color-font-second)',
},
},
},
fontFamily: {
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
colors: {
'agree': 'var(--color-agree)',
'agree-light': 'var(--color-agree-light)',
'agree-dark': 'var(--color-agree-dark)',
'disagree': 'var(--color-disagree)',
'disagree-light': 'var(--color-disagree-light)',
'disagree-dark': 'var(--color-disagree-dark)',
'main': 'var(--color-main)',
'main-light': 'var(--color-main-light)',
'main-dark': 'var(--color-main-dark)',
'divider': 'var(--color-divider)',
'info': 'var(--color-info)',
// background
'background': 'var(--color-background)',
'admin-navbar-background': 'var(--color--admin-navbar-background)',
'rfc-card': 'var(--color-rfc-card)',
'argument-card': 'var(--color-argument-card)',
'message-card': 'var(--color-message-card)',
// text color
'font': 'var(--color-font)',
'font-second': 'var(--color-font-second)',
// vot-bar
'vote-bar-background': 'var(--color-vote-bar-background)',
// yes arrow
'agree-arrow': 'var(--color-agree-arrow)',
'agree-arrow-border': 'var(--color-agree-arrow-border)',
'agree-arrow-hover': 'var(--color-agree-arrow-hover)',
'agree-arrow-background': 'var(--color-agree-arrow-background)',
// no arrow
'disagree-arrow': 'var(--color-disagree-arrow)',
'disagree-arrow-border': 'var(--color-disagree-arrow-border)',
'disagree-arrow-hover': 'var(--color-disagree-arrow-hover)',
'disagree-arrow-background': 'var(--color-disagree-arrow-background)',
// form
'form': 'var(--color-form)',
'input': 'var(--color-input)',
},
},
},
plugins: [forms, typography],
};