-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.js
42 lines (41 loc) · 1.01 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
/* eslint-disable @typescript-eslint/no-var-requires */
const defaultTheme = require("tailwindcss/defaultTheme");
const plugin = require("tailwindcss/plugin");
module.exports = {
purge: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
darkMode: "media",
theme: {
extend: {
fontFamily: {
sans: ["Inter var", ...defaultTheme.fontFamily.sans],
},
colors: {
blue: {
twitter: {
DEFAULT: "#1DA1F2",
dark: "#0d8ddb",
},
},
gray: {
750: "#262f3d",
},
},
},
},
variants: {
borderColor: ({ after }) => after(["invalid"]),
extend: {
backgroundColor: ["odd", "even"],
},
},
plugins: [
require("@tailwindcss/forms"),
plugin(function ({ addVariant, e }) {
addVariant("invalid", ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(`invalid${separator}${className}`)}:invalid`;
});
});
}),
],
};