-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
49 lines (47 loc) · 1.73 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
const colors = require('tailwindcss/colors')
const defaultTheme = require('tailwindcss/defaultTheme')
function withOpacityValue(variable) {
return ({ opacityValue }) => {
if (opacityValue === undefined) {
return `rgb(var(${variable}))`
}
return `rgb(var(${variable}) / ${opacityValue})`
}
}
module.exports = {
content: [
'./resources/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
'./vendor/savannabits/filament-flatpickr/**/*.blade.php',
'./vendor/awcodes/filament-table-repeater/resources/views/**/*.blade.php',
],
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
'50': withOpacityValue('--color-primary-50'),
'100': withOpacityValue('--color-primary-100'),
'200': withOpacityValue('--color-primary-200'),
'300': withOpacityValue('--color-primary-300'),
'400': withOpacityValue('--color-primary-400'),
'500': withOpacityValue('--color-primary-500'),
'600': withOpacityValue('--color-primary-600'),
'700': withOpacityValue('--color-primary-700'),
'800': withOpacityValue('--color-primary-800'),
'900': withOpacityValue('--color-primary-900')
},
danger: colors.red,
success: colors.green,
warning: colors.amber,
},
fontFamily: {
sans: ['DM Sans', ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
],
}