feat: clean up filters

Some sorely needed reorganization and pruning
This commit is contained in:
Devin Haska 2025-04-04 13:50:46 -07:00
parent e6cfa88f61
commit ea6280226a
11 changed files with 159 additions and 176 deletions

View file

@ -0,0 +1,5 @@
import postcss from "./postcss.js";
export default {
...postcss,
};

View file

@ -4,7 +4,7 @@
* ---
* https://github.com/philhawksworth/eleventyone/blob/master/src/site/css/styles.11ty.js
*/
import postcss from "postcss";
import { default as postcssBase } from "postcss";
import postcssImport from "postcss-import";
import postcssImportExtGlob from "postcss-import-ext-glob";
import autoprefixer from "autoprefixer";
@ -15,9 +15,9 @@ import fontFamily from "./utils/font-family.js";
import fontVariables from "./utils/font-variables.js";
import spacing from "./utils/spacing.js";
const postCss = async (rawCss) => {
const postcss = async (rawCss) => {
const css = `${rawCss}${fontFamily}${fontVariables}${colors}${spacing}`;
return await postcss([
return await postcssBase([
postcssImportExtGlob,
postcssImport,
autoprefixer,
@ -27,4 +27,6 @@ const postCss = async (rawCss) => {
.then((result) => result.css);
};
export default postCss;
export default {
postcss,
};