tree: 7abfa830c3b02dcf41c42f3848c06db972314e90 [path history] [tgz]
  1. .style.yapf
  2. base_generator.py
  3. color.py
  4. color_test.py
  5. colors_test.json5
  6. colors_test_expected.css
  7. colors_test_expected.h
  8. css_generator.py
  9. css_generator.tmpl
  10. css_generator_test.py
  11. DEPS
  12. OWNERS
  13. PRESUBMIT.py
  14. README.md
  15. style_variable_generator.gni
  16. style_variable_generator.py
  17. views_generator.py
  18. views_generator_h.tmpl
  19. views_generator_test.py
tools/style_variable_generator/README.md

style_variable_generator

This is a python tool that generates cross-platform style variables in order to centralize UI constants.

This script uses third_party/pyjson5 to read input json5 files and then generates various output formats as needed by clients (e.g CSS Variables, preview HTML page).

For input format examples, see the *_test.json5 files which contain up to date illustrations of each feature, as well as expected outputs in the corresponding *_test_expected.* files.

Run python style_variable_generator.py -h for usage details.