Miami Cruise

Miami Cruise / Apps / Web / CSS

Web / CSS

CSS variables for the palette, plus an optional glow layer.

Sample web interface with the dark theme and optional glow
Sample web interface with the dark theme and optional glow
Sample web interface with the light theme and optional glow
Sample web interface with the light theme and optional glow
Sample web interface with the dark theme, without glow
Sample web interface with the dark theme, without glow

Install

  1. Download

    Download miami-cruise.css and glow.css.

    curl -fsSLO https://lanjelin.github.io/miami-cruise/downloads/web/miami-cruise.css
    curl -fsSLO https://lanjelin.github.io/miami-cruise/downloads/web/glow.css
  2. Link the stylesheets

    <link rel="stylesheet" href="miami-cruise.css">
    <!-- optional -->
    <link rel="stylesheet" href="glow.css">
  3. Use the variables

    body { background: var(--mc-bg); color: var(--mc-text); }
    a { color: var(--mc-accent); }
    .card { background: var(--mc-panel); border: 1px solid var(--mc-border); }
    .btn { background: var(--mc-accent); color: var(--mc-on-accent); }

    With glow.css you can add mc-primary (glowing button), mc-focus (glowing focus ring), mc-selected and mc-surface (soft top-lit background).

    The glow only decorates states that already work without it, and browsers without color-mix simply skip it.

  4. Dark, light, or follow the system

    Dark is the default. Set data-theme="light" on <html> for the light variant. To follow the system:

    <script>
      var m = matchMedia("(prefers-color-scheme: light)");
      function sync() { document.documentElement.dataset.theme = m.matches ? "light" : "dark"; }
      m.addEventListener("change", sync); sync();
    </script>