Skip to content

Commit 10ebe7f

Browse files
committed
Update readme with v1.x config example
1 parent 814186c commit 10ebe7f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

readme.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,16 @@ yarn add -D tailwindcss-image-rendering
2020
## Usage
2121

2222
```js
23-
require('tailwindcss-image-rendering')(['responsive'])
23+
// tailwind.config.js
24+
{
25+
theme: {}, // no options to configure
26+
variants: { // all the following default to ['responsive']
27+
imageRendering: ['responsive'],
28+
},
29+
plugins: [
30+
require('tailwindcss-image-rendering'), // no options to configure
31+
],
32+
}
2433
```
2534

2635
```css

0 commit comments

Comments
 (0)