Get playground rendering with backward compatible theming

This commit is contained in:
Nathan Sobo
2023-08-30 11:09:34 -06:00
parent d763946b18
commit 1d491fcd78
7 changed files with 115 additions and 40 deletions
+3
View File
@@ -32,6 +32,9 @@ function write_themes(themes: Theme[], output_directory: string) {
setTheme(theme)
const style_tree = app()
// Nathan: New elements will read directly from the theme colors.
// Adding this during the transition. Afterwards, we can port all themes to Rust.
style_tree.base_theme = theme
const style_tree_json = JSON.stringify(style_tree, null, 2)
const temp_path = path.join(temp_directory, `${theme.name}.json`)
const out_path = path.join(