Skip to content

Add prefix filter for light/dark modes #218

@fedulvtubudul

Description

@fedulvtubudul

Our designer uses variable modes for light and dark modes. Nope, actually we have both variable modes AND color styles, and it seems to be irrelevant to this exact proposal.

figma-export sees these colours like this (breakpoint inside loadColorsFromSingleFile method):

(lldb) print colors.map({ $0.name }).sorted()
([String]) $R1 = 66 values {
  [0] = "dark-theme/accent-01"
  [1] = "dark-theme/accent-02"
  [2] = "dark-theme/accent-03"
...
  [33] = "light-theme/accent-01"
  [34] = "light-theme/accent-02"
  [35] = "light-theme/accent-03"
...

So I assume adding a new parameter so that we can filter resources not only by suffix, but by prefix as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions