-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade: Migrate JS theme configuration keys with dot and slash in th…
…e property name (#14736) This PR fixes an issue where JS configuration theme properties with dots or slashes in them would not migrate correctly. E.g.: ```ts import { type Config } from 'tailwindcss' module.exports = { theme: { width: { 1.5: '0.375rem', '1/2': '50%', } } } ``` This should convert to: ```css @theme { --width-1_5: 0.375rem; --width-1\/2: 50%; } ``` _Note: We will likely change the `--width-1_5` key to `--width-1\.5` in a follow-up PR._ --------- Co-authored-by: Robin Malfait <malfait.robin@gmail.com> Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com> Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
- Loading branch information
1 parent
a06245b
commit 41decce
Showing
4 changed files
with
120 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters