generated from Microwawe/angular-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 42
/
tailwind.config.js
127 lines (121 loc) · 2.75 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
/* eslint-disable node/no-unpublished-require */
/* eslint-disable node/no-missing-require */
// eslint-disable-next-line @typescript-eslint/no-var-requires
const colors = require('tailwindcss/colors');
module.exports = {
content: ['./src/**/*.{html,ts}', './safelist.txt'],
safelist: {
standard: [
/(bg|text|border|ring|accent|divide)-(gray|yellow|amber|orange|red|rose|pink|fuchsia|purple|violet|indigo|blue|sky|cyan|teal|emerald|green|lime)-[1-9]00$/,
/(from|to|divide)-gray-[1-9]00$/,
/ring-offset-(gray)-[18]00$/,
],
greedy: [/token$/],
},
theme: {
container: {
center: true,
},
colors: {
transparent: 'transparent',
current: 'currentColor',
// black: colors.black,
// white: colors.white,
rose: colors.rose,
pink: colors.pink,
fuchsia: colors.fuchsia,
purple: colors.purple,
violet: colors.violet,
indigo: colors.indigo,
blue: colors.blue,
sky: colors.sky,
cyan: colors.cyan,
teal: colors.teal,
emerald: colors.emerald,
green: colors.green,
lime: colors.lime,
yellow: colors.yellow,
amber: colors.amber,
orange: colors.orange,
red: colors.red,
gray: colors.gray,
},
extend: {
flex: {
'2': '2 2 0%',
'3': '3 3 0%',
},
height: {
'112': '28rem',
'128': '32rem',
},
minHeight: {
'48': '12rem',
'96': '24rem',
},
maxHeight: {
'half-screen': '50vh',
},
},
},
variants: {},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/forms'),
// eslint-disable-next-line @typescript-eslint/no-var-requires
require('tailwind-safelist-generator')({
patterns: [
'text-{colors}',
'hover:text-{colors}',
'{screens}:text-{colors}',
'{screens}:text-{font-size}',
'bg-{colors}',
'focus:bg-{colors}',
'hover:bg-{colors}',
'peer-checked:bg-{colors}',
'before:bg-{colors}',
'divide-{colors}',
'border-{colors}',
'focus:border-{colors}',
'hover:border-{colors}',
'{screens}:border-{colors}',
'accent-{colors}',
'ring-{colors}',
'hover:ring-{colors}',
'focus:ring-{colors}',
'peer-checked:ring-{colors}',
'ring-offset-gray-100',
'ring-offset-gray-800',
'w-1/6',
'w-2/6',
'w-3/6',
'w-4/6',
'w-5/6',
],
}),
({addComponents, theme}) => {
const container = {
'.container': {
margin: 'auto',
maxWidth: theme('maxWidth.full'),
'@screen sm': {
maxWidth: theme('maxWidth.2xl'),
},
'@screen md': {
maxWidth: theme('maxWidth.3xl'),
},
'@screen lg': {
maxWidth: theme('maxWidth.5xl'),
},
'@screen xl': {
maxWidth: theme('maxWidth.6xl'),
},
'@screen 2xl': {
maxWidth: theme('maxWidth.6xl'),
},
},
};
addComponents(container);
},
],
};