linaria icon indicating copy to clipboard operation
linaria copied to clipboard

Integration with 11ty

Open kuworking opened this issue 4 years ago • 0 comments

Describe the feature

To use linaria as a css-in-js solution for eleventy https://www.11ty.dev

*maybe it is already feasible, so it is a matter of including it in the docs

Motivation

11ty is a great static generator that AFAIK lacks modern css-in-js solutions, but linaria should be compatible with it (already?)

So it would be useful to document what is needed to setup linaria with 11ty so that one can include css styles within js 11ty layouts

Possible implementations

Styles could be located in js template functions(*) and extracted during the build process

(*) https://www.11ty.dev/docs/languages/javascript/#javascript-template-functions

kuworking avatar Nov 13 '20 10:11 kuworking