The color of <a>/Typography.Link elements don't respect colorPrimary design token
See original GitHub issueReproduction link
Steps to reproduce
Wrap an <a>
or <Typography.Link>
element with ConfigProvider and specify a different colorPrimary
design token.
What is expected?
The color of the a element is the new colorPrimary
, just like other elements like Button
.
What is actually happening?
The color of the a element is still #1677ff
, the new default color of antd v5.
Environment | Info |
---|---|
antd | 5.0.0 |
React | 18.2.0 |
System | Arch Linux |
Browser | Edge/Chrome/Firefox |
Issue Analytics
- State:
- Created 10 months ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Design Tokens beyond colors, typography, and spacing.
In my experience, design tokens' great potential and power are fully expressed when two other things form part of the equation, when they...
Read more >Design tokens - Adobe Spectrum
Design tokens are all the values needed to construct and maintain a design system — spacing, color, typography, object styles, animation, etc.
Read more >Creating & Crafting a Design Token System - Satellytes
Coincidentally, blue is also a good color to highlighting links and buttons, so we create a component token for it to be used...
Read more >Supercharge your Design System with Design Tokens
Design Token is a concept created by Salesforce, and the name was coined first by a product designer, Jina Anne. According to the...
Read more >Customizing - Shoelace's components
Shoelace makes use of several design tokens to provide a consistent ... Changes the primary theme color to purple using primitives */ --sl-color-primary-50: ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If it is not possible to make
<a>
respect design tokens, it is better to remove<a>
's global styles completely to avoid confusion.Look like
Typography.Link
usecolorInfo
token