Skip to main content
CSS-Tricks
  • Articles
  • Alamanac
  • Guides
  • Videos
  • Books
  • Newsletter
Search

Articles Tagged
color

36 Articles
{
,

}
Direct link to the article The Best Color Functions in CSS?
accessibility color color hsl lab

The Best Color Functions in CSS?

I’ve said before that HSL is the best color format we have. Most of us aren’t like David DeSandro, who can read hex codes. HSL(a) is Hue, Saturation, Lightness, and alpha, if we need it.

hsl(120, 100%, 40%)

Hue …

Avatar of Chris Coyier
Chris Coyier on Jan 20, 2020
Direct link to the article So Many Color Links
color

So Many Color Links

There’s been a run of tools, articles, and resources about color lately. Please allow me to close a few tabs by rounding them up here for your enjoyment.…

Avatar of Chris Coyier
Chris Coyier on Dec 27, 2019
Direct link to the article A Handy Sass-Powered Tool for Making Balanced Color Palettes
color Sass

A Handy Sass-Powered Tool for Making Balanced Color Palettes

For those who may not come from a design background, selecting a color palette is often based on personal preferences. Choosing colors might be done with an online color tool, sampling from an image, “borrowing” from favorite brands, or just …

Avatar of Stephanie Eckles
Stephanie Eckles on Dec 9, 2019
Direct link to the article Color contrast accessibility tools
a11y accessibility color color color-adjust

Color contrast accessibility tools

Accessibility is all the rage these days, specifically when it comes to color contrast. I’ve stumbled upon a couple of tools this week that I think are pretty nifty for helping make sure that all of the text on our …

Avatar of Robin Rendle
Robin Rendle on May 28, 2019 (Updated on Jan 2, 2020)
Direct link to the article Re: Pleasing Color Palettes
accessibility color color generative color

Re: Pleasing Color Palettes

There are so many tools out there to help you pick colors. I totally get it! It’s hard! When colors are done well, it’s like magic. It adds a level of polish to a design that can really set it …

Avatar of Chris Coyier
Chris Coyier on Jan 11, 2019
Direct link to the article Converting Color Spaces in JavaScript
color generative color hex hsl rgba

Converting Color Spaces in JavaScript

A challenge I faced in building an image “emojifier” was that I needed to change the color spaces of values obtained using getImageData() from RGB to HSL. I used arrays of emojis arranged by brightness and saturation, and they were …

Avatar of Jon Kantner
Jon Kantner on Jan 10, 2019 (Updated on Jan 26, 2021)
Direct link to the article What do you name color variables?
color variables

What do you name color variables?

What naming scheme do you use for color variables?
Have you succeeded at writing CSS that uses color variables in a manner agnostic to the colors they represent?
I’ve tried all of the following, and I have yet to succeed

…
Avatar of Chris Coyier
Chris Coyier on Dec 7, 2018 (Updated on Dec 3, 2021)
Direct link to the article Creating a VS Code Theme
accessibility color color editor theme vs code

Creating a VS Code Theme

Everyone has special and perhaps, particular, tastes when it comes to their code editor. There are literally thousands of themes out there, and for good reason: a thing of beauty and enhancement to productivity for one can be a hindrance …

Avatar of Sarah Drasner
Sarah Drasner on Jun 8, 2018
Direct link to the article HSL() / HSLa() is great for programmatic color control
color hsl

HSL() / HSLa() is great for programmatic color control

If you ever need to hand-manipulate a color in native CSS, HSL is pretty much the only way. HSL (the hsl() and hsla() functions in CSS) stands for hue, saturation, lightness, and optionally, alpha. We’ve talked about it before but …

Avatar of Chris Coyier
Chris Coyier on Jun 1, 2018
Direct link to the article V6: Color
color

V6: Color

This is a lovely little post by Rob Weychert about color theory, hierarchy and how to implement those colors in a design system. It’s particularly interesting hearing what Rob has to say on HSL, which is an alternative way of …

Avatar of Robin Rendle
Robin Rendle on Mar 2, 2018
Direct link to the article The Equilateral Triangle of a Perfect Paragraph
color font-size line length line-height typography

The Equilateral Triangle of a Perfect Paragraph

Still, too many web designers neglect the importance of typography on the web. So far, I’ve only met a few that really understand typography and know how to apply that knowledge to their work. And the lack of knowledge about …

Avatar of Matej Latin
Matej Latin on Jun 9, 2017
  • Newer
  • 1
  • 2
  • 3
  • ...
  • 4
  • Older

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • About DO
  • Cloudways hosting
  • Legal stuff
  • Get free credit!
CSS-Tricks
  • Write for us!
  • Advertise with us
  • Contact us
Social
  • RSS Feeds
  • CodePen
  • Mastodon
  • X
Back to Top