![Git: Switching Unstaged Changes to a New Branch](https://www.cdn5.niftycent.com/d/k/X/d/w/p/N/git-switching-unstaged-changes-to-a-new-branch.webp)
I’m always on the wrong branch. I’m either on master or main working on something that should be on a fix or feature branch. Or I’m on the last branch I was working on and should have cut a new …
Git: Switching Unstaged Changes to a New Branch originally published on CSS-Tricks. You should get the newsletter and become a supporter.
https://css-tricks.com/git-switching-unstaged-changes-to-a-new-branch/
![Build, Ship, & Maintain Design Systems with Backlight](https://www.cdn5.niftycent.com/d/D/P/l/m/8/v/build-ship-maintain-design-systems-with-backlight.webp)
(This is a sponsored post.) Design systems are an entire job these days. Agencies are hired to create them. In-house teams are formed to handle them, shipping them so that other teams can use them and helping ensure they …
Build, Ship, & Maintain Design Systems with Backlight originally published on CSS-Tricks. You should get the newsletter and become a supporter.
![Demystifying TypeScript Discriminated Unions](https://www.cdn5.niftycent.com/d/k/l/0/J/7/R/demystifying-typescript-discriminated-unions.webp)
TypeScript is a wonderful tool for writing JavaScript that scales. It’s more or less the de facto standard for the web when it comes to large JavaScript projects. As outstanding as it is, there are some tricky pieces for the …
Demystifying TypeScript Discriminated Unions originally published on CSS-Tricks. You should get the newsletter and become a supporter.
![How to Cycle Through Classes on an HTML Element](https://www.cdn5.niftycent.com/d/D/P/l/J/3/J/how-to-cycle-through-classes-on-an-html-element.webp)
Say you have three HTML classes, and a DOM element should only have one of them at a time:
![Fancy CSS Borders Using Masks](https://www.cdn5.niftycent.com/d/k/K/x/J/2/J/fancy-css-borders-using-masks.webp)
Have you ever tried to make CSS borders in a repeating zig-zag pattern? Like where a colored section of a website ends and another differently colored section begins — not with a straight line, but angled zig zags, rounded humps, …
Fancy CSS Borders Using Masks originally published on CSS-Tricks. You should get the newsletter and become a supporter.
![How Do You Handle Component Spacing in a Design System?](https://www.cdn5.niftycent.com/d/k/K/x/J/N/n/how-do-you-handle-component-spacing-in-a-design-system.webp)
Say you’ve got a component. It’s highly likely it shouldn’t be butted right up against any other components with no spacing around it. That’s true for… pretty much every component. So, how do you handle component spacing in …
How Do You Handle Component Spacing in a Design System? originally published on CSS-Tricks. You should get the newsletter and become a supporter.
![How to Make a Scroll-Triggered Animation With Basic JavaScript](https://www.cdn5.niftycent.com/d/1/p/r/n/l/L/how-to-make-a-scroll-triggered-animation-with-basic-javascript.webp)
A little bit of animation on a site can add some flair, impress users, and get their attention. You could have them run, no matter where they are on the page, immediately when the page loads. But what if your …
How to Make a Scroll-Triggered Animation With Basic JavaScript originally published on CSS-Tricks. You should get the newsletter and become a supporter.
https://css-tricks.com/scroll-triggered-animation-vanilla-javascript/
![Why Don’t Developers Take Accessibility Seriously?](https://www.cdn5.niftycent.com/d/e/5/6/q/5/0/why-don-t-developers-take-accessibility-seriously.webp)
You know that joke, “Two front-end developers walk into a bar and find they have nothing in common”? It’s funny, yet frustrating, because it’s true. This article will present three different perspectives on accessibility in web design and development. Three …
Why Don’t Developers Take Accessibility Seriously? originally published on CSS-Tricks. You should get the newsletter and become a supporter.
https://css-tricks.com/why-dont-developers-take-accessibility-seriously/
![Using SVG in WordPress (2 Helpful Plugin Recommendations)](https://www.cdn5.niftycent.com/d/1/Y/O/g/Q/K/using-svg-in-wordpress-2-helpful-plugin-recommendations.webp)
SVG is a great image format, so it's nice to able to use it in WordPress. If you're looking to be using SVG in WordPress. , we've got you covered here with all the best options.
Using SVG in WordPress (2 Helpful Plugin Recommendations) originally published on CSS-Tricks. You should get the newsletter and become a supporter.
![Context-Aware Web Components Are Easier Than You Think](https://www.cdn5.niftycent.com/d/1/Y/O/g/o/n/context-aware-web-components-are-easier-than-you-think.webp)
Another aspect of web components that we haven’t talked about yet is that a JavaScript function is called whenever a web component is added or removed from a page. These lifecycle callbacks can be used for many things, including making …
Context-Aware Web Components Are Easier Than You Think originally published on CSS-Tricks. You should get the newsletter and become a supporter.