Major update: synth styles, gradient sets, export dialogs, glass UI, docs
- Synth styles: blend any two renderers with five mix operations into brand-new generated looks, savable to localStorage as style chips - Share codes bumped to v2 (synth fields), v1 codes still decode - Gradient set generator: 4-12 seed variations with preview grid and ZIP batch download via a dependency-free store-only ZIP writer - Export buttons now open dialogs with live preview and settings - UI redesign: glassy translucent surfaces, rounder geometry, staggered intro animation, hover micro-interactions, refined scrollbars - Docs page, generated favicon/touch icons and OG image, meta tags - Skip chromatic aberration during synth blends to keep the D3D shader linker under its inlining limit Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+272
-39
@@ -6,22 +6,24 @@
|
||||
:root {
|
||||
--bg: #09090b;
|
||||
--bg-stage: #0c0c0f;
|
||||
--bg-rail: #101013;
|
||||
--bg-raised: #16161a;
|
||||
--bg-hover: #1c1c21;
|
||||
--line: #222228;
|
||||
--line-soft: #1a1a1f;
|
||||
--bg-rail: rgba(17, 17, 21, 0.82);
|
||||
--bg-raised: rgba(255, 255, 255, 0.045);
|
||||
--bg-hover: rgba(255, 255, 255, 0.09);
|
||||
--line: rgba(255, 255, 255, 0.10);
|
||||
--line-soft: rgba(255, 255, 255, 0.06);
|
||||
--glass-hi: rgba(255, 255, 255, 0.14);
|
||||
--text: #ececef;
|
||||
--text-mid: #9b9ba4;
|
||||
--text-dim: #5e5e68;
|
||||
--focus: #d7d7de;
|
||||
--radius-s: 6px;
|
||||
--radius-m: 9px;
|
||||
--radius-s: 9px;
|
||||
--radius-m: 13px;
|
||||
--radius-l: 18px;
|
||||
--font-ui: "Inter", -apple-system, "Segoe UI", sans-serif;
|
||||
--font-display: "Space Grotesk", var(--font-ui);
|
||||
--font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
|
||||
--topbar-h: 52px;
|
||||
--rail-w: 308px;
|
||||
--topbar-h: 54px;
|
||||
--rail-w: 312px;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
@@ -51,7 +53,9 @@ button { font: inherit; color: inherit; cursor: pointer; background: none; borde
|
||||
justify-content: space-between;
|
||||
padding: 0 14px 0 18px;
|
||||
border-bottom: 1px solid var(--line-soft);
|
||||
background: var(--bg);
|
||||
background: rgba(12, 12, 15, 0.75);
|
||||
backdrop-filter: blur(18px) saturate(1.2);
|
||||
-webkit-backdrop-filter: blur(18px) saturate(1.2);
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
}
|
||||
@@ -82,27 +86,48 @@ button { font: inherit; color: inherit; cursor: pointer; background: none; borde
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
height: 32px;
|
||||
padding: 0 13px;
|
||||
height: 33px;
|
||||
padding: 0 14px;
|
||||
border-radius: var(--radius-s);
|
||||
border: 1px solid var(--line);
|
||||
background: var(--bg-raised);
|
||||
background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
|
||||
box-shadow: inset 0 1px 0 var(--glass-hi), 0 1px 3px rgba(0,0,0,0.3);
|
||||
color: var(--text);
|
||||
font-size: 12.5px;
|
||||
font-weight: 500;
|
||||
transition: background 130ms ease, border-color 130ms ease, transform 80ms ease;
|
||||
text-decoration: none;
|
||||
transition: background 160ms ease, border-color 160ms ease, transform 140ms cubic-bezier(.34,1.56,.64,1), box-shadow 160ms ease;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.btn svg { width: 14px; height: 14px; flex: none; }
|
||||
.btn:hover { background: var(--bg-hover); border-color: #2e2e36; }
|
||||
.btn:active { transform: translateY(1px); }
|
||||
.btn svg { width: 14px; height: 14px; flex: none; transition: transform 220ms cubic-bezier(.34,1.56,.64,1); }
|
||||
.btn:hover {
|
||||
background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
|
||||
border-color: rgba(255,255,255,0.20);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: inset 0 1px 0 var(--glass-hi), 0 6px 16px -6px rgba(0,0,0,0.55);
|
||||
}
|
||||
.btn:hover svg { transform: scale(1.18) rotate(-4deg); }
|
||||
.btn:active { transform: translateY(0.5px) scale(0.98); }
|
||||
|
||||
.btn-primary {
|
||||
background: var(--text);
|
||||
border-color: var(--text);
|
||||
background: linear-gradient(180deg, #ffffff, #dfdfe6);
|
||||
border-color: rgba(255,255,255,0.85);
|
||||
color: #0a0a0c;
|
||||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 8px -2px rgba(255,255,255,0.18);
|
||||
}
|
||||
.btn-primary:hover { background: #fff; border-color: #fff; }
|
||||
.btn-primary:hover {
|
||||
background: linear-gradient(180deg, #ffffff, #f2f2f6);
|
||||
border-color: #fff;
|
||||
box-shadow: inset 0 1px 0 #fff, 0 8px 22px -6px rgba(255,255,255,0.28);
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
color: var(--text-mid);
|
||||
}
|
||||
.btn-ghost:hover { color: var(--text); background: var(--bg-hover); border-color: var(--line); }
|
||||
|
||||
.icon-btn {
|
||||
width: 28px; height: 28px;
|
||||
@@ -165,11 +190,12 @@ button { font: inherit; color: inherit; cursor: pointer; background: none; borde
|
||||
#view {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
border-radius: 10px;
|
||||
border-radius: var(--radius-l);
|
||||
box-shadow:
|
||||
0 0 0 1px rgba(255,255,255,0.055),
|
||||
0 24px 70px -18px rgba(0,0,0,0.85),
|
||||
0 6px 22px -8px rgba(0,0,0,0.6);
|
||||
0 0 0 1px rgba(255,255,255,0.07),
|
||||
inset 0 1px 0 rgba(255,255,255,0.08),
|
||||
0 30px 80px -20px rgba(0,0,0,0.9),
|
||||
0 8px 26px -10px rgba(0,0,0,0.65);
|
||||
background: #000;
|
||||
}
|
||||
|
||||
@@ -190,14 +216,23 @@ button { font: inherit; color: inherit; cursor: pointer; background: none; borde
|
||||
width: var(--rail-w);
|
||||
flex: none;
|
||||
background: var(--bg-rail);
|
||||
backdrop-filter: blur(22px) saturate(1.25);
|
||||
-webkit-backdrop-filter: blur(22px) saturate(1.25);
|
||||
border-left: 1px solid var(--line-soft);
|
||||
box-shadow: inset 1px 0 0 rgba(255,255,255,0.03);
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #26262d transparent;
|
||||
scrollbar-color: rgba(255,255,255,0.14) transparent;
|
||||
}
|
||||
.rail::-webkit-scrollbar { width: 8px; }
|
||||
.rail::-webkit-scrollbar-thumb { background: #26262d; border-radius: 4px; border: 2px solid var(--bg-rail); }
|
||||
.rail::-webkit-scrollbar { width: 9px; }
|
||||
.rail::-webkit-scrollbar-thumb {
|
||||
background: rgba(255,255,255,0.12);
|
||||
border-radius: 5px;
|
||||
border: 3px solid transparent;
|
||||
background-clip: content-box;
|
||||
}
|
||||
.rail::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); background-clip: content-box; }
|
||||
|
||||
.rail-section { border-bottom: 1px solid var(--line-soft); padding: 14px 16px 17px; }
|
||||
.rail-section:last-child { border-bottom: none; padding-bottom: 28px; }
|
||||
@@ -242,16 +277,21 @@ button { font: inherit; color: inherit; cursor: pointer; background: none; borde
|
||||
padding: 9px 2px 8px;
|
||||
border-radius: var(--radius-s);
|
||||
border: 1px solid var(--line-soft);
|
||||
background: var(--bg-raised);
|
||||
background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
|
||||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
|
||||
color: var(--text-dim);
|
||||
transition: border-color 130ms ease, color 130ms ease, background 130ms ease;
|
||||
transition: border-color 160ms ease, color 160ms ease, background 160ms ease,
|
||||
transform 180ms cubic-bezier(.34,1.56,.64,1);
|
||||
}
|
||||
.mode-card svg { width: 26px; height: 18px; }
|
||||
.mode-card svg { width: 26px; height: 18px; transition: transform 220ms cubic-bezier(.34,1.56,.64,1); }
|
||||
.mode-card span { font-size: 10px; font-weight: 500; letter-spacing: 0.02em; }
|
||||
.mode-card:hover { color: var(--text-mid); border-color: #2c2c33; }
|
||||
.mode-card:hover { color: var(--text-mid); border-color: rgba(255,255,255,0.16); transform: translateY(-1.5px); }
|
||||
.mode-card:hover svg { transform: scale(1.15); }
|
||||
.mode-card:active { transform: scale(0.96); }
|
||||
.mode-card.active {
|
||||
border-color: #4a4a55;
|
||||
background: #1d1d23;
|
||||
border-color: rgba(255,255,255,0.34);
|
||||
background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.05));
|
||||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 14px -6px rgba(0,0,0,0.6);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
@@ -494,18 +534,25 @@ select { cursor: pointer; appearance: none; padding-right: 22px;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
height: 38px;
|
||||
padding: 0 13px;
|
||||
height: 40px;
|
||||
padding: 0 14px;
|
||||
border-radius: var(--radius-s);
|
||||
border: 1px solid var(--line);
|
||||
background: var(--bg-raised);
|
||||
background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
|
||||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
|
||||
color: var(--text);
|
||||
font-size: 12.5px;
|
||||
font-weight: 500;
|
||||
transition: background 130ms ease, border-color 130ms ease;
|
||||
transition: background 160ms ease, border-color 160ms ease,
|
||||
transform 160ms cubic-bezier(.34,1.56,.64,1), box-shadow 160ms ease;
|
||||
}
|
||||
.export-btn svg { width: 14px; height: 14px; color: var(--text-mid); }
|
||||
.export-btn:hover { background: var(--bg-hover); border-color: #2e2e36; }
|
||||
.export-btn svg { width: 14px; height: 14px; color: var(--text-mid); transition: transform 220ms cubic-bezier(.34,1.56,.64,1), color 160ms ease; }
|
||||
.export-btn:hover {
|
||||
background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04));
|
||||
border-color: rgba(255,255,255,0.2);
|
||||
transform: translateX(2px);
|
||||
}
|
||||
.export-btn:hover svg { transform: scale(1.2); color: var(--text); }
|
||||
.export-btn .ext {
|
||||
margin-left: auto;
|
||||
font-family: var(--font-mono);
|
||||
@@ -599,6 +646,192 @@ select { cursor: pointer; appearance: none; padding-right: 22px;
|
||||
.canvas-frame { padding: 18px; }
|
||||
}
|
||||
|
||||
/* ---------- synth + saved styles ---------- */
|
||||
|
||||
.synth-row { margin-top: 10px; }
|
||||
.synth-ctl { margin-top: 8px; }
|
||||
.mini-btn svg { width: 12px; height: 12px; margin-right: 2px; transition: transform 220ms cubic-bezier(.34,1.56,.64,1); }
|
||||
.mini-btn:hover svg { transform: rotate(8deg) scale(1.15); }
|
||||
|
||||
.saved-styles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
|
||||
.saved-styles:empty { display: none; }
|
||||
.saved-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
height: 25px;
|
||||
padding: 0 5px 0 10px;
|
||||
border-radius: 13px;
|
||||
border: 1px solid var(--line);
|
||||
background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
|
||||
color: var(--text-mid);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
letter-spacing: 0.03em;
|
||||
transition: color 150ms ease, border-color 150ms ease, transform 150ms cubic-bezier(.34,1.56,.64,1);
|
||||
}
|
||||
.saved-chip:hover { color: var(--text); border-color: rgba(255,255,255,0.22); transform: translateY(-1px); }
|
||||
.saved-del {
|
||||
width: 15px; height: 15px;
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
border-radius: 50%;
|
||||
font-size: 11px;
|
||||
color: var(--text-dim);
|
||||
transition: background 130ms ease, color 130ms ease;
|
||||
}
|
||||
.saved-del:hover { background: rgba(255,80,80,0.18); color: #ff8d8d; }
|
||||
|
||||
/* ---------- modals ---------- */
|
||||
|
||||
.modal-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 40;
|
||||
background: rgba(5,5,8,0.6);
|
||||
backdrop-filter: blur(10px) saturate(1.1);
|
||||
-webkit-backdrop-filter: blur(10px) saturate(1.1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
animation: backdrop-in 220ms ease;
|
||||
}
|
||||
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
|
||||
|
||||
.modal-card {
|
||||
width: min(560px, 100%);
|
||||
max-height: 88vh;
|
||||
overflow-y: auto;
|
||||
background: rgba(20, 20, 25, 0.92);
|
||||
backdrop-filter: blur(26px) saturate(1.3);
|
||||
-webkit-backdrop-filter: blur(26px) saturate(1.3);
|
||||
border: 1px solid rgba(255,255,255,0.12);
|
||||
border-radius: var(--radius-l);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255,255,255,0.12),
|
||||
0 40px 110px -24px rgba(0,0,0,0.95);
|
||||
padding: 20px 22px 22px;
|
||||
animation: card-in 320ms cubic-bezier(.22,1.3,.36,1);
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: rgba(255,255,255,0.14) transparent;
|
||||
}
|
||||
@keyframes card-in {
|
||||
from { opacity: 0; transform: scale(1.06) translateY(10px); }
|
||||
to { opacity: 1; transform: scale(1) translateY(0); }
|
||||
}
|
||||
.modal-card::-webkit-scrollbar { width: 9px; }
|
||||
.modal-card::-webkit-scrollbar-thumb {
|
||||
background: rgba(255,255,255,0.12);
|
||||
border-radius: 5px;
|
||||
border: 3px solid transparent;
|
||||
background-clip: content-box;
|
||||
}
|
||||
|
||||
.modal-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.modal-title {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
.modal-sub { font-size: 10.5px; color: var(--text-dim); margin-top: 3px; }
|
||||
.modal-close {
|
||||
width: 28px; height: 28px;
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
border-radius: 8px;
|
||||
color: var(--text-dim);
|
||||
transition: background 130ms ease, color 130ms ease, transform 160ms ease;
|
||||
}
|
||||
.modal-close svg { width: 11px; height: 11px; }
|
||||
.modal-close:hover { background: var(--bg-hover); color: var(--text); transform: rotate(90deg); }
|
||||
|
||||
.modal-preview {
|
||||
position: relative;
|
||||
border-radius: var(--radius-m);
|
||||
overflow: hidden;
|
||||
margin-bottom: 16px;
|
||||
box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 12px 30px -12px rgba(0,0,0,0.7);
|
||||
}
|
||||
.modal-preview canvas { display: block; width: 100%; height: auto; }
|
||||
.modal-preview-meta {
|
||||
position: absolute;
|
||||
left: 10px; bottom: 8px;
|
||||
font-size: 10px;
|
||||
color: rgba(255,255,255,0.92);
|
||||
background: rgba(8,8,12,0.55);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
padding: 4px 9px;
|
||||
border-radius: 7px;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.modal-form { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
|
||||
.modal-note {
|
||||
font-size: 11.5px;
|
||||
color: var(--text-mid);
|
||||
line-height: 1.55;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.modal-actions { display: flex; justify-content: flex-end; }
|
||||
.modal-dl { height: 38px; padding: 0 18px; font-size: 13px; }
|
||||
.modal-dl svg { width: 14px; height: 14px; }
|
||||
.modal-dl:disabled { opacity: 0.55; pointer-events: none; }
|
||||
|
||||
/* ---------- set generator grid ---------- */
|
||||
|
||||
.set-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 8px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.set-tile {
|
||||
position: relative;
|
||||
border-radius: var(--radius-s);
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
padding: 0;
|
||||
transition: transform 180ms cubic-bezier(.34,1.56,.64,1), border-color 160ms ease, box-shadow 160ms ease;
|
||||
}
|
||||
.set-tile canvas { display: block; width: 100%; height: auto; }
|
||||
.set-tile:hover {
|
||||
transform: scale(1.045);
|
||||
border-color: rgba(255,255,255,0.45);
|
||||
box-shadow: 0 10px 24px -10px rgba(0,0,0,0.8);
|
||||
z-index: 1;
|
||||
}
|
||||
.set-tile-label {
|
||||
position: absolute;
|
||||
left: 6px; bottom: 5px;
|
||||
font-size: 9px;
|
||||
color: rgba(255,255,255,0.9);
|
||||
background: rgba(8,8,12,0.55);
|
||||
padding: 2px 6px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
/* ---------- intro stagger animation ---------- */
|
||||
|
||||
@keyframes intro-pop {
|
||||
0% { opacity: 0; transform: scale(1.5) translateY(-6px); filter: blur(5px); }
|
||||
60% { opacity: 1; filter: blur(0); }
|
||||
100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
|
||||
}
|
||||
.intro .topbar > *,
|
||||
.intro .rail-section,
|
||||
.intro .stage-meta,
|
||||
.intro .canvas-frame {
|
||||
animation: intro-pop 640ms cubic-bezier(.22,1.25,.36,1) both;
|
||||
animation-delay: var(--intro-d, 0ms);
|
||||
}
|
||||
.intro .canvas-frame { animation-duration: 800ms; }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
* { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user