-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
57 lines (54 loc) · 1.37 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
/**
* Use fast-glob
* @link https://stackoverflow.com/questions/71160737/tailwind-laravelmix-infinity-loop-on-watch
*/
import fastGlob from "fast-glob";
/**
* Referencing the default theme
* @link https://tailwindcss.com/docs/theme#referencing-the-default-theme
*/
import defaultTheme from "tailwindcss/defaultTheme";
/**
* Allow to add custom plugins
* @link https://tailwindcss.com/docs/plugins
*/
import plugin from "tailwindcss/plugin";
module.exports = {
content: fastGlob.sync([
"./app/**/*.php",
"./resources/**/*.php",
"./resources/**/*.js",
"./resources/**/*.css",
"./storage/content/**/*.txt",
]),
theme: {
extend: {
fontFamily: {
sans: ["Inter", "Helvetica", ...defaultTheme.fontFamily.sans],
/* serif: ["Crimson Pro", ...defaultTheme.fontFamily.serif], */
/* mono: ["Jetbrains Mono", ...defaultTheme.fontFamily.mono], */
},
screens: {
xs: "576px",
sm: "640px",
md: "768px",
xmd: "896px",
lg: "1024px",
xl: "1280px",
xxl: "1440px",
"2xl": "1536px",
},
},
},
variants: {},
plugins: [
plugin(function ({ addVariant }) {
addVariant("hocus", ["&:hover", "&:focus"]);
addVariant("group-hocus", [".group:hover &", ".group:focus &"]);
}),
],
corePlugins: {
preflight: true,
container: true,
},
};