You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
If there is a token that I specified among the types generated by CLI generated typings,
I want to delete the existing default token.
Is there a way to delete the existing token value?
My new token key is being added with a different key from the existing theme.
I understand that if I put the same key values as the default theme, they will be overridden. However, I do not want to use the same key values as the existing tokens.
radii:
|'0'|'4'|'8'|'12'|'16'|'20'|'24'|'none'// I want to remove default token|'sm'' // I want to remove default token | 'base''// I want to remove default token|'md'' // I want to remove default token | 'lg''// I want to remove default token|'xl'' // I want to remove default token | '2xl''// I want to remove default token|'3xl'' // I want to remove default token | 'full''// I want to remove default token|'circle'|(string&{});
As shown in the attached image, I want to prevent other systems from appearing in the type definition when I use the token value, not my custom design system.
I don't want to delete all the default theme definitions, but I want to only run it for the theme I newly defined.
Is there a way to do this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
If there is a token that I specified among the types generated by CLI generated typings,
I want to delete the existing default token.
Is there a way to delete the existing token value?
My new token key is being added with a different key from the existing theme.
I understand that if I put the same key values as the default theme, they will be overridden. However, I do not want to use the same key values as the existing tokens.
For example, in the case of shadow.
run cli
yarn chakra-cli tokens src/configs/theme/index.ts
check token
code -r node_modules/@chakra-ui/styled-system/dist/theming.types.d.ts
As shown in the attached image, I want to prevent other systems from appearing in the type definition when I use the token value, not my custom design system.
I don't want to delete all the default theme definitions, but I want to only run it for the theme I newly defined.
Is there a way to do this?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions