Skip to content

Getting started

The kit ships as a token layer (Style Dictionary → CSS vars + Tailwind preset + Figma variables) and a React component layer built on Radix + native primitives.

Terminal window
# tokens — CSS custom properties + Tailwind preset
npm i @operator-grade/tokens
# components — React + TypeScript, Radix-based
npm i @operator-grade/react

Import the token CSS once at your app root, then wrap your app in ThemeProvider to set the active mode and direction:

import '@operator-grade/react/tokens.day.css';
import '@operator-grade/react/tokens.night.css';
import '@operator-grade/react/tokens.mono.css';
import { ThemeProvider, Button } from '@operator-grade/react';
export default function App() {
return (
<ThemeProvider theme="day" dir="ltr">
<Button intent="primary">Engage</Button>
</ThemeProvider>
);
}

day (command-center dark), night (NVG-safe, low blue/green-biased), and mono (color stripped — meaning survives by shape/glyph). Set the mode with one attribute; everything re-themes.

Coordinates and grid digits stay left-to-right via <bdi dir="ltr"> even in an Arabic (RTL) UI.

CoordReadout in an RTL (Noto Sans Arabic) context — digits stay LTR