components-ai / css.gui

Visual development environment for CSS
https://components.ai/css-gui
MIT License
539 stars 25 forks source link

Better way to initialize default values #183

Open tesseralis opened 2 years ago

tesseralis commented 2 years ago

css.gui uses a lot of complex data structures to represent complex properties like background, gradients, etc. Right now, when initializing these complex editors, the user must provide a valid initial value, which can get quite complex. To alleviate this, I can think of two interrelated ideas:

mrmrs commented 2 years ago

@tesseralis love both of the ideas. Is there any reason why all inputs shouldn't have a default value when initialized?