One set of colors, type and controls for the demos
The design kit is one package the demos on jasonsdevspace.com share, so they read as one body of work and a fix to a button is made once. ShelfLens is built on it.
Light
Where the receipt goes
Success: The rule was saved
It applies to the next search.Dark
Where the receipt goes
Success: The rule was saved
It applies to the next search.npm install --save-exact @jasonsdevspace/design-kit@0.9.6What is in the design kit
Each page shows every piece in the light and dark themes. The pieces together shows them stacked as an app’s home page stacks them, Behavior shows what they do as you use them, and A page’s own palette shows a page that brings its own colors.
- Tokens, Colors, contrast, type, sizes, waits and the theme.
- Controls, Buttons, fields, waits, progress and dialogs in every state.
- App pieces, The frame, dock, tab bar, grids, rows and empty lists of an app.
- Layouts, Content pages, bands, a hero, stacks and split rows.
- Chrome, The skip link, top strip and footer around each demo.
- Explainer, The layout and pieces of the page that explains a demo.
Built for strict security, contrast and screen readers
Works under a strict security policy
The kit’s styles are plain files, and its components write no styles into the page. So it works where a page refuses any style it did not serve itself, as this site does. Its one inline script, the one that sets the theme, comes with the fingerprint a strict page lists to allow it.
Readable in both themes
Text stands out from its background by at least the 4.5 to 1 contrast the web’s accessibility guidelines ask for, and the edge of a control by 3 to 1, in the light and dark themes. The kit’s own test checks each pairing before a version is released.
What you see matches what a screen reader says
A toggle, an open panel, an unavailable control and a field with an error each take their look from what a screen reader announces. So what you see and what it says come from one place.