daisyui 2.48.0 → 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 CHANGED
@@ -56,7 +56,7 @@ module.exports = {
56
56
  Loading CSS files from CDN is not recommended for production. It's better to install Tailwind and daisyUI as Nodejs dependencies so you can config/customize everything, and purge unused styles.
57
57
 
58
58
  ```html
59
- <link href="https://cdn.jsdelivr.net/npm/daisyui@2.47.1/dist/full.css" rel="stylesheet" type="text/css" />
59
+ <link href="https://cdn.jsdelivr.net/npm/daisyui@2.48.0/dist/full.css" rel="stylesheet" type="text/css" />
60
60
  <script src="https://cdn.tailwindcss.com"></script>
61
61
  ```
62
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "daisyui",
3
- "version": "2.48.0",
3
+ "version": "2.49.0",
4
4
  "description": "daisyUI - Tailwind CSS Components",
5
5
  "author": "Pouya Saadeghi",
6
6
  "license": "MIT",
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
  });