forked from urlaubsverwaltung/urlaubsverwaltung
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
54 lines (53 loc) · 1.4 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
const defaultConfig = require("tailwindcss/defaultConfig.js");
const plugin = require("tailwindcss/plugin");
module.exports = {
purge: {
content: ["./src/main/webapp/**/*.jsp", "./src/main/webapp/**/*.tag", "./src/main/javascript/**/*.js"],
},
// use a prefix to not conflict with bootstrap
prefix: "tw-",
// use important keyword for tailwind utility classes to override bootstrap selectors
important: true,
corePlugins: {
// disable tailwind base/reset styles. we're still using bootstrap
preflight: false,
},
theme: {
extend: {
screens: {
print: { raw: "print" },
},
lineHeight: {
normal: "normal",
},
fontSize: {
"10rem": "10rem",
},
},
screens: {
// cannot use 'extend' as `xs` would override other screens
// since it's added to the bottom of the css file
xs: "480px",
...defaultConfig.theme.screens,
},
},
variants: {
boxShadow: ["responsive", "hover", "focus", "focus-within"],
},
plugins: [
plugin(function ({ addUtilities }) {
const printStyles = {
".no-break-inside": {
"break-inside": "avoid",
},
".no-page-break-inside": {
"break-inside": "avoid-page",
},
".no-col-break-inside": {
"break-inside": "avoid-column",
},
};
addUtilities(printStyles, ["responsive"]);
}),
],
};