# High Contrast Light

WCAG-friendly light high-contrast theme.



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

This palette ships in the same registry item as [High Contrast](/docs/themes/opentui/high-contrast) (`@termcn/opentui/theme-high-contrast-light`).

Installation [#installation]

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

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

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

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

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

      <ComponentSource src="registry/bases/opentui/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 { highContrastLightTheme } from "@/lib/terminal-themes/high-contrast";
import { Badge } from "@/components/ui/badge";

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