Component dependencies
These are the exact CSS entry lists used by the isolated Storybook fixtures. Each fixture renders in its own document, so the full preview bundle cannot supply missing styles. Entries are listed in loading order; their internal imports are resolved below. CSS components require no JavaScript runtime.
Use the package imports with your bundler, then copy the HTML into your page.
Keep the rw-ui root. For direct HTML loading, link the same files from your
local copy of Runway UI in the same order. Do not also load the full bundle
when testing a minimal recipe.
Optional themes: load @kahwee/runway-ui/styles/themes.css after these entries and add
data-theme to the root. Theme fonts and host artwork are separate concerns.
These minimal fixtures deliberately use base tokens and system fonts.
Standalone controls
Native buttons need no behavior module. Shortcut hints do not bind keys; toggle state is application-owned.
import "@kahwee/runway-ui/styles/tokens.css";
import "@kahwee/runway-ui/styles/controls.css";
<main class="rw-ui">
<div style="display:flex;flex-wrap:wrap;gap:16px;align-items:center"><button type="button" class="rw-button" aria-pressed="true">Build <kbd class="rw-shortcut">B</kbd></button>
<button type="button" class="rw-button" aria-pressed="false">Inspect <kbd class="rw-shortcut">I</kbd></button>
<button type="button" class="rw-button" disabled>Unavailable</button></div>
</main>
No internal stylesheet imports.
Standalone input hints
The input stylesheet arranges visible list/kbd hints; controls.css supplies the shared keycap. Bindings belong to React InputScope and application state. CSS alone does not register shortcuts.
import "@kahwee/runway-ui/styles/tokens.css";
import "@kahwee/runway-ui/styles/controls.css";
import "@kahwee/runway-ui/styles/input.css";
<main class="rw-ui">
<ul class="rw-input-hints" aria-label="Keyboard shortcuts"><li><kbd class="rw-shortcut">N</kbd><span>Next cycle</span></li><li><kbd class="rw-shortcut">Ctrl+Shift+R</kbd><span>Review the available research choices</span></li></ul>
</main>
No internal stylesheet imports.
Standalone panels
Panels do not style child controls. Add controls.css or fields.css when those components are used.
import "@kahwee/runway-ui/styles/tokens.css";
import "@kahwee/runway-ui/styles/panels.css";
<main class="rw-ui">
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:24px"><section class="rw-panel"><header class="rw-panel__header"><h2 class="rw-panel__title">Raised panel</h2><span>Overview</span></header><p>Independent surface and header.</p><button type="button" class="rw-button">Control intentionally unstyled</button></section><section class="rw-panel" data-elevation="flat"><h2 class="rw-panel__title">Flat panel</h2><p>No composition dependencies.</p></section></div>
</main>
No internal stylesheet imports.
Dock composition
Controls own pressed colors and shortcut hints; the dock adds arrangement and motion. The accessibility entry provides reduced-motion rules.
import "@kahwee/runway-ui/styles/tokens.css";
import "@kahwee/runway-ui/styles/controls.css";
import "@kahwee/runway-ui/styles/patterns/dock.css";
import "@kahwee/runway-ui/styles/patterns/accessibility.css";
<main class="rw-ui">
<div class="rw-dock" role="group" aria-label="Workspace actions"><button type="button" class="rw-button" aria-pressed="true">Build <kbd class="rw-shortcut">B</kbd></button>
<button type="button" class="rw-button" aria-pressed="false">Inspect <kbd class="rw-shortcut">I</kbd></button>
<button type="button" class="rw-button" disabled>Unavailable</button></div>
</main>
No internal stylesheet imports.
Standalone fields
Inputs, selects and textareas use native editing and validation. Modern select pickers enhance supported browsers; native controls remain the fallback. Field wrapper layouts belong to forms.css.
import "@kahwee/runway-ui/styles/tokens.css";
import "@kahwee/runway-ui/styles/fields.css";
<main class="rw-ui">
<div style="display:grid;gap:16px;max-inline-size:600px"><label>Workspace name <input class="rw-input" id="workspace-name" value="Northwind"></label><label>Region <select class="rw-input" id="region"><option>Coast</option><option>Highlands</option></select></label><label>Notes <textarea class="rw-input" rows="2">Ready to begin.</textarea></label><label>Invalid code <input class="rw-input" aria-invalid="true" aria-describedby="code-error" value="???"></label><small id="code-error">Use a valid workspace code.</small><label>Unavailable <input class="rw-input" disabled value="Locked"></label></div>
</main>
Internal stylesheet imports (already loaded by the entries above):
- styles/fields/base.css
- styles/fields/select-picker.css
- styles/fields/select-variants.css
- styles/fields/menus.css
- styles/fields/accessibility.css
Form controls and layout
icons.css supplies checkbox check and minus masks. fields.css styles text inputs; forms.css supplies wrappers, switches, checks, radios, ranges and choice cards. Add controls.css for styled submit buttons. React Range supplies live output and fill updates. The retired forms behavior is not shipped. This fixture uses a fixed fill value and native inputs only.
import "@kahwee/runway-ui/styles/tokens.css";
import "@kahwee/runway-ui/styles/icons.css";
import "@kahwee/runway-ui/styles/fields.css";
import "@kahwee/runway-ui/styles/forms.css";
<main class="rw-ui">
<form style="max-inline-size:650px"><fieldset class="rw-fieldset"><legend>Workspace preferences</legend><div class="rw-field"><label for="team-name">Team name</label><input class="rw-input" id="team-name" name="team" required value="Northwind"></div><label class="rw-toggle"><input type="checkbox" class="rw-switch" name="alerts" checked role="switch">Enable alerts</label><label><input type="checkbox" class="rw-check" name="reports" checked> Weekly report</label><label><input type="radio" class="rw-check" name="pace" value="steady" checked> Steady pace</label><label for="capacity">Capacity</label><input class="rw-range" id="capacity" type="range" min="0" max="100" value="50" style="--rw-fill:50%"></fieldset></form>
</main>
Internal stylesheet imports (already loaded by the entries above):
- styles/fields/base.css
- styles/fields/select-picker.css
- styles/fields/select-variants.css
- styles/fields/menus.css
- styles/fields/accessibility.css
- styles/forms/switch.css
- styles/forms/check.css
- styles/forms/range.css
- styles/forms/field.css
- styles/forms/choices.css
- styles/forms/accessibility.css
View navigation
Links keep native focus and navigation; view-tabs.css includes its own reduced-motion and forced-color rules. Artwork is optional and host-owned. Routing and aria-current updates belong to the application; no behavior module is required for links.
import "@kahwee/runway-ui/styles/tokens.css";
import "@kahwee/runway-ui/styles/patterns/view-tabs.css";
<main class="rw-ui">
<nav class="rw-view-tabs" aria-label="Workspace views"><a class="rw-view-tab" href="#overview" aria-current="page"><span>Overview</span></a><a class="rw-view-tab" href="#people"><span>People</span></a><a class="rw-view-tab" href="#projects"><span>Projects</span></a></nav><p id="overview">Overview destination</p><p id="people">People destination</p><p id="projects">Projects destination</p>
</main>
No internal stylesheet imports.
Section navigation
section-tabs.css supplies the container; controls.css supplies the button appearance and focus rules. Links need no script. For application-owned toggle buttons, update aria-pressed and displayed content together. Optional runway-ui/navigation provides roving focus, not routing.
import "@kahwee/runway-ui/styles/tokens.css";
import "@kahwee/runway-ui/styles/controls.css";
import "@kahwee/runway-ui/styles/patterns/section-tabs.css";
<main class="rw-ui">
<nav class="rw-section-tabs" aria-label="Workspace sections"><a class="rw-button" href="#production">Production</a><a class="rw-button" href="#reserves">Reserves</a></nav><p id="production">Production destination</p><p id="reserves">Reserves destination</p>
</main>
No internal stylesheet imports.
Chart data table
charts.css styles the figure and exact-data table only. Quantitative geometry belongs exclusively to TanStack Charts through the React Chart component.
import "@kahwee/runway-ui/styles/tokens.css";
import "@kahwee/runway-ui/styles/charts.css";
<main class="rw-ui">
<figure class="rw-figure"><figcaption>Exact output · units</figcaption><table class="rw-chart"><caption>Exact output · units</caption><thead><tr><th scope="col">Month</th><th scope="col">Units</th></tr></thead><tbody><tr><th scope="row">Jan</th><td>25</td></tr><tr><th scope="row">Feb</th><td>75</td></tr></tbody></table></figure>
</main>
Internal stylesheet imports (already loaded by the entries above):
Native dialog
dialog.css owns the surface; controls.css styles the buttons. Native showModal(), close() and method="dialog" provide modality and results. Invoker commands require browser support; older hosts can call showModal() from their event handler. Optional runway-ui/dialog adds dismissal policy and requires explicit teardown.
import "@kahwee/runway-ui/styles/tokens.css";
import "@kahwee/runway-ui/styles/controls.css";
import "@kahwee/runway-ui/styles/dialog.css";
<main class="rw-ui">
<button class="rw-button" commandfor="isolated-dialog" command="show-modal">Open decision</button><dialog class="rw-dialog" id="isolated-dialog" aria-labelledby="decision-title"><header class="rw-dialog__header"><h2 class="rw-dialog__title" id="decision-title">Ready to begin?</h2></header><div class="rw-dialog__body"><p>Review the expedition before continuing.</p></div><form method="dialog" class="rw-dialog__footer"><button class="rw-button" value="cancel" autofocus>Cancel</button><button class="rw-button" value="confirm">Confirm</button></form></dialog>
</main>
No internal stylesheet imports.
Native disclosure
disclosure.css supplies the native details surface and motion; icons.css supplies its caret mask. controls.css supplies the shared summary focus ring. Opening and closing require no JavaScript.
import "@kahwee/runway-ui/styles/tokens.css";
import "@kahwee/runway-ui/styles/controls.css";
import "@kahwee/runway-ui/styles/icons.css";
import "@kahwee/runway-ui/styles/disclosure.css";
<main class="rw-ui">
<details class="rw-disclosure"><summary>Expedition details</summary><div><p>Three crew members and one supply crate.</p><a href="#supplies">Review supplies</a></div></details><p id="supplies">Supplies are ready.</p>
</main>
No internal stylesheet imports.
Resource display
resource.css owns the value, label and spacing. Icons are optional; this fixture includes icons.css for the package mark. Values and updates belong to the host; no behavior module is required.
import "@kahwee/runway-ui/styles/tokens.css";
import "@kahwee/runway-ui/styles/icons.css";
import "@kahwee/runway-ui/styles/patterns/resource.css";
<main class="rw-ui">
<div class="rw-resource"><span class="rw-resource__icon rw-icon" data-icon="package" aria-hidden="true"></span><div><strong>2,840</strong><small>Supplies available</small></div></div>
</main>
No internal stylesheet imports.
Inventory slots
inventory.css supplies slots and selection appearance. controls.css supplies shared focus and disabled rules; accessibility.css supplies reduced-motion rules. Selection is application-owned. Optional runway-ui/inventory provides fixed-height virtual inventories, and runway-ui/navigation supplies roving focus; destroy their handles on unmount.
import "@kahwee/runway-ui/styles/tokens.css";
import "@kahwee/runway-ui/styles/controls.css";
import "@kahwee/runway-ui/styles/patterns/inventory.css";
import "@kahwee/runway-ui/styles/patterns/accessibility.css";
<main class="rw-ui">
<div class="rw-slots" role="group" aria-label="Equipment"><button type="button" class="rw-slot" aria-pressed="true"><strong>Compass</strong><small>Selected</small></button><button type="button" class="rw-slot" aria-pressed="false"><strong>Lantern</strong><small>Available</small></button><button type="button" class="rw-slot" disabled><strong>Supply pack</strong><small>Unavailable</small></button></div>
</main>
No internal stylesheet imports.
See chart contracts, field semantics, interaction contracts and source ownership for the complete APIs. These fixtures cover the listed component families; they are not exhaustive coverage of every component variant.