Obsidian UI
A monochrome, glass-panelled system. One ink colour at measured opacities over a plain page, 28px blurred panels, pill controls, and a tune panel built from segmented switches and filled bar sliders. Light is the signature; dark is real, not generated.
Colour
Five ink steps, four surfaces, and a universal tint (--wash) composed as rgba(var(--ink-rgb), α). There is no brand accent — ink is the action colour. Status colours are reserved for copied / added (green), errors (red) and keyboard focus (blue).
Ink tints — the whole UI is built from these alphas
Typography
Inter for everything, including numerals (tabular). The display face is Google Sans; the hero headline uses Inter 500 at −.022em. Base body is 13px / 19.5px. Sizes are the measured values — several are half-pixels.
Spacing
Measured, not snapped. The site is not on a 4px grid — 13px bar padding, 18px panel padding, 5px row gaps. Tokens are named by value so nothing silently drifts.
Elevation
Flat by default. Depth comes from blur (glass panels at 14px, scrims at 22px) and a handful of soft shadows. Focus is a two-ring halo: 2px page colour, then 4px ink at 35%.
Motion
Short and springy. Presses scale with an overshoot curve, halos scale in from .86, menus and tooltips use the same ease-out, and the pill thumb stretches then settles. Hover a row to play it. Every duration collapses to 1ms under prefers-reduced-motion.
Tune panel
The control stack from the block modal, standalone. Segmented switches for discrete choices, filled bar sliders for levels. Rows are 44px with 5px gaps; the stack scrolls and fades at the edges. Controls emit ob:change and the panel routes them onto the demo with data-ob-tune.
<aside class="ob-panel" data-ob-tune="#demo">
<header class="ob-modal__head">
<div class="ob-modal__id"><h3 class="ob-modal__title">Slide to confirm</h3></div>
<div class="ob-modal__acts"><button class="ob-icon-btn ob-modal__close" aria-label="Close">…</button></div>
<p class="ob-modal__desc">Push the handle across…</p>
</header>
<div class="ob-tune">
<section class="ob-tune__group">
<div class="ob-tune__row"><span class="ob-tune__label">Fill</span>
<div class="ob-seg" role="group" data-ob-seg="fill">
<button class="ob-seg__btn" data-value="light" aria-pressed="false">Light</button>
<button class="ob-seg__btn" data-value="dark" aria-pressed="true" data-on="true">Dark</button>
</div></div>
</section>
<section class="ob-tune__group">
<div class="ob-tune__row" data-bar="true">
<div class="ob-bar" data-ob-bar="width" data-unit="px" style="--fill:37.5%">
<span class="ob-bar__label">Width</span><span class="ob-bar__val">280px</span>
<input class="ob-bar__range" type="range" min="220" max="380" step="4" value="280" aria-label="Width">
</div></div>
</section>
</div>
<div class="ob-modal__foot">
<button class="ob-btn ob-btn--outline" data-ob-copy data-done-label="Link copied"><span data-label>Share</span></button>
<button class="ob-btn ob-btn--block" data-ob-done data-done-label="Added">Add to bench</button>
</div>
</aside>
// listen anywhere up the tree
panel.addEventListener('ob:change', e => console.log(e.detail)); // {name:'width', value:300}Block modal
A 1000×640 shell: the demo stage on the left (wash fill, 28px radius) and a 300px glass panel on the right. The scrim is the page colour at 78% with a 22px blur. Opening morphs the stage in; the panel slides 10px and fades with a 60ms delay. Preview / Code tabs sit top-left, tool toggles top-right. Escape, scrim or ✕ closes.
<button data-ob-modal-open="my-modal">Open</button>
<div class="ob-modal" id="my-modal" hidden>
<button class="ob-modal__scrim" tabindex="-1" aria-hidden="true"></button>
<div class="ob-modal__shell" role="dialog" aria-modal="true" aria-label="Slide to confirm">
<div class="ob-modal__stage" data-tone="light" data-view="preview">
<div class="ob-modal__canvas" data-surface="flat" data-fill="dark"> <!-- fill scope lives on the canvas --><div class="ob-modal__scale" style="--scale:1.25"> …demo… </div></div>
<div class="ob-modal__view" role="tablist" data-ob-view>
<button role="tab" data-view="preview" aria-selected="true" data-on>…</button>
<button role="tab" data-view="code" aria-selected="false">…</button>
</div>
<div class="ob-modal__tools">
<button class="ob-icon-btn ob-modal__tool" data-ob-press aria-pressed="false" aria-label="Save">…</button>
</div>
<button class="ob-glass-btn" data-ob-press aria-label="Show me how">…</button>
<div class="ob-cv__ai" hidden><button class="ob-btn" data-ob-copy="#usage">Copy prompt</button></div>
<div class="ob-cv" data-ob-acc> <!-- shown in [data-view="code"] -->
<section class="ob-cv__sec" data-open>
<header class="ob-cv__bar"><button class="ob-cv__toggle"><svg class="ob-cv__chev">…</svg><h3 class="ob-cv__h">Install</h3></button>
<div class="ob-cv__tools"><button class="ob-cv__copy" data-ob-copy="#install">…</button></div></header>
<div class="ob-cv__body"><div class="ob-cv__inner"><div class="ob-cv__box"><pre class="ob-cv__src" id="install">npm i …</pre></div></div></div>
</section>
</div>
</div>
<aside class="ob-modal__panel">
<header class="ob-modal__head">… <button class="ob-icon-btn ob-modal__close" data-ob-modal-close>…</button> …</header>
<div class="ob-tune">…</div>
<div class="ob-modal__foot">…</div>
</aside>
</div>
</div>Auth sheet
A 420×600 centred card, 24px radius, on a 34% dark scrim with a 4px blur. Crest, 32px display title, stacked member faces, a provider button, an "or" rule, an email field and a 46px ink button. Mobile: full screen, no radius.
Inline (same markup, not fixed)
Join the bench
Join 4,086 members
or
By continuing you agree to our Privacy notice.
<button data-ob-sheet-open="sheet-join">Join</button>
<button class="ob-sheet__scrim" id="sheet-join-scrim" hidden tabindex="-1"></button>
<div class="ob-sheet" id="sheet-join" role="dialog" aria-modal="true" aria-label="Sign in" hidden>
<div class="ob-sheet__card">
<button class="ob-icon-btn ob-sheet__close" data-ob-sheet-close aria-label="Close">…</button>
<div class="ob-sheet__panel"><div class="ob-sheet__well">
<header class="ob-sheet__head ob-sheet__head--mid">
<span class="ob-sheet__crest">…</span>
<h2 class="ob-sheet__title">Join the bench</h2>
<p class="ob-sheet__crowd"><span class="ob-sheet__faces">…</span><span>Join 4,086 members</span></p>
</header>
<div class="ob-sheet__foot">
<div class="ob-sheet__vias"><button class="ob-btn ob-btn--via">Continue with provider</button></div>
<p class="ob-sheet__or"><span>or</span></p>
<form class="ob-sheet__form" data-ob-email-form>
<label class="ob-field"><input class="ob-input" type="email" placeholder="Enter email address"></label>
<button class="ob-btn ob-btn--xl" type="submit">Continue</button>
</form>
<p class="ob-sheet__fine">By continuing you agree to our <a href="#">Privacy notice</a>.</p>
</div>
</div></div>
</div>
</div>Slide to confirm
The demo block that ships with the tune panel. 280×56 track, 48px grip inset 4px, a wash that trails the grip. Drag past 55% and it completes itself; Enter or → on the grip confirms by keyboard. Fill follows data-fill, stroke follows data-stroke.
<div data-surface="flat" data-fill="dark" data-stroke="off">
<div class="ob-slide" data-ob-slide data-speed="50" style="width:280px; --corner:28px">
<div class="ob-slide__track">
<i class="ob-slide__wash" aria-hidden="true"></i>
<span class="ob-slide__say">Slide to confirm</span>
<button type="button" class="ob-slide__grip" aria-label="Slide to confirm">
<span class="ob-slide__arrow">→</span>
<span class="ob-slide__done">✓ Confirmed</span>
</button>
</div>
</div>
</div>
// fires ob:confirm on the .ob-slide when it completesPill switch
A pill track with a sliding thumb. On change the thumb first stretches to cover both options (190ms), then settles onto the target with an overshoot (420ms). Dark tone for use over dark stages.
<div class="ob-pill" data-ob-pill="view">
<span class="ob-pill__indicator" aria-hidden="true"></span>
<button class="ob-pill__item" data-active="true">Preview</button>
<button class="ob-pill__item">Code</button>
</div>Glass buttons & tooltips
38px circles at 72% elevated colour with a 10px blur, used over demo stages (play, open). Hover shrinks to .95 and brightens; pressed state is a slab. Tooltips are 11.5px slab pills that appear 420ms after hover.
Links
Inline links are ink-2 with a 2px-offset underline, or a hairline rule that darkens on hover. Quiet links (footer) are ink-4 and only colour-shift.
By continuing you agree to our Privacy notice.
Free for personal and commercial use under the licence.
Built by Alex Jordan · Fading link
Tabs & chips
Three selection idioms: 32px filter chips (wash → slab when selected), 34px underline tabs, and the 30px pill view tabs that sit on the modal stage.
<div class="ob-chips" data-ob-chips>
<button class="ob-chip" aria-pressed="true" data-on>Hover</button>
<button class="ob-chip" aria-pressed="false">Press</button>
</div>
<div class="ob-tabs" role="tablist" data-ob-tabs>
<button class="ob-tab" role="tab" aria-selected="true" data-on>All</button>
<button class="ob-tab" role="tab" aria-selected="false">Sounds</button>
</div>
<div class="ob-sort">
<button class="ob-sort__btn" data-ob-menu aria-controls="sort-menu" aria-expanded="false"><span data-ob-menu-label>Newest</span><svg class="ob-sort__caret">…</svg></button>
<div class="ob-menu" id="sort-menu" role="menu" hidden><button class="ob-menu__item">Newest</button>…</div>
</div>Text
48px field with a 12px radius on a 5% wash. Focus swaps to the page colour with a blue 1px border and 3px 18% ring; errors turn the border red. The search pill is the same idea at 999px with a key cap.
<label class="ob-field">
<span class="ob-field__label">Email</span>
<input class="ob-input" type="email" placeholder="Enter email address">
<span class="ob-field__bad" hidden>That doesn't look like an email address.</span>
</label>
<div class="ob-search" data-ob-search>
<svg>…</svg><input class="ob-search__input" type="search" placeholder="Search"><kbd class="ob-kbd">⌘K</kbd>
</div>Select
The source has no native select; choices are a 32px outline pill that opens a 160px popover menu (14px radius, 34px items, 5px padding, scale-in from .94), or the 240px account menu with 44px rows.
Checkbox
This component was not present in the source site.
Toggle
Three toggles: a 50×30 switch with a 24px knob (20px travel, 320ms), a two-glyph icon pair (28px, selected = slab), and the pressed icon button.
<button class="ob-switch" data-ob-switch aria-checked="false" aria-label="Autoplay"><span class="ob-switch__knob"></span></button>
<div class="ob-seg ob-seg--icons" data-ob-seg="theme">
<button class="ob-seg__btn" aria-pressed="true" data-on="true" aria-label="Light">☀</button>
<button class="ob-seg__btn" aria-pressed="false" aria-label="Dark">☾</button>
</div>Slider
The filled bar: 44px tall, 10px radius, label left, tabular value right, and a 12% ink fill from the left edge. Drag anywhere on the bar; the native range underneath keeps keyboard and screen-reader support. Segmented controls handle the discrete cases.
<div class="ob-bar" data-ob-bar="width" data-unit="px" style="--fill:37.5%">
<span class="ob-bar__label">Width</span>
<span class="ob-bar__val">280px</span>
<input class="ob-bar__range" type="range" min="220" max="380" step="4" value="280" aria-label="Width">
</div>
// emits ob:change {name:'width', value:280}Badges
24px slab tag (11px / 600), the white "New" variant, a soft 28px tag, a 17px mini tag, 20px tally and soon pills, the key cap, and the live dot.
Avatar
30px circles with a 2px card-colour ring, stacked at −10px. Only used as a member crowd in the auth sheet.
Join 4,086 members
Card
The block card: a 28px wash tile holding a centred, scaled demo. The tag sits top-left; on hover the name veil, play / open glass buttons and the save corner fade in. Dark tone swaps the fill for solid ink with a gradient veil.
<article class="ob-card" data-tone="light" style="height:300px">
<div class="ob-card__stage"><div class="ob-card__scale" style="--scale:1"> …demo… </div></div>
<div class="ob-card__edge"></div>
<span class="ob-tag ob-tag--new">New</span>
<button class="ob-glass-btn ob-glass-btn--play" data-ob-press aria-label="Show me how">▶</button>
<a class="ob-glass-btn" href="/blocks/slide-confirm" aria-label="Edit">…</a>
<button class="ob-icon-btn ob-card__corner" data-ob-press aria-label="Save">…</button>
<div class="ob-card__veil"><span class="ob-card__name">Slide to confirm</span></div>
</article>Code block
12px monospace on a 5% wash, 10px radius, 1.6 line height, thin 11px scrollbars. The "take" row above it names the file and carries a 34px copy button.
export function SlideToConfirm({ width = 280, corner = 28 }) {
const [x, setX] = useState(0)
return (
<div className="sld" style={{ width, borderRadius: corner }}>
…
</div>
)
}
Code-view accordion (as shown on the modal stage)
npm install motion lucide-reactStat
This component was not present in the source site.
Table
This component was not present in the source site.
Pricing
This component was not present in the source site.
Toast
This component was not present in the source site. Confirmation is shown in place — buttons flash a green "done" state instead.
Alert
Blocks, not banners: a red 10% tint for errors, a 5% wash note for explanations, and an 11.5px inline field error.
We couldn't send the code. Check the address and try again.
Saving needs an account so your bench follows you between devices.
That doesn't look like an email address.Modal
Two dialogs: the block modal (stage + glass tune panel) and the auth sheet. Both trap Escape, close on scrim, restore focus and lock page scroll.
Empty state
A 52px wash disc with a 20px glyph, an 18px display line and a 14px note. Inline variant is a single muted sentence.
Nothing matches “slidr”
Try a shorter word, or clear the filters.
Nothing saved yet.
Progress
This component was not present in the source site.
Skeleton
Wash tiles with an 18px radius stand in for cards while the wall loads.