forked from filamentphp/filament
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
129 lines (128 loc) · 3.72 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
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
module.exports = {
purge: {
layers: ['utilities'],
content: [
'./src/**/*.php',
'./resources/views/**/*.php',
'./resources/js/**/*.js',
'./packages/forms/src/**/*.php',
'./packages/forms/resources/views/**/*.php',
'./packages/tables/src/**/*.php',
'./packages/tables/resources/views/**/*.php',
],
},
theme: {
extend: {
fontFamily: {
sans: ['Commissioner', ...defaultTheme.fontFamily.sans],
mono: ['Space Mono', ...defaultTheme.fontFamily.mono],
},
colors: {
primary: {
100: 'var(--f-primary-100)',
200: 'var(--f-primary-200)',
300: 'var(--f-primary-300)',
400: 'var(--f-primary-400)',
500: 'var(--f-primary-500)',
600: 'var(--f-primary-600)',
700: 'var(--f-primary-700)',
800: 'var(--f-primary-800)',
900: 'var(--f-primary-900)',
},
success: {
100: 'var(--f-success-100)',
200: 'var(--f-success-200)',
300: 'var(--f-success-300)',
400: 'var(--f-success-400)',
500: 'var(--f-success-500)',
600: 'var(--f-success-600)',
700: 'var(--f-success-700)',
800: 'var(--f-success-800)',
900: 'var(--f-success-900)',
},
danger: {
100: 'var(--f-danger-100)',
200: 'var(--f-danger-200)',
300: 'var(--f-danger-300)',
400: 'var(--f-danger-400)',
500: 'var(--f-danger-500)',
600: 'var(--f-danger-600)',
700: 'var(--f-danger-700)',
800: 'var(--f-danger-800)',
900: 'var(--f-danger-900)',
},
gray: {
100: 'var(--f-gray-100)',
200: 'var(--f-gray-200)',
300: 'var(--f-gray-300)',
400: 'var(--f-gray-400)',
500: 'var(--f-gray-500)',
600: 'var(--f-gray-600)',
700: 'var(--f-gray-700)',
800: 'var(--f-gray-800)',
900: 'var(--f-gray-900)',
},
blue: {
100: 'var(--f-blue-100)',
200: 'var(--f-blue-200)',
300: 'var(--f-blue-300)',
400: 'var(--f-blue-400)',
500: 'var(--f-blue-500)',
600: 'var(--f-blue-600)',
700: 'var(--f-blue-700)',
800: 'var(--f-blue-800)',
900: 'var(--f-blue-900)',
},
white: 'var(--f-white)',
defaultPrimary: colors.lightBlue,
defaultSuccess: colors.emerald,
defaultDanger: colors.rose,
defaultGray: colors.coolGray,
defaultBlue: colors.blue,
defaultWhite: colors.white
},
keyframes: {
shake: {
'10%, 90%': {
transform: 'translate3d(-1px, 0, 0)',
},
'20%, 80%': {
transform: 'translate3d(2px, 0, 0)',
},
'30%, 50%, 70%': {
transform: 'translate3d(-4px, 0, 0)',
},
'40%, 60%': {
transform: 'translate3d(4px, 0, 0)',
},
},
},
typography: (theme) => ({
DEFAULT: {
css: {
a: {
color: theme('colors.secondary.700'),
'&:hover': {
color: theme('colors.secondary.500'),
},
},
},
},
}),
},
},
variants: {
extend: {
padding: ['direction'],
translate: ['direction'],
space: ['direction'],
}
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require('tailwindcss-dir'),
],
}