Кольори
Кольори HEX, RGB, RGBA
const styles = StyleSheet.create({
container: {
backgroundColor: "#f0f", // #rgb
backgroundColor: "#ff00ff", // #rrggbb
backgroundColor: "#f0ff", // #rgba
backgroundColor: "#ff00ff00", // #rrggbbaa
backgroundColor: "rgb(255, 0, 255)",
backgroundColor: "rgb(255 0 255)",
backgroundColor: "rgba(255, 0, 255, 1.0)",
backgroundColor: "rgba(255 0 255 / 1.0)",
},
});Кольори HSL, HSLA
const styles = StyleSheet.create({
container: {
backgroundColor: "hsl(360, 100%, 100%)",
backgroundColor: "hsl(360 100% 100%)",
backgroundColor: "hsla(360, 100%, 100%, 1.0)",
backgroundColor: "hsla(360 100% 100% / 1.0)",
},
});Кольори HWB
Color ints
Іменовані кольори
Last updated