haxtheweb / issues

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

allow for setting colors in site-config relative to theme, global, or type specific #1931

Open btopro opened 7 months ago

btopro commented 7 months ago

1930 #1880

If we have both of these then we can start to make a schema for site config to set colors for the theme based on type or globally like 'accent color' or 'heading style'. First we need to think of all the settings that would go into this object, then where this object gets stored. Is it in site settings cluster of values? (possible) or an 'element' in the theme that's written to a specific file.

The first is easier obviously, but the second, a specific 'global config' region of sorts would open up the possibility of loading other values and solving things like loading JS on every page (alla #1870 ) as well as future capabilities like the AI chat bot which would need to be loaded in somewhere.

If we made another folder off of the element called system this could set the stage for the #1608 as well. Things we'd store in this folder:

btopro commented 7 months ago

site config as currently defined, could be configurable based on extending entity types and leveraging them. Right now the #1934 starts setting the stage for this though it's not fully implemented yet