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
Refactor tailwind config #3743
Comments
https://play.tailwindcss.com/L5OEDfYxtU?file=config We could also just remove the |
Wouldn't this conflict with font sizes which appear as |
re: conflict |
@asangma I'm not sure... The tailwind playground is good for testing out these things quickly: |
Thanks for sharing that playground. That's nice. Our case is that we've got our custom values for font sizes that uses the I could be wrong, but seems like we'd need to update the names of our font size keys if we wanted to make |
Agreed. I'll leave that up to you guys. Now that we will be making this a shared project, it might be something to consider. I'm not sure how obvious or user friendly the numbers are. If we are going to do it, now would be the time. |
re: text color re: font size I'm not suggesting that we use the default values for those (even though they're largely the same). That'd be a different discussion I think. |
note: the "gray" suggestion is based on Tailwind's pattern. |
https://github.com/Esri/calcite-components/blob/master/tailwind.config.ts#L4
|
@driskull any issue with closing this as something that will be covered with tokens project? |
Yeah this can be closed |
Background
Our tailwind config was first created when Tailwind was on V1 and the config has some stuff we likely no longer need. There are also some naming we can change to make it consistent with latest Tailwind configs.
related to #2143
Todo
Description
Refactor tailwind config to clean up structure and naming.
I think the config can be restructured so that text colors are only defined in the color section. I don't think we need the
borderColor
andbackgroundColor
sections.Also, colors don't need to be
text-color-<color>
. They can just betext-<color>
.Instead of naming colors with numbers, we could maybe name them with purpose? Its not obvious of the difference below.
We also need to evaluate if the plugins we have created are still necessary in Tailwind 3x. Some of the utilities we have defined may no longer be necessary.
Proposed Advantages
The goal is to get this config production ready so that we can share it with others in an NPM package. We should have the names and structure nailed down and aligned with current tailwind best practices
Relevant Info
#3700 (comment)
Which Component
N/A tailwind config.
The text was updated successfully, but these errors were encountered: