mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
feat: remove colour pallete flattening
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
import flattenColorPalette from "tailwindcss/lib/util/flattenColorPalette";
|
|
||||||
|
|
||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
export default {
|
export default {
|
||||||
content: [
|
content: [
|
||||||
@@ -42,17 +40,5 @@ export default {
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
require('@tailwindcss/forms'),
|
require('@tailwindcss/forms'),
|
||||||
addVariablesForColors,
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
function addVariablesForColors({ addBase, theme }) {
|
|
||||||
let allColors = flattenColorPalette(theme("colors"));
|
|
||||||
let newVars = Object.fromEntries(
|
|
||||||
Object.entries(allColors).map(([key, val]) => [`--${key}`, val])
|
|
||||||
);
|
|
||||||
|
|
||||||
addBase({
|
|
||||||
":root": newVars,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user