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

🧐[Is there a way to use Components Token?] #159

Open
crhk opened this issue Jul 31, 2024 · 1 comment
Open

🧐[Is there a way to use Components Token?] #159

crhk opened this issue Jul 31, 2024 · 1 comment

Comments

@crhk
Copy link

crhk commented Jul 31, 2024

🧐 问题描述

I try to use antd-style with a component token but I get this error:

Property 'Progress' does not exist on type 'FullToken'.ts(2339)

How can I use it?

💻 示例代码

const useStyle = createStyles(({ token, css }) => ({
  container: css`
    color: ${token.Progress.defaultColor}px;
  `
}))

🚑 其他信息

When I check the console in my browser, I can see the object token and it contains Progress, so my app works but I get this type error in my IDE (VSCode)

@arvinxx
Copy link
Collaborator

arvinxx commented Aug 1, 2024

I need to discuss about this usage with our teammates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants