Skip to content

Commit

Permalink
Fix hwb plugin code example
Browse files Browse the repository at this point in the history
  • Loading branch information
omgovich committed May 21, 2021
1 parent b8e50b1 commit c09d877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ import hwbPlugin from "colord/plugins/hwb";
extend([hwbPlugin]);

colord("#999966").toHwb(); // { h: 60, w: 40, b: 40, a: 1 }
colord("#003366").toHwbString(); // "hwb(210, 0%, 60%)"
colord("#003366").toHwbString(); // "hwb(210 0% 60%)"

colord({ h: 60, w: 40, b: 40 }).toHex(); // "#999966"
colord("hwb(210 0% 60% / 50%)").toHex(); // "#00336680"
Expand Down

0 comments on commit c09d877

Please sign in to comment.