Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 847 Bytes

color.md

File metadata and controls

39 lines (29 loc) · 847 Bytes

Used to describe style color

RGB color model

The RGB color model defines a given color in the sRGB color space according to its red, green, and blue components

Usage

support rgb, do not support rgba

const style = {
    "background-color": "rgb(255,0,153)",
}

Hex color

A notation for describing the hexadecimal color syntax of an sRGB color using its primary color components (red, green, blue) written as hexadecimal numbers

Usage

const style = {
    "background-color": "#ff0099",
}

Built-in colors

red、pink、purple、deep-purple、indigo、blue、light-color、cyan、teal、green、light-green、lime、yellow、amber、orange、deep-orange、brown、blue-grey、grey、white、black

Usage

const style = {
    "background-color": "red",
    "border-color": "orange"
}