Course of Best Practices with CSS: Colors

Núria SorianoRafa Gómez

By Núria Soriano y Rafa Gómez Frontend

Master the use of colors in CSS to create visually stunning and accessible sites. Use modern CSS such as lch for color management.

💸 First lesson available without registration 💸

Working with colors in CSS can be challenging if best practices are not known. Incoherent or inaccessible colors can negatively affect the user experience and website performance.

This course teaches you how to use colors in CSS. You will learn from creating a coherent and accessible color palette to advanced handling of gradients and support for different browsers. You will discover why relying solely on RGB can be limiting and how modern color formats like `lch` and `oklch` can provide more optimal solutions.

With practical examples, you will be empowered to optimize your color code and implement effective and efficient solutions that will make your projects stand out.

With this course you will learn to:

  • Implement best practices in color management in CSS
  • Understand the limitations of using RGB and how to overcome them
  • Create and expand efficient and accessible color palettes
  • Use modern color formats like `lch` and `oklch` for better accuracy and accessibility
  • Maintain the quality and compatibility of color code across different browsers
  • Use gradients to add visual complexity without the need for images
  • Automate and maintain consistency in your code with tools like Stylelint

Related courses

See full catalogue

Pay according to your needs

lite (only monthly)

19 €
per month
  • Access to a subset of courses to lay the foundation for maintainable, scalable, and testable code
  • Company invoice
Popular

standard

24,92 €
Save 121
Annual payment of 299
per month
  • Full course catalog
  • Design and architecture challenges
  • Highlighted solutions videos for challenges
  • Receive job offers verified by Codely
  • Company invoice

premium

41,58 €
Save 89
Annual payment of 499
per month
  • Everything above
  • More benefits coming soon

We won’t increase the price while your subscription is active