Skip to content
This repository was archived by the owner on Dec 15, 2024. It is now read-only.

Commit 24e2dd7

Browse files
committed
Readme tweaks
1 parent 6b598c6 commit 24e2dd7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ npm install tailwindcss-gradients
1313
{
1414
theme: {
1515
gradients: {
16-
directions: {
16+
directions: { // defaults to these values
1717
't': 'to top',
1818
'tr': 'to top right',
1919
'r': 'to right',
@@ -23,15 +23,15 @@ npm install tailwindcss-gradients
2323
'l': 'to left',
2424
'tl': 'to top left',
2525
},
26-
colors: {
26+
colors: { // defaults to {}
2727
'red': '#f00',
2828
'red-blue': ['#f00', '#00f'],
2929
'red-green-blue': ['#f00', '#0f0', '#00f'],
3030
},
3131
},
3232
},
3333
variants: {
34-
gradients: ['responsive'],
34+
gradients: ['responsive', 'hover'], // defaults to ['responsive']
3535
},
3636
plugins: [
3737
require('tailwindcss-gradients')(),
@@ -65,5 +65,3 @@ This plugin generates the following utilities:
6565
background-image: linear-gradient([direction-value], [color-value-1], [color-value-2], [...]);
6666
}
6767
```
68-
69-
Note: The `directions` key in `theme.gradients` is optional and defaults to the above values. Also, the `gradients` variants key defaults to `['responsive']`.

0 commit comments

Comments
 (0)