Skip to main
Link
Baseline Radio the color theme color-mix playlist

Color Themes with Baseline CSS Features

So, you have a site that you want to build or redesign. Maybe you have a few core colors in mind, and you’re thinking about how to quickly implement a theme based on those colors. Baseline features can help!

See more at web.dev »

You’ll need your primary color, but also colors for actions, hover states, errors, and colors for other user interface needs. Then what about light and dark mode options? Suddenly there’s lots of colors you’ll need, and it can feel overwhelming.

The good news is that when it comes to building a palette relative to the color tokens that define your site and switching between color modes, Baseline features can do a lot of the heavy lifting for you. You can explore some of these techniques in the featured demo, a color themed playlist on the fictional Baseline Radio site.

See the Pen Color theme demo by @web-dot-dev on CodePen.

Read full article »

Posts about CSS

  1. Winging It post type

    Dos & Don’ts of Anchor Positioning

    CSS anchor positioning isn’t baseline yet, and there’s good reason for that. You can use it, but it comes with some caveats. James, Stacy, and Miriam cover new resources to make anchor positioning easier, and work through some demos to help you understand how anchor positioning works. We also look…

    see all Winging It posts
  2. Grid of hot air balloon images
    Link post type

    Baseline Layered UI Patterns: <dialog> and popover

    Elements and windows that pop up on the screen are one of the most common patterns on the web. With use cases spanning from alerts and brief forms requesting data, to the now ubiquitous cookie settings prompt, these layered UI patterns are used frequently by developers.

    see all Link posts
  3. Grainy art-deco illustration of a rocket launch
    Podcast post type

    Is Sass dead yet?

    A web development podcast from LogRocket

    I talk with Noel Minchow about the unique problems that CSS has to contend with, the internal complexities that can take us by surprise, how to think about debugging, and when to use higher level tools.

    see all Podcast posts