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