Skip to content

Commit 7c12893

Browse files
committed
change default import
1 parent 3fdd5e0 commit 7c12893

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ npm install javascript-color-gradient
2020
Then import the module into your JavaScript:
2121

2222
```javascript
23-
import { Gradient } from "javascript-color-gradient";
23+
import Gradient from "javascript-color-gradient";
2424
```
2525

2626
## Demo
@@ -43,7 +43,7 @@ import { Gradient } from "javascript-color-gradient";
4343
Using 2 colors and default (10) midpoints to generate an array of hex color values:
4444

4545
```javascript
46-
import { Gradient } from "javascript-color-gradient";
46+
import Gradient from "javascript-color-gradient";
4747

4848
const gradientArray = new Gradient()
4949
.setColorGradient("#3F2CAF", "e9446a")
@@ -70,7 +70,7 @@ console.log(gradientArray);
7070
Using two colors and default (10) midpoints to return single hex color value corresponding to the provided index:
7171

7272
```javascript
73-
import { Gradient } from "javascript-color-gradient";
73+
import Gradient from "javascript-color-gradient";
7474

7575
const colorAtIndexTwo = new Gradient()
7676
.setColorGradient("#3F2CAF", "e9446a")

0 commit comments

Comments
 (0)