initial tool setup and basic styles

This commit is contained in:
2025-09-04 14:13:55 +02:00
parent b212b4f596
commit fc8b07185d
19 changed files with 9016 additions and 68 deletions

36
postcss.config.js Normal file
View File

@@ -0,0 +1,36 @@
// postcss.config.js
import postcssImport from 'postcss-import'
import postcssPresetEnv from 'postcss-preset-env'
import postcssUtilities from 'postcss-utilities'
import postcssNesting from 'postcss-nesting'
import { purgeCSSPlugin } from '@fullhuman/postcss-purgecss'
const plugins = [
postcssImport(),
postcssPresetEnv({
stage: 1,
features: {
"nesting-rules": false,
},
}),
postcssUtilities(),
postcssNesting(),
]
if (process.env.NODE_ENV === "production") {
console.log("Adding PurgeCSS")
plugins.push(
purgeCSSPlugin({
content: [
"./src/**/*.{html,js,jsx,ts,tsx}", // Removed .astro, added Next.js patterns
"./content/**/*.{md,mdx}",
],
safelist: ["html", "body"],
variables: true
})
)
}
export default {
plugins
}