Merge pull request #59 from Alpaq92/legalwork-ui
Console on the family's ui/v1 look (legalwork)
This commit is contained in:
+3
-1
@@ -74,8 +74,10 @@ and credited here per their licenses.
|
||||
|---|---|---|
|
||||
| **[Open Color](https://github.com/yeun/open-color)** | The entire **color palette**. The light + dark CSS custom properties (`:root` / `[data-theme="dark"]`) use Open Color values — the `gray` ramp for neutrals, `indigo` accent, and `green`/`yellow`/`red`/`pink` for status. Switched from a Tailwind-`neutral` palette on 2026-06-12 using the closest Open Color value for each token. | MIT |
|
||||
| **[Tabler Icons](https://github.com/tabler/tabler-icons)** (`@tabler/icons`) | Every **icon**. The `ICN` / `TH_ICN` maps and inline `<svg>`s embed Tabler 24×24 **outline** path data, rendered with `stroke:currentColor` (2px, round caps/joins) by the `svg()` helper. Replaced the hand-drawn Lucide-style icons on 2026-06-12. | MIT |
|
||||
| **[legalwork](https://github.com/eigenweltlabs/legalwork)** | The **look**: colour, shape, type and motion values read from its code (HEAD `8255eba9`) into the family's shared `frontend/ui/v1/tokens.css`, which the `:root` block maps Counsel's own names onto. No legalwork code is included. | MIT |
|
||||
| **[Inter](https://rsms.me/inter/)** | The console **font**, `frontend/ui/v1/InterVariable.woff2` beside its licence (`LICENSE-Inter.txt`), served from this origin. | SIL OFL 1.1 |
|
||||
|
||||
> Both **Open Color** and **Tabler Icons** are **MIT**-licensed — permissive, and both clear
|
||||
> **Open Color**, **Tabler Icons** and **legalwork** are **MIT**-licensed and **Inter** is **SIL OFL 1.1** — all permissive, and all clear
|
||||
> the CI license gate.
|
||||
|
||||
The **app icon** (`assets/icon.svg`, with a rasterized `assets/icon.png`) composes Tabler's filled
|
||||
|
||||
+46
-59
@@ -9,60 +9,46 @@
|
||||
(function(){try{var m=localStorage.getItem('cs_theme')||'system';
|
||||
var dark=m==='dark'||(m==='system'&&window.matchMedia&&matchMedia('(prefers-color-scheme:dark)').matches);
|
||||
document.documentElement.dataset.theme=dark?'dark':'light';}catch(e){}})();</script>
|
||||
<link rel="stylesheet" href="ui/v1/tokens.css" />
|
||||
<style>
|
||||
:root{
|
||||
/* Palette = Open Color (https://yeun.github.io/open-color, MIT). Switched 2026-06-12 from
|
||||
Tailwind-neutral to the closest Open Color tokens: gray ramp neutrals + indigo accent. */
|
||||
--bg-app:#ffffff; --bg-canvas:#f8f9fa; --surface:#ffffff; --surface-muted:#f1f3f5; --surface-muted-2:#dee2e6;
|
||||
--surface-subtle:#f8f9fa; --surface-chip:#f1f3f5; --surface-code:#f1f3f5; --row-hover:#f8f9fa;
|
||||
--border:#dee2e6; --border-input:#dee2e6; --border-hover:#adb5bd;
|
||||
--text-primary:#212529; --text-heading:#000000; --text-secondary:#343a40; --text-muted:#868e96; --text-faint:#adb5bd; --text-on-primary:#f8f9fa;
|
||||
--primary:#212529; --primary-hover:#000000; --primary-active:#000000; --primary-fg:#f8f9fa;
|
||||
--secondary-bg:#f1f3f5; --secondary-fg:#212529; --secondary-hover:#dee2e6;
|
||||
/* The values are the family's (ui/v1/tokens.css, legalwork's look); this block maps Counsel's own
|
||||
names onto them, so the rules below did not have to change. What stays Counsel's own: the link
|
||||
accent, the status dots and badges, and the brand orange on the mark. */
|
||||
--bg-app:var(--at-canvas); --bg-canvas:var(--at-chrome); --surface:var(--at-surface); --surface-muted:var(--at-surface-hover); --surface-muted-2:var(--at-active);
|
||||
--surface-subtle:var(--at-surface-hover); --surface-chip:var(--at-active); --surface-code:var(--at-active); --row-hover:var(--at-hover);
|
||||
--border:var(--at-border); --border-input:var(--at-border); --border-hover:var(--at-border-strong);
|
||||
--text-primary:var(--at-text); --text-heading:var(--at-text); --text-secondary:var(--at-text-secondary); --text-muted:var(--at-text-muted); --text-faint:var(--at-text-faint); --text-on-primary:var(--at-primary-fg);
|
||||
--primary:var(--at-primary); --primary-hover:var(--at-primary-hover); --primary-active:var(--at-primary-active); --primary-fg:var(--at-primary-fg);
|
||||
--secondary-bg:var(--at-active); --secondary-fg:var(--at-text); --secondary-hover:var(--at-selected);
|
||||
--accent-blue:#4263eb;
|
||||
--info-bg:#edf2ff; --info-border:#bac8ff; --info-text:#364fc7; --info-icon:#4263eb; --info-code-bg:#dbe4ff;
|
||||
--warning-bg:#fff9db; --warning-border:#ffec99; --warning-label:#d9480f; --warning-text:#d9480f;
|
||||
--warning-bg:var(--at-warning-soft); --warning-border:transparent; --warning-label:var(--at-warning-text); --warning-text:var(--at-warning-text);
|
||||
--dot-open:#4263eb; --dot-progress:#e67700; --dot-complete:#2f9e44; --dot-neutral:#868e96; --dot-danger:#e03131; --dot-special:#d6336c;
|
||||
--badge-success-bg:#ebfbee; --badge-success-border:#b2f2bb; --badge-success-text:#2b8a3e;
|
||||
--badge-active-bg:#ebfbee; --badge-active-border:#b2f2bb; --badge-active-text:#2b8a3e;
|
||||
--badge-warn-bg:#fff9db; --badge-warn-border:#ffec99; --badge-warn-text:#d9480f;
|
||||
--badge-danger-bg:#fff5f5; --badge-danger-border:#ffc9c9; --badge-danger-text:#c92a2a;
|
||||
--badge-neutral-bg:#f1f3f5; --badge-neutral-border:#dee2e6; --badge-neutral-text:#343a40;
|
||||
--success:#2f9e44; --danger:#e03131; --danger-hover-bg:#fff5f5; --danger-border:#ffc9c9;
|
||||
--ring-input:0 0 0 2px rgba(173,181,189,.5); --ring-input-border:#adb5bd;
|
||||
--font-sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Inter",Arial,sans-serif;
|
||||
--font-mono:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
|
||||
--shadow-card:0 1px 2px rgba(0,0,0,.04);
|
||||
--shadow-menu:0 4px 12px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.04);
|
||||
--shadow-login:0 4px 12px rgba(0,0,0,.06),0 1px 3px rgba(0,0,0,.05);
|
||||
--shadow-dialog:0 16px 48px rgba(0,0,0,.18);
|
||||
--sidebar-w:240px; --sidebar-collapsed-w:72px; --topbar-h:60px; --content-pad:24px;
|
||||
--badge-neutral-bg:var(--at-active); --badge-neutral-border:var(--at-border); --badge-neutral-text:var(--at-text-secondary);
|
||||
--success:var(--at-success); --danger:var(--at-danger-text); --danger-hover-bg:var(--at-danger-soft); --danger-border:var(--at-danger-soft);
|
||||
--ring-input:0 0 0 3px var(--at-focus-ring); --ring-input-border:var(--at-border-strong);
|
||||
--font-sans:var(--at-font-sans); --font-mono:var(--at-font-mono);
|
||||
--shadow-card:var(--at-shadow-xs); --shadow-menu:var(--at-shadow-pop); --shadow-login:var(--at-shadow-md); --shadow-dialog:var(--at-shadow-pop);
|
||||
--sidebar-w:var(--at-sidebar-w); --sidebar-collapsed-w:72px; --topbar-h:var(--at-topbar-h); --content-pad:40px;
|
||||
}
|
||||
*{box-sizing:border-box;}
|
||||
html,body{margin:0;}
|
||||
html{font-family:var(--font-sans);font-size:14px;line-height:1.5;color:var(--text-primary);background:var(--bg-app);-webkit-font-smoothing:antialiased;color-scheme:light;}
|
||||
html{font-family:var(--font-sans);font-size:14px;line-height:1.5;letter-spacing:var(--at-tracking-body);font-feature-settings:"cv11","ss01";color:var(--text-primary);background:var(--bg-app);-webkit-font-smoothing:antialiased;color-scheme:light;}
|
||||
/* ── dark — Open Color dark theme: black canvas, gray-9 cards/sidebar, gray-3 primary (dark text),
|
||||
translucent-white borders, indigo info, translucent Open Color status tints ── */
|
||||
[data-theme="dark"]{
|
||||
--bg-app:#000000; --bg-canvas:#000000; --bg-page-warm:#212529; --surface:#212529; --surface-muted:#343a40; --surface-muted-2:#495057;
|
||||
--surface-subtle:#212529; --surface-chip:#343a40; --surface-code:#343a40; --row-hover:#343a40;
|
||||
--border:rgba(255,255,255,.10); --border-input:rgba(255,255,255,.15); --border-hover:rgba(255,255,255,.30);
|
||||
--text-primary:#f8f9fa; --text-heading:#f8f9fa; --text-secondary:#ced4da; --text-muted:#adb5bd; --text-faint:#868e96; --text-on-primary:#212529;
|
||||
--primary:#dee2e6; --primary-hover:#ced4da; --primary-active:#ffffff; --primary-fg:#212529;
|
||||
--secondary-bg:#343a40; --secondary-fg:#dee2e6; --secondary-hover:#495057;
|
||||
--accent-blue:#748ffc;
|
||||
--info-bg:rgba(76,110,245,.15); --info-border:#364fc7; --info-text:#91a7ff; --info-icon:#5c7cfa; --info-code-bg:rgba(76,110,245,.25);
|
||||
--warning-bg:rgba(250,176,5,.15); --warning-border:#d9480f; --warning-label:#ffd43b; --warning-text:#ffd43b;
|
||||
--dot-open:#5c7cfa; --dot-progress:#f59f00; --dot-complete:#40c057; --dot-neutral:#adb5bd; --dot-danger:#f03e3e; --dot-special:#e64980;
|
||||
--badge-success-bg:rgba(64,192,87,.15); --badge-success-border:#2b8a3e; --badge-success-text:#8ce99a;
|
||||
--badge-active-bg:rgba(64,192,87,.15); --badge-active-border:#2b8a3e; --badge-active-text:#8ce99a;
|
||||
--badge-warn-bg:rgba(250,176,5,.15); --badge-warn-border:#d9480f; --badge-warn-text:#ffd43b;
|
||||
--badge-danger-bg:rgba(250,82,82,.15); --badge-danger-border:#c92a2a; --badge-danger-text:#ffa8a8;
|
||||
--badge-neutral-bg:#343a40; --badge-neutral-border:#495057; --badge-neutral-text:#ced4da;
|
||||
--success:#40c057; --danger:#f03e3e; --danger-hover-bg:rgba(240,62,62,.14); --danger-border:rgba(240,62,62,.4);
|
||||
--ring-input:0 0 0 2px rgba(134,142,150,.5); --ring-input-border:#868e96;
|
||||
--shadow-card:0 1px 2px rgba(0,0,0,.4); --shadow-menu:0 6px 16px rgba(0,0,0,.5);
|
||||
--shadow-login:0 8px 28px rgba(0,0,0,.55); --shadow-dialog:0 18px 50px rgba(0,0,0,.6);
|
||||
color-scheme:dark;
|
||||
}
|
||||
a{color:var(--accent-blue);text-decoration:none;} a:hover{text-decoration:underline;}
|
||||
@@ -71,10 +57,10 @@ a{color:var(--accent-blue);text-decoration:none;} a:hover{text-decoration:underl
|
||||
.mono{font-family:var(--font-mono);}
|
||||
|
||||
/* ── buttons ── */
|
||||
.btn{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 16px;border-radius:8px;border:1px solid transparent;
|
||||
.btn{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 16px;border-radius:var(--at-radius-lg);border:1px solid transparent;
|
||||
font:500 14px/1 var(--font-sans);cursor:pointer;white-space:nowrap;background:transparent;color:var(--text-secondary);transition:background .12s,border-color .12s,filter .12s;}
|
||||
.btn svg{width:16px;height:16px;flex:none;}
|
||||
.btn.primary{background:var(--primary);color:var(--primary-fg);font-weight:600;} .btn.primary:hover{background:var(--primary-hover);} .btn.primary:active{background:var(--primary-active);}
|
||||
.btn.primary{background:var(--primary);color:var(--primary-fg);font-weight:500;} .btn.primary:hover{background:var(--primary-hover);} .btn.primary:active{background:var(--primary-active);}
|
||||
.btn.secondary{background:var(--secondary-bg);color:var(--secondary-fg);} .btn.secondary:hover{background:var(--secondary-hover);}
|
||||
.btn.ghost{border-color:var(--border);background:var(--surface);color:var(--text-secondary);} .btn.ghost:hover{background:var(--surface-muted);border-color:var(--border-hover);}
|
||||
.btn.danger{border-color:var(--danger-border);color:var(--danger);background:var(--surface);} .btn.danger:hover{background:var(--danger-hover-bg);}
|
||||
@@ -109,7 +95,7 @@ select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='ht
|
||||
.avatar{width:24px;height:24px;border-radius:9999px;background:var(--surface-muted-2);color:var(--text-secondary);display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;}
|
||||
|
||||
/* ── card / panel ── */
|
||||
.card{background:var(--surface);border:1px solid var(--border);border-radius:10px;}
|
||||
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--at-radius-2xl);}
|
||||
.card.pad{padding:24px;}
|
||||
.card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid var(--border);}
|
||||
.card-head h2{margin:0;font:600 18px/1.3 var(--font-sans);color:var(--text-primary);}
|
||||
@@ -156,10 +142,10 @@ table.dt .sub{display:block;color:var(--text-muted);font-size:12.5px;font-weight
|
||||
.tabs button.active{color:var(--text-primary);border-bottom-color:var(--primary);}
|
||||
|
||||
/* ── page header ── */
|
||||
.page{padding:var(--content-pad);max-width:1120px;}
|
||||
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px;}
|
||||
.page-head h1{margin:0 0 2px;font:700 22px/1.2 var(--font-sans);color:var(--text-heading);}
|
||||
.page-head .sub{color:var(--text-muted);font-size:14px;}
|
||||
.page{padding:var(--content-pad);max-width:calc(var(--at-content-max) + 2 * var(--content-pad));margin:0 auto;width:100%;}
|
||||
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:32px;flex-wrap:wrap;}
|
||||
.page-head h1{margin:0;font:600 30px/1.2 var(--font-sans);letter-spacing:var(--at-tracking-title);color:var(--text-heading);}
|
||||
.page-head .sub{color:var(--text-secondary);font-size:14px;margin-top:8px;}
|
||||
.page-actions{display:flex;gap:8px;align-items:center;}
|
||||
.kicker{font:600 11px/1 var(--font-sans);text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint);margin-bottom:6px;}
|
||||
|
||||
@@ -182,7 +168,7 @@ table.dt .sub{display:block;color:var(--text-muted);font-size:12.5px;font-weight
|
||||
.widget{border:1px solid var(--border);border-radius:10px;padding:16px;background:var(--surface);}
|
||||
.widget h3{margin:0 0 2px;font:600 14px/1.3 var(--font-sans);}
|
||||
.widget .wd-desc{color:var(--text-muted);font-size:13px;margin:0 0 12px;}
|
||||
.metric{font:700 28px/1 var(--font-sans);color:var(--text-heading);}
|
||||
.metric{font:600 28px/1 var(--font-sans);letter-spacing:var(--at-tracking-title);color:var(--text-heading);}
|
||||
.kv{display:flex;justify-content:space-between;padding:7px 0;border-top:1px solid var(--border);font-size:13px;}
|
||||
.kv:first-of-type{border-top:0;} .kv .k{color:var(--text-muted);}
|
||||
|
||||
@@ -208,22 +194,22 @@ table.dt .sub{display:block;color:var(--text-muted);font-size:12.5px;font-weight
|
||||
|
||||
/* ── shell ── */
|
||||
#app{display:flex;min-height:100vh;}
|
||||
.sidebar{flex:0 0 var(--sidebar-w);position:sticky;top:0;height:100vh;overflow-y:auto;background:var(--surface);border-right:1px solid var(--border);}
|
||||
.sidebar{flex:0 0 var(--sidebar-w);position:sticky;top:0;height:100vh;overflow-y:auto;background:var(--at-sidebar);border-right:1px solid var(--at-border-subtle);}
|
||||
.brand{display:flex;align-items:center;gap:10px;padding:16px;}
|
||||
.brand .logo{width:30px;height:30px;flex:none;display:flex;align-items:center;justify-content:center;}
|
||||
.brand .nm{font:700 18px/1.1 var(--font-sans);color:var(--text-heading);}
|
||||
.brand .nm{font:600 15px/1.1 var(--font-sans);letter-spacing:-0.02em;color:var(--text-heading);}
|
||||
.brand .nm small{display:block;font:400 11px/1.2 var(--font-sans);color:var(--text-muted);letter-spacing:.02em;}
|
||||
.nav-group{padding:6px 12px 2px;}
|
||||
.nav-group .gh{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 6px;font:600 11px/1 var(--font-sans);text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint);cursor:pointer;user-select:none;}
|
||||
.nav-group .gh svg{width:14px;height:14px;transition:transform .15s;}
|
||||
.nav-group .gh{display:flex;align-items:center;gap:8px;padding:14px 12px 8px;font:600 10px/1 var(--font-sans);text-transform:uppercase;letter-spacing:.12em;color:var(--text-muted);cursor:pointer;user-select:none;}
|
||||
.nav-group .gh::before{content:"";width:6px;height:6px;border-radius:1px;background:var(--text-primary);flex:none;} /* legalwork's section mark */
|
||||
.nav-group .gh svg{width:14px;height:14px;margin-left:auto;transition:transform .15s;}
|
||||
.nav-group.collapsed .gh svg{transform:rotate(-90deg);}
|
||||
.nav-group.collapsed .nav-item{display:none;}
|
||||
.nav-item{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:7px;font:400 14px/1 var(--font-sans);color:var(--text-secondary);cursor:pointer;position:relative;margin:1px 0;border:1px solid transparent;}
|
||||
.nav-item svg{width:16px;height:16px;flex:none;color:var(--text-muted);position:relative;top:1px;} /* nudge 1px down: align-items:center centers boxes, but the line-height:1 text sits optically lower, so icons read as too high */
|
||||
.nav-item:hover{background:var(--surface-muted);}
|
||||
.nav-item.active{background:var(--surface-muted);color:var(--text-primary);font-weight:500;border-color:transparent;}
|
||||
.nav-item{display:flex;align-items:center;gap:12px;min-height:38px;padding:0 12px;border-radius:var(--at-radius-lg);font:400 14px/1 var(--font-sans);color:var(--text-primary);cursor:pointer;position:relative;margin:2px 0;border:1px solid transparent;}
|
||||
.nav-item svg{width:18px;height:18px;flex:none;color:var(--text-secondary);position:relative;top:1px;} /* nudge 1px down: align-items:center centers boxes, but the line-height:1 text sits optically lower, so icons read as too high */
|
||||
.nav-item:hover{background:var(--at-hover);}
|
||||
.nav-item.active{background:var(--at-active);color:var(--text-primary);font-weight:500;border-color:transparent;}
|
||||
.nav-item.active svg{color:var(--text-primary);}
|
||||
.nav-item.active::before{content:"";position:absolute;left:-12px;top:50%;transform:translateY(-50%);height:20px;width:4px;border-radius:0 3px 3px 0;background:var(--primary);}
|
||||
/* nav search + collapse-to-rail (Open Mercato AppShell behaviour) */
|
||||
.navsearch{padding:0 12px 8px;}
|
||||
.navsearch input{height:34px;font-size:13px;}
|
||||
@@ -237,9 +223,9 @@ table.dt .sub{display:block;color:var(--text-muted);font-size:12.5px;font-weight
|
||||
#app.nav-collapsed .nav-item span{display:none;}
|
||||
#app.nav-collapsed .nav-item.active::before{left:-10px;}
|
||||
.main{flex:1;min-width:0;display:flex;flex-direction:column;}
|
||||
.topbar{height:var(--topbar-h);flex:none;display:flex;align-items:center;gap:14px;padding:0 24px;border-bottom:1px solid var(--border);background:var(--surface);position:sticky;top:0;z-index:30;}
|
||||
.crumb{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text-muted);white-space:nowrap;}
|
||||
.crumb .sep{color:var(--text-faint);} .crumb b{color:var(--text-primary);font-weight:500;}
|
||||
.topbar{height:var(--topbar-h);flex:none;display:flex;align-items:center;gap:14px;padding:0 14px 0 18px;border-bottom:1px solid var(--at-border-subtle);background:var(--at-canvas);position:sticky;top:0;z-index:30;}
|
||||
.crumb{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-muted);white-space:nowrap;}
|
||||
.crumb .sep{font-size:0;width:1px;height:16px;background:var(--border);margin:0 4px;flex:none;} /* a hairline, not a slash */ .crumb b{color:var(--text-primary);font-weight:500;}
|
||||
.topbar .spacer{flex:1;}
|
||||
.org{display:flex;align-items:center;gap:6px;height:34px;padding:0 10px;border:1px solid var(--border);border-radius:6px;font-size:13px;color:var(--text-secondary);background:var(--surface);white-space:nowrap;overflow:hidden;min-width:0;}
|
||||
.org.org-hide{display:none;}
|
||||
@@ -249,7 +235,7 @@ table.dt .sub{display:block;color:var(--text-muted);font-size:12.5px;font-weight
|
||||
|
||||
/* ── login ── */
|
||||
#login{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--bg-canvas);padding:24px;}
|
||||
.login-card{width:380px;max-width:100%;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-login);padding:32px;}
|
||||
.login-card{width:380px;max-width:100%;background:var(--surface);border:1px solid var(--border);border-radius:var(--at-radius-3xl);box-shadow:var(--shadow-login);padding:32px;}
|
||||
.login-card .lhead{text-align:center;margin-bottom:24px;}
|
||||
.login-card .logo{width:64px;height:64px;margin:0 auto 16px;display:flex;align-items:center;justify-content:center;}
|
||||
.login-card h1{margin:0 0 4px;font:700 22px/1.2 var(--font-sans);}
|
||||
@@ -260,11 +246,11 @@ table.dt .sub{display:block;color:var(--text-muted);font-size:12.5px;font-weight
|
||||
.login-foot a{color:var(--text-muted);font-size:13px;text-decoration:underline;}
|
||||
|
||||
/* ── dialog / command palette ── */
|
||||
.overlay{position:fixed;inset:0;background:var(--overlay-dialog,rgba(0,0,0,.45));z-index:80;display:flex;align-items:flex-start;justify-content:center;padding-top:12vh;}
|
||||
.palette{width:560px;max-width:92vw;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-dialog);overflow:hidden;}
|
||||
.overlay{position:fixed;inset:0;background:var(--at-overlay);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);z-index:80;display:flex;align-items:flex-start;justify-content:center;padding-top:12vh;}
|
||||
.palette{width:560px;max-width:92vw;background:var(--at-glass-strong);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid var(--at-border-subtle);border-radius:28px;box-shadow:var(--shadow-dialog);overflow:hidden;}
|
||||
.palette .pinp{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border);}
|
||||
.palette .pinp svg{width:18px;height:18px;color:var(--text-muted);}
|
||||
.palette .pinp input{border:0;padding:0;height:auto;font-size:16px;}
|
||||
.palette .pinp input{border:0;padding:0;height:auto;font-size:18px;background:none;}
|
||||
.palette .pinp input:focus{box-shadow:none;}
|
||||
.palette .presults{max-height:50vh;overflow:auto;padding:8px;}
|
||||
.pgroup{font:600 11px/1 var(--font-sans);text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint);padding:10px 8px 6px;}
|
||||
@@ -283,7 +269,7 @@ table.dt .sub{display:block;color:var(--text-muted);font-size:12.5px;font-weight
|
||||
|
||||
/* ── toast ── */
|
||||
#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:90;}
|
||||
.toast{display:flex;align-items:center;gap:8px;background:var(--primary);color:#fff;padding:10px 16px;border-radius:8px;box-shadow:var(--shadow-menu);font-size:13px;}
|
||||
.toast{display:flex;align-items:center;gap:8px;background:var(--primary);color:var(--primary-fg);padding:12px 16px;border-radius:var(--at-radius-2xl);box-shadow:var(--shadow-menu);font-size:13px;}
|
||||
|
||||
.nav-scrim{display:none;}
|
||||
@media(max-width:880px){
|
||||
@@ -293,7 +279,8 @@ table.dt .sub{display:block;color:var(--text-muted);font-size:12.5px;font-weight
|
||||
.sidebar.open ~ .nav-scrim{opacity:1;pointer-events:auto;}
|
||||
.topbar{padding:0 12px;gap:8px;}
|
||||
.topbar .org,.topbar .crumb,#userEmail{display:none;}
|
||||
.page{padding:16px;}
|
||||
.page{padding:20px 16px 32px;}
|
||||
.page-head{margin-bottom:20px;} .page-head h1{font-size:24px;}
|
||||
.toolbar{padding:12px 16px;}
|
||||
.dt-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;}
|
||||
.grid2{grid-template-columns:1fr;}
|
||||
@@ -473,7 +460,7 @@ const ICN = {
|
||||
filter:'<path d="M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227"/>',
|
||||
info:'<path d="M3 10.5a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"/> <path d="M12 5.5h.01"/> <path d="M11 8.5h1v4h1"/>',
|
||||
refresh:'<path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"/> <path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/>'};
|
||||
function svg(p,w){ return `<svg viewBox="0 0 24 24" width="${w||16}" height="${w||16}" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${p}</svg>`; }
|
||||
function svg(p,w){ return `<svg viewBox="0 0 24 24" width="${w||16}" height="${w||16}" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">${p}</svg>`; }
|
||||
function btn(label,{cls='ghost',icon,onclick,attrs=''}={}){ return `<button class="btn ${cls}" ${onclick?`onclick="${onclick}"`:''} ${attrs}>${icon?svg(icon):''}${label?esc(label):''}</button>`; }
|
||||
|
||||
const STATUS = {
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,92 @@
|
||||
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION AND CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
@@ -0,0 +1,216 @@
|
||||
/* Atrium UI v1: the family's shared design tokens.
|
||||
The source is Atrium's frontend/ui/v1/; every module console carries a byte-identical copy at its
|
||||
own ui/v1/, because each backend now serves its console itself and a module must still look right
|
||||
standalone. No CDN. The version is in the path so a change here cannot break a module that has not
|
||||
moved to it yet: v2 is a new directory, never an edit that changes what v1 means.
|
||||
|
||||
Values are a reproduction of legalwork's look (eigenweltlabs/legalwork, MIT, frozen at 8255eba9):
|
||||
packages/ui/src/styles/tokens.css and apps/app/src/index.css. Prefix `--at-` on purpose: the
|
||||
consoles already use `--accent` for three different things, and an unprefixed shared name would
|
||||
collide with all of them. A console maps its own names onto these in an alias block; nothing else
|
||||
in a console should hold a raw colour.
|
||||
|
||||
Two deliberate departures from legalwork:
|
||||
- status colours used as TEXT keep the family's darker shades (`--at-*-text`): legalwork's
|
||||
#12a150 on white is ~3:1, and text needs 4.5:1. The bright shade stays for fills and icons.
|
||||
- no "blackout" theme: light and dark only.
|
||||
- dark status colours are the family's own (legalwork defines only their soft grounds there), and
|
||||
`--at-text-secondary` is one step between legalwork's primary and secondary text, because the
|
||||
consoles use three text weights where legalwork uses two. */
|
||||
|
||||
@font-face {
|
||||
font-family: "Inter Variable";
|
||||
font-style: normal;
|
||||
font-weight: 100 900;
|
||||
font-display: swap;
|
||||
src: url("InterVariable.woff2") format("woff2");
|
||||
}
|
||||
|
||||
:root {
|
||||
color-scheme: light;
|
||||
|
||||
/* surfaces */
|
||||
--at-chrome: #f7f7f8;
|
||||
--at-sidebar: #f7f7f8;
|
||||
--at-canvas: #ffffff;
|
||||
--at-surface: #ffffff;
|
||||
--at-surface-hover: #f7f7f8;
|
||||
--at-sunken: #f7f7f8;
|
||||
--at-overlay: rgba(20, 22, 28, .28);
|
||||
--at-glass: rgba(255, 255, 255, .76);
|
||||
--at-glass-strong: rgba(255, 255, 255, .94);
|
||||
--at-glass-blur: 16px;
|
||||
|
||||
/* text */
|
||||
--at-text: #0d0d0f;
|
||||
--at-text-content: #1a1c1f;
|
||||
--at-text-secondary: #52525a;
|
||||
--at-text-muted: #6c6c76;
|
||||
--at-text-faint: #8f8f98;
|
||||
--at-text-placeholder: #75757e;
|
||||
--at-text-inverse: #ffffff;
|
||||
|
||||
/* lines and states */
|
||||
--at-border-subtle: rgba(13, 13, 15, .06);
|
||||
--at-border: rgba(13, 13, 15, .10);
|
||||
--at-border-strong: rgba(13, 13, 15, .16);
|
||||
--at-hover: rgba(13, 13, 15, .04);
|
||||
--at-active: rgba(13, 13, 15, .07);
|
||||
--at-selected: #efeff1;
|
||||
--at-focus-ring: rgba(53, 53, 59, .24);
|
||||
|
||||
/* the one filled control colour: monochrome, like the family's chrome already is */
|
||||
--at-primary: #252529;
|
||||
--at-primary-hover: #35353b;
|
||||
--at-primary-active: #151518;
|
||||
--at-primary-fg: #ffffff;
|
||||
|
||||
/* status: bright for fills and icons, -text for words, -soft for grounds */
|
||||
--at-success: #12a150;
|
||||
--at-success-text: #1f7a4d;
|
||||
--at-success-soft: #e7f6ee;
|
||||
--at-warning: #e5920b;
|
||||
--at-warning-text: #9a6200;
|
||||
--at-warning-soft: #fdf3e2;
|
||||
--at-danger: #e5484d;
|
||||
--at-danger-hover: #d13c41;
|
||||
--at-danger-text: #b02525;
|
||||
--at-danger-soft: #fdeaeb;
|
||||
|
||||
/* elevation */
|
||||
--at-shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
|
||||
--at-shadow-sm: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .04);
|
||||
--at-shadow-md: 0 6px 16px rgba(16, 24, 40, .10), 0 2px 5px rgba(16, 24, 40, .05);
|
||||
--at-shadow-lg: 0 16px 40px rgba(16, 24, 40, .14), 0 4px 10px rgba(16, 24, 40, .06);
|
||||
--at-shadow-pop: 0 8px 28px rgba(16, 24, 40, .12);
|
||||
|
||||
/* shape: legalwork's shadcn radius is 0.625rem; its components land on these steps */
|
||||
--at-radius-xs: 4px;
|
||||
--at-radius-sm: 6px;
|
||||
--at-radius-md: 8px;
|
||||
--at-radius-lg: 10px;
|
||||
--at-radius-xl: 13px;
|
||||
--at-radius-2xl: 17px;
|
||||
--at-radius-3xl: 20px;
|
||||
--at-radius-full: 9999px;
|
||||
|
||||
/* type */
|
||||
--at-font-sans: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
|
||||
--at-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
||||
--at-tracking-body: -0.011em;
|
||||
--at-tracking-head: -0.022em;
|
||||
--at-tracking-title: -0.035em;
|
||||
|
||||
/* motion */
|
||||
--at-ease: cubic-bezier(.2, 0, 0, 1);
|
||||
--at-ease-out: cubic-bezier(.16, 1, .3, 1);
|
||||
--at-dur-fast: 140ms;
|
||||
--at-dur-base: 180ms;
|
||||
--at-dur-slow: 240ms;
|
||||
|
||||
/* shell geometry */
|
||||
--at-sidebar-w: 240px;
|
||||
--at-sidebar-min-w: 56px;
|
||||
--at-topbar-h: 48px;
|
||||
--at-window-curve: 18px;
|
||||
--at-content-max: 72rem;
|
||||
--at-control-h: 36px;
|
||||
--at-control-h-sm: 32px;
|
||||
}
|
||||
|
||||
/* Dark, twice: once for "system" when the OS is dark (unless the person chose light), once for an
|
||||
explicit choice. The same two selectors every console already uses, so a console's pre-paint
|
||||
script keeps working unchanged. */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
color-scheme: dark;
|
||||
--at-chrome: #242424;
|
||||
--at-sidebar: #151515;
|
||||
--at-canvas: #181818;
|
||||
--at-surface: #1d1d1d;
|
||||
--at-surface-hover: #242424;
|
||||
--at-sunken: #222222;
|
||||
--at-overlay: rgba(0, 0, 0, .55);
|
||||
--at-glass: rgba(29, 29, 29, .78);
|
||||
--at-glass-strong: rgba(29, 29, 29, .96);
|
||||
--at-text: #eeeeee;
|
||||
--at-text-content: #e5e5e5;
|
||||
--at-text-secondary: #c4c4c4;
|
||||
--at-text-muted: #adadad;
|
||||
--at-text-faint: #949494;
|
||||
--at-text-placeholder: #a1a1a1;
|
||||
--at-text-inverse: #141414;
|
||||
--at-border-subtle: rgba(255, 255, 255, .07);
|
||||
--at-border: rgba(255, 255, 255, .11);
|
||||
--at-border-strong: rgba(255, 255, 255, .18);
|
||||
--at-hover: rgba(255, 255, 255, .05);
|
||||
--at-active: rgba(255, 255, 255, .09);
|
||||
--at-selected: rgba(255, 255, 255, .08);
|
||||
--at-focus-ring: rgba(255, 255, 255, .32);
|
||||
--at-primary: #eeeeee;
|
||||
--at-primary-hover: #ffffff;
|
||||
--at-primary-active: #dddddd;
|
||||
--at-primary-fg: #141414;
|
||||
--at-success: #3cc47c;
|
||||
--at-success-text: #5cc98f;
|
||||
--at-success-soft: #10241a;
|
||||
--at-warning: #f0a830;
|
||||
--at-warning-text: #e8b45c;
|
||||
--at-warning-soft: #29200e;
|
||||
--at-danger: #f06a6e;
|
||||
--at-danger-hover: #f58588;
|
||||
--at-danger-text: #f08a80;
|
||||
--at-danger-soft: #200c10;
|
||||
--at-shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
|
||||
--at-shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
|
||||
--at-shadow-md: 0 6px 16px rgba(0, 0, 0, .5);
|
||||
--at-shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);
|
||||
--at-shadow-pop: 0 8px 28px rgba(0, 0, 0, .5);
|
||||
}
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] {
|
||||
color-scheme: dark;
|
||||
--at-chrome: #242424;
|
||||
--at-sidebar: #151515;
|
||||
--at-canvas: #181818;
|
||||
--at-surface: #1d1d1d;
|
||||
--at-surface-hover: #242424;
|
||||
--at-sunken: #222222;
|
||||
--at-overlay: rgba(0, 0, 0, .55);
|
||||
--at-glass: rgba(29, 29, 29, .78);
|
||||
--at-glass-strong: rgba(29, 29, 29, .96);
|
||||
--at-text: #eeeeee;
|
||||
--at-text-content: #e5e5e5;
|
||||
--at-text-secondary: #c4c4c4;
|
||||
--at-text-muted: #adadad;
|
||||
--at-text-faint: #949494;
|
||||
--at-text-placeholder: #a1a1a1;
|
||||
--at-text-inverse: #141414;
|
||||
--at-border-subtle: rgba(255, 255, 255, .07);
|
||||
--at-border: rgba(255, 255, 255, .11);
|
||||
--at-border-strong: rgba(255, 255, 255, .18);
|
||||
--at-hover: rgba(255, 255, 255, .05);
|
||||
--at-active: rgba(255, 255, 255, .09);
|
||||
--at-selected: rgba(255, 255, 255, .08);
|
||||
--at-focus-ring: rgba(255, 255, 255, .32);
|
||||
--at-primary: #eeeeee;
|
||||
--at-primary-hover: #ffffff;
|
||||
--at-primary-active: #dddddd;
|
||||
--at-primary-fg: #141414;
|
||||
--at-success: #3cc47c;
|
||||
--at-success-text: #5cc98f;
|
||||
--at-success-soft: #10241a;
|
||||
--at-warning: #f0a830;
|
||||
--at-warning-text: #e8b45c;
|
||||
--at-warning-soft: #29200e;
|
||||
--at-danger: #f06a6e;
|
||||
--at-danger-hover: #f58588;
|
||||
--at-danger-text: #f08a80;
|
||||
--at-danger-soft: #200c10;
|
||||
--at-shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
|
||||
--at-shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
|
||||
--at-shadow-md: 0 6px 16px rgba(0, 0, 0, .5);
|
||||
--at-shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);
|
||||
--at-shadow-pop: 0 8px 28px rgba(0, 0, 0, .5);
|
||||
}
|
||||
Reference in New Issue
Block a user