Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/palette/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ type palette struct {
TargetTouch int `toml:"target_touch"`
Phone, Tablet, Desktop int
WidthPage int `toml:"width_page"`
WidthAside int `toml:"width_aside"`
WidthPanelMin int `toml:"width_panel_min"`
}
// A control's geometry: the heights of a button or an input, the icon in it, and the gap
Expand Down
3 changes: 3 additions & 0 deletions cmd/palette/outputs.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func tokensCSS(p palette, dark, light map[string]rgb) string {
fmt.Fprintf(&b, "\t--spin-control-icon: %dpx;\n\t--spin-control-gap: %dpx;\n", p.Controls.Icon, p.Controls.Gap)
fmt.Fprintf(&b, "\t--spin-width-page: %dpx;\n", p.Layout.WidthPage)
fmt.Fprintf(&b, "\t--spin-width-panel-min: %dpx;\n", p.Layout.WidthPanelMin)
fmt.Fprintf(&b, "\t--spin-width-aside: %dpx;\n", p.Layout.WidthAside)
fmt.Fprintf(&b, "\t--spin-duration-fast: %dms;\n\t--spin-duration: %dms;\n", p.Motion.Fast, p.Motion.Base)
fmt.Fprintf(&b, "\t--spin-duration-slow: %dms;\n\t--spin-duration-draw: %dms;\n", p.Motion.Slow, p.Motion.Draw)
fmt.Fprintf(&b, "\t--spin-ease: %s;\n", p.Motion.Ease)
Expand Down Expand Up @@ -283,6 +284,8 @@ func dashboardCSS(p palette, dark, light map[string]rgb) string {
fmt.Fprintf(&b, "\t--spin-width-page: %dpx;\n", p.Layout.WidthPage)
// The least a panel is as panels tile across the column (layout.width_panel_min).
fmt.Fprintf(&b, "\t--spin-width-panel-min: %dpx;\n", p.Layout.WidthPanelMin)
// A split section's aside, its title and what it governs (layout.width_aside).
fmt.Fprintf(&b, "\t--spin-width-aside: %dpx;\n", p.Layout.WidthAside)
// The dim behind a dialog: the dark page, in either theme, at the palette's scrim - a neutral
// dim, not the mark's navy, which tinted everything behind a dialog blue.
dim := dark["page"]
Expand Down
1 change: 1 addition & 0 deletions dist/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
--spin-control-gap: 6px;
--spin-width-page: 1600px;
--spin-width-panel-min: 560px;
--spin-width-aside: 280px;
--scrim: rgb(14 20 33 / 0.64);
--terminal-background: #0A0C10;
--terminal-foreground: #E6EBF2;
Expand Down
1 change: 1 addition & 0 deletions dist/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
--spin-control-gap: 6px;
--spin-width-page: 1600px;
--spin-width-panel-min: 560px;
--spin-width-aside: 280px;
--spin-duration-fast: 120ms;
--spin-duration: 200ms;
--spin-duration-slow: 400ms;
Expand Down
1 change: 1 addition & 0 deletions dist/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"Tablet": 768,
"Desktop": 1280,
"WidthPage": 1600,
"WidthAside": 280,
"WidthPanelMin": 560
},
"light": {
Expand Down
29 changes: 27 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,16 @@
.panel .grid td, .panel .grid th { white-space: normal; }
.panel .grid tr:last-child td { border-bottom: 0; }
.panel .grid .id { color: var(--spin-text); }
.split { display: grid; grid-template-columns: var(--spin-width-aside) minmax(0, 1fr); gap: 1rem 2rem; align-items: start; }
.split h3 { margin: 0 0 .25rem; }
@media (max-width: 768px) { .split { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--spin-page); border: 1px solid var(--spin-border); border-radius: var(--spin-radius-sm); }
.card .row { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .75rem 1rem; border-top: 1px solid var(--spin-border); font-size: 14px; }
.card .row:first-child { border-top: 0; }
.card .row.editing { background: var(--spin-surface); }
.card .lbl { flex: 0 0 10rem; font-weight: 500; }
.card .val { flex: 1 1 14rem; min-width: 0; }
.card .acts { display: flex; gap: .5rem; }
.dialog { background: var(--spin-overlay); border: 1px solid var(--spin-border); border-radius: var(--spin-radius-lg); padding: 1.25rem; max-width: 26rem; box-shadow: var(--spin-shadow-overlay); }
.toast { display: inline-flex; gap: .6rem; align-items: center; background: var(--spin-overlay); border: 1px solid var(--spin-border); border-radius: var(--spin-radius); padding: .6rem .9rem; box-shadow: var(--spin-shadow-overlay); }
.row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-top: 1rem; }
Expand Down Expand Up @@ -413,7 +423,7 @@ <h3>Sizes</h3>
<section class="only-full" id="panels">
<span class="label">Panels</span>
<div class="rules">
<p class="muted">A section of a page is a heading and its rows; a thing with its own identity and its single action is a panel. A hairline edge at the dashboard's one corner, <code>--spin-radius-sm</code>, its header - the name in the mono, its state, the one action and <code>⋯</code> - on <code>surface</code>, its body on the page, no shadow: it does not float. Panels tile across the column, none narrower than <code>--spin-width-panel-min</code>; inside one, a table has fixed tracks, so a column is at one x in every panel. A list of many is a table, never a panel per row.</p>
<p class="muted">A section of facts is a heading and its rows, and a section of settings is <a href="#split">split</a>; a thing with its own identity and its single action is a panel. A hairline edge at the dashboard's one corner, <code>--spin-radius-sm</code>, its header - the name in the mono, its state, the one action and <code>⋯</code> - on <code>surface</code>, its body on the page, no shadow: it does not float. Panels tile across the column, none narrower than <code>--spin-width-panel-min</code>; inside one, a table has fixed tracks, so a column is at one x in every panel. A list of many is a table, never a panel per row.</p>
<div class="panels">
<article class="panel">
<header><b>web</b><span class="state warn">pending</span><span class="grow"></span><button class="btn sm secondary">Edit</button><button class="btn sm ghost icon" aria-label="More actions"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/></svg></button></header>
Expand All @@ -427,6 +437,21 @@ <h3>Sizes</h3>
</div>
</section>

<section class="only-full" id="split">
<span class="label">Split sections</span>
<div class="rules">
<p class="muted">A page of settings is one page that scrolls, never tabs. Each section is split: its title and what it governs in an aside <code>--spin-width-aside</code> wide, its rows in a card - a hairline edge at <code>--spin-radius-sm</code>, on the page, no shadow. A row is its label, its value and one verb; its editing opens inside the row, with Save disabled until something changes. On a phone the aside goes over the card.</p>
<div class="split">
<div><h3>Network</h3><p class="muted">What it may reach. Its runner applies a change at once.</p></div>
<div class="card">
<div class="row"><span class="lbl">Policies</span><span class="val"><span class="id">github</span> <span class="muted">· github.com, ghcr.io</span></span><button class="btn sm ghost">Change</button></div>
<div class="row editing"><span class="lbl">Size</span><span class="val">2 CPU · 4 GB</span><span class="acts"><button class="btn sm secondary">Cancel</button><button class="btn sm primary" disabled>Save</button></span></div>
<div class="row"><span class="lbl">Log connections</span><span class="val muted">Off</span><button class="btn sm ghost">Turn on</button></div>
</div>
</div>
</div>
</section>

<section class="only-full" id="compositions">
<span class="label">Compositions</span>
<div class="rules">
Expand All @@ -436,7 +461,7 @@ <h3>Marketing</h3>
<h3>Documentation</h3>
<p class="muted">A Starlight page: one column at the reading measure, the sidebar at <code>--spin-sidebar</code>, headings in the mono. A claim links to the row of the status page that proves it.</p>
<h3>Application</h3>
<p class="muted">The dashboard, read for diagnosis. Every page is one centred column <code>--spin-width-page</code> wide, so its edges stay where the page before had them; an explorer takes the viewport. A page is a header - the title, its state, its context and its one primary action on one row - and sections of rows between hairlines; a thing with its own identity and its single action is a <a href="#panels">panel</a>, and panels tile across the column; the name beside the mark is <code>--spin-wordmark</code>, which the catalog audit holds the sidebar to.</p>
<p class="muted">The dashboard, read for diagnosis. Every page is one centred column <code>--spin-width-page</code> wide, so its edges stay where the page before had them; an explorer takes the viewport. A page is a header - the title, its state, its context and its one primary action on one row - one row of tabs, at most one banner, and sections: facts as rows between hairlines, settings <a href="#split">split</a>, each row a label, a value and one verb; a thing with its own identity and its single action is a <a href="#panels">panel</a>, and panels tile across the column; the name beside the mark is <code>--spin-wordmark</code>, which the catalog audit holds the sidebar to.</p>
<h3>Actions</h3>
<p class="muted">One primary action per view, solid in the accent and in words alone: <em>New workspace</em> on a list, <em>Open terminal</em> on a workspace. A row's actions are quiet: its most likely one as a secondary button (the raised fill, a hairline edge, no icon) and the rest behind <code>⋯</code>. An icon goes alone, with a tooltip, only where the toolbar has no room for words; never an icon and a word on every row. What destroys is in the destructive fill, in a confirmation, after Cancel.</p>
<h3>Elevation</h3>
Expand Down
23 changes: 16 additions & 7 deletions palette.toml
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,22 @@ desktop = 1280
# (2026-11-08). An explorer - logs, traces - takes the viewport. The dashboard's page-width.ts
# reads this.
width_page = 1600 # px
# What a page is made of, inside that column. A section of a page is a heading, a hairline and
# its rows, on the page's own plane: a border around every section made the console a grid of
# cards (the October review). A thing with its own identity and its single action - a network
# policy, a resource preset, a forge's app - is a panel: a hairline edge at the dashboard's one
# corner (`radius_sm`), its header (name, state, the action and its menu) on `surface`, its body
# on the page, no shadow, since it does not float. A list of many is a table, never a panel per row. Panels tile across the column, each
# at least this wide: at 1600 px two rules tables side by side, where one stretched to the
# What a page is made of, inside that column (the flat pattern, 2026-11-18). An object - a
# workspace, a team, the installation - has one row of tabs, never a second under it: twelve tabs
# in five groups were two levels of navigation inside one thing. Its settings are one page that
# scrolls, not tabs. Each section of that page is split: its title and a line of what it governs
# in an aside on the left, its rows on the right in a card - a hairline edge at the dashboard's one
# corner (`radius_sm`), on the page's plane, no shadow. A row is a label, its value and one verb
# (Rename, Change, Manage); its detail, and its editing with Save and Cancel, open inside the row,
# never in a dialog or on another tab. A page shows one banner at most, the one that matters most,
# with its cause and its actions. The October review's grid of cards was a border around every
# group of facts: a card holds rows a person acts on, and facts read for a diagnosis stay a
# heading, a hairline and their rows. On a phone the aside goes over its card.
width_aside = 280 # px: a split section's aside
# A thing with its own identity and its single action - a network policy, a resource preset, a
# forge's app - is a panel: a hairline edge, its header (name, state, the action and its menu) on
# `surface`, its body on the page. A list of many is a table, never a panel per row. Panels tile
# across the column, each at least this wide: at 1600 px two rules tables side by side, where one stretched to the
# column's width put a port 1000 px from its destination (2026-11-08). In the column a table has
# fixed tracks, so a column is at one x in every row and every panel, and a label and its value
# sit together, never split across the width.
Expand Down