-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
tailwind.config.js
72 lines (68 loc) · 1.79 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
const colors = require("tailwindcss/colors");
const plugin = require("tailwindcss/plugin");
module.exports = {
mode: "jit",
content: [
"./components/**/*.vue",
"./pages/**/*.vue",
"./layouts/**/*.vue",
"./nuxt.config.js",
],
darkMode: "class", // or 'media' or 'class'
theme: {
extend: {
colors: {
gray: colors.slate,
cyan: colors.cyan,
},
typography: (theme) => ({
DEFAULT: {
css: {
maxWidth: "none",
a: {
color: theme("colors.cyan.800"),
},
pre: {
borderRadius: 0,
marginTop: 0,
marginBottom: 0,
padding: "0.75rem 1.2rem",
},
code: {
backgroundColor: theme("colors.gray.200"),
padding: "0.25rem 0.5rem",
borderRadius: "0.375rem",
color: theme("colors.cyan.800"),
fontWeight: 500,
},
"code::before": false,
"code::after": false,
},
},
}),
maxWidth: {
"8xl": "90rem",
},
},
fontFamily: {
sans: ["Inter", "ui-sans-serif", "system-ui", "sans-serif"],
},
},
plugins: [
require("@tailwindcss/typography")({ target: "legacy" }),
plugin(function ({ addVariant, e }) {
addVariant("current", ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.nuxt-link-active.${e(`current${separator}${className}`)}`;
});
});
addVariant("exact", ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.nuxt-link-exact-active.${e(
`exact${separator}${className}`
)}`;
});
});
}),
],
};