-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
60 lines (57 loc) 路 1.49 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
/**
* Use fast-glob
* @link https://stackoverflow.com/questions/71160737/tailwind-laravelmix-infinity-loop-on-watch
*/
const fastGlob = require("fast-glob");
/**
* Referencing the default theme
* @link https://tailwindcss.com/docs/theme#referencing-the-default-theme
*/
const defaultTheme = require("tailwindcss/defaultTheme");
/**
* Allow to add custom plugins
* @link https://tailwindcss.com/docs/plugins
*/
const plugin = require("tailwindcss/plugin");
module.exports = {
content: fastGlob.sync([
"./**/*.php",
"./assets/**/*.js",
"./assets/**/*.css",
"./content/**/*.txt",
]),
theme: {
extend: {
fontFamily: {
sans: ["Work Sans", "Helvetica", ...defaultTheme.fontFamily.sans],
serif: ["Crimson Pro", ...defaultTheme.fontFamily.serif],
/* mono: ["Jetbrains Mono", ...defaultTheme.fontFamily.mono], */
},
screens: {
sm: "640px",
md: "768px",
xmd: "896px",
lg: "1024px",
xl: "1280px",
xxl: "1440px",
"2xl": "1536px",
},
colors: {
primary: "rgb(var(--color-primary) / 1)",
secondary: "rgb(var(--color-secondary) / 1)",
tertiary: "rgb(var(--color-tertiary) / 1)",
},
},
},
variants: {},
plugins: [
plugin(function ({ addVariant }) {
addVariant("hocus", ["&:hover", "&:focus"]);
addVariant("group-hocus", [".group:hover &", ".group:focus &"]);
}),
],
corePlugins: {
preflight: true,
container: true,
},
};