-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.cjs
95 lines (94 loc) · 3.02 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
import forms from '@tailwindcss/forms';
import typography from '@tailwindcss/typography';
import defaultTheme from 'tailwindcss/defaultTheme';
/** @type {import('tailwindcss').Config} */
export default {
darkMode: 'class',
content: [
'./vendor/livewire/livewire/src/Features/SupportPagination/views/*.blade.php',
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./resources/**/*.ts',
],
theme: {
extend: {
colors: {
lividus: {
50: '#e4ecf5',
100: '#cddeee',
200: '#abc7e3',
300: '#88b0d7',
400: '#6699cc',
500: '#4482c1',
600: '#366ba1',
700: '#2a547e',
800: '#1d3d5b',
900: '#111e38',
},
},
fontFamily: {
sans: [
'Noto Sans TC',
'Roboto',
...defaultTheme.fontFamily.sans,
],
'jetbrains-mono': [
'JetBrains Mono',
'Noto Sans TC',
...defaultTheme.fontFamily.sans,
],
},
keyframes: {
'fade-in': {
from: {
opacity: 0,
transform: 'translateY(20px)',
},
to: {
opacity: 1,
transform: 'translateY(0)',
},
},
'grow-width': {
from: {
width: 0,
},
to: {
width: '100%',
},
},
},
animation: {
'fade-in': 'fade-in 0.5s ease-in-out',
'grow-width': 'grow-width 1s forwards',
},
typography: (theme) => ({
DEFAULT: {
css: {
// blockquote
'blockquote p:first-of-type::before': null,
'blockquote p:last-of-type::after': null,
// inline code
':not(pre) > code': {
backgroundColor: theme('colors.green.200'),
color: theme('colors.green.900'),
padding: '0.25rem',
fontWeight: '600',
borderRadius: '0.25rem',
},
'.dark :not(pre) > code': {
backgroundColor: theme('colors.lividus.700'),
color: theme('colors.gray.50'),
},
},
},
}),
},
},
plugins: [
forms({
strategy: 'class',
}),
typography,
],
};