forked from Masumrahmanhasan/mf-blogstarter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
40 lines (39 loc) · 1.2 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
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
purge: {
content: ["./dist/**/*.html"],
whitelist: ["dark-mode"],
},
theme: {
// Replaces default settings or add new settings
container: {
center: true,
},
darkSelector: ".dark-mode",
// Extends default settings
extend: {
fontFamily: {
// Use Tailwind default serif fonts with font-display
display: [...defaultTheme.fontFamily.serif],
},
colors: {
bodybg: "var(--color-bodybg)",
muted: "var(--color-muted)",
bodytext: "var(--color-bodytext)",
primary: "var(--color-primary)",
secondary: "var(--color-secondary)",
links: "var(--color-links)",
focus: "var(--color-focus)",
},
},
},
variants: {
backgroundColor: ["hover", "focus", "dark", "dark-hover", "dark-focus"],
borderColor: ["hover", "focus", "dark", "dark-hover", "dark-focus"],
textColor: ["hover", "focus", "dark", "dark-hover", "dark-focus"],
},
plugins: [
require("@tailwindcss/ui"), // https://tailwindui.com/components
require("tailwindcss-dark-mode")(), // https://github.com/ChanceArthur/tailwindcss-dark-mode
],
};