Theme Files
Monday, December 19, 2022
A theme file is a file containing data that pertains to a theme. A collection of theme files within a theme directory make up a single theme.
Two theme files are required for all themes: meta.json and layers.json.
meta.json
The meta file contains metadata pertaining to the theme. This metadata includes the theme's name, UUID, and lineage.
During app initialization, aside from the active theme, theme meta files are the only files that get loaded. Relevant implementation files are only loaded when a theme becomes active.
layers.json
The layers file is a special implementation file that implements the theme for widgets that exist universally across different Layers apps.
Implementation Files
An implementation file implements the theme for a specific Layers app.