Search

Nalezeno "color()": 221

Barevný kontrast na webu a nástroje, které s ním pomohou


Nedostatečným kontrastem na webech jsme postižení úplně všichni, bez ohledu na nastavení našich očí, displejů nebo momentální nálady slunce. V článku se podíváme blíže na doporučené minimální hodnoty kontrastu, jeho měření a také nastavování barev u projektu s ohledem na něj

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 apart. Let's look at some, then talk about this idea some more. Here's one I just saw called Color...

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...

Why isn’t it <style src=””>?


The way JavaScript works is we can do scripts as an inline block: &#60;script&#62; let foo = "bar"; &#60;/script&#62; Or, if the script should be fetched from the network... &#60;script src="/js/global.js"&#62;&#60;/script&#62; With CSS, we can do an inline block of styles: &#60;style&#62; .foo...

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&#39;ve tried all of the following, and I have yet to succeed at writing CSS that works well with any color scheme....

Accessible SVG Icons With Inline Sprites


This is a great look at accessible SVG markup patterns by Marco Hengstenberg. Here's the ideal example: &#60;button type="button"&#62; Menu &#60;svg class="svg-icon" role="img" height="10" width="10" viewBox="0 0 10 10" aria-hidden="true" focusable="false"&#62; ...

Collective #472


Windrift * Read color hex codes * Windriftvar to JIT * NES.css * Aminal * CSS Animation 101 * Making Future Interfaces: Unusual Shapes Collective #472 was written by Pedro Botelho and published on Codrops

Visual. Intuitive. Unlike Anything Else.


(This is a sponsored post.) monday.com is a team management tool that’s found favor with more than 34,000 teams, including teams of two to teams of 2,000+, teams working for startups, and teams working on projects for Fortune 500 companies like AOL, Adidas, Samsung, and the Discovery Channel...

Collective #434


Building the Google Photos Web UI * Color Wheel Generator * Jasper * Totoro Toggle * Grabient * 3D City with Matter.js * Halftone Effect Collective #434 was written by Pedro Botelho and published on Codrops

8 Digit Hex Colors


One of the most requested capabilities in my early days of web development was the ability to set opacity on elements and even PNG images without the need for browser-specific CSS or hacks.  Eventually we got native opacity support and even enjoyed rgba(), the ability to cite an opacity level with...

Scrolling Gradient


If you want a gradient that changes as you scroll down a very long page, you can create a gradient with a bunch of color stops, apply it to the body and it will do just that. But, what if you don't want a perfectly vertical gradient? Like you want just the top left corner to change color? Mike...

Emojis as Icons


There are lots of unicode symbols that make pretty good icons already, like arrows (←), marks (✘), and objects (&#x2702;︎).You can already colorize these like a normal font glyph. Then, there are emojis, those full-color suckers we all know about. What if you could take just the shape of an emoji...

Better rendering for variable fonts


I was messing around with a variable font the other day and noticed this weird rendering issue in the latest version of Chrome where certain parts of letterforms were clipping into each other in a really weird way. Thankfully, though, Stephen Nixon has come to the rescue with a temporary hack...

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 to another. It’s been an item on my bucket list to create...

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...

Dark theme in a day


Marcin Wichary has written a great piece that dives into how he used CSS Variables to create a night mode and high contrast theme in an app. There’s so many neat tricks about how to use CSS Variables (Chris has also looked at theming) as well as how to organize them (Andras Galante has...

Unicode Patterns


These Unicode patterns by Yuan Chuan are extraordinarily clever. It's a &#60;css-doodle&#62; custom web component that sets up a CSS grid and randomizes what character to drop into a cell and things, like color. See all their gorgeous work on CodePen and the very cool &#60;css-doodle&#62; website...

It All Started With Emoji: Color Typography on the Web


“Typography on the web is in single color: characters are either black or red, never black and red …Then emoji hit the scene, became part of Unicode, and therefore could be expressed by characters &#8212; or “glyphs” in font terminology. The smiley, levitating businessman and the infamous pile...

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