Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token extraction updates #29846

Merged
merged 2 commits into from
Oct 9, 2024
Merged

Token extraction updates #29846

merged 2 commits into from
Oct 9, 2024

Commits on Oct 9, 2024

  1. build: extract correct tokens set from core theme

    The tokens extraction script assumes that all the imported tokens will be used in the `overrides` mixin. That's true for all themes, except for `core` which only supports some of the mixins. These changes add a separate function that `core` can use to tell the tokens extraction script about which tokens are supported.
    crisbeto committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    46c96de View commit details
    Browse the repository at this point in the history
  2. build: account for overlapping names when extracting tokens

    We have many cases where we output a token with the same name under different prefixes from a theme. The way we were grouping the token data meant that this information was being lost.
    
    These changes rework the data so each token has an array of `sources` that describe where the token is coming from.
    crisbeto committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    a869e1a View commit details
    Browse the repository at this point in the history