sodium

Installation
SKILL.md

Sodium

Sodium is compact and ruled, for infrastructure and data tools: white and warm near-black grounds, 1px rules for structure, mono capitals for every interface word, Inter Display for headlines and prose, zero radius, and one sodium yellow for the thing to act on. Build with its recipes and components before writing markup.

Setup

Once, in the root layout: put the "sodium" class on <body> or the root element of the UI, with SodiumPortalProvider inside it. Sodium's styles and tokens apply only inside that class. Menus, dialogs, popovers and toasts render at the end of the body; SodiumPortalProvider keeps them inside the scope, and without it they lose every token. import {SodiumPortalProvider} from '@/lib/sodium/portal' <body className="sodium"><SodiumPortalProvider>{children}</SodiumPortalProvider></body>

Steps

  1. For a whole screen, start from a block under Blocks when one fits: install it, then swap its sample data and copy for the real ones.
  2. Pick the components the screen needs from the index below. Fetch each one's page before using it: it has the props, variants and that component's rules.
  3. Build only from those components and the tokens under Tokens, inside an element with the "sodium" class. Import each from the path in the index; support pieces are under Imports. Dark mode: put data-theme="dark" on the sodium element or any ancestor, such as . The theme does not follow the system setting (prefers-color-scheme) on its own.
  4. Frame the screen with the Page shell. If a token or component is missing, stop and say so. Do not invent one.
  5. Ask the person only when the screen needs a fact you were not given, such as a region or a limit; decide everything else from these rules and say what you chose.
  6. Porting an existing screen: swap one piece at a time for its component, keep the behavior and copy, and delete the old styles once nothing uses them. For a whole app, run migrate-design-system when it is installed.
  7. Lint: install it once with npx shadcn@latest add https://design.how/r/sodium/lint.json, then run npx eslint -c sodium.eslint.config.mjs .. Each message names the fix.
  8. Review before you finish: run the lint and fix every error, then render the screen at 390 and 1280 wide, check it against the global rules and the anti-slop list, fix the worst defect, and check again. Done when no MUST or NEVER is broken and no raw color, size or font is left. Run ui-review when it is installed.
Installs
7
GitHub Stars
624
First Seen
Nov 2, 2026