tailwindcss/packages
Philipp Spiess c009c9c38b
Support the color property in JS theme configuration callbacks (#14651)
While working on some fixes for #14639 I noticed that the following v3
configuration file would not load properly in v4:

```ts
import { type Config } from 'tailwindcss'

export default {
  content: ['./src/**/*.{js,jsx,ts,tsx}'],
  theme: {
    extend: {
      colors: ({ colors }) => ({
        gray: colors.neutral,
      }),
  },
} satisfies Config
```

The reason for this is that we did not pass the `colors` property to the
callback function. Since we have colors available now, we can easily add
it.

---------

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2024-10-11 18:07:59 +02:00
..
@tailwindcss-cli Fix CLI client crash when a file is removed before we process the change notification (#14616) 2024-10-09 14:56:08 +00:00
@tailwindcss-node release v4.0.0-alpha.26 2024-10-03 16:39:59 +02:00
@tailwindcss-postcss Don't set display: none on elements that use hidden="until-found" (#14631) 2024-10-09 13:55:58 +02:00
@tailwindcss-standalone Update bun 1.1.26 → 1.1.29 (patch) (#14608) 2024-10-07 11:24:59 +02:00
@tailwindcss-upgrade Migrate aria-*, data-* and supports-* variants from arbitrary values to bare values (#14644) 2024-10-11 10:41:37 -04:00
@tailwindcss-vite release v4.0.0-alpha.26 2024-10-03 16:39:59 +02:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Support the color property in JS theme configuration callbacks (#14651) 2024-10-11 18:07:59 +02:00
tsconfig.base.json introduce v4 codebase 2024-03-05 14:29:15 +01:00