tailwindcss/packages
Philipp Spiess 15ec670306
Upgrade: Migrate JS theme configuration keys with dot and slash in the 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>
2024-10-22 15:57:08 -04:00
..
@tailwindcss-cli Ensure changes to the input CSS file result in a full rebuild (#14744) 2024-10-21 20:29:33 +00:00
@tailwindcss-node Prepare v4.0.0-alpha.28 release (#14709) 2024-10-17 17:03:28 -04:00
@tailwindcss-postcss Prepare preflight for border compatibility (#14745) 2024-10-22 16:18:13 +00:00
@tailwindcss-standalone Update @types/bun 1.1.10 → 1.1.11 (patch) (#14727) 2024-10-19 15:18:39 +02:00
@tailwindcss-upgrade Upgrade: Migrate JS theme configuration keys with dot and slash in the property name (#14736) 2024-10-22 15:57:08 -04:00
@tailwindcss-vite Vite: Fix issues when loading files via static asset queries (#14716) 2024-10-22 16:03:07 +00:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Upgrade: Migrate JS theme configuration keys with dot and slash in the property name (#14736) 2024-10-22 15:57:08 -04:00
tsconfig.base.json introduce v4 codebase 2024-03-05 14:29:15 +01:00