# design-tokens

Turn design tokens into shadcn/Tailwind CSS variables and block colour pairs under WCAG AA contrast

- **Space:** design-systems-and-ui-kits-public (https://github.com/Tech-Realm/space-design-systems-and-ui-kits-public/tree/main/design-tokens)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** stdlib; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use design-systems-and-ui-kits-public/design-tokens` or MCP `get_pack design-systems-and-ui-kits-public/design-tokens`
- **Files:** CHANGELOG.md, code/build_tokens.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/bad-tokens.json, outcome/fixtures/tokens.json, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

Turn design tokens into shadcn/Tailwind CSS variables and block colour pairs under WCAG AA contrast.

## Steps

1. Keep colours (HSL triplets, light + dark), radius and font in `tokens.json`; list the text/background pairs to check.
2. `python3 code/build_tokens.py tokens.json globals.css` writes :root/.dark variables with shadcn/ui names plus a Tailwind v4 `@theme inline` block.
3. Any pair under 4.5:1 fails the build.

## Edge cases

- Large text (24 px+) may use 3:1; keep body text at 4.5:1.

## Don'ts

- Don't hand-edit the generated CSS.

## Check

`lp pack check design-systems-and-ui-kits/design-tokens` runs outcome/checks.yaml.



---

Canonical URL: https://logicpacks.io/packs/design-systems-and-ui-kits-public/design-tokens

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
