figma-export icon indicating copy to clipboard operation
figma-export copied to clipboard

Add prefix filter for light/dark modes

Open fedulvtubudul opened this issue 1 year ago • 1 comments

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.

fedulvtubudul avatar Sep 15 '23 11:09 fedulvtubudul

@subdan please check the PR #235 i've done regarding this request.

fedulvtubudul avatar Mar 28 '24 10:03 fedulvtubudul