LIVING DESIGN SYSTEM

Library

Dokumentasi hidup dan sandbox interaktif untuk standar desain semenitwasted. Eksplorasi perilaku taktil, nilai token, kurva easing, dan implementasi kode CSS siap pakai.

Primary Interaction 200ms

Tactile Lift

Interaksi tombol fisik dengan sedikit pengangkatan pada hover dan reduksi kedalaman permukaan saat ditekan (active state).

Interactive Playground — Hover & Press
State: Default / Resting
Property transform, box-shadow
Easing cubic-bezier(0.2, 0.8, 0.2, 1)
Hover Delta translateY(-2px)
.btn-tactile {
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-tactile:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 4px rgb(69 13 80 / 25%);
}
.btn-tactile:active {
  transform: translateY(0);
}
Micro Interaction ~200ms

Micro Tactile Lift

Versi lebih ringan dari Tactile Lift untuk kontrol ringkas seperti filter pills dan kategori. Mempertahankan bayangan depth tanpa switch ke primary shadow.

Filter Pills Group — Click to Toggle
Active: "Personal" (Primary shadow) · Hover to lift
Property transform, box-shadow
Duration ~200ms cubic-bezier(0.2, 0.8, 0.2, 1)
Active State --shadow-primary + dark fill
.filter-pill {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-depth);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.filter-pill:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
  background-color: var(--surface-soft);
}
.filter-pill:active {
  transform: translateY(0);
}
.filter-pill.active {
  background: var(--color-dark);
  color: #FCFAFD;
  border-color: var(--color-dark);
  font-weight: 600;
  box-shadow: var(--shadow-primary);
}
Surface & Depth 250ms

Neumorphic Card Elevation

Peningkatan elevasi halus pada permukaan kartu Bento. Memberikan umpan balik fisik tactile yang membedakan kartu interaktif dari kartu statis.

Interactive Card Surface — Hover over card
Bento Module ↗

Tactile Experience

Restrained depth transitions without excessive blur.

Elevation: Standard (Resting)
Property transform, box-shadow, border-color
Easing cubic-bezier(0.2, 0.8, 0.2, 1)
Shadow Rule --shadow-primary
.bento-card {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 4px 4px 4px rgb(69 13 80 / 25%);
}
.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 18px 18px 16px rgb(69 13 80 / 20%);
}
Media & Visual 350ms

Image Subtle Scale

Pembesaran foto/grafis yang tertahan (scale 1.01–1.03) dengan overflow terpotong rapi. Dilarang zoom agresif agar konten visual tetap tenang.

Media Frame — Hover to trigger subtle scale
Demo artwork preview
scale(1.02)
Hover container to view scale response
Property transform: scale(1.02)
Duration 350ms
Easing cubic-bezier(0.2, 0.8, 0.2, 1)
.media-frame {
  overflow: hidden;
  border-radius: 10px;
}
.media-img {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.media-frame:hover .media-img {
  transform: scale(1.02);
}
Spatial & Orientation Staggered (350ms)

Page Entrance Sequence

Kemunculan konten bertingkat: Heading (0ms) → Subtitle (50ms) → Primary Action (100ms) → Main Content (150ms). Menghindari jeda yang memperlambat pengguna.

Sequence Preview Stage
01. Heading
02. Supporting Text
03. Primary Action
04. Main Content
Property opacity, transform: translateY(12px)
Stagger Step 50ms per hierarchy level
Duration 350ms per item
@keyframes pageEntrance {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-title  { animation: pageEntrance 0.35s ease 0.00s forwards; }
.hero-desc   { animation: pageEntrance 0.35s ease 0.05s forwards; }
.hero-action { animation: pageEntrance 0.35s ease 0.10s forwards; }
.hero-grid   { animation: pageEntrance 0.35s ease 0.15s forwards; }
Content Reveal 400ms

Scroll Reveal (Observer)

Animasi satu kali (one-time) saat konten melintasi viewport. Menggunakan IntersectionObserver efisien tanpa mendengarkan event scroll secara konstan.

Mini Viewport Simulator — Scroll inside box
Item A (In view)
Item B (Scroll down)
Item C (Scroll down)
Item D (Scroll down)
Observer Root IntersectionObserver (threshold 0.15)
Transform translateY(16px) → 0
Rule Unobserve once triggered
.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
High-Intent Action Dynamic Spring

Magnetic Button

Interaksi selektif untuk tombol konversi utama (CTA). Tombol bergeser halus beberapa pixel mengikuti arah kursor dan kembali elastis saat kursor keluar.

Magnetic Proximity Area — Hover near button
Proximity: Move cursor inside zone
Proximity Max ±8px delta (Restrained)
Spring Reset 300ms cubic-bezier(0.2, 0.8, 0.2, 1)
A11y Constraint Disabled on touch & reduced motion
// Vanilla JS Proximity calculation
const bounds = btn.getBoundingClientRect();
const dx = (e.clientX - (bounds.left + bounds.width / 2)) * 0.25;
const dy = (e.clientY - (bounds.top + bounds.height / 2)) * 0.25;
btn.style.transform = `translate(${dx}px, ${dy}px)`;

// On mouse leave:
btn.style.transform = 'translate(0, 0)';
Navigation Motion 200ms

Navigation Indicator Transition

Pergeseran penanda aktif (active pill/underline) antar tautan navigasi. Memberikan kepastian orientasi dan kehalusan visual pada bar navigasi.

Interactive Nav Bar — Click links to slide indicator
Click any link to observe fluid indicator repositioning
Property transform: translateX(), width
Timing 200ms cubic-bezier(0.2, 0.8, 0.2, 1)
Visual Soft monochrome highlight
.nav-pill-bg {
  position: absolute;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
              width 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: var(--surface-soft);
  border-radius: 999px;
}
Accessibility & A11y 150ms

Focus State Indicator

Transisi cincin fokus ganda (high contrast outline + subtle glow) yang memenuhi standar aksesibilitas keyboard tanpa mengorbankan estetika visual.

Keyboard Focus Stage — Tab to focus or click button
Ring: Inactive
Outline Rule 1.5px solid var(--color-shadow)
Ring Shadow 0 0 0 3px rgb(69 13 80 / 14%)
WCAG Target 3:1 Minimum focus contrast
.interactive-element:focus-visible {
  outline: none;
  border-color: #450D50;
  box-shadow: 0 0 0 3px rgb(69 13 80 / 14%);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
State Feedback Micro Loop

Tactile Submit Spinner

Transisi status aksi form dari resting ke status proses (spinner) tanpa pergeseran layout (zero CLS) dan kembali dengan sinyal konfirmasi sukses.

Form Submit Action — Click to test state feedback
State: Idle / Ready
Animation rotate 0.75s linear infinite
Layout Principle Fixed button min-width (Zero CLS)
Reduced Motion Static "Loading..." text fallback
.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}