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/README.md +1 -1
- package/dist/full.css +1 -1
- package/dist/styled.css +17 -7
- package/dist/styled.js +1 -1
- package/dist/styled.rtl.js +1 -1
- package/dist/unstyled.css +5 -4
- package/dist/unstyled.js +1 -1
- package/dist/unstyled.rtl.js +1 -1
- package/dist/utilities-unstyled.js +1 -1
- package/package.json +1 -1
- package/src/index.js +20 -1
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: {
|
|
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
|
});
|