This repository has been archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
tailwind.config.js
58 lines (56 loc) · 1.69 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
const plugin = require("tailwindcss/plugin");
const colors = require("tailwindcss/colors");
const isFirefoxPlugin = plugin(function ({ addVariant, e, postcss }) {
addVariant("firefox", ({ container, separator }) => {
const isFirefoxRule = postcss.atRule({
name: "-moz-document",
params: "url-prefix()",
});
isFirefoxRule.append(container.nodes);
container.append(isFirefoxRule);
isFirefoxRule.walkRules((rule) => {
rule.selector = `.${e(
`firefox${separator}${rule.selector.slice(1)}`
)}`;
});
});
});
module.exports = {
mode: "jit",
content: [
"./components/**/*.{js,vue,ts}",
"./layouts/**/*.vue",
"./pages/**/*.vue",
"./plugins/**/*.{js,ts}",
"./nuxt.config.{js,ts}",
],
darkMode: "class", // or 'media' or 'class'
theme: {
extend: {
colors: {
primary: "#8A9CFE",
secondary: "#FDF9F3",
slate: colors.slate,
},
fontFamily: {
KohinoorBangla: ["KohinoorBangla", "Nunito", "Arial"],
siliguri: ["Hind Siliguri", "Nunito", "Arial"],
mono: ["Fira Code", "techdiary-bangla", "monospace"],
boshonto: ["Boshonto", "Kohinoor Bangla"],
},
zIndex: {
"-1": "-1",
},
},
},
variants: {
extend: {},
},
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/forms"),
require("@tailwindcss/aspect-ratio"),
require("@tailwindcss/line-clamp"),
isFirefoxPlugin,
],
};