haxtheweb / issues

Issue queue for hax, haxcms, elmsln, lrnwebcomponents, wcfactory, websites and more.
Apache License 2.0
10 stars 1 forks source link

export lit functions / classes w/ HAXCMSLitElement to make it easier to build new themes from a boilerplate #2004

Closed btopro closed 2 weeks ago

btopro commented 1 month ago

Just like it says. This would allow for a single import for the vast majority of themes developed, especially single page ones.

btopro commented 2 weeks ago

HAXCMSLitElementTheme, css, unsafeCSS, html, store, autorun, toJS all exported by @haxtheweb/haxcms-elements/lib/core/HAXCMSLitElementTheme.js

This should mean that we could have precompiled themes that could possibly work with an import map to discover the correct entrypoint for this file or if we have a copy available it would be ./build/es6/node_modules/@haxtheweb/haxcms-elements/lib/core/HAXCMSLitElementTheme.js which would have all the prev available