Fix @theme-ui/tailwind color conversion
See original GitHub issueWhen converting my theme-ui config to tailwind via @theme-ui/tailwind
, the colors are not converted the correct way.
Current: As the plugin does not touch the color config at all, it will result in the following structure: https://github.com/system-ui/theme-ui/blob/master/packages/preset-tailwind/src/index.ts#L18-L29
Expected: While tailwind expects a different structure for color palettes: https://tailwindcss.com/docs/customizing-colors/#overriding-a-default-color
Workaround: I was able to convert the structure on my own, but my lacking typescript knowledge prevents my to provide a working version of my fix as PR 😦
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Customizing Colors - Tailwind CSS
Using custom colors. If you'd like to completely replace the default color palette with your own custom colors, add your colors directly under...
Read more >Convert to TypeScript · Issue #668 · system-ui/theme-ui
Based on the discussions around #121 and the test we just merged in #662, we are going to convert theme-ui to TypeScript!
Read more >How I used Theme UI to seamlessly convert Design to Code
I want to focus on Theme UI and explain how I used it on this landing page, especially the breakpoints syntax, variants, and...
Read more >How to add new colors to tailwind-css and keep the ...
How to add new colors to tailwind-css and keep the originals ones ? · Step 1: Run the below code to your folder's...
Read more >theme-ui/typography
This page uses themes from Typography.js to populate the theme object. ... try to solve the extremely complex problems of how to name...
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
See #862!
If you submit that as a PR without the correct TypeScript stuff I’ll help you fix it up! How’s that sound?