carlos / platform Public

console: adopt the carloku design tokens and retype the page

Sans body, mono as the working typeface, purple accent, 64rem measure.
Defines --warn (was referenced but undefined) and the .pagehead/.tabs
vocabulary the IA split builds on.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Paul Campbell 18cde8e0885a0da61a071f3bc91f3ee4d53d3d93 parent 2c5a38c
1 file changed, +51 −23
  • internal/console/templates/layout.html +51 −23
diff --git a/internal/console/templates/layout.html b/internal/console/templates/layout.html
index f0a7974eb..2acd0eecb 100644
--- a/internal/console/templates/layout.html
+++ b/internal/console/templates/layout.html
@@ -6,38 +6,42 @@
<title>{{.Title}} ยท CARLOS console</title>
<style>
:root {
- --bg: #ffffff; --ink: #1d2029; --muted: #64707f;
- --accent: #0f5e85; --accent-soft: rgba(15, 94, 133, 0.09);
- --rule: #e7e9f0; --bad: #b3403a;
+ --bg: #ffffff; --ink: #201d29; --muted: #6f6480;
+ --accent: #5b3e96; --accent-strong: #4c3380;
+ --accent-soft: rgba(91, 62, 150, 0.09);
+ --rule: #eae7f0; --bad: #b3403a; --warn: #a6790f;
+ --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
+ --sans: ui-sans-serif, system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
:root {
- --bg: #14151c; --ink: #eef0f6; --muted: #93a4ba;
- --accent: #5db8dd; --accent-soft: rgba(93, 184, 221, 0.12);
- --rule: #2a2e38; --bad: #e07b76;
+ --bg: #16141c; --ink: #f0eef6; --muted: #a99ebd;
+ --accent: #b394f2; --accent-strong: #c9b2f7;
+ --accent-soft: rgba(179, 148, 242, 0.12);
+ --rule: #2c2836; --bad: #e07b76; --warn: #d9a94a;
}
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: var(--bg); color: var(--ink);
- font: 400 1.0625rem/1.65 Charter, Georgia, "Times New Roman", serif;
+ font: 400 1rem/1.6 var(--sans);
-webkit-font-smoothing: antialiased; padding: 0 1.25rem;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
code {
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
+ font-family: var(--mono);
font-size: 0.88em; background: var(--accent-soft);
padding: 0.1em 0.35em; border-radius: 0.25rem;
}
pre {
background: var(--accent-soft); border-radius: 0.5rem;
padding: 0.9rem 1.1rem; margin: 0 0 1rem; max-width: 40rem;
- overflow-x: auto; font-size: 0.85rem; line-height: 1.6;
+ overflow-x: auto; font-family: var(--mono); font-size: 0.85rem; line-height: 1.6;
}
pre code { background: none; padding: 0; }
select, input[type=text] {
- font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--bg);
- border: 1px solid var(--rule); border-radius: 0.5rem; padding: 0.3rem 0.5rem;
+ font: inherit; font-family: var(--sans); font-size: 0.9rem; color: var(--ink); background: var(--bg);
+ border: 1px solid var(--rule); border-radius: 0.4rem; padding: 0.3rem 0.5rem;
}
td form { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; margin: 0; }
/* Interface icons: inline SVG from internal/console/icons.go โ€” Lucide,
@@ -46,14 +50,14 @@
inherit its colour. */
.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
header {
- max-width: 56rem; margin: 0 auto; padding: 1.4rem 0;
+ max-width: 64rem; margin: 0 auto; padding: 1.4rem 0;
display: flex; align-items: baseline; gap: 1rem;
border-bottom: 1px solid var(--rule);
}
header .brand a { font-weight: 700; color: var(--ink); text-decoration: none; }
header nav {
margin-left: auto; display: flex; align-items: baseline; gap: 1rem;
- font-family: ui-sans-serif, system-ui, -apple-system, sans-serif; font-size: 0.9rem;
+ font-size: 0.9rem;
}
header .addr { color: var(--muted); }
/* The account switcher sits where the wordmark used to: a <details>
@@ -62,7 +66,6 @@
at the foot only adds Escape and click-away, which are enhancements. */
header .switcher {
position: relative;
- font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}
header .switcher > summary {
display: inline-flex; align-items: baseline; gap: 0.4rem;
@@ -107,7 +110,7 @@
header .switcher-menu .new a .mark { visibility: visible; }
header .switcher-menu hr { border: 0; border-top: 1px solid var(--rule); margin: 0.35rem 0.2rem; }
header .switcher-menu .new a { color: var(--accent); }
- main { max-width: 56rem; margin: 0 auto; padding: 2.5rem 0 3rem; min-height: 55vh; }
+ main { max-width: 64rem; margin: 0 auto; padding: 2.5rem 0 3rem; min-height: 55vh; }
h1 { font-size: 1.9rem; line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
p { max-width: 40rem; margin: 0 0 1rem; }
@@ -129,7 +132,7 @@
.tiles { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 1.5rem; }
.tile { flex: 1 1 10rem; background: var(--accent-soft); border-radius: 0.6rem; padding: 1rem 1.1rem; }
.tile h2 {
- margin: 0 0 0.35rem; font-size: 0.78rem; text-transform: uppercase;
+ margin: 0 0 0.35rem; font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase;
letter-spacing: 0.05em; color: var(--muted); font-weight: 600;
}
.tile-value { font-size: 1.6rem; font-weight: 600; margin: 0; }
@@ -137,7 +140,7 @@
/* .chip-stale is bordered-only, no fill โ€” a "trust this less" flag, not
an outage marker, matching internal/status/assets/status.css. */
.chip {
- display: inline-block; font-size: 0.78rem; font-weight: 600;
+ display: inline-block; font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
padding: 0.15rem 0.55rem; border-radius: 999px; margin: 0.15rem 0.3rem 0.15rem 0;
}
.chip-stale { border: 1px solid var(--warn, #a6790f); color: var(--warn, #a6790f); }
@@ -168,7 +171,7 @@
}
.rung + .rung { margin-top: 0.4rem; }
.rung-name {
- font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
+ font-family: var(--mono);
font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
font-weight: 600; color: var(--muted); margin: 0 0 0.3rem;
}
@@ -186,7 +189,7 @@
.step form { display: flex; align-items: baseline; gap: 0.5rem; margin: 0; }
.step > .icon { color: var(--muted); align-self: center; }
th {
- font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
+ font-family: var(--mono);
font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
color: var(--muted); text-align: left; font-weight: 600;
}
@@ -194,9 +197,8 @@
form.signin { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 1rem; }
form.signin input[type=text] { padding: 0.55rem 0.8rem; min-width: 16rem; }
button, .btn {
- font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
font-size: 0.95rem; font-weight: 600; background: var(--accent);
- color: var(--bg); border: 0; border-radius: 0.5rem;
+ color: var(--bg); border: 0; border-radius: 0.4rem;
padding: 0.6rem 1.2rem; cursor: pointer;
text-decoration: none; display: inline-block;
}
@@ -204,12 +206,38 @@
background: none; color: var(--accent); font-weight: 400; padding: 0;
border-radius: 0; text-decoration: underline; font-size: 0.9rem; cursor: pointer;
}
+ button:not(.linkish):hover, .btn:hover { background: var(--accent-strong); }
+ button.linkish.danger { color: var(--bad); }
footer {
- max-width: 56rem; margin: 0 auto; padding: 1.25rem 0 2rem;
+ max-width: 64rem; margin: 0 auto; padding: 1.25rem 0 2rem;
border-top: 1px solid var(--rule);
- font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
font-size: 0.85rem; color: var(--muted);
}
+ /* Page anatomy: every page opens with a mono eyebrow naming the context,
+ an h1, and one human sentence saying what the page is for. */
+ .pagehead { margin: 0 0 1.75rem; }
+ .eyebrow {
+ font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
+ text-transform: uppercase; color: var(--muted); margin: 0 0 0.3rem;
+ }
+ .pagehead h1 { margin: 0 0 0.35rem; }
+ .pagehead .lede { margin: 0; font-size: 1.05rem; }
+ /* App tab bar (Heroku-style), and the account nav's active marker.
+ aria-current carries the state; the accent underline draws it. */
+ .tabs {
+ display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0 0 2rem;
+ border-bottom: 1px solid var(--rule);
+ font-family: var(--mono); font-size: 0.85rem;
+ }
+ .tabs a {
+ color: var(--muted); text-decoration: none;
+ padding: 0 0 0.55rem; border-bottom: 2px solid transparent; margin-bottom: -1px;
+ }
+ .tabs a:hover { color: var(--ink); }
+ .tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
+ header nav a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }
+ header nav a.addr { color: var(--muted); text-decoration: none; }
+ header nav a.addr:hover { text-decoration: underline; }
</style>
</head>
<body>