Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

v0.3.0: shadows, vermilion x indigo palette, choreography states, no nav arrows

nyblnetd75c3443f8cf
diff --git a/CLAUDE.md b/CLAUDE.md
index c92aef93..675f4007 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -67,6 +67,11 @@ One HTML file = the document + viewer + editor. See `README.md` for the vision.
line shapes have `lineStart`/`lineEnd` tips (arrow/dot/bar) rendered as
per-instance svg markers (sized in strokeWidth units, endpoints inset);
line color morphs tween the STROKE attr (lines paint stroke, not fill).
+ Elements carry optional `shadow` {x,y,blur,color} — rendered as CSS
+ drop-shadow in applyElementFrame (follows alpha shape: rounded corners,
+ glyphs, image cutouts); panel offers presets (subtle/soft/elevated/glow),
+ non-matching values show as 'custom'. Present-mode Reveal CONTROLS (corner
+ arrows) default OFF (doc.present.controls re-enables).
- **Diagram philosophy**: complex diagrams are ordinary Bento elements (rects, texts,
`path` shapes) with groups — interactivity = linked state slides + morph (filters,
era sequences), hover = focus-group, motion = fx.loop. Opaque `svg` elements are
diff --git a/slides/index.html b/slides/index.html
index fdbdd289..2d301dcc 100644
--- a/slides/index.html
+++ b/slides/index.html
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="generator" content="bento-slides" />
- <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='2' y='2' width='28' height='28' rx='6' fill='%231C2635'/%3E%3Crect x='6' y='6' width='6' height='20' rx='2' fill='%235678C4'/%3E%3Crect x='14' y='6' width='12' height='9' rx='2' fill='%23EDA12F'/%3E%3Crect x='14' y='17' width='12' height='9' rx='2' fill='%23EFECE3'/%3E%3C/svg%3E" />
+ <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='2' y='2' width='28' height='28' rx='6' fill='%231C2635'/%3E%3Crect x='6' y='6' width='6' height='20' rx='2' fill='%233D5A85'/%3E%3Crect x='14' y='6' width='12' height='9' rx='2' fill='%23E2502D'/%3E%3Crect x='14' y='17' width='12' height='9' rx='2' fill='%23EFECE3'/%3E%3C/svg%3E" />
<title>Bento Slides</title>
<!--
NOTICE — bundled open-source components. This file embeds the following
@@ -57,16 +57,16 @@
<style>
#bento-splash{position:fixed;inset:0;z-index:9999;display:grid;place-content:center;justify-items:center;gap:26px;background:radial-gradient(130% 90% at 50% 38%,#25313f 0%,#161d26 58%,#0e1319 100%);pointer-events:none;transition:opacity .5s ease;animation:bsAuto .6s ease 9s both}
#bento-splash.done{opacity:0}
-.bs-mark{position:relative;width:104px;height:104px;border-radius:24px;background:#1c2635;box-shadow:0 26px 70px -16px rgba(237,161,47,.38),0 10px 34px rgba(0,0,0,.55);overflow:hidden;animation:bsIn .7s cubic-bezier(.22,1.4,.36,1) both,bsFloat 3.4s ease-in-out .9s infinite}
+.bs-mark{position:relative;width:104px;height:104px;border-radius:24px;background:#1c2635;box-shadow:0 26px 70px -16px rgba(226,80,45,.38),0 10px 34px rgba(0,0,0,.55);overflow:hidden;animation:bsIn .7s cubic-bezier(.22,1.4,.36,1) both,bsFloat 3.4s ease-in-out .9s infinite}
.bs-mark i{position:absolute;border-radius:9px;opacity:0;animation:bsTile .55s cubic-bezier(.25,1.5,.45,1) both}
-.bs-b{left:12px;top:12px;width:24px;height:80px;background:#5678c4;animation-delay:.18s}
-.bs-a{right:12px;top:12px;width:50px;height:37px;background:#eda12f;animation-delay:.3s}
+.bs-b{left:12px;top:12px;width:24px;height:80px;background:#3d5a85;animation-delay:.18s}
+.bs-a{right:12px;top:12px;width:50px;height:37px;background:#e2502d;animation-delay:.3s}
.bs-c{right:12px;bottom:12px;width:50px;height:37px;background:#efece3;animation-delay:.42s}
.bs-mark:after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 38%,rgba(255,255,255,.35) 50%,transparent 62%);transform:translateX(-130%);animation:bsSheen 1s ease 1.05s both}
.bs-word{font:600 15px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;color:#e8edf4;letter-spacing:.42em;text-transform:uppercase;text-indent:.42em;animation:bsUp .6s ease .55s both}
-.bs-word b{color:#eda12f;font-weight:800}
+.bs-word b{color:#e2502d;font-weight:800}
.bs-bar{width:124px;height:2px;border-radius:1px;background:rgba(255,255,255,.13);overflow:hidden;animation:bsUp .5s ease .85s both}
-.bs-bar i{display:block;width:44%;height:100%;border-radius:1px;background:linear-gradient(90deg,#eda12f,#f8be6a);animation:bsScan 1.1s cubic-bezier(.45,0,.55,1) 1s infinite alternate}
+.bs-bar i{display:block;width:44%;height:100%;border-radius:1px;background:linear-gradient(90deg,#e2502d,#f07b54);animation:bsScan 1.1s cubic-bezier(.45,0,.55,1) 1s infinite alternate}
@keyframes bsIn{from{transform:scale(.55) rotate(-8deg);opacity:0}}
@keyframes bsTile{from{transform:translateY(28px) scale(.6);opacity:0}to{transform:none;opacity:1}}
@keyframes bsSheen{to{transform:translateX(130%)}}
diff --git a/slides/package.json b/slides/package.json
index 5b2c5b2a..8e1eb992 100644
--- a/slides/package.json
+++ b/slides/package.json
@@ -1,7 +1,7 @@
{
"name": "bento-slides",
"private": true,
- "version": "0.2.9",
+ "version": "0.3.0",
"type": "module",
"scripts": {
"dev": "vite",
diff --git a/slides/src/editor/editor.ts b/slides/src/editor/editor.ts
index aec0a2f7..29a4103e 100644
--- a/slides/src/editor/editor.ts
+++ b/slides/src/editor/editor.ts
@@ -70,8 +70,8 @@ export class Editor {
logo.innerHTML =
`<svg class="ed-logo-mark" viewBox="0 0 32 32" width="20" height="20" aria-hidden="true">` +
`<rect width="32" height="32" rx="7" fill="#1C2635"/>` +
- `<rect x="5" y="5" width="6" height="22" rx="2.5" fill="#5678C4"/>` +
- `<rect x="14" y="5" width="13" height="10" rx="2.5" fill="#EDA12F"/>` +
+ `<rect x="5" y="5" width="6" height="22" rx="2.5" fill="#3D5A85"/>` +
+ `<rect x="14" y="5" width="13" height="10" rx="2.5" fill="#E2502D"/>` +
`<rect x="14" y="17" width="13" height="10" rx="2.5" fill="#EFECE3"/>` +
`</svg> <b>Bento</b>&nbsp;Slides`
logo.title = 'About Bento Slides — version, updates, licenses'
@@ -714,8 +714,8 @@ export class Editor {
head.innerHTML =
`<svg viewBox="0 0 32 32" width="28" height="28" aria-hidden="true">` +
`<rect width="32" height="32" rx="7" fill="#1C2635"/>` +
- `<rect x="5" y="5" width="6" height="22" rx="2.5" fill="#5678C4"/>` +
- `<rect x="14" y="5" width="13" height="10" rx="2.5" fill="#EDA12F"/>` +
+ `<rect x="5" y="5" width="6" height="22" rx="2.5" fill="#3D5A85"/>` +
+ `<rect x="14" y="5" width="13" height="10" rx="2.5" fill="#E2502D"/>` +
`<rect x="14" y="17" width="13" height="10" rx="2.5" fill="#EFECE3"/>` +
`</svg><div><b>Bento Slides</b><span>v${APP_VERSION} · format v${FORMAT_VERSION}</span></div>`
box.appendChild(head)
diff --git a/slides/src/editor/panels.ts b/slides/src/editor/panels.ts
index c53498d0..146db2e5 100644
--- a/slides/src/editor/panels.ts
+++ b/slides/src/editor/panels.ts
@@ -266,6 +266,16 @@ export class PropsPanel {
else e.role = v
}, true)))
+ const current = Object.entries(SHADOW_PRESETS).find(([, p]) => JSON.stringify(p) === JSON.stringify(el.shadow))?.[0]
+ ?? (el.shadow ? 'custom' : 'none')
+ this.row('Shadow', this.select(
+ [...(current === 'custom' ? ['custom'] : []), 'none', ...Object.keys(SHADOW_PRESETS)],
+ current,
+ (v) => this.mutate(el.id, (e) => {
+ if (v === 'none') delete e.shadow
+ else if (v !== 'custom') e.shadow = { ...SHADOW_PRESETS[v] }
+ }, true)))
+
if (el.type === 'text') this.buildTextProps(el)
if (el.type === 'shape') this.buildShapeProps(el)
@@ -1083,3 +1093,11 @@ export function combineColor(hex: string, a: number): string {
const b = parseInt(hex.slice(5, 7), 16)
return `rgba(${r}, ${g}, ${b}, ${Math.round(a * 1000) / 1000})`
}
+
+/** Aesthetic shadow presets offered in the panel (custom values stay 'custom'). */
+const SHADOW_PRESETS: Record<string, { x?: number; y?: number; blur: number; color: string }> = {
+ subtle: { y: 2, blur: 10, color: 'rgba(10,16,28,0.25)' },
+ soft: { y: 10, blur: 28, color: 'rgba(10,16,28,0.32)' },
+ elevated: { y: 24, blur: 56, color: 'rgba(8,12,22,0.45)' },
+ glow: { blur: 40, color: 'rgba(226,80,45,0.45)' },
+}
diff --git a/slides/src/model.ts b/slides/src/model.ts
index 618bb909..e5ccca92 100644
--- a/slides/src/model.ts
+++ b/slides/src/model.ts
@@ -16,6 +16,11 @@ export interface ElementBase {
/** degrees, clockwise */
rotation: number
opacity: number
+ /**
+ * Drop shadow, rendered with CSS drop-shadow so it follows the element's
+ * alpha shape (rounded corners, ellipses, text glyphs, image cutouts).
+ */
+ shadow?: { x?: number; y?: number; blur: number; color: string }
/** presentation effects, run in present mode only */
fx?: {
/** entrance animation when the slide is shown */
diff --git a/slides/src/present.ts b/slides/src/present.ts
index 8dc81b65..e611f3f4 100644
--- a/slides/src/present.ts
+++ b/slides/src/present.ts
@@ -91,7 +91,7 @@ export function startPresentation(
transition: 'fade',
transitionSpeed: 'default',
backgroundTransition: 'fade',
- controls: doc.present?.controls ?? true,
+ controls: doc.present?.controls ?? false, // links/keys navigate; corner arrows are clutter
progress: doc.present?.progress ?? true,
slideNumber: (doc.present?.slideNumber ?? true)
? (((slideEl: HTMLElement) => {
diff --git a/slides/src/render.ts b/slides/src/render.ts
index c4cc4c6b..4c49f289 100644
--- a/slides/src/render.ts
+++ b/slides/src/render.ts
@@ -69,6 +69,9 @@ export function applyElementFrame(node: HTMLElement, el: SlideElement) {
node.style.height = `${el.h}px`
node.style.transform = el.rotation ? `rotate(${el.rotation}deg)` : ''
node.style.opacity = String(el.opacity)
+ node.style.filter = el.shadow
+ ? `drop-shadow(${el.shadow.x ?? 0}px ${el.shadow.y ?? 0}px ${el.shadow.blur}px ${el.shadow.color})`
+ : ''
}
// Gradient ids must be unique per rendered instance: the same element renders
diff --git a/slides/src/starterdeck.ts b/slides/src/starterdeck.ts
index ee0ae04b..38dd75aa 100644
--- a/slides/src/starterdeck.ts
+++ b/slides/src/starterdeck.ts
@@ -29,17 +29,19 @@ const BODY = "'Instrument Sans', -apple-system, 'Segoe UI', Helvetica, sans-seri
const INK = '#0F1724'
const PANEL = '#1C2635'
const PAPER = '#F6F4EF'
-const AMBER = '#EDA12F'
-const AMBER_SOFT = '#F8BE6A'
-const AMBER_DEEP = '#A96F0E'
-const BLUE = '#5678C4'
-const BLUE_SOFT = '#8FA6DD'
+// Shu-iro vermilion (Japanese lacquer red) x aizome indigo — the ukiyo-e
+// pairing. Ownable, warm, and nothing like default chart colors.
+const SHU = '#E2502D'
+const SHU_SOFT = '#F07B54'
+const SHU_DEEP = '#A93317'
+const INDIGO = '#3D5A85'
+const INDIGO_SOFT = '#7A93BC'
const MIST = '#B6C1D2'
const TILE_PAPER = '#EFECE3'
// gradient-lit tile fills (light falls from above) — kills the flat-vector look
-const GRAD_AMBER = { angle: 0, stops: [{ at: 0, color: '#E28F17' }, { at: 1, color: '#F6B54A' }] }
-const GRAD_BLUE = { angle: 0, stops: [{ at: 0, color: '#4765AF' }, { at: 1, color: '#7290D8' }] }
+const GRAD_SHU = { angle: 0, stops: [{ at: 0, color: '#C93E1E' }, { at: 1, color: '#F0704A' }] }
+const GRAD_INDIGO = { angle: 0, stops: [{ at: 0, color: '#2F4870' }, { at: 1, color: '#54719F' }] }
const GRAD_PAPER = { angle: 0, stops: [{ at: 0, color: '#DDD9CD' }, { at: 1, color: '#F6F3EB' }] }
const GRAD_CARD = { angle: 0, stops: [{ at: 0, color: '#161F2D' }, { at: 1, color: '#253143' }] }
const INK_SOFT = 'rgba(30, 42, 58, 0.72)'
@@ -58,6 +60,9 @@ const CHART_MAIN = 'sd-main-chart'
const S_CHARTS = 'sd-s-charts'
const S_CHARTS_PIE = 'sd-s-charts-pie'
+const S_CHOREO = 'sd-s-choreo'
+const S_CHOREO_2 = 'sd-s-choreo-2'
+const S_CHOREO_3 = 'sd-s-choreo-3'
// --- builders ---------------------------------------------------------------
@@ -70,7 +75,7 @@ const shape = (kind: Parameters<typeof defaultShape>[0], p: Partial<ShapeElement
const kicker = (label: string, p: Partial<TextElement> = {}): TextElement =>
text({
id: KICKER, x: 96, y: 54, w: 700, h: 26, html: label,
- fontSize: 13, fontWeight: 700, color: AMBER, letterSpacing: 4, ...p,
+ fontSize: 13, fontWeight: 700, color: SHU, letterSpacing: 4, ...p,
})
const title = (html: string, p: Partial<TextElement> = {}): TextElement =>
@@ -165,7 +170,7 @@ const glow = (angle: number, stops: Array<{ at: number; color: string }>): Shape
// --- chart options (pure JSON, brand-styled, embedded text face) ------------
const barOption = () => ({
- color: [AMBER, BLUE],
+ color: [SHU, INDIGO],
textStyle: { fontFamily: 'Instrument Sans' },
tooltip: { trigger: 'axis' },
legend: { bottom: 0, textStyle: { color: '#6B7280' } },
@@ -184,7 +189,7 @@ const barOption = () => ({
})
const pieOption = () => ({
- color: [AMBER, AMBER_SOFT, BLUE, BLUE_SOFT, PANEL],
+ color: [SHU, SHU_SOFT, INDIGO, INDIGO_SOFT, PANEL],
textStyle: { fontFamily: 'Instrument Sans' },
tooltip: { trigger: 'item' },
legend: { bottom: 0, textStyle: { color: '#6B7280' } },
@@ -218,13 +223,13 @@ const trendOption = () => ({
dataZoom: [{ type: 'inside' }],
series: [{
type: 'line', name: 'Momentum', smooth: true, symbol: 'none',
- lineStyle: { color: AMBER, width: 3 },
+ lineStyle: { color: SHU, width: 3 },
areaStyle: {
color: {
type: 'linear', x: 0, y: 0, x2: 0, y2: 1,
colorStops: [
- { offset: 0, color: 'rgba(237,161,47,0.35)' },
- { offset: 1, color: 'rgba(237,161,47,0)' },
+ { offset: 0, color: 'rgba(226,80,45,0.35)' },
+ { offset: 1, color: 'rgba(226,80,45,0)' },
],
},
},
@@ -250,7 +255,7 @@ const BOKEH_WARM =
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80">' +
'<defs><filter id="bp-bk-w" x="-60%" y="-60%" width="220%" height="220%">' +
'<feGaussianBlur stdDeviation="7"/></filter></defs>' +
- '<circle cx="40" cy="40" r="21" fill="#F0A63C" filter="url(#bp-bk-w)"/></svg>'
+ '<circle cx="40" cy="40" r="21" fill="#F0653C" filter="url(#bp-bk-w)"/></svg>'
const BOKEH_COOL =
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80">' +
@@ -258,18 +263,18 @@ const BOKEH_COOL =
'<feGaussianBlur stdDeviation="7"/></filter></defs>' +
'<circle cx="40" cy="40" r="21" fill="#DCE6F5" filter="url(#bp-bk-c)"/></svg>'
-const AURORA_AMBER =
+const AURORA_SHU =
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600">' +
- '<defs><radialGradient id="bp-ga-am"><stop offset="0" stop-color="#EDA12F" stop-opacity="0.20"/>' +
- '<stop offset="0.55" stop-color="#EDA12F" stop-opacity="0.07"/>' +
- '<stop offset="1" stop-color="#EDA12F" stop-opacity="0"/></radialGradient></defs>' +
+ '<defs><radialGradient id="bp-ga-am"><stop offset="0" stop-color="#E2502D" stop-opacity="0.20"/>' +
+ '<stop offset="0.55" stop-color="#E2502D" stop-opacity="0.07"/>' +
+ '<stop offset="1" stop-color="#E2502D" stop-opacity="0"/></radialGradient></defs>' +
'<circle cx="300" cy="300" r="300" fill="url(#bp-ga-am)"/></svg>'
-const AURORA_BLUE =
+const AURORA_INDIGO =
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600">' +
- '<defs><radialGradient id="bp-ga-bl"><stop offset="0" stop-color="#5678C4" stop-opacity="0.18"/>' +
- '<stop offset="0.55" stop-color="#5678C4" stop-opacity="0.06"/>' +
- '<stop offset="1" stop-color="#5678C4" stop-opacity="0"/></radialGradient></defs>' +
+ '<defs><radialGradient id="bp-ga-bl"><stop offset="0" stop-color="#3D5A85" stop-opacity="0.18"/>' +
+ '<stop offset="0.55" stop-color="#3D5A85" stop-opacity="0.06"/>' +
+ '<stop offset="1" stop-color="#3D5A85" stop-opacity="0"/></radialGradient></defs>' +
'<circle cx="300" cy="300" r="300" fill="url(#bp-ga-bl)"/></svg>'
const DOTS_PAPER =
@@ -291,8 +296,8 @@ export function starterDoc(): BentoDoc {
'font-instrument': INSTRUMENT_VAR,
'dots-ink': DOTS_INK,
'dots-paper': DOTS_PAPER,
- 'aurora-amber': AURORA_AMBER,
- 'aurora-blue': AURORA_BLUE,
+ 'aurora-amber': AURORA_SHU,
+ 'aurora-blue': AURORA_INDIGO,
'grain': GRAIN,
'bokeh-warm': BOKEH_WARM,
'bokeh-cool': BOKEH_COOL,
@@ -312,18 +317,18 @@ export function starterDoc(): BentoDoc {
elements: [
grain(),
glow(135, [
- { at: 0, color: 'rgba(86,120,196,0.22)' },
+ { at: 0, color: 'rgba(61,90,133,0.22)' },
{ at: 0.55, color: 'rgba(15,23,36,0)' },
- { at: 1, color: 'rgba(237,161,47,0.16)' },
+ { at: 1, color: 'rgba(226,80,45,0.16)' },
]),
shape('rect', {
x: 0, y: 0, w: 1280, h: 720, radius: 0, fill: 'transparent',
fillGradient: {
angle: 250,
stops: [
- { at: 0, color: 'rgba(237,161,47,0.10)' },
+ { at: 0, color: 'rgba(226,80,45,0.10)' },
{ at: 0.5, color: 'rgba(15,23,36,0)' },
- { at: 1, color: 'rgba(65,98,181,0.10)' },
+ { at: 1, color: 'rgba(47,72,112,0.10)' },
],
},
}),
@@ -353,11 +358,11 @@ export function starterDoc(): BentoDoc {
// the bento logo, built from the cast
shape('rect', {
id: T_D, x: 850, y: 170, w: 320, h: 320, radius: 40, fill: PANEL, fillGradient: GRAD_CARD,
- stroke: 'rgba(255,255,255,0.14)', strokeWidth: 1,
+ shadow: { y: 30, blur: 70, color: 'rgba(0,0,0,0.55)' },
fx: { enter: 'fade', order: 1 },
}),
- shape('rect', { id: T_B, x: 886, y: 206, w: 84, h: 248, radius: 16, fill: BLUE, fillGradient: GRAD_BLUE, fx: { enter: 'fade-up', order: 2 } }),
- shape('rect', { id: T_A, x: 986, y: 206, w: 148, h: 112, radius: 16, fill: AMBER, fillGradient: GRAD_AMBER, fx: { enter: 'fade-up', order: 3 } }),
+ shape('rect', { id: T_B, x: 886, y: 206, w: 84, h: 248, radius: 16, fill: INDIGO, fillGradient: GRAD_INDIGO, fx: { enter: 'fade-up', order: 2 } }),
+ shape('rect', { id: T_A, x: 986, y: 206, w: 148, h: 112, radius: 16, fill: SHU, fillGradient: GRAD_SHU, fx: { enter: 'fade-up', order: 3 } }),
shape('rect', { id: T_C, x: 986, y: 330, w: 148, h: 124, radius: 16, fill: TILE_PAPER, fillGradient: GRAD_PAPER, fx: { enter: 'fade-up', order: 4 } }),
kicker('BENTO SLIDES', { fx: { enter: 'fade-up', order: 0 } }),
shape('rect', { x: 96, y: 86, w: 1088, h: 1.5, radius: 0, fill: 'rgba(255,255,255,0.12)', fx: { enter: 'fade', order: 0 } }),
@@ -404,21 +409,21 @@ export function starterDoc(): BentoDoc {
elements: [
dots(false),
glow(180, [
- { at: 0, color: 'rgba(237,161,47,0.07)' },
- { at: 1, color: 'rgba(86,120,196,0.05)' },
+ { at: 0, color: 'rgba(226,80,45,0.07)' },
+ { at: 1, color: 'rgba(61,90,133,0.05)' },
]),
ghost('02'),
- kicker('ONE FILE', { color: AMBER_DEEP }),
+ kicker('ONE FILE', { color: SHU_DEEP }),
...furniture('02', false),
title('Everything ships inside.'),
shape('rect', {
x: 84, y: 208, w: 444, h: 420, radius: 26, fill: 'transparent',
- stroke: AMBER, strokeWidth: 2, strokeStyle: 'dashed',
+ stroke: SHU, strokeWidth: 2, strokeStyle: 'dashed',
fx: { loop: { type: 'dash-march', distance: 18, duration: 1.6 } },
}),
shape('rect', { id: T_D, x: 96, y: 220, w: 420, h: 396, radius: 20, fill: '#FFFFFF', stroke: CARD_STROKE, strokeWidth: 1.5 }),
- shape('rect', { id: T_A, x: 120, y: 244, w: 372, h: 104, radius: 12, fill: AMBER }),
- shape('rect', { id: T_B, x: 120, y: 364, w: 372, h: 124, radius: 12, fill: BLUE }),
+ shape('rect', { id: T_A, x: 120, y: 244, w: 372, h: 104, radius: 12, fill: SHU }),
+ shape('rect', { id: T_B, x: 120, y: 364, w: 372, h: 124, radius: 12, fill: INDIGO }),
shape('rect', { id: T_C, x: 120, y: 504, w: 372, h: 88, radius: 12, fill: TILE_PAPER }),
text({ x: 144, y: 270, w: 330, h: 58, html: '<b>your deck</b> — JSON in a &lt;script&gt; block', fontSize: 18, fontWeight: 500, color: INK, lineHeight: 1.45 }),
text({ x: 144, y: 394, w: 330, h: 70, html: '<b>viewer + presenter</b> — morphs, charts, speaker view', fontSize: 18, fontWeight: 500, color: '#FFFFFF', lineHeight: 1.45 }),
@@ -448,17 +453,17 @@ export function starterDoc(): BentoDoc {
elements: [
grain(),
glow(20, [
- { at: 0, color: 'rgba(65,98,181,0.24)' },
+ { at: 0, color: 'rgba(47,72,112,0.24)' },
{ at: 0.6, color: 'rgba(15,23,36,0)' },
- { at: 1, color: 'rgba(237,161,47,0.18)' },
+ { at: 1, color: 'rgba(226,80,45,0.18)' },
]),
shape('rect', {
- id: T_A, x: -140, y: -160, w: 520, h: 520, radius: 130, fill: AMBER,
- fillGradient: { angle: 135, stops: [{ at: 0, color: AMBER }, { at: 1, color: AMBER_SOFT }] },
+ id: T_A, x: -140, y: -160, w: 520, h: 520, radius: 130, fill: SHU,
+ fillGradient: { angle: 135, stops: [{ at: 0, color: SHU }, { at: 1, color: SHU_SOFT }] },
}),
shape('rect', {
- id: T_B, x: 980, y: -120, w: 420, h: 420, radius: 110, fill: BLUE,
- fillGradient: { angle: 225, stops: [{ at: 0, color: '#4162B5' }, { at: 1, color: BLUE_SOFT }] },
+ id: T_B, x: 980, y: -120, w: 420, h: 420, radius: 110, fill: INDIGO,
+ fillGradient: { angle: 225, stops: [{ at: 0, color: '#31497A' }, { at: 1, color: INDIGO_SOFT }] },
}),
shape('rect', {
id: T_C, x: 1040, y: 520, w: 360, h: 360, radius: 96, fill: TILE_PAPER, opacity: 0.9,
@@ -482,15 +487,15 @@ export function starterDoc(): BentoDoc {
// ── 4 · STATS BEAT (fade → staggers + count-ups) ───────────────────────
slide({
- background: AMBER,
+ background: SHU,
transition: 'fade',
notes:
'A hard cut on purpose — rhythm. The numbers counted up as the slide entered; ' +
'that’s one checkbox on any text element. The little lines show line endings: arrow, dot, bar.',
elements: [
shape('rect', { id: T_D, x: 96, y: 54, w: 34, h: 34, radius: 9, fill: INK }),
- shape('rect', { id: T_B, x: 140, y: 54, w: 34, h: 34, radius: 9, fill: BLUE }),
- shape('rect', { id: T_A, x: 184, y: 54, w: 34, h: 34, radius: 9, fill: AMBER_SOFT }),
+ shape('rect', { id: T_B, x: 140, y: 54, w: 34, h: 34, radius: 9, fill: INDIGO }),
+ shape('rect', { id: T_A, x: 184, y: 54, w: 34, h: 34, radius: 9, fill: SHU_SOFT }),
shape('rect', { id: T_C, x: 228, y: 54, w: 34, h: 34, radius: 9, fill: PAPER }),
text({
x: 1024, y: 54, w: 160, h: 26, html: '04', align: 'right',
@@ -523,20 +528,20 @@ export function starterDoc(): BentoDoc {
'Click “See the split” — it jumps to a hidden state slide and the bars MORPH into a pie.',
elements: [
dots(false),
- kicker('LIVE DATA', { color: AMBER_DEEP }),
+ kicker('LIVE DATA', { color: SHU_DEEP }),
...furniture('05', false),
title('Charts with a pulse.'),
- shape('rect', { id: T_C, x: 72, y: 196, w: 828, h: 458, radius: 20, fill: '#FFFFFF', stroke: CARD_STROKE, strokeWidth: 1.5 }),
+ shape('rect', { id: T_C, x: 72, y: 196, w: 828, h: 458, radius: 20, fill: '#FFFFFF', stroke: CARD_STROKE, strokeWidth: 1.5, shadow: { y: 14, blur: 34, color: 'rgba(30,42,58,0.10)' } }),
{ ...defaultChart(barOption()), id: CHART_MAIN, x: 96, y: 220, w: 780, h: 410, preset: 'bar' },
- shape('rect', { id: T_D, x: 920, y: 196, w: 264, h: 458, radius: 18, fill: PANEL, stroke: GLASS, strokeWidth: 1 }),
- shape('rect', { id: T_A, x: 944, y: 222, w: 44, h: 6, radius: 3, fill: AMBER }),
+ shape('rect', { id: T_D, x: 920, y: 196, w: 264, h: 458, radius: 18, fill: PANEL, shadow: { y: 14, blur: 34, color: 'rgba(30,42,58,0.18)' } }),
+ shape('rect', { id: T_A, x: 944, y: 222, w: 44, h: 6, radius: 3, fill: SHU }),
text({
x: 944, y: 248, w: 216, h: 210,
html: '<b>Hover the bars</b> — tooltips are live.<br><br>Scroll or pinch inside the chart to zoom the data.',
fontSize: 16.5, fontWeight: 500, color: MIST, lineHeight: 1.7,
}),
shape('rect', {
- id: T_B, x: 944, y: 560, w: 216, h: 52, radius: 26, fill: BLUE, fillGradient: GRAD_BLUE,
+ id: T_B, x: 944, y: 560, w: 216, h: 52, radius: 26, fill: INDIGO, fillGradient: GRAD_INDIGO,
stroke: 'rgba(255,255,255,0.18)', strokeWidth: 1,
link: S_CHARTS_PIE,
}),
@@ -556,20 +561,20 @@ export function starterDoc(): BentoDoc {
'different option: ECharts’ universal transition morphs bar→pie in place. Click back.',
elements: [
dots(false),
- kicker('LIVE DATA', { color: AMBER_DEEP }),
+ kicker('LIVE DATA', { color: SHU_DEEP }),
...furniture('05', false),
title('Same chart. New shape.'),
- shape('rect', { id: T_C, x: 72, y: 196, w: 828, h: 458, radius: 20, fill: '#FFFFFF', stroke: CARD_STROKE, strokeWidth: 1.5 }),
+ shape('rect', { id: T_C, x: 72, y: 196, w: 828, h: 458, radius: 20, fill: '#FFFFFF', stroke: CARD_STROKE, strokeWidth: 1.5, shadow: { y: 14, blur: 34, color: 'rgba(30,42,58,0.10)' } }),
{ ...defaultChart(pieOption()), id: CHART_MAIN, x: 96, y: 220, w: 780, h: 410, preset: 'pie' },
- shape('rect', { id: T_D, x: 920, y: 196, w: 264, h: 458, radius: 18, fill: PANEL, stroke: GLASS, strokeWidth: 1 }),
- shape('rect', { id: T_A, x: 944, y: 222, w: 44, h: 6, radius: 3, fill: AMBER }),
+ shape('rect', { id: T_D, x: 920, y: 196, w: 264, h: 458, radius: 18, fill: PANEL, shadow: { y: 14, blur: 34, color: 'rgba(30,42,58,0.18)' } }),
+ shape('rect', { id: T_A, x: 944, y: 222, w: 44, h: 6, radius: 3, fill: SHU }),
text({
x: 944, y: 248, w: 216, h: 210,
html: 'This is a <b>hidden state</b> — arrow keys skip it; only the click gets here.<br><br>The data morphed in place.',
fontSize: 16.5, fontWeight: 500, color: MIST, lineHeight: 1.7,
}),
shape('rect', {
- id: T_B, x: 944, y: 560, w: 216, h: 52, radius: 26, fill: BLUE, fillGradient: GRAD_BLUE,
+ id: T_B, x: 944, y: 560, w: 216, h: 52, radius: 26, fill: INDIGO, fillGradient: GRAD_INDIGO,
stroke: 'rgba(255,255,255,0.18)', strokeWidth: 1,
link: S_CHARTS,
}),
@@ -588,20 +593,20 @@ export function starterDoc(): BentoDoc {
elements: [
grain(),
glow(200, [
- { at: 0, color: 'rgba(237,161,47,0.12)' },
+ { at: 0, color: 'rgba(226,80,45,0.12)' },
{ at: 0.5, color: 'rgba(15,23,36,0)' },
- { at: 1, color: 'rgba(65,98,181,0.18)' },
+ { at: 1, color: 'rgba(47,72,112,0.18)' },
]),
kicker('STORY WITH DATA'),
...furniture('06', true),
title('Momentum you can feel.', { color: '#FFFFFF', w: 700 }),
text({
x: 800, y: 96, w: 384, h: 110, html: '+975%', fontSize: 92, fontWeight: 900,
- fontFamily: DISPLAY, color: AMBER, align: 'right',
+ fontFamily: DISPLAY, color: SHU, align: 'right',
}),
shape('rect', { id: T_D, x: 1096, y: 208, w: 20, h: 20, radius: 6, fill: PANEL, stroke: 'rgba(185,196,212,0.3)', strokeWidth: 1 }),
- shape('rect', { id: T_B, x: 1124, y: 208, w: 20, h: 20, radius: 6, fill: BLUE }),
- shape('rect', { id: T_A, x: 1152, y: 208, w: 20, h: 20, radius: 6, fill: AMBER }),
+ shape('rect', { id: T_B, x: 1124, y: 208, w: 20, h: 20, radius: 6, fill: INDIGO }),
+ shape('rect', { id: T_A, x: 1152, y: 208, w: 20, h: 20, radius: 6, fill: SHU }),
shape('rect', { id: T_C, x: 1180, y: 208, w: 4, h: 20, radius: 2, fill: TILE_PAPER }),
{ ...defaultChart(trendOption()), x: 64, y: 244, w: 1152, h: 420 },
],
@@ -616,7 +621,7 @@ export function starterDoc(): BentoDoc {
elements: [
dots(false),
ghost('07'),
- kicker('MOTION', { color: AMBER_DEEP }),
+ kicker('MOTION', { color: SHU_DEEP }),
...furniture('07', false),
title('Lines that lead the eye.'),
// the flow: a dashed path with a dot riding it, milestones as nodes
@@ -628,20 +633,20 @@ export function starterDoc(): BentoDoc {
fx: { loop: { type: 'dash-march', distance: 20, duration: 1.8 } },
}),
shape('ellipse', {
- x: 150, y: 530, w: 20, h: 20, fill: AMBER,
+ x: 150, y: 530, w: 20, h: 20, fill: SHU,
fx: { loop: { type: 'motion-path', duration: 8,
path: 'M 0 0 C 240 -260 500 -260 620 -110 C 710 5 880 5 960 -190' } },
}),
shape('ellipse', { x: 505, y: 321, w: 20, h: 20, fill: '#FFFFFF', stroke: INK, strokeWidth: 2.5 }),
shape('ellipse', { x: 944, y: 496, w: 20, h: 20, fill: '#FFFFFF', stroke: INK, strokeWidth: 2.5 }),
- shape('ellipse', { x: 1106, y: 336, w: 24, h: 24, fill: AMBER, stroke: INK, strokeWidth: 2.5 }),
+ shape('ellipse', { x: 1106, y: 336, w: 24, h: 24, fill: SHU, stroke: INK, strokeWidth: 2.5 }),
text({ x: 435, y: 280, w: 160, h: 26, html: 'DRAFTED', fontSize: 13, fontWeight: 700, letterSpacing: 1.5, color: INK_SOFT, align: 'center' }),
text({ x: 874, y: 532, w: 160, h: 26, html: 'REVIEWED', fontSize: 13, fontWeight: 700, letterSpacing: 1.5, color: INK_SOFT, align: 'center' }),
- text({ x: 1038, y: 292, w: 160, h: 26, html: 'SHIPPED', fontSize: 13, fontWeight: 700, letterSpacing: 1.5, color: AMBER_DEEP, align: 'center' }),
+ text({ x: 1038, y: 292, w: 160, h: 26, html: 'SHIPPED', fontSize: 13, fontWeight: 700, letterSpacing: 1.5, color: SHU_DEEP, align: 'center' }),
// tiles parked as a pill, bottom-right
shape('rect', { id: T_D, x: 1044, y: 612, w: 140, h: 44, radius: 22, fill: '#FFFFFF', stroke: CARD_STROKE, strokeWidth: 1.5 }),
- shape('rect', { id: T_B, x: 1062, y: 626, w: 18, h: 18, radius: 6, fill: BLUE }),
- shape('rect', { id: T_A, x: 1088, y: 626, w: 18, h: 18, radius: 6, fill: AMBER }),
+ shape('rect', { id: T_B, x: 1062, y: 626, w: 18, h: 18, radius: 6, fill: INDIGO }),
+ shape('rect', { id: T_A, x: 1088, y: 626, w: 18, h: 18, radius: 6, fill: SHU }),
shape('rect', { id: T_C, x: 1114, y: 626, w: 18, h: 18, radius: 6, fill: TILE_PAPER }),
text({
x: 96, y: 624, w: 800, h: 26,
@@ -651,7 +656,94 @@ export function starterDoc(): BentoDoc {
],
}),
- // ── 8 · HOVER FOCUS ────────────────────────────────────────────────────
+
+ // ── 8 · CHOREOGRAPHY (base + two hidden states) ───────────────────────
+ ...(() => {
+ type Scene = {
+ id: string; step: string; label: string; chip: string; to: string
+ blocks: Array<Partial<ShapeElement> & { id: string }>
+ }
+ const SCENES: Scene[] = [
+ {
+ id: S_CHOREO, step: '01', label: 'a tidy grid', chip: 'Play scene 2 →', to: S_CHOREO_2,
+ blocks: [
+ { id: T_D, x: 96, y: 240, w: 200, h: 170, radius: 18, fill: PANEL, fillGradient: GRAD_CARD },
+ { id: T_B, x: 316, y: 240, w: 200, h: 170, radius: 18, fill: INDIGO, fillGradient: GRAD_INDIGO },
+ { id: T_A, x: 536, y: 240, w: 200, h: 170, radius: 18, fill: SHU, fillGradient: GRAD_SHU },
+ { id: T_C, x: 96, y: 430, w: 200, h: 170, radius: 18, fill: TILE_PAPER, fillGradient: GRAD_PAPER },
+ { id: 'sd-ch-e', x: 316, y: 430, w: 200, h: 170, radius: 18, fill: SHU_SOFT },
+ { id: 'sd-ch-f', x: 536, y: 430, w: 200, h: 170, radius: 18, fill: INDIGO_SOFT },
+ ],
+ },
+ {
+ id: S_CHOREO_2, step: '02', label: 'a loose cascade', chip: 'Play scene 3 →', to: S_CHOREO_3,
+ blocks: [
+ { id: T_D, x: 110, y: 216, w: 110, h: 110, radius: 30, fill: PANEL, fillGradient: GRAD_CARD },
+ { id: T_B, x: 252, y: 286, w: 150, h: 150, radius: 38, fill: INDIGO, fillGradient: GRAD_INDIGO },
+ { id: T_A, x: 430, y: 372, w: 210, h: 150, radius: 24, fill: SHU, fillGradient: GRAD_SHU, rotation: 7 },
+ { id: T_C, x: 188, y: 476, w: 84, h: 84, radius: 24, fill: TILE_PAPER, fillGradient: GRAD_PAPER },
+ { id: 'sd-ch-e', x: 620, y: 236, w: 120, h: 190, radius: 34, fill: SHU_SOFT, rotation: -6 },
+ { id: 'sd-ch-f', x: 520, y: 566, w: 240, h: 70, radius: 22, fill: INDIGO_SOFT },
+ ],
+ },
+ {
+ id: S_CHOREO_3, step: '03', label: 'a data skyline', chip: '↺ Back to scene 1', to: S_CHOREO,
+ blocks: [
+ { id: T_D, x: 96, y: 420, w: 104, h: 220, radius: 12, fill: '#2A3850' },
+ { id: T_B, x: 224, y: 330, w: 104, h: 310, radius: 12, fill: INDIGO_SOFT },
+ { id: T_A, x: 352, y: 240, w: 104, h: 400, radius: 12, fill: SHU, fillGradient: GRAD_SHU },
+ { id: T_C, x: 480, y: 460, w: 104, h: 180, radius: 12, fill: '#FFFFFF' },
+ { id: 'sd-ch-e', x: 608, y: 360, w: 104, h: 280, radius: 12, fill: SHU_SOFT },
+ { id: 'sd-ch-f', x: 736, y: 500, w: 104, h: 140, radius: 12, fill: INDIGO },
+ ],
+ },
+ ]
+ return SCENES.map((scene, si) =>
+ slide({
+ id: scene.id,
+ ...(si > 0 ? { stateOf: S_CHOREO, name: `scene ${scene.step}` } : {}),
+ notes: si === 0
+ ? 'Click the button: each scene is a hidden STATE slide — same six elements, a new arrangement, ' +
+ 'and morph animates the whole choreography. Arrow keys skip the states; only clicks reach them.'
+ : `Scene ${scene.step}. Same elements as scene 1 — position, size, color, radius and rotation all morphing at once.`,
+ elements: [
+ grain(),
+ glow(105, [
+ { at: 0, color: 'rgba(226,80,45,0.12)' },
+ { at: 0.55, color: 'rgba(15,23,36,0)' },
+ { at: 1, color: 'rgba(61,90,133,0.16)' },
+ ]),
+ kicker('INTERACTIVE STATES'),
+ ...furniture('08', true),
+ title('One cast. Three scenes.', { color: '#FFFFFF' }),
+ ...scene.blocks.map((b) => shape('rect', { shadow: { y: 12, blur: 30, color: 'rgba(0,0,0,0.35)' }, ...b } as Partial<ShapeElement>)),
+ text({
+ id: 'sd-ch-step', x: 864, y: 216, w: 320, h: 170, html: scene.step, align: 'right',
+ fontSize: 140, fontWeight: 900, fontFamily: DISPLAY, color: 'rgba(255,255,255,0.14)',
+ }),
+ text({
+ id: 'sd-ch-cap', x: 864, y: 400, w: 320, h: 30, html: scene.label, align: 'right',
+ fontSize: 19, fontWeight: 600, color: MIST,
+ }),
+ shape('rect', {
+ id: 'sd-ch-btn', x: 964, y: 452, w: 220, h: 52, radius: 26, fill: SHU, fillGradient: GRAD_SHU,
+ shadow: { y: 10, blur: 26, color: 'rgba(226,80,45,0.35)' }, link: scene.to,
+ }),
+ text({
+ id: 'sd-ch-btnlabel', x: 964, y: 466, w: 220, h: 28, html: scene.chip, align: 'center',
+ fontSize: 16, fontWeight: 700, color: '#FFFFFF', link: scene.to,
+ }),
+ text({
+ x: 96, y: 660, w: 800, h: 26,
+ html: 'Every scene is an ordinary slide — arrange elements, link a button, done.',
+ fontSize: 14, fontWeight: 500, color: 'rgba(182,193,210,0.6)',
+ }),
+ ],
+ }),
+ )
+ })(),
+
+ // ── 9 · HOVER FOCUS ────────────────────────────────────────────────────
slide({
hover: { type: 'focus-group', dim: 0.22 },
notes:
@@ -660,16 +752,16 @@ export function starterDoc(): BentoDoc {
elements: [
grain(),
glow(160, [
- { at: 0, color: 'rgba(86,120,196,0.16)' },
- { at: 1, color: 'rgba(237,161,47,0.12)' },
+ { at: 0, color: 'rgba(61,90,133,0.16)' },
+ { at: 1, color: 'rgba(226,80,45,0.12)' },
]),
kicker('FOCUS'),
- ...furniture('08', true),
+ ...furniture('09', true),
title('Point, and the room dims.', { color: '#FFFFFF' }),
- shape('rect', { id: T_D, x: 96, y: 186, w: 64, h: 6, radius: 3, fill: AMBER }),
+ shape('rect', { id: T_D, x: 96, y: 186, w: 64, h: 6, radius: 3, fill: SHU }),
// card 1 — one file
shape('rect', { x: 96, y: 228, w: 336, h: 336, radius: 18, fill: PANEL, stroke: GLASS, strokeWidth: 1, group: 'g-file' }),
- shape('rect', { id: T_A, x: 128, y: 260, w: 52, h: 52, radius: 14, fill: AMBER, group: 'g-file' }),
+ shape('rect', { id: T_A, x: 128, y: 260, w: 52, h: 52, radius: 14, fill: SHU, group: 'g-file' }),
text({ x: 128, y: 342, w: 272, h: 32, html: 'One file', fontSize: 21, fontWeight: 700, color: '#FFFFFF', group: 'g-file' }),
text({
x: 128, y: 384, w: 272, h: 140,
@@ -678,7 +770,7 @@ export function starterDoc(): BentoDoc {
}),
// card 2 — morph
shape('rect', { x: 472, y: 228, w: 336, h: 336, radius: 18, fill: PANEL, stroke: GLASS, strokeWidth: 1, group: 'g-morph' }),
- shape('rect', { id: T_B, x: 504, y: 260, w: 52, h: 52, radius: 14, fill: BLUE, group: 'g-morph' }),
+ shape('rect', { id: T_B, x: 504, y: 260, w: 52, h: 52, radius: 14, fill: INDIGO, group: 'g-morph' }),
text({ x: 504, y: 342, w: 272, h: 32, html: 'Morph everything', fontSize: 21, fontWeight: 700, color: '#FFFFFF', group: 'g-morph' }),
text({
x: 504, y: 384, w: 272, h: 140,
@@ -701,7 +793,7 @@ export function starterDoc(): BentoDoc {
],
}),
- // ── 9 · MARKDOWN ───────────────────────────────────────────────────────
+ // ── 10 · MARKDOWN ───────────────────────────────────────────────────────
slide({
background: PAPER,
notes:
@@ -709,32 +801,32 @@ export function starterDoc(): BentoDoc {
'⌘B/I/U work too, backslash escapes, and ⌘Z right after a conversion restores your literal characters.',
elements: [
dots(false),
- ghost('09'),
- kicker('WRITING', { color: AMBER_DEEP }),
- ...furniture('09', false),
+ ghost('10'),
+ kicker('WRITING', { color: SHU_DEEP }),
+ ...furniture('10', false),
title('Type markdown, get typography.'),
- shape('rect', { id: T_A, x: 96, y: 186, w: 64, h: 6, radius: 3, fill: AMBER }),
- shape('rect', { id: T_C, x: 96, y: 228, w: 520, h: 372, radius: 18, fill: '#FFFFFF', stroke: CARD_STROKE, strokeWidth: 1.5 }),
- text({ x: 128, y: 256, w: 300, h: 22, html: 'YOU TYPE', fontSize: 12, fontWeight: 700, color: AMBER_DEEP, letterSpacing: 3 }),
+ shape('rect', { id: T_A, x: 96, y: 186, w: 64, h: 6, radius: 3, fill: SHU }),
+ shape('rect', { id: T_C, x: 96, y: 228, w: 520, h: 372, radius: 18, fill: '#FFFFFF', stroke: CARD_STROKE, strokeWidth: 1.5, shadow: { y: 12, blur: 30, color: 'rgba(30,42,58,0.10)' } }),
+ text({ x: 128, y: 256, w: 300, h: 22, html: 'YOU TYPE', fontSize: 12, fontWeight: 700, color: SHU_DEEP, letterSpacing: 3 }),
text({
x: 128, y: 300, w: 460, h: 260,
html: '<code>**instant** *formatting*</code><br><code>- bullets as you type</code><br><code>`code` and ~~strike~~</code>',
fontSize: 21, color: INK, lineHeight: 2.15,
}),
shape('line', { x: 636, y: 400, w: 116, h: 8, fill: 'rgba(30,42,58,0.5)', strokeWidth: 2.5, lineEnd: 'arrow' }),
- shape('rect', { id: T_D, x: 772, y: 228, w: 412, h: 372, radius: 18, fill: PANEL, stroke: GLASS, strokeWidth: 1 }),
- text({ x: 804, y: 256, w: 300, h: 22, html: 'YOU GET', fontSize: 12, fontWeight: 700, color: AMBER, letterSpacing: 3 }),
+ shape('rect', { id: T_D, x: 772, y: 228, w: 412, h: 372, radius: 18, fill: PANEL, shadow: { y: 12, blur: 30, color: 'rgba(30,42,58,0.16)' } }),
+ text({ x: 804, y: 256, w: 300, h: 22, html: 'YOU GET', fontSize: 12, fontWeight: 700, color: SHU, letterSpacing: 3 }),
text({
x: 804, y: 300, w: 350, h: 260,
html: '<b>instant</b> <i>formatting</i><br>•&nbsp; bullets as you type<br><code>code</code> and <s>strike</s>',
fontSize: 21, fontWeight: 500, color: '#FFFFFF', lineHeight: 2.15,
}),
- shape('rect', { id: T_B, x: 1130, y: 116, w: 54, h: 30, radius: 15, fill: BLUE }),
+ shape('rect', { id: T_B, x: 1130, y: 116, w: 54, h: 30, radius: 15, fill: INDIGO }),
text({ x: 1130, y: 122, w: 54, h: 20, html: '⌘B', fontSize: 13, fontWeight: 700, color: '#FFFFFF', align: 'center' }),
],
}),
- // ── 10 · CLOSE ─────────────────────────────────────────────────────────
+ // ── 11 · CLOSE ─────────────────────────────────────────────────────────
slide({
notes:
'The cast reassembles into the logo. Press Esc — this deck is already your copy of the app: ' +
@@ -742,9 +834,9 @@ export function starterDoc(): BentoDoc {
elements: [
grain(),
glow(0, [
- { at: 0, color: 'rgba(237,161,47,0.14)' },
+ { at: 0, color: 'rgba(226,80,45,0.14)' },
{ at: 0.55, color: 'rgba(15,23,36,0)' },
- { at: 1, color: 'rgba(86,120,196,0.16)' },
+ { at: 1, color: 'rgba(61,90,133,0.16)' },
]),
// atmosphere mirrors the title: auroras breathing, tiles adrift
dots(true, { ambient: 'kenburns', ken: { dir: 'out', scale: 1.35, duration: 3.2 } }),
@@ -771,10 +863,10 @@ export function starterDoc(): BentoDoc {
bokeh(900, 478, 8, true, 0.18, 20, 9, 18),
shape('rect', {
id: T_D, x: 500, y: 120, w: 280, h: 280, radius: 52, fill: PANEL, fillGradient: GRAD_CARD,
- stroke: 'rgba(255,255,255,0.14)', strokeWidth: 1,
+ shadow: { y: 30, blur: 70, color: 'rgba(0,0,0,0.55)' },
}),
- shape('rect', { id: T_B, x: 532, y: 152, w: 70, h: 216, radius: 14, fill: BLUE, fillGradient: GRAD_BLUE }),
- shape('rect', { id: T_A, x: 618, y: 152, w: 130, h: 96, radius: 14, fill: AMBER, fillGradient: GRAD_AMBER }),
+ shape('rect', { id: T_B, x: 532, y: 152, w: 70, h: 216, radius: 14, fill: INDIGO, fillGradient: GRAD_INDIGO }),
+ shape('rect', { id: T_A, x: 618, y: 152, w: 130, h: 96, radius: 14, fill: SHU, fillGradient: GRAD_SHU }),
shape('rect', { id: T_C, x: 618, y: 260, w: 130, h: 108, radius: 14, fill: TILE_PAPER, fillGradient: GRAD_PAPER }),
kicker('YOUR TURN', { x: 340, y: 452, w: 600, h: 24, align: 'center' }),
title('Make it yours.', {
@@ -786,7 +878,7 @@ export function starterDoc(): BentoDoc {
html: 'Press <b>Esc</b> — this deck is already your copy of the editor.',
fontSize: 17, fontWeight: 500, color: MIST, align: 'center',
}),
- shape('rect', { x: 562, y: 644, w: 156, h: 44, radius: 22, fill: AMBER, fillGradient: GRAD_AMBER, stroke: 'rgba(255,255,255,0.25)', strokeWidth: 1 }),
+ shape('rect', { x: 562, y: 644, w: 156, h: 44, radius: 22, fill: SHU, fillGradient: GRAD_SHU, shadow: { y: 10, blur: 26, color: 'rgba(226,80,45,0.4)' } }),
text({
x: 562, y: 655, w: 156, h: 24, html: 'bento.page', fontSize: 16, fontWeight: 700,
color: INK, align: 'center',