-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
48 lines (47 loc) · 1.08 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
const plugin = require('tailwindcss')
/**
* ALGUNOS COMPONENTES APLICAN CLASSES DE FORMA DINÁMICA
* ESTO PROVOCA QUE TAILWIND NO ENCUENTRE DICHAS CLASES, Y
* POR LO TANTO NO GENERE EL CÓDIGO CSS REQUERIDO.
*
* PARA FORZAR QUE DICHAS CLASSES ESTÉN PRESENTES
* EN TIEMPO DE EJECUCIÓN, DEBEN AGREGARSE AL SAFELIST
*
* https://tailwindcss.com/docs/content-configuration#dynamic-class-names
*
*/
module.exports = {
content: ['./src/**/*.tsx'],
safelist: [
{
pattern: /bg-(slate|yellow|cyan|teal|rose)-(200|400|600|700|800)/,
},
{
pattern: /text-(slate|yellow|cyan|teal|rose)-(200|400|600|700|800)/,
},
{
pattern: /border-(slate|yellow|cyan|teal|rose)-(200|400|600|700|800)/,
},
{
pattern: /text-white/,
},
{
pattern: /cursor-(pointer|not-allowed|progress|context-menu|none)/,
},
{
pattern: /font-(medium|extrabold)/,
},
{
pattern: /border-(2|3)/,
},
{
pattern: /p(x|y)-(2|3)/,
},
{
pattern: /appearance-none/,
},
],
theme: {},
variants: {},
plugins: [],
}