Skip to content

Commit b5f5b5a

Browse files
Update colors docs regarding expanded support for CSS Colors (facebook#3306)
1 parent 4e386d6 commit b5f5b5a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/colors.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,27 @@ React Native supports `rgb()` and `rgba()` in both hexadecimal and functional no
2626
- `'#f0ff'` (#rgba)
2727
- `'#ff00ff00'` (#rrggbbaa)
2828
- `'rgb(255, 0, 255)'`
29+
- `'rgb(255 0 255)'`
2930
- `'rgba(255, 0, 255, 1.0)'`
31+
- `'rgba(255 0 255 / 1.0)'`
3032

3133
### Hue Saturation Lightness (HSL)
3234

3335
React Native supports `hsl()` and `hsla()` in functional notation:
3436

3537
- `'hsl(360, 100%, 100%)'`
38+
- `'hsl(360 100% 100%)'`
3639
- `'hsla(360, 100%, 100%, 1.0)'`
40+
- `'hsla(360 100% 100% / 1.0)'`
41+
42+
### Hue Whiteness Blackness (HWB)
43+
44+
React Native supports `hwb()` in functional notation:
45+
46+
- `'hwb(0, 0%, 100%)'`
47+
- `'hwb(360, 100%, 100%)'`
48+
- `'hwb(0 0% 0%)'`
49+
- `'hwb(70 50% 0%)'`
3750

3851
### Color ints
3952

0 commit comments

Comments
 (0)