# High Contrast

High contrast themes for dark and light terminal backgrounds.



<ComponentPreview base="ink" name="theme-showcase" theme="high-contrast" />

Installation [#installation]

<CodeTabs>
  <TabsList>
    <TabsTrigger value="cli">
      Command
    </TabsTrigger>

    <TabsTrigger value="manual">
      Manual
    </TabsTrigger>
  </TabsList>

  <TabsContent value="cli">
    ```bash
    npx shadcn@latest add @termcn/ink/theme-high-contrast
    ```
  </TabsContent>

  <TabsContent value="manual">
    <Steps>
      <Step>
        Copy and paste the following code into your project.
      </Step>

      <ComponentSource src="registry/bases/ink/ui/types.ts" title="components/ui/types.ts" />

      <ComponentSource src="registry/bases/ink/themes/high-contrast.ts" title="lib/terminal-themes/high-contrast.ts" />

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

Usage [#usage]

```tsx
import { ThemeProvider } from "@/components/ui/theme-provider";
import { highContrastTheme } from "@/lib/terminal-themes/high-contrast";
import { Badge } from "@/components/ui/badge";

export function Example() {
  return (
    <ThemeProvider theme={highContrastTheme}>
      <Badge variant="info">High Contrast</Badge>
    </ThemeProvider>
  );
}
```

This file also exports `highContrastLightTheme` for bright terminal backgrounds.
