tree: c1e72d927de700ef99f3930190f1a6becc5a7b16 [path history] [tgz]
  1. .style.yapf
  2. DEPS
  3. OWNERS
  4. PRESUBMIT.py
  5. README.md
  6. __init__.py
  7. base_generator.py
  8. base_generator_test.py
  9. color.py
  10. color_test.py
  11. colors_test.json5
  12. colors_test_dark_only_expected.css
  13. colors_test_expected.css
  14. colors_test_expected.h
  15. colors_test_palette.json5
  16. css_generator.py
  17. css_generator.tmpl
  18. css_generator_test.py
  19. find_invalid_css_variables.py
  20. find_invalid_css_variables_test.py
  21. path_overrides.py
  22. presubmit_support.py
  23. style_variable_generator.gni
  24. style_variable_generator.py
  25. views_generator.py
  26. views_generator_h.tmpl
  27. 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.