Files
IoTManagerWeb/tailwind.config.js

56 lines
1.4 KiB
JavaScript
Raw Normal View History

2023-06-17 22:26:52 +02:00
//https://stackoverflow.com/questions/70704377/default-colors-given-in-tailwind-documentation-are-not-working
const colors = require("./node_modules/tailwindcss/colors");
delete colors["lightBlue"];
delete colors["warmGray"];
delete colors["trueGray"];
delete colors["coolGray"];
delete colors["blueGray"];
2021-09-16 02:00:52 +08:00
module.exports = {
purge: {
enabled: !process.env.ROLLUP_WATCH,
//mode: 'all',
//preserveHtmlElements: false,
2023-06-17 22:26:52 +02:00
content: ["./public/index.html", "./src/**/*.svelte"],
2021-09-16 02:00:52 +08:00
options: {
2023-06-17 22:26:52 +02:00
defaultExtractor: (content) => [
2021-09-16 02:00:52 +08:00
...(content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || []),
...(content.match(/(?<=class:)[^=>\/\s]*/g) || []),
],
//keyframes: true,
},
},
2023-06-19 17:57:47 +02:00
//darkMode: false, // or 'media' or 'class'
2021-09-16 02:00:52 +08:00
theme: {
2023-06-17 22:26:52 +02:00
extend: {
colors: {
// you can either spread `colors` to apply all the colors
...colors,
// or add them one by one and name whatever you want
//amber: colors.amber,
//emerald: colors.emerald,
},
},
2021-12-28 22:09:44 +01:00
fontSize: {
2023-06-17 22:26:52 +02:00
xxs: ".5rem",
xs: ".75rem",
sm: ".875rem",
tiny: ".875rem",
base: "1rem",
lg: "1.125rem",
xl: "1.25rem",
"2xl": "1.5rem",
"3xl": "1.875rem",
"4xl": "2.25rem",
"5xl": "3rem",
"6xl": "4rem",
"7xl": "5rem",
},
},
2023-06-19 17:57:47 +02:00
variants: {
extend: {},
},
plugins: [],
2023-06-17 22:26:52 +02:00
};