tailwindcss-dark-mode-plugin
Advanced tools
+2
-1
| { | ||
| "name": "tailwindcss-dark-mode-plugin", | ||
| "version": "0.0.2", | ||
| "version": "0.0.3", | ||
| "description": "Dark mode plugin for tailwind css", | ||
@@ -8,2 +8,3 @@ "publishConfig": { | ||
| }, | ||
| "repository": "https://github.com/haijie-x/tailwindcss-dark-mode-plugin.git", | ||
| "exports": { | ||
@@ -10,0 +11,0 @@ ".": { |
+33
-0
| # tailwindcss-dark-mode-plugin | ||
| Dark mode plugin for tailwind css | ||
| # Installation | ||
| ```bash | ||
| yarn add tailwindcss-dark-mode-plugin --save-dev | ||
| # or | ||
| npm install tailwindcss-dark-mode-plugin --save-dev | ||
| # or | ||
| pnpm install tailwindcss-dark-mode-plugin --save-dev | ||
| ``` | ||
| # Usage Example | ||
| In your tailwind.config.js: | ||
| ```js | ||
| import plugin from "tailwindcss/plugin"; | ||
| import { themeColors, themePlugin } from "tailwindcss-dark-mode-plugin"; | ||
| /** @type {import('tailwindcss').Config} */ | ||
| export default { | ||
| theme: { | ||
| colors: themeColors, | ||
| }, | ||
| plugins: [plugin(themePlugin)], | ||
| }; | ||
| ``` | ||
| # Feature | ||
| 1. Use css variable mode for dark night mode injection.For `:root` and `html#id`. | ||
| 2. It depend on tailwindcss, all tailwindcss built-in colors have been rewritten. |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
43005
1.8%36
1100%