Skip to content

A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.

2.2 KB
Raw Blame
@import "tailwindcss";

@theme inline {
  --font-sans: var(--font-jakarta), system-ui, sans-serif;
  --font-mono: var(--font-jetbrains), ui-monospace, monospace;
}

@theme {
  --color-bg: #f5f3ec;
  --color-card: #fbfaf6;
  --color-fg: #14110f;
  --color-mute: #6b675e;
  --color-line: #dcd8cc;
  /* 0.46 keeps the ghost half of a heading at 3.1:1 on --bg: still clearly secondary,
     but large text meets the 3:1 floor instead of 2.4:1. */
  --color-dim: rgb(20 17 15 / 0.46);
  --color-primary: #f97c03;
  --color-primary-end: #f9cd5a;
  --color-ink: #06161c;
  --color-signal: #994900;
  --color-amber: #ffb547;
}

:root {
  --gradient-primary: linear-gradient(
    105deg,
    var(--color-primary) 0%,
    var(--color-primary-end) 100%
  );
}

@utility bg-primary-gradient {
  background-image: var(--gradient-primary);
}

@utility squircle-xs {
  corner-shape: squircle;
  border-radius: 4px;
}

@utility squircle-sm {
  corner-shape: squircle;
  border-radius: 8px;
}

@utility squircle-md {
  corner-shape: squircle;
  border-radius: 14px;
}

@utility squircle-lg {
  corner-shape: squircle;
  border-radius: 22px;
}

@utility squircle-xl {
  corner-shape: squircle;
  border-radius: 30px;
}

@utility squircle-pill {
  corner-shape: squircle;
  border-radius: 9999px;
}

@utility circle {
  border-radius: 50%;
}

/* Theme variables live in Tailwind's `theme` layer, so an unlayered override wins without `!important`. */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0c0e0f;
    --color-card: #141719;
    --color-fg: #f2f1ec;
    --color-mute: #9a978d;
    --color-line: #26292b;
    --color-dim: rgb(242 241 236 / 0.56);
    --color-signal: #f9cd5a;
  }
}

@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
  }

  body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-fg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  h1,
  h2,
  h3 {
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.96;
    text-wrap: balance;
  }

  p {
    text-wrap: pretty;
  }

  ::selection {
    background-color: var(--color-primary);
    color: var(--color-ink);
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
  }
}