Cascade UI

Production-ready UI specifications, design tokens, and accessible component layouts for solo developers and founders building modern web...
Pretoria, ZA
•Created byProfile pictureMilo
2 joined
Profile picture
MiloProfile picture@miloxvoid·Oct 11
Pinned post

Cascade UI Kit is live: Production-ready design tokens & specs for solo founders

Hey builders! Cascade UI Kit is officially live at


If you are building modern web apps solo, Cascade provides pre-built design tokens, responsive layouts, and WCAG-compliant component specifications so you can ship clean apps in hours without designing from scratch.


What is available today:

  • Free Starter Pack: Essential tokens and accessible components ($0) to test out immediately.

  • Full UI Kit: Complete component specifications, token packages, and downloads ($49 one-time or 2x $25/mo).

  • All-Access Pass: Lifetime access to all current tokens, specs, explorer tools, and future updates ($79 one-time).


Check out the docs and start building:

Profile picture
MiloProfile picture@miloxvoid·Oct 11
Pinned post

Free Spec Breakdown: Production-Ready UI Patterns

Accessible modal and dialog patterns with keyboard navigation


A production modal is not a centered box with a close icon. It is a focus trap, a labeled overlay, and a predictable keyboard contract that still works when CSS fails.


This spec is the Cascade UI Kit sample: copy the behavior, then unlock the full token system and remaining component specs at .


Roles and names


Use role="dialog" for application dialogs (forms, confirmations). Use role="alertdialog" only when the user must respond before continuing.


Required names:


  • aria-labelledby pointing at the visible title

  • aria-describedby pointing at the supporting copy when it exists

  • aria-modal="true" on the dialog itself


Do not put aria-hidden="true" on the dialog. Hide the rest of the document instead.


Open and close


On open:


  1. Store document.activeElement.

  2. Render the overlay and dialog.

  3. Move focus to the first focusable control, or the dialog container if it is tabindex="-1" and the first control would skip the title.

  4. Set aria-hidden="true" (or inert) on the main app root.


On close:


  1. Remove the dialog from the tree or hide it with hidden.

  2. Restore aria-hidden / inert on the app root.

  3. Return focus to the stored trigger.


Escape always closes unless the product explicitly needs a blocking alertdialog. Backdrop click closes standard dialogs, not alertdialogs.


Keyboard contract


Key

Behavior

Tab

Cycle focus inside the dialog only

Shift+Tab

Reverse cycle inside the dialog

Escape

Close (dialog)

Enter

Activate the focused control; default button only if it is still enabled

Space

Activate buttons and checkboxes


Focus order: close control, primary content, secondary actions, primary action. Do not put the destructive action first.


Focus trap


Collect tabbable nodes: a[href], button:not([disabled]), input:not([disabled]), select, textarea, [tabindex]:not([tabindex="-1"]).


On Tab from the last node, focus the first. On Shift+Tab from the first, focus the last. If there are no tabbable nodes, keep focus on the dialog container.


Ignore nodes with display: none, visibility: hidden, or zero size.


Motion and contrast


  • Overlay: rgba(0, 0, 0, 0.6) minimum. Do not rely on blur alone.

  • Dialog surface: at least 4.5:1 text contrast on the title and body.

  • Honor prefers-reduced-motion: skip scale/fade, snap opacity to 1.

  • Minimum tap target: 44×44px for close and primary actions.


Implementation sketch


<div id="app" data-inert-when-modal>
  <button type="button" id="open-settings">Open settings</button>
</div>

<div class="overlay" hidden>
  <div
    role="dialog"
    aria-modal="true"
    aria-labelledby="dlg-title"
    aria-describedby="dlg-desc"
    tabindex="-1"
  >
    <h2 id="dlg-title">Settings</h2>
    <p id="dlg-desc">Changes apply to this session only.</p>
    <button type="button" data-close>Close</button>
    <button type="button" data-primary>Save</button>
  </div>
</div>


Wire inert on #app while the overlay is visible. Restore focus to #open-settings on close.


Checklist before you ship


  • [ ] Title is visible and referenced by aria-labelledby

  • [ ] Focus moves in on open and back to the trigger on close

  • [ ] Tab never reaches the page behind the overlay

  • [ ] Escape and explicit close both work

  • [ ] Reduced motion does not leave the dialog at opacity 0

  • [ ] Screen reader announces the dialog role and title


Unlock the complete token system and component specs in Cascade UI Kit:

Profile picture
MiloProfile picture@miloxvoid·Oct 11
Pinned post

5 essential design tokens every SaaS app needs

5 essential design tokens every SaaS app needs


A token system is the fastest way to make a SaaS UI look intentional. These five token families cover 90% of product screens. Copy them into your CSS, then swap values once instead of hunting hex codes.


1. Color tokens (surface, text, brand)


Keep semantic names. Never ship --blue-500 as the only source of truth.


:root {
  --color-bg: #0b0d10;
  --color-surface: #14181f;
  --color-surface-raised: #1c232e;
  --color-border: #2a3342;
  --color-text: #f4f6f8;
  --color-text-muted: #9aa6b2;
  --color-brand: #5b8cff;
  --color-brand-hover: #7aa0ff;
  --color-danger: #f07178;
  --color-success: #6ee7b7;
}


Contrast: body text on --color-bg should hit 4.5:1 (WCAG AA). Muted text is for captions only. Brand on dark backgrounds: check the button fill, not just the hex.


2. Spacing tokens (4px scale)


A 4px base keeps density consistent across tables, forms, and nav.


:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;
}


Use --space-4 for card padding, --space-2 between label and input, --space-5 between sections.


3. Typography tokens


Two families is enough: one for UI, one optional for marketing.


:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
}


Body copy: --text-sm / --leading-normal. Page titles: --text-xl / --leading-tight / --weight-semibold.


4. Radius and elevation


Radius signals product personality. Elevation separates stacked surfaces.


:root {
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.24);
  --shadow-md: 0 8px 24px rgb(0 0 0 / 0.32);
  --z-dropdown: 40;
  --z-modal: 50;
  --z-toast: 60;
}


Buttons and inputs: --radius-sm. Cards: --radius-md. Modals: --radius-lg + --shadow-md.


5. Layout tokens (page grid)


Lock content width so dashboards do not stretch on ultrawide monitors.


:root {
  --page-max: 1120px;
  --page-gutter: 24px;
  --sidebar-width: 256px;
  --header-height: 56px;
  --control-height: 40px;
}


.page {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.control {
  min-height: var(--control-height);
}


Putting it together


Map components to tokens, not one-off values:


Component

Tokens

Primary button

brand + control-height + radius-sm + weight-medium

Card

surface-raised + space-4 + radius-md + border

Form field

surface + border + text-sm + control-height

Sidebar

sidebar-width + surface + text-muted


If contrast fails, change the token once. Every screen updates.


The full Cascade UI Kit documents 40+ component specs on this same token layer: buttons, inputs, tables, dialogs, and layout shells. Use this guide to stand up a prototype, then match the kit for production density and states.

Profile picture
MiloProfile picture@miloxvoid·Oct 11
Pinned post

Welcome early builders - Let's connect

Hey everyone, welcome to Cascade UI.


Drop a comment and tell us what you are building right now. Whether it's a side project, a client site, or something still in Figma, we want to hear it.


This thread is the place to introduce yourself and find other builders in the same boat.