daisyui 2.47.1 → 2.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ const tailwindColors = require('tailwindcss/colors')
2
+
1
3
  const postcssJs = require("postcss-js")
2
4
  const postcssPrefix = require('./lib/postcss-prefixer')
3
5
 
@@ -122,5 +124,22 @@ const mainFunction = ({ addBase, addComponents, addUtilities, config, postcss })
122
124
  };
123
125
 
124
126
  module.exports = require("tailwindcss/plugin")(mainFunction, {
125
- theme: { extend: { colors } },
127
+ theme: {
128
+ extend: {
129
+ colors: {
130
+ ...colors,
131
+ // adding all Tailwind `neutral` shades here so they don't get overridden by daisyUI `neutral` color
132
+ "neutral-50": tailwindColors.neutral[50],
133
+ "neutral-100": tailwindColors.neutral[100],
134
+ "neutral-200": tailwindColors.neutral[200],
135
+ "neutral-300": tailwindColors.neutral[300],
136
+ "neutral-400": tailwindColors.neutral[400],
137
+ "neutral-500": tailwindColors.neutral[500],
138
+ "neutral-600": tailwindColors.neutral[600],
139
+ "neutral-700": tailwindColors.neutral[700],
140
+ "neutral-800": tailwindColors.neutral[800],
141
+ "neutral-900": tailwindColors.neutral[900],
142
+ }
143
+ }
144
+ },
126
145
  });