Just In Case UI
An accessibility-first React component library. Yes, the name is a pun.
- In progress
- v0.3.0
- 24 components
- 0 runtime dependencies
- WCAG 2.2 AA
Every component library I’ve shipped at work taught me the same lesson: accessibility added at the end never quite fits. Just In Case UI starts there instead, with each component specced in OpenSpec before any code is written.
It began with buttons, a text input and a dropdown. It’s now 24 components, from comboboxes and dialogs to pagination and toasts, each checked with axe. Instead of Storybook there’s a lightweight kitchen-sink app, running live below. Try it with only your keyboard.
- Primary, secondary, tertiary: solid, outlined, text. Destructive gets its own red
- Native elements first, then the matching WAI-ARIA pattern, with full keyboard support
- Contrast is tested: every colour pair in the tokens is checked in CI
- Calm by default: reduced motion and forced colours are both honoured
- One variable per decision: every colour, radius and space is a
--jic-*token
Open the kitchen sink (opens in new tab) React, TypeScript, CSS Modules, Vitest + axe, OpenSpec