vigi/tailwind.config.js

26 lines
578 B
JavaScript
Raw Normal View History

2024-07-31 14:03:32 +03:00
let bgColors = {};
let textColors = {};
for (let i = 0; i <= 100; i += 5) {
2024-07-31 14:03:32 +03:00
bgColors[`vigi-${i}`] =
`color-mix(in var(--colorspace), var(--max-bg) ${i}%, var(--min-bg))`;
2024-07-31 14:03:32 +03:00
textColors[`vigi-${i}`] =
`color-mix(in var(--colorspace), var(--min-text) ${i}%, var(--max-text))`;
}
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{html,js,svelte,ts}"],
theme: {
extend: {
2024-07-31 14:03:32 +03:00
colors: bgColors,
textColor: textColors,
animation: {
pulse: "pulse 0.7s linear infinite",
},
},
},
plugins: [],
};