Skip to content

Commit 2b6f59c

Browse files
htunnicliffQix-
authored andcommitted
Add additional HSL examples to README
1 parent 6f73e20 commit 2b6f59c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ colorString.get('#FFF') // {model: 'rgb', value: [255,
2121
colorString.get('#FFFA') // {model: 'rgb', value: [255, 255, 255, 0.67]}
2222
colorString.get('#FFFFFFAA') // {model: 'rgb', value: [255, 255, 255, 0.67]}
2323
colorString.get('hsl(360, 100%, 50%)') // {model: 'hsl', value: [0, 100, 50, 1]}
24+
colorString.get('hsl(360 100% 50%)') // {model: 'hsl', value: [0, 100, 50, 1]}
2425
colorString.get('hwb(60, 3%, 60%)') // {model: 'hwb', value: [60, 3, 60, 1]}
2526

2627
colorString.get.rgb('#FFF') // [255, 255, 255, 1]
@@ -29,7 +30,9 @@ colorString.get.rgb('rgba(200, 60, 60, 0.3)') // [200, 60, 60, 0.3]
2930
colorString.get.rgb('rgb(200, 200, 200)') // [200, 200, 200, 1]
3031

3132
colorString.get.hsl('hsl(360, 100%, 50%)') // [0, 100, 50, 1]
33+
colorString.get.hsl('hsl(360 100% 50%)') // [0, 100, 50, 1]
3234
colorString.get.hsl('hsla(360, 60%, 50%, 0.4)') // [0, 60, 50, 0.4]
35+
colorString.get.hsl('hsl(360 60% 50% / 0.4)') // [0, 60, 50, 0.4]
3336

3437
colorString.get.hwb('hwb(60, 3%, 60%)') // [60, 3, 60, 1]
3538
colorString.get.hwb('hwb(60, 3%, 60%, 0.6)') // [60, 3, 60, 0.6]

0 commit comments

Comments
 (0)