Skip to content
Switch branches/tags


The clearest way into the Universe is through a forest wilderness. - John Muir

ridge.css is a set of classless css themes, layout helpers via pylon.css and optional alpine.js code to help you write fast web apps fast


Try before you buy! Here's how your html could look after applying ridge.css (with the default dark theme)

<!DOCTYPE html>
<html lang="en" dir="ltr">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="stylesheet" href="ridge-dark.css" />
    <link rel="stylesheet" href="ridge.css" />
    <vstack spacing="xl">
        <a href="/">Cool logo</a>
        <hstack spacing=s>
          <a href="/pricing">Pricing</a>
          <a href="/join">
            <button>Sign up</button>

      <vstack align-x="center">
        <h1>Welcome to ridge.css!</h1>

Here's a screenshot of how that looks:

screenshot of default dark theme


Download a theme, and add it to your html:

  <link rel="stylesheet" media="(prefers-color-scheme: light), (prefers-color-scheme: none)" href="ridge-light.css" />
  <link rel="stylesheet" media="(prefers-color-scheme: dark)" href="ridge-dark.css" />
  <link rel="stylesheet" href="ridge.css" />

The example above adds both light and dark default themes and switches depending on the OS's dark mode setting.