Skip to content

Commit

Permalink
add open props
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Gardner committed Jan 6, 2023
1 parent 2c94faa commit 6462365
Show file tree
Hide file tree
Showing 13 changed files with 375 additions and 329 deletions.
2 changes: 1 addition & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(pluginSyntaxHighlight);
eleventyConfig.addPlugin(pluginNavigation);

eleventyConfig.addWatchTarget("./css/");
eleventyConfig.addWatchTarget("./css");

// Alias `layout: article` to `layout: layouts/post.njk`
eleventyConfig.addLayoutAlias("article", "layouts/article.njk");
Expand Down
79 changes: 66 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,9 @@
],
"volta": {
"node": "16.14.0"
},
"dependencies": {
"open-props": "^1.5.3",
"postcss-jit-props": "^1.0.9"
}
}
3 changes: 3 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
const cssnano = require('cssnano');
const postcssImport = require('postcss-import');
const postcssPresetEnv = require('postcss-preset-env');
const postcssJitProps = require('postcss-jit-props');
const OpenProps = require('open-props');

module.exports = {
plugins: [
postcssImport(),
postcssJitProps(OpenProps),
postcssPresetEnv(),
cssnano(),
],
Expand Down
Loading

0 comments on commit 6462365

Please sign in to comment.