-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.options.js
128 lines (125 loc) · 2.8 KB
/
tailwind.options.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
export const content = [
`${__dirname}/src/**/*.{css,js}`,
`${__dirname}/app/views/**/*.{rb,erb,js}`,
`${__dirname}/config/initializers/simple_form.rb`,
`${__dirname}/lib/plutonium/**/*.rb`,
// node modules are not packaged as part of the gem.
// requires users to have flowbite installed in their own project.
'./node_modules/flowbite/**/*.js',
];
export const darkMode = "selector";
export const plugins = [
// requires users to have the required packages installed in their own project.
"@tailwindcss/forms",
"flowbite/plugin"
];
export const theme = {
extend: {
colors: {
primary: {
'50': '#f0f7fe',
'100': '#ddecfc',
'200': '#c3dffa',
'300': '#99ccf7',
'400': '#69b0f1',
'500': '#4691eb',
'600': '#3174df',
'700': '#285fcc',
'800': '#274ea6',
'900': '#244484',
'950': '#1b2b50',
},
},
screens: {
'xs': '475px',
},
},
fontFamily: {
'body': [
'Lato',
'ui-sans-serif',
'system-ui',
'-apple-system',
'system-ui',
'Segoe UI',
'Roboto',
'Helvetica Neue',
'Arial',
'Noto Sans',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
'Noto Color Emoji'
],
'sans': [
'Lato',
'ui-sans-serif',
'system-ui',
'-apple-system',
'system-ui',
'Segoe UI',
'Roboto',
'Helvetica Neue',
'Arial',
'Noto Sans',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
'Noto Color Emoji'
],
'mono': [
'ui-monospace',
'SFMono-Regular',
'Menlo',
'Monaco',
'Consolas',
'Liberation Mono',
'Courier New',
'monospace'
]
}
};
export const safelist = [
// Col span classes
{
pattern: /^col-span-/,
variants: ['sm', 'md', 'lg', 'xl', '2xl'],
},
// Col start classes
{
pattern: /^col-start-/,
variants: ['sm', 'md', 'lg', 'xl', '2xl'],
},
// Col end classes
{
pattern: /^col-end-/,
variants: ['sm', 'md', 'lg', 'xl', '2xl'],
},
// Row span classes
{
pattern: /^row-span-/,
variants: ['sm', 'md', 'lg', 'xl', '2xl'],
},
// Row start classes
{
pattern: /^row-start-/,
variants: ['sm', 'md', 'lg', 'xl', '2xl'],
},
// Row end classes
{
pattern: /^row-end-/,
variants: ['sm', 'md', 'lg', 'xl', '2xl'],
},
]
// // Object.keys(colors).forEach((color) => {
// // if (typeof colors[color] === 'object') {
// // Object.keys(colors[color]).forEach((shade) => {
// // safelist.push(`bg-${color}-${shade}`);
// // safelist.push(`text-${color}-${shade}`);
// // // Add other utilities as needed
// // });
// // }
// // });
// export const safelist = _safelist;