lightning-js / blits

The Lightning 3 App Development Framework
Apache License 2.0
59 stars 9 forks source link

Pre-process hardcoded colors in the template (in the parser) #68

Closed michielvandergeest closed 4 months ago

michielvandergeest commented 4 months ago

Currently blits normalizes named, hexedecimal and rgba colors to the renderer specific 0x000000ff format at runtime using a normalize colors function.

For dynamic values we will continue to use that, but for hardcoded colors in the template we can do this ahead of time in the template parser step.