CSS Color
Color is one area of CSS that has enjoyed significant enhancements in the last few years. Previously, if you had an understanding of how to write hex, rgb()
, and hsl()
, that was all the color knowledge required. Nowadays, you need to understand a whole slew of different formats, alongside color functions to manipulate those formats, to consider yourself “up to speed.”
The fine detail of color in CSS is not something you are likely to wrestle with in day-to-day responsive design work. Ordinarily, we take it for granted and paste in the colors from a design file with little thought. However, when you do need to manipulate, or convert, colors, or if you get asked to implement a color in P3, I don’t want you looking embarrassed because I didn’t explain these concepts to you. So, to repeat advice I have given elsewhere in the book, consider the possibilities presented here but don’t worry about remembering the syntax. That’s what...