# One Dark

A One Dark theme for terminal components.

## Installation

  <TabsTrigger value="cli">Command</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>

```bash
npx shadcn@latest add @termcn/theme-one-dark
```

<Step>Copy and paste the following code into your project.</Step>

```ts
import type { Theme } from "@/components/ui/theme-provider";

export const oneDarkTheme: Theme = {
  border: {
    color: "#4B5263",
    focusColor: "#61AFEF",
    style: "round",
  },
  colors: {
    accent: "#C678DD",
    accentForeground: "#282C34",
    background: "#282C34",
    border: "#4B5263",
    error: "#E06C75",
    errorForeground: "#282C34",

    focusRing: "#61AFEF",
    foreground: "#ABB2BF",
    info: "#56B6C2",
    infoForeground: "#282C34",
    muted: "#3E4451",
    mutedForeground: "#5C6370",
    primary: "#61AFEF",
    primaryForeground: "#282C34",

    secondary: "#C678DD",
    secondaryForeground: "#282C34",
    selection: "#3E4451",
    selectionForeground: "#ABB2BF",
    success: "#98C379",

    successForeground: "#282C34",
    warning: "#E5C07B",
    warningForeground: "#282C34",
  },
  name: "one-dark",
  spacing: {
    0: 0,
    1: 1,
    2: 2,
    3: 3,
    4: 4,
    6: 6,
    8: 8,
  },
  typography: {
    base: "",
    bold: true,
    lg: "bold",
    sm: "dim",
    xl: "bold",
  },
};
```

<Step>Update the import paths to match your project setup.</Step>

## Usage

```tsx
import { ThemeProvider } from "@/components/ui/theme-provider";
import { oneDarkTheme } from "@/lib/terminal-themes/one-dark";
import { Badge } from "@/components/ui/badge";

export function Example() {
  return (
    <ThemeProvider theme={oneDarkTheme}>
      <Badge variant="info">One Dark</Badge>
    </ThemeProvider>
  );
}
```