Search

Nalezeno "hsl": 9

A Whistle-Stop Tour of 4 New CSS Color Features


I was just writing in my “What’s new in since CSS3?” article about recent and possible future changes to CSS colors. It’s weirdly a lot. There are just as many or more new and upcoming ways to define colors than … A Whistle-Stop Tour of 4 New CSS Color Features...

useRainbow()


I took a break from work and started some small, personal projects (toys). One of those small projects is potato.horse where I keep all of my doodles, visual short stories and jokes. Check it out! However, this post is not … useRainbow() originally published on CSS-Tricks. You should get...

Coloring With Code — A Programmatic Approach To Design


Learn to create beautiful, inspiring, and unique color palettes/combinations, all from the comfort of your favorite text editor! The post Coloring With Code — A Programmatic Approach To Design appeared first on Codrops

Color Alpha Anywhere


In my “Different Degrees of Custom Property Usage” article, I noted a situation about colors and CSS custom properties where I went “too far” with breaking up HSL color values. Breaking every single color into its H, S, and L parts … The post Color Alpha Anywhere...

Icon Glassmorphism Effect in CSS


I recently came across a cool effect known as glassmorphism in a Dribble shot. My first thought was I could quickly recreate it in a few minutes if I just use some emojis for the icons without wasting time … The post Icon Glassmorphism Effect in CSS appeared first on CSS-Tricks. You...

Using JavaScript to Adjust Saturation and Brightness of RGB Colors


Lately I’ve been taking a look into designing with color (or “colour” as we spell it where I’m from in New Zealand). Looking at Adam Wathan and Steve Schroger’s advice on the subject, we find that we’re going to need more than just five nice looking hex codes from a color palette...

Creating Color Themes With Custom Properties, HSL, and a Little calc()


Before the advent of CSS custom properties (we might call them “variables” in this article as that’s the spirit of them), implementing multiple color schemes on the same website usually meant writing separate stylesheets. Definitely not the most maintainable thing in the world. Nowadays, though,...

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 HSL-based for the best matches of average pixel colors with...

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 we can break it down a little more and do some interesting things...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace