pageboard / client

Web site building system - client packages
MIT License
4 stars 0 forks source link

Easier way to extend elements html #81

Open kapouer opened 4 years ago

kapouer commented 4 years ago

Problem: "themes" modules cannot be currently developed in a pure declarative way.

Why ?

  1. themes need to be able to add custom classes to the DOM templates of element's html, and it is currently possible only using a javascript function on the client.
  2. some elements add pieces of dom to other elements (script, meta, etc...)

How to fix it ? Define a declarative way to do that...

kapouer commented 4 years ago

This would also allow one to "inject" classes by element type - which would be a nice way to set default styles using a microframework like tailwind:

{
  "heading": "font-bold",
  "menu": "font-light"
}
kapouer commented 4 years ago

Also consider theming like defined in https://jxnblk.com/blog/design-graph/ https://theme-ui.com/