-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
42 lines (39 loc) · 1.07 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
const plugin = require("tailwindcss/plugin");
const color = (value) => `var(--color-${value})`;
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./app/**/*.{ts,tsx,jsx,js}"],
theme: {
extend: {
fontFamily: {
"roboto-mono": ["'Roboto Mono'", "monospace"],
},
textColor: {
primary: {
1: color("text-primary-1"),
2: color("text-primary-2"),
},
},
backgroundColor: {
primary: color("background-primary"),
form: color("background-form"),
mark: color("background-mark"),
},
borderColor: {
primary: color("border-primary"),
secondary: color("border-secondary"),
},
},
},
plugins: [
plugin(function ({ addVariant }) {
addVariant("hocus", ["&:hover", "&:focus"]);
addVariant("hocus-within", ["&:hover", "&:focus-within"]);
}),
require("@tailwindcss/forms"),
require("@tailwindcss/line-clamp"),
require("tailwindcss-aria-plugin"),
require("@whiterussianstudio/tailwind-easing"),
//
],
};