-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
53 lines (50 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
41
42
43
44
45
46
47
48
49
50
51
52
53
import plugin from "tailwindcss/plugin";
import colors from "tailwindcss/colors";
import typographyPlugin from "@tailwindcss/typography";
import { addIconSelectors as addIconSelectorsPlugin } from "@iconify/tailwind";
const uiPlugin = () =>
plugin(({ addBase, theme }) => {
/** @type {any} */
const dark = theme("colors.neutral");
addBase({
":root": {
"--color-border": dark[200],
},
body: {
backgroundColor: dark[50],
color: dark[950],
},
"html.dark": {
"--color-border": dark[900],
"& body": {
backgroundColor: dark[950],
color: dark[50],
},
},
});
});
/** @type {import("tailwindcss").Config} */
export default {
darkMode: "class",
content: ["./src/**/*.{ts,tsx}"],
theme: {
extend: {
colors: {
primary: colors.blue,
},
borderColor: {
DEFAULT: "var(--color-border)",
},
ringColor: {
DEFAULT: colors.yellow[500],
},
ringOffsetColor: {
DEFAULT: colors.yellow[500],
},
ringOpacity: {
DEFAULT: 0.5,
},
},
},
plugins: [typographyPlugin(), addIconSelectorsPlugin(["ri"]), uiPlugin()],
};