We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6e90db commit 7620f13Copy full SHA for 7620f13
README.md
@@ -0,0 +1,36 @@
1
+# Tailwindcss Variable Colors
2
+
3
+Add dark mode support with just one class
4
5
+## Demo
6
7
+<https://tailwindcss-variable-colors.vercel.app/>
8
9
+## Install
10
11
+```sh
12
+pnpm i -D tailwindcss-variable-colors
13
+```
14
15
+## Usage
16
17
+```ts
18
+// tailwind.config.ts
19
+import { Config } from 'tailwindcss'
20
+import colors from 'tailwindcss/colors'
21
+import { createVariableColors, variableColorsPlugin } from './src'
22
23
+const config: Config = {
24
+ content: ['./src/**/*.tsx'],
25
+ theme: {
26
+ colors: createVariableColors(colors),
27
+ },
28
+ plugins: [variableColorsPlugin(colors)],
29
+}
30
31
+export default config
32
33
34
+## License
35
36
+MIT
0 commit comments