It's important to learn about setting color values early on in your CSS journey - but it can be confusing! There are so many ways to provide color values. This tutorial breaks all of the different color values formats down (color names, rgb, rgba, hex, hsl, hsla) with simple explanations. You will also learn about the alpha channel, the VS Code color picker, and useful tools like color contrast checkers that will insure your color choices meet accessibility standards for the web. Just getting started with CSS? Go to the beginning of this CSS for Beginners playlist: ruclips.net/p/PL0Zuz27SZ-6Mx9fd9elt80G1bPcySmWit
If someone is confused about HSL: -Hue: Like Dave said a Color wheel; purely for selecting color. 0:Red >> 120:Green >> 240:Blue >> then 0:Red again. -Saturation: Related to "how much Gray" is in the color. 100% is no Gray; pure color. 50% is 50% Gray and 50% color. 0% is only Gray; no color. -Lightness: 50% means.. 50% light given to color. Towards 0% it goes darker-black; less light. Towards 100% it takes goes lighter-white; more light. Hope this helps.
Thanks for writing what I wanted to write in a very clear way. I did not clearly understand saturation after watching this video. Hence, I went to the great HTML & CSS book by Jon Duckett where I found that saturation is related to the amount of gray and lightness is related to the amount of black - I also found that 100% for both mean absence of gray or black (which is counter-intuitive). In my mind, I mapped lightness to contrast as the measure of white light - hence 0% means no whiteness and 100% means no whiteness. But I am not really sure why gray is important for specifying the color.
Nice video, I rarely use hsl unless I wanted to play with the saturation/lightness of existing color then I converted bak to hex, Chrome dev tools/Styles tab has a little contrast ratio checker embedded in the color picker, the cool thing about it is it shows the AA and AAA contrast curves so you can adjust your color as needed, it can also suggest a color for you, you need to inspect the font color in order to see the contrast ratio tool but sometimes it shows "no contrast information available". Thanks Dave
Hello Dave! Take love from bottom of my heart. You are awesome. I have a request to you. It is possible to add sequential number on series video titles? It will be very helpful for us. Thanks.
I understand your request. It is not good for the search results. I do put a number on each thumbnail for the video and you can see the correct order in the playlist here: ruclips.net/p/PL0Zuz27SZ-6Mx9fd9elt80G1bPcySmWit
In css, there are four special universal property values to control inheritance: inherit, initial, unset, revert. I don't understand how revert works. Will u make a video on it?
It's important to learn about setting color values early on in your CSS journey - but it can be confusing! There are so many ways to provide color values. This tutorial breaks all of the different color values formats down (color names, rgb, rgba, hex, hsl, hsla) with simple explanations. You will also learn about the alpha channel, the VS Code color picker, and useful tools like color contrast checkers that will insure your color choices meet accessibility standards for the web. Just getting started with CSS? Go to the beginning of this CSS for Beginners playlist: ruclips.net/p/PL0Zuz27SZ-6Mx9fd9elt80G1bPcySmWit
Your tips for external resources are always great. Thank you so much!
Glad it was helpful!
This channel is really helpful. I've been utilizing these videos for a week now and I can see my improvement. Thanks Dave
Great to hear! 💯
Playing with the colours was really interesting!
If someone is confused about HSL:
-Hue: Like Dave said a Color wheel; purely for selecting color. 0:Red >> 120:Green >> 240:Blue >> then 0:Red again.
-Saturation: Related to "how much Gray" is in the color. 100% is no Gray; pure color. 50% is 50% Gray and 50% color. 0% is only Gray; no color.
-Lightness: 50% means.. 50% light given to color. Towards 0% it goes darker-black; less light. Towards 100% it takes goes lighter-white; more light.
Hope this helps.
Thanks for writing what I wanted to write in a very clear way.
I did not clearly understand saturation after watching this video. Hence, I went to the great HTML & CSS book by Jon Duckett where I found that saturation is related to the amount of gray and lightness is related to the amount of black - I also found that 100% for both mean absence of gray or black (which is counter-intuitive).
In my mind, I mapped lightness to contrast as the measure of white light - hence 0% means no whiteness and 100% means no whiteness. But I am not really sure why gray is important for specifying the color.
Awesome tutorial. Finally able to comprehend CSS colors. And the tools also are a game changer
The best chanel of react and css education!
Thank you! 🙏💯
Really, Very much helpful tutorial for beginners. Thanks Dave.
Glad it was helpful!
Nice video,
I rarely use hsl unless I wanted to play with the saturation/lightness of existing color then I converted bak to hex,
Chrome dev tools/Styles tab has a little contrast ratio checker embedded in the color picker, the cool thing about it is it shows the AA and AAA contrast curves so you can adjust your color as needed, it can also suggest a color for you,
you need to inspect the font color in order to see the contrast ratio tool but sometimes it shows "no contrast information available".
Thanks Dave
Thank you, Ahmad - great tips! 💯🙏
A very comprehensive tutorial on CSS colours. So clearly explained. Thnks, Dave
{2022-06-29}
You're very welcome, Paresh! 💯
Commenting for each video that I have learned from your videos :)
Thank you, Dave
Thank you!
You're welcome!
Hello Dave! Take love from bottom of my heart. You are awesome. I have a request to you. It is possible to add sequential number on series video titles? It will be very helpful for us.
Thanks.
I understand your request. It is not good for the search results. I do put a number on each thumbnail for the video and you can see the correct order in the playlist here: ruclips.net/p/PL0Zuz27SZ-6Mx9fd9elt80G1bPcySmWit
Thanks so much for this
You're welcome! 🙏
Great lecture sir❤
Thank you!
@@DaveGrayTeachesCode welcome sir.you made my day🙏
You have lesson for teach about css or JavaScript, i want to it
In css, there are four special universal property values to control inheritance: inherit, initial, unset, revert. I don't understand how revert works. Will u make a video on it?
That's a great request! It may not be for this beginners series, but I may be able to do a separate one.
Amazing
Our tutorial took many times at explaning colors.
Which vs code theme and font did you use?
GitHub theme. Has several dark mode options. I did not choose a font specifically.