-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.nova-config.js
52 lines (48 loc) · 1.44 KB
/
tailwind.nova-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
const defaultTheme = require("tailwindcss/defaultTheme");
const {
generateRootCSSVars,
generateTailwindColors,
} = require("./vendor/laravel/nova/generators");
module.exports = {
mode: "jit",
content: [
"./vendor/laravel/nova/src/**/*.php",
"./vendor/laravel/nova/src/**/*.vue",
"./vendor/laravel/nova/resources/**/*{js,vue,blade.php}",
"./nova-components/**/*{js,vue,blade.php}",
],
darkMode: "class", // or 'media' or 'class'
// safelist: [
// {
// pattern: /^grid-cols-(?:\d)+/,
// pattern: /grid-cols-(?:\d)+/,
// pattern: /^(?:\w+:)?grid-cols-(?:\d)+/,
// variants: ['sm', 'md', 'lg'],
// },
// ],
theme: {
colors: generateTailwindColors(),
extend: {
fontFamily: {
sans: ["Nunito Sans", ...defaultTheme.fontFamily.sans],
},
fontSize: { xxs: "11px" },
maxWidth: { xxs: "15rem" },
minHeight: (theme) => theme("spacing"),
minWidth: (theme) => theme("spacing"),
spacing: {
5: "1.25rem",
9: "2.25rem",
11: "2.75rem",
},
top: (theme) => theme("inset"),
width: (theme) => theme("spacing"),
},
},
plugins: [
require("@tailwindcss/typography"),
function ({ addBase }) {
addBase({ ":root": generateRootCSSVars() });
},
],
};