Skip to content

Commit 7620f13

Browse files
committed
docs: create readme
1 parent f6e90db commit 7620f13

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)