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--ink · #17181a / #fff
Ink 2--ink-2 · #3c3b37 / #b4b4b4
Ink 3--ink-3 · #5c5b56 / #9a9a9a
Ink 4 (muted)--ink-4 · #6f6e68 / #878787
Ink 5 (faint)--ink-5 · #85847e / #6b6b6b
Page--bg · #fff / #000
Surface--surface · #f7f7f6 / #0f0f0f
Surface 2--surface-2 · #f1f1f0 / #181818
Surface 3--surface-3 · #ecebe7 / #202020
Elevated--elev-rgb · #fff / #202020
Solid--solid · #0e0f11 / #000
OK--ok · #15803d / #34d17a
Error--no · #b42318
Focus (inputs)--pick · #0d99ff / #3aa9ff
Focus (outline)--signal · #2231dd
Ember--ember · #b8431c

Ink tints — the whole UI is built from these alphas

.03
.05
wash
.08
.10
.12
.16

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.

Hero headlineInter · 40px · 500 · 1.06 · −.022em
Interactive UI components
DisplayGoogle Sans · 46px · 500 · 1.06 · −.02em
Everything here is live
Sheet titleGoogle Sans · 32px · 500 · 1.12 · +.004em
Join the bench
Panel titleInter · 17px · 500 · 1.25 · −.02em
Slide to confirm
Nav / chip / inputInter · 14px · 500 · 19.5px
Blocks · Sounds · Finds · Bench
Control labelInter · 13.5px · 400 · 1
Stroke
Body / descriptionInter · 13px · 400 · 1.45 · −.005em
Push the handle across; past the mark it takes over and finishes itself.
Control valueInter · 12.5px · 500 · tabular
280px
Tooltip / fine printInter · 11.5px · 500 · +.01em
Switch to dark
TagInter · 11px · 600 · +.01em
Sponsored
Codeui-monospace · 12px · 1.6
<SlideToConfirm width={280} corner={28} />

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.

2 px
seg gap
5 px
row gap
8 px
foot gap
12 px
modal gap · card gap
13 px
bar padding
14 px
chip · search padding
18 px
panel padding
20 px
page padding
24 px
nav link gap · modal inset
32 px
logo → links
72 px
nav height · footer top

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%.

ring · 1px ink 6%
menu · 12px 32px
tooltip · 6px 20px
sheet · 24px 70px
focus halo
glass panel · 28px

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.

--ease (morph)
cubic-bezier(.33,.55,.2,1) · 320ms
--ease-out (rise, menus)
cubic-bezier(.22,1,.36,1) · 620ms
--ease-spring (press)
cubic-bezier(.28,1.4,.36,1) · 200ms
--ease-pop (halo)
cubic-bezier(.3,1.12,.4,1) · 260ms
--ease-veil (card veil)
cubic-bezier(.28,1.3,.36,1) · 260ms
--ease-settle (pill)
cubic-bezier(.28,1.28,.36,1) · 420ms

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.

Slide to confirm
HTML — tune panel
<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.

Esc · scrim · ✕ close
HTML — modal shell
<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.

HTML — auth sheet
<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.

Slide to confirm
Slide to confirm
HTML — slide to confirm
<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 completes

Pill 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.

HTML — pill switch
<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.

default
:hover
pressed
live toggle
link
hover any → tooltip after 420ms

Navigation

72px bar, 20px side padding. Logo + 14px text links on the left (32px gap, 24px between links), a 242×48 search pill centred, and tools on the right: live visitors, a sponsor ring button, a theme toggle with tooltip and an ink split button. Below 760px it collapses to logo · search · menu, and the menu opens a full-screen drawer.

HTML — navigation
<nav class="ob-nav">
  <div class="ob-nav__lead">
    <div class="ob-nav__top">
      <a class="ob-nav__logo" href="/">…</a>
      <button class="ob-nav__menu-btn" data-ob-nav-menu aria-label="Menu">…</button>   <!-- mobile only -->
    </div>
    <div class="ob-nav__links"><a class="ob-nav__link" data-on="true">Blocks</a> …</div>
  </div>
  <div class="ob-nav__mid">
    <div class="ob-search" data-ob-search>
      <svg>…</svg><input class="ob-search__input" type="search" placeholder="Search blocks">
      <kbd class="ob-kbd">⌘K</kbd><button class="ob-search__clear" aria-label="Clear">…</button>
    </div>
  </div>
  <div class="ob-nav__tools">
    <span class="ob-live"><span class="ob-live__dot"></span><span class="ob-live__n">36</span></span>
    <button class="ob-icon-btn" data-ob-theme-toggle>…<span class="ob-tip">Dark</span></button>
    <div class="ob-split"><button class="ob-btn">Join for free</button><button class="ob-split__caret" data-ob-menu aria-controls="m">…</button></div>
  </div>
</nav>

Buttons

Every button is a pill. The ink pill comes in 36 / 40 / 46px; hover dims to 86% and press scales to .96 with a spring. Outline and provider pills use a 1px ink hairline. Share / Add flash a green "done" tint.

.ob-btn · 36px
--lg · 40px
--xl · 46px
--outline · 40px
--block · 40px
--soft · 40px
--via · 46px

States

default
:hover · opacity .86
:focus-visible · halo
:active · scale .96
:disabled · .5
[data-done]
[data-done]

Icon buttons · 36px circles with a scaling halo

default
:hover
[data-on] · slab
--ring
.ob-split
HTML — buttons
<button class="ob-btn">Join for free</button>
<button class="ob-btn ob-btn--lg">Join for free</button>
<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>
<button class="ob-icon-btn" aria-label="Close"><svg>…</svg><span class="ob-tip">Close</span></button>
<div class="ob-split"><button class="ob-btn">Join</button><button class="ob-split__caret">▾</button></div>

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.

3 of 48

HTML — chips, tabs
<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.

42
HTML — inputs
<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.

.ob-switch
checked
.ob-seg--icons
--icons-lg (mobile)
icon button · pressed
HTML — toggles
<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.

Speed50
Width (hover)280px
Opacity100%
Blur0.0px
Size
Panes
HTML — bar slider
<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.

SponsoredNewProBeta3Soon⌘K36

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

M

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.

Slide to confirm
New
Slide to confirm
Sponsored
Pill switch
HTML — card
<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.

slide-to-confirm.tsx
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-react

Stat

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.