2023-11-18 00:05:14 +00:00
|
|
|
const plugin = require("tailwindcss/plugin")
|
|
|
|
|
2023-08-14 16:51:59 +00:00
|
|
|
/** @type {import('tailwindcss').Config} */
|
|
|
|
module.exports = {
|
2023-11-18 00:05:14 +00:00
|
|
|
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
|
2023-08-14 16:51:59 +00:00
|
|
|
theme: {
|
2023-11-16 19:27:01 +00:00
|
|
|
fontFamily: {
|
|
|
|
sans: [
|
|
|
|
"Inter",
|
|
|
|
"-apple-system",
|
|
|
|
"BlinkMacSystemFont",
|
|
|
|
"Helvetica",
|
|
|
|
"Arial",
|
|
|
|
"sans-serif",
|
|
|
|
],
|
|
|
|
mono: [
|
|
|
|
"SFMono-Regular",
|
|
|
|
"SFMono Regular",
|
|
|
|
"Consolas",
|
|
|
|
"Liberation Mono",
|
|
|
|
"Menlo",
|
|
|
|
"Courier",
|
|
|
|
"monospace",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
fontWeight: {
|
|
|
|
normal: "400",
|
|
|
|
medium: "500",
|
|
|
|
semibold: "600",
|
|
|
|
bold: "700",
|
|
|
|
},
|
2023-08-14 16:51:59 +00:00
|
|
|
extend: {},
|
|
|
|
},
|
2023-11-18 00:05:14 +00:00
|
|
|
plugins: [
|
|
|
|
plugin(function ({ addVariant }) {
|
|
|
|
addVariant("state-open", [
|
|
|
|
'&[data-state="open"]',
|
|
|
|
'[data-state="open"] &',
|
|
|
|
])
|
|
|
|
addVariant("state-closed", [
|
|
|
|
'&[data-state="closed"]',
|
|
|
|
'[data-state="closed"] &',
|
|
|
|
])
|
|
|
|
}),
|
|
|
|
],
|
2023-08-14 16:51:59 +00:00
|
|
|
}
|