Open StarfallProjects opened 3 years ago
Consider an npm package with theme choices
Ok, I think I've actually cracked this.
One site. Everything in it. A config.js where the user sets the main layout. This cascades out to pull in the correct layouts, CSS etc.
How to include extra_js and extra_css?
Really love this concept and thought there could be some application here - plus some very cool design ideas! https://stylestage.dev/
Rethinking this: it feels like I'm fighting the tool, and it's resulting in a very messy /src and lots of ways users can shoot themselves in the foot. Short of Eleventy introducing a theming system, I think I have to accept that these will be skeletons rather than themes (this does also remove any pressure to maintain lol)
How cool is this! https://theme-builder.netlify.app/ https://css-tricks.com/theming-and-theme-switching-with-react-and-styled-components/
Ok so what-if:
And . . . boom . . .
However I think if I wanted to go this full service, I might want to look at Astro rather than Eleventy maybe . . .
Consider: