IKEA assembly, step by step: animated, manual-style 3D guides. Scan any paper manual with Together AI.
TypeScript
:root {
--paper: #ffffff;
--page: #f5f4f0;
--ink: #121212;
--ink-2: #4a4945;
--ink-3: #8a877f;
--line: #e8e6e0;
--line-2: #d9d6ce;
--sunk: #f2f0eb;
--accent: #ffd21f;
--accent-soft: #fff4c7;
--accent-ink: #3a2f00;
--blue: #0a5bd3;
--ok: #157f45;
--miss: #c8371d;
--miss-soft: #fdecea;
--r-xl: 28px;
--r-lg: 20px;
--r: 14px;
--r-sm: 10px;
--ring: 0 0 0 1px var(--line);
--shadow-1: 0 0 0 1px var(--line), 0 1px 2px rgba(18, 18, 18, 0.03);
--shadow-2: 0 0 0 1px rgba(18, 18, 18, 0.06), 0 1px 2px rgba(18, 18, 18, 0.03), 0 12px 28px -18px rgba(18, 18, 18, 0.12);
--ease: cubic-bezier(0.22, 1, 0.36, 1);
--spring: cubic-bezier(0.34, 1.56, 0.64, 1);
--font: var(--font-noto), "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
--display: var(--font-display), var(--font-noto), "Noto Sans", system-ui, sans-serif;
color-scheme: light;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
background: var(--page);
color: var(--ink);
font-family: var(--font);
font-size: 16px;
line-height: 1.5;
letter-spacing: -0.011em;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
button,
input,
textarea,
select {
font: inherit;
color: inherit;
letter-spacing: inherit;
}
a {
color: inherit;
}
:focus-visible {
outline: 2px solid var(--ink);
outline-offset: 3px;
}
/*
* Words that are part of a picture or a control aren't text to copy: illustration labels,
* step numbers drawn on the stage, decorative overlays (all aria-hidden) and buttons.
* Dragging across a drawing or double tapping "Done, next step" no longer paints a selection,
* and drawings can't be dragged off as ghost images.
*/
svg text,
svg tspan,
[aria-hidden="true"],
button,
[role="tab"],
[role="button"],
.btn,
.chip,
.gh,
.tg-pill,
.nav-link,
.resume,
.cmp-cta,
.cmp-hw,
.empty-go,
.no-select {
-webkit-user-select: none;
user-select: none;
}
img,
svg {
-webkit-user-drag: none;
}
img[aria-hidden="true"],
svg[aria-hidden="true"] {
-webkit-touch-callout: none;
}
html {
-webkit-tap-highlight-color: transparent;
}
/* outbound arrow: on hover the arrow leaves up and to the right while its twin slides in behind it */
.arrow-out {
display: inline-grid;
flex: none;
overflow: hidden;
vertical-align: middle;
}
.arrow-out svg {
grid-area: 1 / 1;
transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.arrow-out svg + svg {
transform: translate(-110%, 110%);
}
a:hover .arrow-out svg:first-child {
transform: translate(110%, -110%);
}
a:hover .arrow-out svg + svg {
transform: none;
}
/* tool and warning drawings keep one line weight at every size */
.line-art * {
vector-effect: non-scaling-stroke;
}
::selection {
background: var(--accent);
color: var(--ink);
}
/* ---------- stage ---------- */
.stage {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
user-select: none;
-webkit-user-select: none;
}
.stage-canvas {
position: absolute;
inset: 0;
width: 100% !important;
height: 100% !important;
display: block;
cursor: grab;
}
.stage-canvas:active {
cursor: grabbing;
}
.stage-overlay {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
overflow: visible;
}
.stage-overlay .arrow,
.stage-callout-svg .arrow {
fill: var(--ink);
stroke: #fff;
stroke-width: 2.5px;
paint-order: stroke;
stroke-linejoin: round;
}
.stage-callout-svg .arrow.turn {
fill: var(--ink);
}
.stage-overlay .leader {
stroke: var(--ink);
stroke-width: 1.4px;
fill: none;
}
.stage-overlay .leader-dot {
fill: #fff;
stroke: var(--ink);
stroke-width: 1.6px;
}
.stage-overlay .diag {
fill: none;
stroke: var(--ink);
stroke-width: 2px;
stroke-dasharray: 7 6;
stroke-linecap: round;
stroke-linejoin: round;
}
.stage-overlay .diag-eq circle {
fill: #fff;
stroke: var(--ink);
stroke-width: 2px;
}
.stage-overlay .diag-eq path {
stroke: var(--ink);
stroke-width: 2.4px;
stroke-linecap: round;
}
.stage-labels {
position: absolute;
inset: 0;
pointer-events: none;
}
.stage-label {
position: absolute;
left: 0;
top: 0;
display: flex;
align-items: center;
gap: 4px;
height: 30px;
min-width: 30px;
padding: 0 9px;
border-radius: 999px;
background: #fff;
border: 1.6px solid var(--ink);
font-weight: 800;
font-size: 15px;
justify-content: center;
will-change: transform, opacity;
transition: background 0.25s var(--ease);
}
.stage-label span {
font-weight: 600;
font-size: 13px;
color: var(--ink-2);
}
.stage-label.lit {
background: var(--accent);
}
.stage-callout {
position: absolute;
top: 18px;
right: 18px;
border-radius: 50%;
overflow: hidden;
background: #fff;
box-shadow: 0 0 0 1.6px var(--ink), 0 6px 16px -10px rgba(20, 20, 20, 0.12);
pointer-events: none;
transform-origin: 70% 30%;
}
.stage-callout canvas {
width: 100% !important;
height: 100% !important;
display: block;
}
.stage-callout-svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.stage-tip {
position: absolute;
left: 0;
top: 0;
pointer-events: none;
background: var(--ink);
color: #fff;
font-size: 13px;
font-weight: 600;
padding: 6px 10px 6px 6px;
border-radius: 999px;
display: flex;
gap: 8px;
align-items: center;
opacity: 0;
transition: opacity 0.15s;
white-space: nowrap;
}
.stage-tip b {
display: grid;
place-items: center;
width: 22px;
height: 22px;
border-radius: 50%;
background: #fff;
color: var(--ink);
font-size: 12px;
}
.stage-overlay .dims {
transition: opacity 0.3s;
}
.stage-overlay .dims .dim {
fill: none;
stroke: var(--ink);
stroke-width: 1.4px;
stroke-linecap: round;
stroke-linejoin: round;
}
.stage-overlay .dims .ext {
fill: none;
stroke: var(--ink-3);
stroke-width: 1px;
}
.stage-overlay .dims text {
font-family: var(--font);
font-size: 13px;
font-weight: 700;
fill: var(--ink);
text-anchor: middle;
paint-order: stroke;
stroke: #fff;
stroke-width: 4px;
stroke-linejoin: round;
}