Initial commit: design tokens and dense-tool UI sketches
This commit is contained in:
@@ -0,0 +1,114 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Palette — airy soft</title>
|
||||
<link rel="stylesheet" href="../themes/tokens.css">
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
line-height: 1.6;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.wrap { max-width: 720px; margin: 0 auto; padding: 48px 24px; }
|
||||
header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; }
|
||||
.logo { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
|
||||
.logo span { color: var(--muted-fg); font-weight: 400; }
|
||||
nav a { color: var(--muted-fg); text-decoration: none; margin-left: 20px; font-size: 14px; }
|
||||
nav a:hover { color: var(--fg); }
|
||||
h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
|
||||
.sub { color: var(--muted-fg); font-size: 14px; margin-bottom: 28px; }
|
||||
.card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: 0 1px 2px rgba(42,42,54,0.04), 0 8px 24px rgba(42,42,54,0.05);
|
||||
overflow: hidden;
|
||||
}
|
||||
.field { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
|
||||
.field label { font-size: 13px; color: var(--muted-fg); width: 90px; flex-shrink: 0; }
|
||||
.field input, .field select {
|
||||
border: none; outline: none; background: transparent; color: var(--fg);
|
||||
font: inherit; font-size: 14px; width: 100%;
|
||||
}
|
||||
.editor {
|
||||
min-height: 320px; padding: 18px;
|
||||
font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65;
|
||||
white-space: pre-wrap; outline: none; color: var(--fg);
|
||||
}
|
||||
.editor:empty::before { content: "Paste your code, text, or notes here…"; color: var(--muted); }
|
||||
.foot {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 14px 18px; background: var(--surface-2); border-top: 1px solid var(--border);
|
||||
}
|
||||
.opts { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted-fg); flex-wrap: wrap; }
|
||||
.chip {
|
||||
padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border);
|
||||
background: var(--surface); cursor: pointer; font-size: 12.5px; color: var(--muted-fg);
|
||||
transition: all .15s ease;
|
||||
}
|
||||
.chip:hover { border-color: var(--muted); color: var(--fg); }
|
||||
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
|
||||
.btn {
|
||||
background: var(--accent); color: var(--bg); border: none; cursor: pointer;
|
||||
padding: 10px 22px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 550;
|
||||
transition: filter .15s ease;
|
||||
}
|
||||
.btn:hover { filter: brightness(1.08); }
|
||||
/* preset switcher */
|
||||
.presets { position: fixed; bottom: 20px; right: 20px; display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; box-shadow: 0 4px 16px rgba(42,42,54,.12); }
|
||||
.presets button { border: none; background: transparent; cursor: pointer; font: inherit; font-size: 12px; color: var(--muted-fg); padding: 4px 10px; border-radius: 999px; }
|
||||
.presets button.on { background: var(--accent); color: var(--bg); }
|
||||
</style>
|
||||
</head>
|
||||
<body data-preset="smooth">
|
||||
<div class="wrap">
|
||||
<header>
|
||||
<div class="logo">Palette <span>/ beta</span></div>
|
||||
<nav><a href="#">history</a><a href="#">api</a></nav>
|
||||
</header>
|
||||
|
||||
<h1>New paste</h1>
|
||||
<p class="sub">Drag files in to start a can. Everything expires when you tell it to.</p>
|
||||
|
||||
<div class="card">
|
||||
<div class="field">
|
||||
<label>Title</label>
|
||||
<input placeholder="Untitled paste">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>Language</label>
|
||||
<select><option>Auto-detect</option><option>Go</option><option>Python</option><option>Plain text</option></select>
|
||||
</div>
|
||||
<div class="editor" contenteditable="true"></div>
|
||||
<div class="foot">
|
||||
<div class="opts">
|
||||
<button class="chip" onclick="this.classList.toggle('on')">🔒 password</button>
|
||||
<button class="chip on" onclick="this.classList.toggle('on')">1 week</button>
|
||||
<button class="chip" onclick="this.classList.toggle('on')">30 days</button>
|
||||
<button class="chip" onclick="this.classList.toggle('on')">burn after read</button>
|
||||
</div>
|
||||
<button class="btn">Create paste</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="presets">
|
||||
<button class="on" onclick="setPreset('smooth', this)">smooth</button>
|
||||
<button onclick="setPreset('midnight', this)">midnight</button>
|
||||
<button onclick="setPreset('sage', this)">sage</button>
|
||||
</div>
|
||||
<script>
|
||||
function setPreset(p, btn) {
|
||||
document.body.dataset.preset = p;
|
||||
document.querySelectorAll('.presets button').forEach(b => b.classList.remove('on'));
|
||||
btn.classList.add('on');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,160 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Palette — dense tool</title>
|
||||
<link rel="stylesheet" href="../themes/tokens.css">
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
line-height: 1.45;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
min-height: 100vh;
|
||||
font-size: 14px;
|
||||
}
|
||||
.shell { max-width: 1100px; margin: 0 auto; }
|
||||
.topbar {
|
||||
display: flex; align-items: center; gap: 20px;
|
||||
padding: 0 20px; height: 52px;
|
||||
background: var(--surface); border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.logo { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
|
||||
.logo em { font-style: normal; color: var(--muted-fg); font-weight: 400; }
|
||||
.topbar nav { display: flex; gap: 4px; }
|
||||
.topbar nav a {
|
||||
color: var(--muted-fg); text-decoration: none; padding: 6px 12px; border-radius: 8px; font-size: 13.5px;
|
||||
}
|
||||
.topbar nav a:hover { background: var(--surface-2); color: var(--fg); }
|
||||
.topbar nav a.on { background: var(--accent); color: var(--bg); }
|
||||
.topbar .spacer { flex: 1; }
|
||||
.kbd { font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; color: var(--muted-fg); }
|
||||
|
||||
.grid { display: grid; grid-template-columns: 1fr 340px; gap: 0; min-height: calc(100vh - 52px); }
|
||||
.pane-l { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
|
||||
.editor-head {
|
||||
display: flex; align-items: center; gap: 12px; padding: 8px 14px;
|
||||
border-bottom: 1px solid var(--border); background: var(--surface);
|
||||
}
|
||||
.editor-head input {
|
||||
border: none; outline: none; background: transparent; color: var(--fg); font: inherit; font-size: 13.5px; flex: 1;
|
||||
}
|
||||
.editor-head select, .editor-head button.plain {
|
||||
border: 1px solid var(--border); background: var(--surface); color: var(--muted-fg);
|
||||
border-radius: 7px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer;
|
||||
}
|
||||
.linenos { display: flex; }
|
||||
.gutter {
|
||||
padding: 12px 8px; text-align: right; color: var(--muted); font-family: var(--font-mono);
|
||||
font-size: 12.5px; line-height: 1.7; user-select: none; border-right: 1px solid var(--border);
|
||||
background: var(--surface);
|
||||
}
|
||||
.editor {
|
||||
flex: 1; padding: 12px 14px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
|
||||
white-space: pre; outline: none; min-height: 480px;
|
||||
}
|
||||
.editor:empty::before { content: "stdin → paste"; color: var(--muted); }
|
||||
.actionbar {
|
||||
display: flex; align-items: center; gap: 8px; padding: 10px 14px;
|
||||
border-top: 1px solid var(--border); background: var(--surface);
|
||||
}
|
||||
.btn {
|
||||
background: var(--accent); color: var(--bg); border: none; cursor: pointer;
|
||||
padding: 8px 18px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 550;
|
||||
}
|
||||
.btn:hover { filter: brightness(1.08); }
|
||||
.toggle { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted-fg); cursor: pointer; }
|
||||
.toggle input { accent-color: var(--accent); }
|
||||
.toggle.on { color: var(--fg); }
|
||||
|
||||
.pane-r { background: var(--surface); display: flex; flex-direction: column; }
|
||||
.side-section { padding: 14px 16px; border-bottom: 1px solid var(--border); }
|
||||
.side-section h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-fg); margin-bottom: 10px; }
|
||||
.opts { display: flex; flex-direction: column; gap: 8px; }
|
||||
.row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
|
||||
.row select, .row input {
|
||||
border: 1px solid var(--border); border-radius: 7px; padding: 5px 8px; background: var(--bg);
|
||||
color: var(--fg); font: inherit; font-size: 12.5px;
|
||||
}
|
||||
.recent { list-style: none; }
|
||||
.recent li {
|
||||
display: flex; justify-content: space-between; gap: 10px; padding: 7px 0;
|
||||
border-bottom: 1px dashed var(--border); font-size: 12.5px;
|
||||
}
|
||||
.recent a { color: var(--fg); text-decoration: none; font-family: var(--font-mono); font-size: 12px; }
|
||||
.recent a:hover { color: var(--accent); }
|
||||
.recent .meta { color: var(--muted-fg); white-space: nowrap; }
|
||||
.presets { display: flex; gap: 6px; }
|
||||
.presets button { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--border); cursor: pointer; }
|
||||
.presets button.on { outline: 2px solid var(--accent); outline-offset: 1px; }
|
||||
</style>
|
||||
</head>
|
||||
<body data-preset="midnight">
|
||||
<div class="shell">
|
||||
<div class="topbar">
|
||||
<div class="logo">Palette <em>/ v0</em></div>
|
||||
<nav><a class="on" href="#">new</a><a href="#">history</a><a href="#">cans</a><a href="#">api</a></nav>
|
||||
<div class="spacer"></div>
|
||||
<span class="kbd">Ctrl+Enter</span>
|
||||
</div>
|
||||
<div class="grid">
|
||||
<div class="pane-l">
|
||||
<div class="editor-head">
|
||||
<input placeholder="title (optional)">
|
||||
<select><option>auto</option><option>go</option><option>py</option><option>txt</option></select>
|
||||
</div>
|
||||
<div class="linenos">
|
||||
<div class="gutter">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12</div>
|
||||
<div class="editor" contenteditable="true"></div>
|
||||
</div>
|
||||
<div class="actionbar">
|
||||
<label class="toggle"><input type="checkbox"> password</label>
|
||||
<label class="toggle"><input type="checkbox"> burn</label>
|
||||
<label class="toggle"><input type="checkbox"> unlisted</label>
|
||||
<div class="spacer" style="flex:1"></div>
|
||||
<button class="btn">Create ⇧</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pane-r">
|
||||
<div class="side-section">
|
||||
<h3>Expiry</h3>
|
||||
<div class="opts">
|
||||
<div class="row"><span>Never</span><input type="radio" name="exp"></div>
|
||||
<div class="row"><span>1 hour</span><input type="radio" name="exp"></div>
|
||||
<div class="row"><span>1 day</span><input type="radio" name="exp"></div>
|
||||
<div class="row"><span>1 week</span><input type="radio" name="exp" checked></div>
|
||||
<div class="row"><span>30 days</span><input type="radio" name="exp"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="side-section">
|
||||
<h3>Theme preset</h3>
|
||||
<div class="presets">
|
||||
<button class="on" style="background:#EFEDF8" onclick="setPreset('smooth', this)" title="smooth"></button>
|
||||
<button style="background:#B5A8E8" onclick="setPreset('midnight', this)" title="midnight"></button>
|
||||
<button style="background:#D6E0D6" onclick="setPreset('sage', this)" title="sage"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="side-section">
|
||||
<h3>Recent</h3>
|
||||
<ul class="recent">
|
||||
<li><a href="#">k3sYt2</a><span class="meta">2m · go</span></li>
|
||||
<li><a href="#">b7QwRn</a><span class="meta">14m · txt</span></li>
|
||||
<li><a href="#">can/9fL2m</a><span class="meta">1h · 4 items</span></li>
|
||||
<li><a href="#">xT8vZc</a><span class="meta">3h · py</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function setPreset(p, btn) {
|
||||
document.body.dataset.preset = p;
|
||||
document.querySelectorAll('.presets button').forEach(b => b.classList.remove('on'));
|
||||
btn.classList.add('on');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,191 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Palette — dense tool v2</title>
|
||||
<link rel="stylesheet" href="../themes/tokens.css">
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
line-height: 1.45;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
min-height: 100vh;
|
||||
font-size: 14px;
|
||||
}
|
||||
.topbar {
|
||||
display: flex; align-items: center; gap: 20px;
|
||||
padding: 0 20px; height: 52px;
|
||||
background: var(--surface); border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.logo { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
|
||||
.logo em { font-style: normal; color: var(--muted-fg); font-weight: 400; }
|
||||
.topbar nav { display: flex; gap: 4px; }
|
||||
.topbar nav a {
|
||||
color: var(--muted-fg); text-decoration: none; padding: 6px 12px; border-radius: 8px; font-size: 13.5px;
|
||||
}
|
||||
.topbar nav a:hover { background: var(--surface-2); color: var(--fg); }
|
||||
.topbar nav a.on { background: var(--accent); color: var(--bg); }
|
||||
.topbar .spacer { flex: 1; }
|
||||
.kbd { font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; color: var(--muted-fg); }
|
||||
|
||||
/* floating layout: editor card + settings sidebar float over bg with gap */
|
||||
.deck {
|
||||
display: grid; grid-template-columns: 1fr 300px; gap: 16px;
|
||||
padding: 16px 20px; height: calc(100vh - 52px);
|
||||
}
|
||||
.float {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 2px 6px rgba(20,14,32,.25), 0 12px 32px rgba(20,14,32,.3);
|
||||
overflow: hidden;
|
||||
}
|
||||
/* editor card */
|
||||
.pane-l { display: flex; flex-direction: column; }
|
||||
.editor-head {
|
||||
display: flex; align-items: center; gap: 12px; padding: 10px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.editor-head input {
|
||||
border: none; outline: none; background: transparent; color: var(--fg); font: inherit; font-size: 13.5px; flex: 1;
|
||||
}
|
||||
.editor-head select, .editor-head button.plain {
|
||||
border: 1px solid var(--border); background: var(--surface-2); color: var(--muted-fg);
|
||||
border-radius: 7px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer;
|
||||
}
|
||||
.editor-wrap { flex: 1; display: flex; min-height: 0; }
|
||||
.gutter {
|
||||
padding: 14px 10px; text-align: right; color: var(--muted); font-family: var(--font-mono);
|
||||
font-size: 12.5px; line-height: 1.7; user-select: none; border-right: 1px solid var(--border);
|
||||
overflow: hidden;
|
||||
}
|
||||
.editor {
|
||||
flex: 1; padding: 14px 16px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
|
||||
white-space: pre; outline: none; overflow: auto;
|
||||
}
|
||||
.editor:empty::before { content: "stdin → paste"; color: var(--muted); }
|
||||
.actionbar {
|
||||
display: flex; align-items: center; gap: 14px; padding: 12px 16px;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
.btn {
|
||||
background: var(--accent); color: var(--bg); border: none; cursor: pointer;
|
||||
padding: 8px 18px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600;
|
||||
}
|
||||
.btn:hover { filter: brightness(1.08); }
|
||||
.hint { font-size: 12px; color: var(--muted-fg); }
|
||||
.hint b { color: var(--fg); font-weight: 550; }
|
||||
|
||||
/* settings sidebar: stacked floating cards */
|
||||
.pane-r { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; padding-bottom: 4px; }
|
||||
.side-section { padding: 14px 16px; flex-shrink: 0; }
|
||||
.side-section h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-fg); margin-bottom: 10px; }
|
||||
.row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 4px 0; }
|
||||
.row select, .row input[type="text"] {
|
||||
border: 1px solid var(--border); border-radius: 7px; padding: 5px 8px; background: var(--bg);
|
||||
color: var(--fg); font: inherit; font-size: 12.5px; width: 130px;
|
||||
}
|
||||
.seg { display: flex; flex-direction: column; gap: 2px; }
|
||||
.seg label { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px; cursor: pointer; font-size: 13px; }
|
||||
.seg label:hover { background: var(--surface-2); }
|
||||
.seg input { accent-color: var(--accent); }
|
||||
.toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 5px 8px; border-radius: 7px; }
|
||||
.toggle:hover { background: var(--surface-2); }
|
||||
.toggle input { accent-color: var(--accent); }
|
||||
.presets { display: flex; gap: 6px; }
|
||||
.presets button { width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; }
|
||||
.presets button.on { outline: 2px solid var(--accent); outline-offset: 1px; }
|
||||
.recent { list-style: none; }
|
||||
.recent li {
|
||||
display: flex; justify-content: space-between; gap: 10px; padding: 6px 0;
|
||||
border-bottom: 1px dashed var(--border); font-size: 12.5px;
|
||||
}
|
||||
.recent li:last-child { border-bottom: none; }
|
||||
.recent a { color: var(--fg); text-decoration: none; font-family: var(--font-mono); font-size: 12px; }
|
||||
.recent a:hover { color: var(--accent); }
|
||||
.recent .meta { color: var(--muted-fg); white-space: nowrap; }
|
||||
.canzone {
|
||||
margin-top: 10px; border: 1.5px dashed var(--border); border-radius: 10px;
|
||||
padding: 14px; text-align: center; font-size: 12px; color: var(--muted-fg);
|
||||
transition: border-color .15s ease, background .15s ease;
|
||||
}
|
||||
.canzone:hover { border-color: var(--accent); background: var(--surface-2); }
|
||||
</style>
|
||||
</head>
|
||||
<body data-preset="midnight">
|
||||
<div class="topbar">
|
||||
<div class="logo">Palette <em>/ v0</em></div>
|
||||
<nav><a class="on" href="#">new</a><a href="#">history</a><a href="#">cans</a><a href="#">api</a></nav>
|
||||
<div class="spacer"></div>
|
||||
<span class="kbd">Ctrl+Enter</span>
|
||||
</div>
|
||||
<div class="deck">
|
||||
<div class="float pane-l">
|
||||
<div class="editor-head">
|
||||
<input placeholder="title (optional)">
|
||||
<select><option>auto</option><option>go</option><option>py</option><option>txt</option></select>
|
||||
</div>
|
||||
<div class="editor-wrap">
|
||||
<div class="gutter">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<br>16<br>17<br>18<br>19<br>20</div>
|
||||
<div class="editor" contenteditable="true"></div>
|
||||
</div>
|
||||
<div class="actionbar">
|
||||
<span class="hint">Editing as <b>text paste</b>. Drag files onto the box to start a can.</span>
|
||||
<div class="spacer" style="flex:1"></div>
|
||||
<button class="btn">Create ⇧</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pane-r">
|
||||
<div class="float side-section">
|
||||
<h3>Expiry</h3>
|
||||
<div class="seg">
|
||||
<label><input type="radio" name="exp"> Never</label>
|
||||
<label><input type="radio" name="exp"> 1 hour</label>
|
||||
<label><input type="radio" name="exp"> 1 day</label>
|
||||
<label><input type="radio" name="exp" checked> 1 week</label>
|
||||
<label><input type="radio" name="exp"> 30 days</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="float side-section">
|
||||
<h3>Protection</h3>
|
||||
<label class="toggle"><input type="checkbox"> Password lock</label>
|
||||
<label class="toggle"><input type="checkbox"> Burn after read</label>
|
||||
<label class="toggle"><input type="checkbox" checked> Listed publicly</label>
|
||||
</div>
|
||||
<div class="float side-section">
|
||||
<h3>Custom URL</h3>
|
||||
<div class="row"><span>palette/</span><input type="text" placeholder="my-snippet"></div>
|
||||
</div>
|
||||
<div class="float side-section">
|
||||
<h3>Theme</h3>
|
||||
<div class="presets">
|
||||
<button style="background:#F2EDF8" onclick="setPreset('smooth', this)" title="smooth"></button>
|
||||
<button class="on" style="background:#C4A8F0" onclick="setPreset('midnight', this)" title="midnight"></button>
|
||||
<button style="background:#D6E0D6" onclick="setPreset('sage', this)" title="sage"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="float side-section">
|
||||
<h3>Recent</h3>
|
||||
<ul class="recent">
|
||||
<li><a href="#">k3sYt2</a><span class="meta">2m · go</span></li>
|
||||
<li><a href="#">b7QwRn</a><span class="meta">14m · txt</span></li>
|
||||
<li><a href="#">can/9fL2m</a><span class="meta">1h · 4 items</span></li>
|
||||
<li><a href="#">xT8vZc</a><span class="meta">3h · py</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function setPreset(p, btn) {
|
||||
document.body.dataset.preset = p;
|
||||
document.querySelectorAll('.presets button').forEach(b => b.classList.remove('on'));
|
||||
btn.classList.add('on');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Palette design tokens — swap presets by replacing this block */
|
||||
:root {
|
||||
/* "Smooth" preset (user-provided) */
|
||||
--bg: #F6F5FA;
|
||||
--surface: #FFFFFF; /* derived: cards on bg */
|
||||
--surface-2: #DAD7E6;
|
||||
--muted: #B5B1C9;
|
||||
--muted-fg: #7A7796;
|
||||
--fg: #2A2A36;
|
||||
--accent: #7A7796;
|
||||
--border: #DAD7E6;
|
||||
--radius: 12px;
|
||||
--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
--font-mono: ui-monospace, "JetBrains Mono", "Fira Code", monospace;
|
||||
}
|
||||
|
||||
/* Preset switcher demo */
|
||||
[data-preset="midnight"] {
|
||||
--bg: #241B30; --surface: #2D2340; --surface-2: #3A2D52;
|
||||
--muted: #7A6A9E; --muted-fg: #C0B2DE; --fg: #F2EDF8;
|
||||
--accent: #C4A8F0; --border: #42355C;
|
||||
} /* APPROVED 2026-09-08: user accepted as default dark preset */
|
||||
[data-preset="sage"] {
|
||||
--bg: #F4F7F4; --surface: #FFFFFF; --surface-2: #D6E0D6;
|
||||
--muted: #B0C4B0; --muted-fg: #6E8570; --fg: #26332B;
|
||||
--accent: #6E8570; --border: #D6E0D6;
|
||||
}
|
||||
Reference in New Issue
Block a user