salesforce-ux / theo

Theo is a an abstraction for transforming and formatting Design Tokens
BSD 3-Clause "New" or "Revised" License
1.96k stars 117 forks source link

Section sort order in HTML output #189

Open withinsight opened 4 years ago

withinsight commented 4 years ago

Is it possible to control the sort order of the categories/sections in the HTML output? It would be great if it followed the sort order specified in base.yml. Here's my base.yml I point theo CLI at:

imports:
  - ./text-color.yml
  - ./background-color.yml
  - ./border.yml
  - ./border-radius.yml
  - ./font-family.yml
  - ./font-size.yml
  - ./font-weight.yml
  - ./line-height.yml
  - ./space.yml
  - ./box-shadow.yml
  - ./media-query.yml

In the HTML output, the order is random: Space, Font Weight, Font Size, etc.

withinsight commented 4 years ago

Anyone? I've tried prefixing the yml files with numbers (1-text-color.yml, 2-background-color.yml, etc.) and even this doesn't fix the HTML output sort order?