we need a compiler that will take a base .yml file containing theme style fields and functions and create a JS module that can be loaded into a webpage. The JS module will consist of:
Renderer
Injector
Rules
Specification
The compiled module's renderer will dynamically create a new stylesheet <link/> into the <head/> of the document with the renderer. The renderer will create new rules in the stylesheet by injecting the rules with the injector. Rules can dynamically be set by calling an update function within the renderer.
Overview
we need a compiler that will take a base .yml file containing theme style fields and functions and create a JS module that can be loaded into a webpage. The JS module will consist of:
Specification
The compiled module's renderer will dynamically create a new stylesheet
<link/>
into the<head/>
of the document with the renderer. The renderer will create new rules in the stylesheet by injecting the rules with the injector. Rules can dynamically be set by calling an update function within the renderer.