# Amber Codebase (Shadcn UI preset)

Amber Codebase is a free Shadcn UI preset: Lyra style, Amber accent with Olive neutrals, Geist Mono, Lucide icons and square corners. Copy the preset code or install it with one command.

- Preset code: `b6snObHLl`
- Style: Lyra
- Colors: Amber + Olive (base olive, theme amber, charts olive)
- Fonts: Geist Mono
- Icons: Lucide
- Radius: Square corners
- Menus: subtle accent, inverted color
- WCAG AA contrast on all text and buttons: no (6/8 pairs pass)
- Page with live preview: https://shadcnpreview.com/presets/amber-codebase

## Install

New project (`--base` is the component library: `radix` for Radix UI, `base` for Base UI, `aria` for React Aria; shadcn defaults to Base UI):

```bash
npx shadcn@latest init --preset b6snObHLl --base base --template next
```

Existing shadcn project (reinstalls UI components; add `--only theme` for colors only, or `--only font`):

```bash
npx shadcn@latest apply --preset b6snObHLl
```

The same preset as a shadcn registry item (follows `--base`):

```bash
npx shadcn@latest init --preset https://shadcnpreview.com/r/amber-codebase.json --base radix
```

Open in shadcn/create: https://ui.shadcn.com/create?preset=b6snObHLl

**Amber Codebase** is a Shadcn UI preset in the Lyra style. It's a no-nonsense, code-first aesthetic with crisp edges and monospace character.

## Best for

- Internal tooling
- Developer tools
- API dashboards

## Style

Lyra is boxy and sharp, with zero radius. It pairs well with monospace fonts, so it suits developer tools, terminals and brutalist or technical interfaces. Corners are fully square, so the layout feels crisp and architectural.

## Color

The Olive base is a grey with an earthy green tint, used for backgrounds, borders and muted text. Amber is the theme color, so primary buttons, focus rings and active states pick it up. Charts use a Olive ramp, so data stays understated.

## Typography

Everything is set in Geist Mono, a monospace font, which keeps the type consistent from headings to fine print.

## Icons and menus

Lucide is Shadcn UI's default icon set: clean, consistent 2px strokes. Menus are inverted (dark in light mode, light in dark mode), with a subtle highlight on the active item.

## CSS variables

```css
:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.153 0.006 107.1);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.153 0.006 107.1);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.153 0.006 107.1);
  --primary: oklch(0.555 0.163 48.998);
  --primary-foreground: oklch(0.987 0.022 95.277);
  --secondary: oklch(0.967 0.001 286.375);
  --secondary-foreground: oklch(0.21 0.006 285.885);
  --muted: oklch(0.966 0.005 106.5);
  --muted-foreground: oklch(0.58 0.031 107.3);
  --accent: oklch(0.966 0.005 106.5);
  --accent-foreground: oklch(0.228 0.013 107.4);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.93 0.007 106.5);
  --input: oklch(0.93 0.007 106.5);
  --ring: oklch(0.737 0.021 106.9);
  --sidebar: oklch(0.988 0.003 106.5);
  --sidebar-foreground: oklch(0.153 0.006 107.1);
  --sidebar-primary: oklch(0.666 0.179 58.318);
  --sidebar-primary-foreground: oklch(0.987 0.022 95.277);
  --sidebar-accent: oklch(0.966 0.005 106.5);
  --sidebar-accent-foreground: oklch(0.228 0.013 107.4);
  --sidebar-border: oklch(0.93 0.007 106.5);
  --sidebar-ring: oklch(0.737 0.021 106.9);
  --chart-1: oklch(0.88 0.011 106.6);
  --chart-2: oklch(0.58 0.031 107.3);
  --chart-3: oklch(0.466 0.025 107.3);
  --chart-4: oklch(0.394 0.023 107.4);
  --chart-5: oklch(0.286 0.016 107.4);
  --radius: 0;
}

.dark {
  --background: oklch(0.153 0.006 107.1);
  --foreground: oklch(0.988 0.003 106.5);
  --card: oklch(0.228 0.013 107.4);
  --card-foreground: oklch(0.988 0.003 106.5);
  --popover: oklch(0.228 0.013 107.4);
  --popover-foreground: oklch(0.988 0.003 106.5);
  --primary: oklch(0.473 0.137 46.201);
  --primary-foreground: oklch(0.987 0.022 95.277);
  --secondary: oklch(0.274 0.006 286.033);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.286 0.016 107.4);
  --muted-foreground: oklch(0.737 0.021 106.9);
  --accent: oklch(0.286 0.016 107.4);
  --accent-foreground: oklch(0.988 0.003 106.5);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.58 0.031 107.3);
  --sidebar: oklch(0.228 0.013 107.4);
  --sidebar-foreground: oklch(0.988 0.003 106.5);
  --sidebar-primary: oklch(0.769 0.188 70.08);
  --sidebar-primary-foreground: oklch(0.279 0.077 45.635);
  --sidebar-accent: oklch(0.286 0.016 107.4);
  --sidebar-accent-foreground: oklch(0.988 0.003 106.5);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.58 0.031 107.3);
  --chart-1: oklch(0.88 0.011 106.6);
  --chart-2: oklch(0.58 0.031 107.3);
  --chart-3: oklch(0.466 0.025 107.3);
  --chart-4: oklch(0.394 0.023 107.4);
  --chart-5: oklch(0.286 0.016 107.4);
}

```
