CSS Colors Tutorial for Beginners

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 42

  • @DaveGrayTeachesCode
    @DaveGrayTeachesCode  2 года назад +9

    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

  • @GabrielSouza-yy2rq
    @GabrielSouza-yy2rq 2 года назад +2

    Your tips for external resources are always great. Thank you so much!

  • @maddog7417
    @maddog7417 2 года назад +1

    This channel is really helpful. I've been utilizing these videos for a week now and I can see my improvement. Thanks Dave

  • @fairytail6896
    @fairytail6896 10 месяцев назад

    Playing with the colours was really interesting!

  • @yatin1370
    @yatin1370 Год назад

    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.

    • @mailsiraj
      @mailsiraj Год назад

      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.

  • @aladina1
    @aladina1 Год назад

    Awesome tutorial. Finally able to comprehend CSS colors. And the tools also are a game changer

  • @CTILET
    @CTILET 2 года назад +1

    The best chanel of react and css education!

  • @বিচিতচিন্তা
    @বিচিতচিন্তা 2 года назад

    Really, Very much helpful tutorial for beginners. Thanks Dave.

  • @ahmad-murery
    @ahmad-murery 2 года назад

    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

  • @Pareshbpatel
    @Pareshbpatel 2 года назад

    A very comprehensive tutorial on CSS colours. So clearly explained. Thnks, Dave
    {2022-06-29}

  • @oncoding4520
    @oncoding4520 2 года назад

    Commenting for each video that I have learned from your videos :)

  • @TravinskiyVladislav
    @TravinskiyVladislav 2 года назад

    Thank you, Dave

  • @iambrijeshtoo
    @iambrijeshtoo Год назад

    Thank you!

  • @nishgro191
    @nishgro191 2 года назад

    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.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад

      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

  • @pablo20237
    @pablo20237 2 года назад

    Thanks so much for this

  • @chandrachurmukherjeejucse5816
    @chandrachurmukherjeejucse5816 2 года назад

    Great lecture sir❤

  • @barangofficial
    @barangofficial Год назад

    You have lesson for teach about css or JavaScript, i want to it

  • @damo190
    @damo190 2 года назад

    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?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад +2

      That's a great request! It may not be for this beginners series, but I may be able to do a separate one.

  • @AbubacarrSumbunu
    @AbubacarrSumbunu Год назад

    Amazing

  • @letuslearnmore
    @letuslearnmore Год назад

    Our tutorial took many times at explaning colors.

  • @shajjadshaju
    @shajjadshaju 2 года назад

    Which vs code theme and font did you use?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 года назад

      GitHub theme. Has several dark mode options. I did not choose a font specifically.