-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
tailwind.config.js
139 lines (138 loc) · 3.69 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
import { fontFamily } from 'tailwindcss/defaultTheme'
import plugin from 'tailwindcss/plugin'
import colors from 'tailwindcss/colors'
import aspectRatio from '@tailwindcss/aspect-ratio'
import forms from '@tailwindcss/forms'
import typography from '@tailwindcss/typography'
import preset from './vendor/filament/support/tailwind.config.preset'
/** @type {import('tailwindcss').Config} */
export default {
darkMode: 'class',
presets: [preset],
content: [
'./app/Livewire/**/*.php',
'./app/Filament/**/*.php',
'./config/markdown.php',
'./resources/**/*.blade.php',
'./storage/framework/views/*.php',
'./vendor/filament/**/*.blade.php',
'./vendor/wire-elements/modal/resources/views/*.blade.php',
'./vendor/awcodes/filament-badgeable-column/resources/**/*.blade.php',
],
safelist: [
{
pattern: /max-w-(xl|2xl|3xl|4xl|5xl|6xl)/,
variants: ['sm', 'md', 'lg'],
},
],
theme: {
extend: {
animation: {
'fade-in': 'fade-in 0.5s linear forwards',
marquee: 'marquee var(--marquee-duration) linear infinite',
'spin-slow': 'spin 4s linear infinite',
'spin-slower': 'spin 6s linear infinite',
'spin-reverse': 'spin-reverse 1s linear infinite',
'spin-reverse-slow': 'spin-reverse 4s linear infinite',
'spin-reverse-slower': 'spin-reverse 6s linear infinite',
'scroll-slow': 'scroll 30s linear infinite',
},
keyframes: {
'fade-in': {
from: {
opacity: 0,
},
to: {
opacity: 1,
},
},
marquee: {
'100%': {
transform: 'translateY(-50%)',
},
},
'spin-reverse': {
to: {
transform: 'rotate(-360deg)',
},
},
scroll: {
from: {
transform: 'translateX(0)',
},
to: {
transform: 'translateX(-100%)',
}
}
},
colors: {
flag: {
green: '#099170',
red: '#e21b30',
yellow: '#ffdc44',
},
black: '#161B22',
green: colors.emerald,
primary: colors.emerald,
},
fontFamily: {
heading: ['Lexend', ...fontFamily.sans],
mono: ['JetBrains Mono', ...fontFamily.mono],
sans: ['DM Sans', ...fontFamily.sans],
},
width: {
90: '22.5rem'
},
typography: (theme) => ({
DEFAULT: {
css: {
img: {
borderRadius: theme('borderRadius.lg')
},
'h1, h2, h3, h4': {
fontFamily: "Lexend, sans-serif",
},
blockquote: {
fontStyle: 'normal',
},
'blockquote p:first-of-type::before': {
content: 'none',
},
'blockquote p:first-of-type::after': {
content: 'none',
},
'pre, code, p > code': {
fontWeight: theme('fontWeight.medium'),
fontFamily: 'JetBrains Mono, monospace',
color: theme('colors.amber.500'),
},
'li strong, strong' : {
color: theme('colors.gray.700'),
fontWeight: 400
},
},
},
'heading-off': {
css: {
'h1, h2, h3, h4, h5': {
margin: '10px 0',
fontSize: theme('fontSize.base')
},
},
},
})
},
},
plugins: [
aspectRatio,
forms,
typography,
plugin(({ matchUtilities }) => {
matchUtilities({
replace: (value) => ({
[`@apply ${value.replaceAll(',', ' ')}`]: {},
}),
})
}),
],
}