Replies: 1 comment 2 replies
-
I think you could do that with the hook |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
With regard to a design system tokens, the
token
function size (lines of code/bundle size) gets bigger and bigger.Then If someone wants to use
token
only forspacing
orcolors
, thetoken
method should be imported completely (with a bunch of other unused values/variables)It would be great if we can split the
token
method, OR othertoken
methods such asspacingToken
,colorToken
etc. become created by the Panda codegen.Problem Statement/Justification
Huge bundle size of the
token
method in case of a large design system token.Proposed Solution or API
Having the ability to split or generate multiple small token functions per token category.
Alternatives
No response
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions