COLOR theory
Color primitives:
Red, Green and Blue (RGB)
All other colors are the mix of RGB colors
This one goes to 11
Geeks don't stop at 100, they go to 255 (#FF)
PRIMARY COLORS & intensities
Red Green Blue
Red 255 0 0
Green
0 255 0
Blue 0
0 255
dark red 100 0 0
Secondary colors & gray
Red Green Blue
Yellow 255 255 0
Cian
0 255 255
Magenta
255 0 255
white
255 255 255
gray
100 100 100
black
0 0 0
Css!
// yellow
background-color: rgb(255, 255, 0)
// also yellow
background-color: #FFFF00
// transparency
background-color: rgba(0, 0, 255, 0.5)
linear gradient
background: linear-gradient(black, white)
linear gradient
Can also have color stops, and rotating
Don't need to memorize
linear gradient
Nice, but how does it work?
Question: what color would be at the middle from red to green?
radial gradient
Radial gradients are cool too :)