-
Notifications
You must be signed in to change notification settings - Fork 4
Add a CSS version of the Tailwind JS config #2090
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2090 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 71 71
Lines 1364 1364
Branches 509 509
=========================================
Hits 1364 1364 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
4212ce2 to
244374b
Compare
This will enable downstream projects to migrate from JS-based configuration for Tailwind to the preferred CSS-based theme config. See also https://tailwindcss.com/docs/upgrade-guide#using-a-javascript-config-file. The Getting Started page has been updated to recommend the CSS-based config. The JS configuration has been kept for compatibility under all downstream projects have been migrated.
244374b to
fd6a5d3
Compare
| <Library.Code | ||
| size="sm" | ||
| title="Your project's tailwind config" | ||
| lang="css" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are several changes in other files to support specifying the language, as auto-detection did not work properly.
| @@ -0,0 +1,228 @@ | |||
| /* Standard theme and additional utilities for Hypothesis projects. */ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a fairly straightforward translation of tailwind.config.js and the presets and plugins it imports.
This will enable downstream projects to migrate from JS-based configuration for Tailwind to the preferred CSS-based theme config. See also https://tailwindcss.com/docs/upgrade-guide#using-a-javascript-config-file.
The JS configuration has been kept for compatibility under all downstream projects have been migrated.
TODO: