Skip to content

Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.

Remove the Root power level and drop green success colors

Beef83cefb95e9a
diff --git a/docs/PLAN.md b/docs/PLAN.md
index 72392f8..7444fdb 100644
--- a/docs/PLAN.md
+++ b/docs/PLAN.md
@@ -17,7 +17,7 @@
| Windows app | **Qt Quick (QML) for the UI + Rust for everything else** (bridged by cxx-qt), `windows-rs` for OS integration, mirrored video drawn inside the UI with no copies. **No WebView, no web stack** ✅ | Visual ceiling equal to web (real blur, shaders, Caelestia-level motion) at a fraction of the RAM, best fit for video and always-on overlays. Gated by a Phase 0 "Qt + Rust proof" (§5.1) |
| Android app | **Kotlin + Jetpack Compose + Material 3 Expressive**, core via **UniFFI** | Deep OS integration needs native Kotlin, and Compose/M3 Expressive is the best-looking, smoothest Android UI stack |
| Mirroring | **Two engines:** *Elevated* (scrcpy-server, Apache-2.0) and *Standard* (MediaProjection). PC side decodes in hardware with Media Foundation and renders with D3D11 | Best quality and features when privileged access exists, and it still works when it doesn't |
-| Superpowers without root | **Power Levels** (Basic → Assist → Elevated → Root). Elevated mode runs Nectarlink's *own* code as the `shell` user, so there's **no extra app to install**. Several setup paths, and the UI greys out features by level | Unlocks background clipboard, sensitive notifications, consent-free mirroring, app windows and toggles on **any** Android phone |
+| Superpowers without root | **Power Levels** (Basic → Assist → Elevated). A Root level is parked for later. Elevated mode runs Nectarlink's *own* code as the `shell` user, so there's **no extra app to install**. Several setup paths, and the UI greys out features by level | Unlocks background clipboard, sensitive notifications, consent-free mirroring, app windows and toggles on **any** Android phone |
| Accounts / cloud | **None.** Local-first. Optional "away from home" mode via relays (self-hostable) | Privacy is the #1 reason people leave Phone Link |
| Platforms | **Windows 11 only** (x64 + native ARM64). Android 8+. **macOS desktop = future scope** (Qt Quick, the Rust core and the `Platform`/`VideoSink` layers make it a port, not a rewrite). iPhone = later | Win11-only frees us to use Mica, the virtual camera API and the Win11 context menu |
| Distribution | **GitHub-first**: GitHub Releases + winget (Windows), GitHub Releases + Obtainium + later IzzyOnDroid (Android). No Play account for now | Free, fast to ship, no Play policy limits on SMS/Accessibility/files |
@@ -93,7 +93,7 @@ What we deliberately do differently: discovery and connectivity (their #1 weakne
3. **Local-first and private.** No account, no telemetry by default, E2E encryption always, open protocol.
4. **One app, not five.** Mirroring, files, clipboard, notifications, messages, calls and webcam live in one place, with one pairing.
5. **Beautiful, fast, light.** Native GPU rendering, 60–120 fps, spring physics, fast start, and a tray app that stays light all day.
-6. **Graceful power tiers.** Everything works with standard permissions. Elevated adds superpowers, and Root adds a little more. The UI always shows which tier you're on and what the next tier unlocks.
+6. **Graceful power tiers.** Everything works with standard permissions. Elevated adds superpowers. The UI always shows which tier you're on and what the next tier unlocks.
7. **Keyboard-first on PC, thumb-first on phone.**
---
@@ -101,7 +101,7 @@ What we deliberately do differently: discovery and connectivity (their #1 weakne
## 3. Feature set
Tiers: **P0** = needed for the first public release, **P1** = 1.0, **P2** = after 1.0.
-Power: 🟢 Basic · 🔵 Assist · 🟣 Elevated · 🔴 Root (see §4.6).
+Power: 🟢 Basic · 🔵 Assist · 🟣 Elevated (see §4.6).
### 3.1 Connection & setup
| Feature | Tier |
@@ -234,6 +234,7 @@ Power: 🟢 Basic · 🔵 Assist · 🟣 Elevated · 🔴 Root (see §4.6).
### 3.13 Rejected for now (parked, can be revived later)
| Idea | Why parked |
|---|---|
+| **Root power level** (Magisk / KernelSU / APatch: Elevated features that survive reboots without re-arming) | Removed by the maintainer to keep setup simple; can be added later as an extra Elevated setup path |
| **Smart notification routing** (phone silent while you're active on PC, buzz when idle) | Not prioritized by the maintainer. Depends on presence heuristics that are easy to get wrong |
| **Desk Mode** (phone goes quiet + ambient dock screen when charging at desk, PC locks when you leave) | Not prioritized. Overlaps partly with Proximity lock |
| **Instant Hotspot** (one click: phone hotspot on + PC joins) | Not prioritized. Needs Elevated plus per-OEM hotspot quirks |
@@ -339,14 +340,12 @@ Everything ships inside the single Nectarlink APK. "Elevated" is **not a separat
| **🟢 Basic** | Install + grant normal permissions | ~1 min | Forever | Notifications (non-sensitive), SMS/MMS, calls, contacts, files, photos, media both ways, PC→phone clipboard, webcam, Continuity Camera, voice recorder, voice typing, touchpad/air mouse/Deck, standard mirroring (consent prompt each session, view-only) |
| **🔵 Assist** | Turn on Nectarlink's Accessibility service (one toggle, plus the "restricted settings" step for sideloaded installs) | ~1 min | Forever | Control the phone during standard mirroring, global actions (back/home/recents/lock) |
| **🟣 Elevated** | Any one of the setup paths below | 1–3 min | Until phone reboot (auto re-arms) | **Auto** phone→PC clipboard, OTP/sensitive notifications, prompt-free mirroring with full control, phone audio to PC, **app windows**, type into the phone with the PC keyboard, Wi-Fi/BT/DND toggles from PC, install APKs from PC, self-whitelist from battery killers |
-| **🔴 Root** | Magisk / KernelSU / APatch detected | Instant | Forever | Elevated features survive reboots with no re-arm, plus deeper system toggles |
-**Setup paths to Elevated** (Nectarlink recommends the best one by detecting Android version, USB state, root and Shizuku):
+**Setup paths to Elevated** (Nectarlink recommends the best one by detecting Android version, USB state and Shizuku):
1. **USB cable:** guided "enable USB debugging" (animated, per-OEM steps), then plug in. The PC app has a **built-in ADB client**, so there's nothing else to install. This also turns on the USB connection path.
2. **Wireless, using the PC's QR** (Android 11+): the PC shows an ADB-pairing QR, and the phone scans it in *Developer options → Wireless debugging → Pair with QR code*. No cable.
3. **Phone only** (Android 11+): Nectarlink opens Wireless debugging, the user types the pairing code into a Nectarlink notification, and Nectarlink pairs with itself. No PC needed.
4. **Shizuku / Sui:** one tap if already installed. Never required.
-5. **Root:** auto-detected.
**Re-arming after a reboot (keeping it painless):**
- If the PC is paired for wireless debugging, the PC silently re-arms the phone the next time both are on the same network.
@@ -362,7 +361,7 @@ Everything ships inside the single Nectarlink APK. "Elevated" is **not a separat
- **Locked:** greyed, with a chip showing the level and effort, e.g. "Elevated · ~2 min"
- **Unsupported:** explained, e.g. "Needs Android 11+"
- Tapping anything locked opens *that exact* setup sheet, then drops you back into the feature, now working.
-- **Onboarding: "Choose your power"** (after pairing). Cards for Basic / Elevated / Root, each showing what it unlocks, what you need, how long it takes, how to undo it, and a plain-language "what this access means" explainer. A smart default is pre-selected, and "Decide later" is always available.
+- **Onboarding: "Choose your power"** (after pairing). Cards for Basic / Assist / Elevated, each showing what it unlocks, what you need, how long it takes, how to undo it, and a plain-language "what this access means" explainer. A smart default is pre-selected, and "Decide later" is always available.
- **Settings → Power:** current level, how it was obtained, re-arm status, and a one-tap **Revoke**.
- **Settings → Connections** (separate axis): Wi-Fi/LAN, USB, Away (relay), Bluetooth. Each shows live status, or a greyed state with "Set up".
- **PC add-ons** use the same pattern on Windows: Virtual camera, Explorer integration, Bluetooth calling, Firewall rule, Unlock with phone. Each is opt-in with an explanation, and asks for admin only when it truly needs it.
@@ -523,7 +522,7 @@ Build Home, a notification card, the Deck grid, one hero transition and a live m
**Feel:** calm, premium, alive. Think "Apple Continuity polish with Material You warmth". It should never look like a settings dump.
**Shared language across both apps**
-- Same iconography, the same names for features, and the same power-level badges (🟢🔵🟣🔴 mapped to a refined palette).
+- Same iconography, the same names for features, and the same power-level badges (mapped to the theme's own palette, no traffic-light colors).
- **Dynamic color:** default warm honey/amber accent (on brand for Nectarlink). Once paired, both apps can adopt the phone's Material You palette.
- Motion: spring-based (no linear easing), choreographed transitions (a notification card grows into the conversation view), honoring reduced motion.
@@ -592,7 +591,7 @@ Each phase ends with a usable, releasable product. Phase sizes are relative; act
- **Exit:** a KDE Connect / Phone Link-basics user can switch fully. Reliability green for 7 days across the tester group's phones (Pixel, Samsung, Xiaomi, OnePlus at minimum).
### Phase 2: Superpowers (beta, v0.4–0.6)
-- **Power Levels** with all setup paths (USB, PC QR, phone-only self-pairing, Shizuku, root) + capability-driven greyed UI + re-arm → auto clipboard, OTP notifications.
+- **Power Levels** with all setup paths (USB, PC QR, phone-only self-pairing, Shizuku) + capability-driven greyed UI + re-arm → auto clipboard, OTP notifications.
- **Mirroring** (Standard + Elevated engines), audio, keyboard/mouse.
- **App windows** (virtual displays, taskbar icons).
- SMS/MMS + contacts. Calls (alerts, control, log; HFP audio if the spike passed).
diff --git a/docs/architecture/capabilities.md b/docs/architecture/capabilities.md
index 93d3aa4..4ed8f8a 100644
--- a/docs/architecture/capabilities.md
+++ b/docs/architecture/capabilities.md
@@ -37,7 +37,7 @@ pub struct FeatureDef {
pub enum Requirement {
PeerCap(&'static str), // peer offers a capability ID
LocalCap(&'static str), // this device offers a capability ID
- PowerAtLeast(PowerLevel), // Basic < Assist < Elevated < Root
+ PowerAtLeast(PowerLevel), // Basic < Assist < Elevated
AndroidApiAtLeast(u32),
WindowsBuildAtLeast(u32),
Path(ConnectionPath), // e.g. Usb, Relay
diff --git a/docs/design/README.md b/docs/design/README.md
index 5498cdf..5f77d7e 100644
--- a/docs/design/README.md
+++ b/docs/design/README.md
@@ -25,6 +25,8 @@ Open the HTML files in a browser and switch themes and Material You seeds at the
## Principles
+- No traffic-light green: success, done and connected states use the theme's own color
+ (Material You primary in Bloom, ink/chalk in Graphite).
- Calm first: neutral surfaces, color only where it carries meaning (state, primary action, the
connected device).
- No sloppy decoration: every texture, shadow and annotation must survive a 9-hour workday.
diff --git a/docs/design/assets/nl.css b/docs/design/assets/nl.css
index 0f2c85e..eb9ca9a 100644
--- a/docs/design/assets/nl.css
+++ b/docs/design/assets/nl.css
@@ -22,9 +22,9 @@ svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke
--rail-bg:var(--surface-low);--indicator:var(--secondary-container);--on-indicator:var(--on-secondary-container);
--win-bg:var(--surface);--win-border:var(--outline-variant);
--win-shadow:0 1px 2px rgba(0,0,0,.06),0 24px 60px -20px rgba(0,0,0,.18);
- --texture:none;--grid:none;--ok:#2E7D4F;--warn:#9A6700;
+ --texture:none;--grid:none;--ok:var(--primary);--warn:#9A6700;
}
-[data-theme="bloom-dark"]{--ok:#7BD8A0;--warn:#F2C14E}
+[data-theme="bloom-dark"]{--warn:#F2C14E}
[data-theme^="graphite"]{
--display:var(--serif);--display-weight:400;--display-track:-.01em;
--label:var(--mono);--label-case:uppercase;--label-track:.12em;--label-size:10.5px;--label-weight:400;
@@ -39,7 +39,7 @@ svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke
--primary:#1A1918;--on-primary:#F5F2EB;--primary-container:#E8E3D7;--on-primary-container:#1A1918;
--secondary-container:#E8E3D7;--on-secondary-container:#1A1918;
--card-border:#D5CFC2;--hero-ink:#1A1918;--btn-bg:#1A1918;--btn-ink:#F5F2EB;--btn-shadow:3px 3px 0 #D5CFC2;
- --indicator:#1A1918;--on-indicator:#F5F2EB;--win-bg:#F5F2EB;--win-border:#CFC8BA;--ok:#3F6B4A;--warn:#8A6A1F;
+ --indicator:#1A1918;--on-indicator:#F5F2EB;--win-bg:#F5F2EB;--win-border:#CFC8BA;--ok:#1A1918;--warn:#8A6A1F;
--texture:url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
--grid:linear-gradient(rgba(74,71,67,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(74,71,67,.06) 1px,transparent 1px);
}
@@ -50,7 +50,7 @@ svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke
--primary:#E8EAED;--on-primary:#0D0D0E;--primary-container:#1A1A1D;--on-primary-container:#E8EAED;
--secondary-container:#1A1A1D;--on-secondary-container:#E8EAED;
--card-border:#26272A;--hero-ink:#E8EAED;--btn-bg:#E8EAED;--btn-ink:#0D0D0E;--btn-shadow:3px 3px 0 #26272A;
- --indicator:#E8EAED;--on-indicator:#0D0D0E;--win-bg:#0D0D0E;--win-border:#232427;--ok:#8FC7A0;--warn:#E2C47A;
+ --indicator:#E8EAED;--on-indicator:#0D0D0E;--win-bg:#0D0D0E;--win-border:#232427;--ok:#E8EAED;--warn:#E2C47A;
--texture:url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
--grid:linear-gradient(rgba(200,208,216,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(200,208,216,.035) 1px,transparent 1px);
}
@@ -100,13 +100,13 @@ section.screen-set{max-width:1280px;margin:0 auto;padding:56px 28px 8px}
.status{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--on-surface-variant)}
.dot{width:7px;height:7px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px color-mix(in srgb,var(--ok) 22%,transparent)}
[data-theme^="graphite"] .status{font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase}
-.fill{flex:1}
+.grow{flex:1}
.body{flex:1;min-height:0;display:flex}
.pane{padding:18px 22px;overflow:hidden}
/* ---------- components ---------- */
.card{background:var(--card-bg);border:1px solid var(--card-border);border-radius:var(--r-lg);padding:16px}
-.btn{height:40px;padding:0 18px;border-radius:var(--r-pill);font:600 13.5px var(--sans);display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;white-space:nowrap}
+.btn{height:40px;padding:0 18px;border-radius:var(--r-pill);font:600 13.5px var(--sans);display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;white-space:nowrap;flex-shrink:0}
.btn.fill{background:var(--btn-bg);color:var(--btn-ink);box-shadow:var(--btn-shadow)}
.btn.tonal{background:var(--secondary-container);color:var(--on-secondary-container)}
.btn.out{background:transparent;color:var(--on-surface);border:1px solid var(--outline)}
diff --git a/docs/design/mockups/index.html b/docs/design/mockups/index.html
index 4e8f29c..e2e4094 100644
--- a/docs/design/mockups/index.html
+++ b/docs/design/mockups/index.html
@@ -7,7 +7,7 @@
<!-- Preview only: the apps bundle these OFL fonts locally. -->
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Instrument+Serif&family=Space+Mono:wght@400;700&family=Caveat:wght@500&display=swap" rel="stylesheet">
-<link rel="stylesheet" href="../assets/nl.css">
+<link rel="stylesheet" href="../assets/nl.css?v=3">
<style>
/* --- pairing --- */
.pair{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px 40px;gap:14px}
@@ -20,6 +20,7 @@
.alt{display:flex;gap:10px}
.timer{font-size:12px;color:var(--on-surface-variant)}
/* camera viewfinder */
+.scr:has(.finder)>.sb{color:#fff}
.finder{flex:1;margin:-46px -16px 0;background:radial-gradient(120% 80% at 50% 40%,#4a5058,#15181c);position:relative;display:grid;place-items:center}
.finder .frame{width:190px;height:190px;position:relative}
.finder .frame i{position:absolute;width:34px;height:34px;border:3px solid #fff;border-radius:6px}
@@ -36,7 +37,8 @@
.check{display:flex;gap:12px;align-items:center;padding:10px 12px;border-radius:var(--r-md);background:var(--surface-container)}
[data-theme^="graphite"] .check{background:transparent;border:1px solid var(--outline-variant)}
.check .st{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--surface-container-highest);color:var(--on-surface-variant)}
-.check.done .st{background:var(--ok);color:#fff}
+.check.done .st{background:var(--primary-container);color:var(--on-primary-container)}
+[data-theme^="graphite"] .check.done .st{background:var(--on-surface);color:var(--surface)}
[data-theme^="graphite"] .check .st{border-radius:3px}
.check .tx{flex:1;min-width:0}.check b{font-size:13px;display:block}.check small{font-size:11.5px;color:var(--on-surface-variant)}
.progress{height:6px;border-radius:9px;background:var(--surface-container-highest);overflow:hidden}
@@ -171,12 +173,12 @@
<main id="screens"></main>
-<script src="../assets/nl.js"></script>
+<script src="../assets/nl.js?v=3"></script>
<script>
const rail = (on) => `<aside class="rail"><div class="mark">${i('hex')}</div>
${[['home','Home'],['msg','Messages'],['bell','Alerts'],['photo','Photos'],['apps','Apps'],['deck','Deck']].map(([ic,l])=>`<div class="nav ${l===on?'on':''}"><i>${i(ic)}</i>${l}</div>`).join('')}
<div class="spacer"></div><div class="nav ${on==='Settings'?'on':''}"><i>${i('gear')}</i>Settings</div></aside>`;
-const topbar = (t) => `<header class="top"><h3>${t}</h3><span class="status"><span class="dot"></span>Pixel 9 · Wi-Fi · 12 ms</span><span class="fill"></span></header>`;
+const topbar = (t) => `<header class="top"><h3>${t}</h3><span class="status"><span class="dot"></span>Pixel 9 · Wi-Fi · 12 ms</span><span class="grow"></span></header>`;
const phone = (inner, cls='') => `<div class="phone"><div class="scr ${cls}"><div class="cam"></div><div class="sb"><span>9:41</span><span>82%</span></div>${inner}</div></div>`;
const set = (id, k, h, p, body) => `<section class="screen-set" id="${id}"><div class="set-head"><span class="kicker">${k}</span><h2>${h}</h2><p>${p}</p></div><div class="row">${body}</div></section>`;
@@ -185,7 +187,7 @@ document.getElementById('screens').innerHTML =
set('pair','1 · First run','Pair in under a minute',
'The PC shows a QR code; the phone scans it and both sides are paired and authenticated, with no codes to type. Nearby pairing (6-digit code check) and USB pairing are one click away.',
`<div class="win sm"><div class="main">
- <header class="top"><h3>Welcome to Nectarlink</h3><span class="fill"></span><span class="cap">Step 1 of 2</span></header>
+ <header class="top"><h3>Welcome to Nectarlink</h3><span class="grow"></span><span class="cap">Step 1 of 2</span></header>
<div class="pair">
<div class="crop"><i></i><i></i><i></i><i></i><div class="qrbox">${qrSVG()}</div></div>
<span class="G cap">Fig. 00 // Pairing code</span>
@@ -230,9 +232,10 @@ set('power','3 · Choose your power','Pick how much Nectarlink can do',
`<div>${phone(`<div class="ph-title" style="margin-top:4px">Choose your power</div>
<p class="ph-sub">Everything works at Basic. More access unlocks more.</p>
<div class="power"><div class="hd"><h4>Basic</h4><span class="eff">Ready now</span></div><p>Notifications, messages, calls, files, media, webcam.</p></div>
+ <div class="power"><div class="hd"><h4>Assist</h4><span class="eff">~1 min</span></div><p>Turn on one accessibility switch to control your phone while mirroring.</p></div>
<div class="power sel"><div class="hd"><h4>Elevated <span class="rec">Recommended</span></h4><span class="eff">~2 min</span></div><p>One-time setup. No extra apps. Undo anytime.</p>
<div class="gets"><span>Auto clipboard</span><span>OTP codes</span><span>App windows</span><span>Full control</span><span>Phone audio</span></div></div>
- <div class="power"><div class="hd"><h4>Root</h4><span class="eff">Detected: no</span></div><p>For rooted phones. Survives reboots.</p></div>
+
<div style="margin-top:auto;display:flex;flex-direction:column;gap:6px"><button class="btn fill wide">Set up Elevated</button><button class="btn text wide">Decide later</button></div>`)}
<p class="caption"><b>Levels.</b> Plain language, honest effort estimates, and a “what this access means” explainer behind each card.</p></div>
<div>${phone(`<div style="display:flex;align-items:center;gap:6px;margin-top:4px;color:var(--on-surface-variant)">${i('back')}<span class="cap">Elevated setup</span></div>
@@ -243,7 +246,7 @@ set('power','3 · Choose your power','Pick how much Nectarlink can do',
<div class="path"><span class="ic">${i('handset')}</span><div class="tx"><b>On this phone only</b><small>No PC needed · Android 11+</small></div>${i('chev')}</div>
<div class="path"><span class="ic">${i('shield')}</span><div class="tx"><b>Use Shizuku</b><small>Already installed · 1 tap</small></div>${i('chev')}</div>
<p class="hint" style="margin-top:auto">Nectarlink starts a helper with developer access, built into this app. It never leaves your phone and you can revoke it in Settings.</p>`)}
- <p class="caption"><b>Setup paths.</b> Recommended path chosen from what's detected (Android version, USB, Shizuku, root).</p></div>`) +
+ <p class="caption"><b>Setup paths.</b> Recommended path chosen from what's detected (Android version, USB, Shizuku).</p></div>`) +
set('notif','4 · Notifications','Your phone’s alerts, organized',
'Native Windows toasts with replies and actions for the moment, and a calm feed in the app for everything else: filter by app, reply inline, copy codes in one click.',
@@ -257,16 +260,16 @@ set('notif','4 · Notifications','Your phone’s alerts, organized',
<div class="it"><span class="av">C</span><div class="tx"><h5>Calendar<span>1h</span></h5><p>Design review at 4:30 PM</p></div></div>
<div class="it"><span class="av">D</span><div class="tx"><h5>Discord<span>2h</span></h5><p>#general: 6 new messages</p></div></div>
</div></div>
- <div class="detail"><div class="dh"><span class="av p">M</span><div><h4>Mom</h4><p>WhatsApp · via Pixel 9</p></div><span class="fill"></span><button class="btn text sm">Open on phone</button></div>
+ <div class="detail"><div class="dh"><span class="av p">M</span><div><h4>Mom</h4><p>WhatsApp · via Pixel 9</p></div><span class="grow"></span><button class="btn text sm">Open on phone</button></div>
<div class="thread"><span class="day">Today</span>
<div class="bub">Are you coming home this weekend?<small>11:02</small></div>
<div class="bub me">Yes! Saturday morning 🙂<small>11:05</small></div>
<div class="bub">Dinner at 8? Bring the charger you borrowed.<small>11:40</small></div></div>
- <div class="composer">Reply to Mom…<span class="fill"></span><span class="send">${i('send')}</span></div>
+ <div class="composer">Reply to Mom…<span class="grow"></span><span class="send">${i('send')}</span></div>
<div class="via">Replies are sent through WhatsApp on your phone</div></div></div></div></div>
<div style="display:flex;flex-direction:column;gap:14px">
- <div class="toast"><div class="t"><i></i>Nectarlink · Pixel 9<span class="fill"></span>now</div><h5>Mom · WhatsApp</h5><p>Dinner at 8? Bring the charger you borrowed.</p><div class="reply"><span>Type a reply</span><b>Send</b></div></div>
- <div class="toast"><div class="t"><i></i>Nectarlink · Pixel 9<span class="fill"></span>now</div><h5>Google</h5><p>Your sign-in code is 482 913</p><div class="reply"><b style="flex:1">Copy code</b><b>Dismiss</b></div></div>
+ <div class="toast"><div class="t"><i></i>Nectarlink · Pixel 9<span class="grow"></span>now</div><h5>Mom · WhatsApp</h5><p>Dinner at 8? Bring the charger you borrowed.</p><div class="reply"><span>Type a reply</span><b>Send</b></div></div>
+ <div class="toast"><div class="t"><i></i>Nectarlink · Pixel 9<span class="grow"></span>now</div><h5>Google</h5><p>Your sign-in code is 482 913</p><div class="reply"><b style="flex:1">Copy code</b><b>Dismiss</b></div></div>
<p class="caption" style="max-width:364px"><b>Toasts.</b> Native Windows style for system consistency; only the small app badge picks up the theme accent.</p>
</div>`) +
@@ -282,13 +285,13 @@ set('msgs','5 · Messages','Texts and chat apps in one inbox',
<div class="it"><span class="av">H</span><div class="tx"><h5>HDFC Bank<span>Mon</span></h5><p>Your statement is ready</p></div></div>
<div class="it"><span class="av">K</span><div class="tx"><h5>Kabir<span>Sun</span></h5><p>Game night at mine?</p></div></div>
</div></div>
- <div class="detail"><div class="dh"><span class="av p">A</span><div><h4>Aanya</h4><p>+91 98xxx xxx21 · SMS / MMS</p></div><span class="fill"></span><button class="btn out sm">Call from phone</button></div>
+ <div class="detail"><div class="dh"><span class="av p">A</span><div><h4>Aanya</h4><p>+91 98xxx xxx21 · SMS / MMS</p></div><span class="grow"></span><button class="btn out sm">Call from phone</button></div>
<div class="thread"><span class="day">Today</span>
<div class="bub">Reached the top finally</div>
<div class="mms"></div>
<div class="bub me">Look at this view!!<small>Delivered · 4:12 PM</small></div>
<div class="bub">Okay I'm jealous 😭<small>4:13 PM</small></div></div>
- <div class="composer">${i('attach')}Text message<span class="fill"></span>${i('emoji')}<span class="send">${i('send')}</span></div>
+ <div class="composer">${i('attach')}Text message<span class="grow"></span>${i('emoji')}<span class="send">${i('send')}</span></div>
<div class="via">Sent as SMS from Pixel 9 · SIM 1</div></div></div></div></div>`) +
set('mirror','6 · Mirroring & app windows','Your phone, or just one app, on your PC',
@@ -296,9 +299,9 @@ set('mirror','6 · Mirroring & app windows','Your phone, or just one app, on you
`<div><div class="mwin"><div class="tb"><span class="ap" style="background:var(--primary)"></span>Pixel 9<span class="cap" style="margin-left:4px">Mirroring</span><div class="wc">— ▢ ✕</div></div>
<div class="stage"><div class="ps"><div class="fake"><div class="ah"><i></i>Aanya</div><div class="cl"><div class="m">Reached the top finally</div><div class="m o">Look at this view!!</div><div class="m">Okay I'm jealous 😭</div></div><div class="in">Message</div></div></div>
<div class="tools"><span class="on">${i('kb')}</span><span>${i('vol')}</span><span>${i('rotate')}</span><span>${i('camera')}</span><span>${i('clip')}</span><div class="spacer"></div><span>${i('screen')}</span></div></div>
- <div class="foot"><span>1080p · 60 fps</span><span>34 ms</span><span>Audio on</span><span class="fill"></span><span>Screen off on phone</span></div></div>
+ <div class="foot"><span>1080p · 60 fps</span><span>34 ms</span><span>Audio on</span><span class="grow"></span><span>Screen off on phone</span></div></div>
<p class="caption"><b>Mirror window.</b> Keyboard, audio, rotate, screenshot and clipboard tools; phone screen can stay off.</p></div>
- <div><div class="appwin"><div class="tb"><span style="width:18px;height:18px;border-radius:50%;background:#1DB954"></span>Spotify <small>· on Pixel 9</small><span class="fill"></span><small>— ▢ ✕</small></div>
+ <div><div class="appwin"><div class="tb"><span style="width:18px;height:18px;border-radius:50%;background:#1DB954"></span>Spotify <small>· on Pixel 9</small><span class="grow"></span><small>— ▢ ✕</small></div>
<div class="spot"><div class="cv"></div><div><h4>Saturn</h4><p>SZA</p></div><div class="bar"><i></i></div><div class="ctl">${i('prev')}<b>${i('pause')}</b>${i('next')}</div></div></div>
<p class="caption"><b>App window.</b> Runs on a virtual display (Elevated): resize it, pin it to the taskbar, use it while the phone does something else.</p></div>`) +
diff --git a/docs/design/themes/index.html b/docs/design/themes/index.html
index 5a3afbe..18d8f70 100644
--- a/docs/design/themes/index.html
+++ b/docs/design/themes/index.html
@@ -53,7 +53,7 @@ body{font-family:var(--sans);background:var(--page);color:var(--on-surface);-web
--btn-bg:#1A1918; --btn-ink:#F5F2EB; --btn-shadow:3px 3px 0 #D5CFC2;
--rail-bg:transparent; --indicator:#1A1918; --on-indicator:#F5F2EB;
--win-bg:#F5F2EB; --win-border:#CFC8BA;
- --ok:#3F6B4A;
+ --ok:#1A1918;
--texture:url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
--grid:linear-gradient(rgba(74,71,67,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(74,71,67,.06) 1px,transparent 1px);
}
@@ -68,7 +68,7 @@ body{font-family:var(--sans);background:var(--page);color:var(--on-surface);-web
--btn-bg:#E8EAED; --btn-ink:#0D0D0E; --btn-shadow:3px 3px 0 #26272A;
--rail-bg:transparent; --indicator:#E8EAED; --on-indicator:#0D0D0E;
--win-bg:#0D0D0E; --win-border:#232427;
- --ok:#8FC7A0;
+ --ok:#E8EAED;
--texture:url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
--grid:linear-gradient(rgba(200,208,216,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(200,208,216,.035) 1px,transparent 1px);
}
@@ -113,7 +113,7 @@ body{font-family:var(--sans);background:var(--page);color:var(--on-surface);-web
.top{height:52px;display:flex;align-items:center;gap:12px;padding:0 22px;border-bottom:1px solid var(--outline-variant)}
.top h2{font-family:var(--display);font-weight:var(--display-weight);font-size:20px;letter-spacing:var(--display-track)}
.status{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--on-surface-variant)}
-.status .dot{width:7px;height:7px;border-radius:50%;background:var(--ok,#2E7D4F);box-shadow:0 0 0 3px color-mix(in srgb,var(--ok,#2E7D4F) 20%,transparent)}
+.status .dot{width:7px;height:7px;border-radius:50%;background:var(--ok,var(--primary));box-shadow:0 0 0 3px color-mix(in srgb,var(--ok,var(--primary)) 20%,transparent)}
[data-theme^="graphite"] .status{font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase}
.top .fill{flex:1}
.search{display:flex;align-items:center;gap:8px;height:34px;padding:0 12px;border-radius:var(--r-pill);background:var(--surface-container-high);color:var(--on-surface-variant);font-size:12.5px;min-width:200px}
diff --git a/docs/design/tokens.json b/docs/design/tokens.json
index 50ffac2..b5b9d9a 100644
--- a/docs/design/tokens.json
+++ b/docs/design/tokens.json
@@ -1,7 +1,6 @@
{
"$schema": "nectarlink-design-tokens/v1",
"$description": "Single source of truth for Nectarlink design tokens. QML (desktop) and Compose (Android) themes are generated from this file. Bloom colors follow Material You tonal roles; at runtime the Android app derives them from the wallpaper and sends the seed to the PC (hello.device.accent). The palettes here are the fallbacks and brand presets.",
-
"themes": {
"bloom": {
"description": "Default. Minimal Material You: neutral surfaces, color only where it carries meaning.",
@@ -11,140 +10,406 @@
"honey": {
"seed": "#B7791F",
"light": {
- "primary": "#8A5100", "onPrimary": "#FFFFFF", "primaryContainer": "#FFDDB8", "onPrimaryContainer": "#2C1600",
- "secondaryContainer": "#F3E0CB", "onSecondaryContainer": "#261A0C",
- "surface": "#FFF8F3", "surfaceContainerLow": "#FBF2EB", "surfaceContainer": "#F5ECE4", "surfaceContainerHigh": "#EFE6DE", "surfaceContainerHighest": "#E9E1D9",
- "onSurface": "#1F1B16", "onSurfaceVariant": "#51453A", "outline": "#837468", "outlineVariant": "#D5C3B5"
+ "primary": "#8A5100",
+ "onPrimary": "#FFFFFF",
+ "primaryContainer": "#FFDDB8",
+ "onPrimaryContainer": "#2C1600",
+ "secondaryContainer": "#F3E0CB",
+ "onSecondaryContainer": "#261A0C",
+ "surface": "#FFF8F3",
+ "surfaceContainerLow": "#FBF2EB",
+ "surfaceContainer": "#F5ECE4",
+ "surfaceContainerHigh": "#EFE6DE",
+ "surfaceContainerHighest": "#E9E1D9",
+ "onSurface": "#1F1B16",
+ "onSurfaceVariant": "#51453A",
+ "outline": "#837468",
+ "outlineVariant": "#D5C3B5"
},
"dark": {
- "primary": "#FFB95F", "onPrimary": "#4A2800", "primaryContainer": "#693C00", "onPrimaryContainer": "#FFDDB8",
- "secondaryContainer": "#574330", "onSecondaryContainer": "#F3E0CB",
- "surface": "#17130E", "surfaceContainerLow": "#120E0A", "surfaceContainer": "#241F1A", "surfaceContainerHigh": "#2E2924", "surfaceContainerHighest": "#39342E",
- "onSurface": "#EBE1D9", "onSurfaceVariant": "#D5C3B5", "outline": "#9E8E81", "outlineVariant": "#51453A"
+ "primary": "#FFB95F",
+ "onPrimary": "#4A2800",
+ "primaryContainer": "#693C00",
+ "onPrimaryContainer": "#FFDDB8",
+ "secondaryContainer": "#574330",
+ "onSecondaryContainer": "#F3E0CB",
+ "surface": "#17130E",
+ "surfaceContainerLow": "#120E0A",
+ "surfaceContainer": "#241F1A",
+ "surfaceContainerHigh": "#2E2924",
+ "surfaceContainerHighest": "#39342E",
+ "onSurface": "#EBE1D9",
+ "onSurfaceVariant": "#D5C3B5",
+ "outline": "#9E8E81",
+ "outlineVariant": "#51453A"
}
},
"sage": {
"seed": "#5B8C5A",
"light": {
- "primary": "#3B6939", "onPrimary": "#FFFFFF", "primaryContainer": "#BCF0B4", "onPrimaryContainer": "#002204",
- "secondaryContainer": "#D6E8CF", "onSecondaryContainer": "#111F0F",
- "surface": "#F7FBF1", "surfaceContainerLow": "#F1F5EB", "surfaceContainer": "#EBEFE5", "surfaceContainerHigh": "#E6E9E0", "surfaceContainerHighest": "#E0E4DA",
- "onSurface": "#191D17", "onSurfaceVariant": "#424940", "outline": "#72796F", "outlineVariant": "#C2C8BD"
+ "primary": "#3B6939",
+ "onPrimary": "#FFFFFF",
+ "primaryContainer": "#BCF0B4",
+ "onPrimaryContainer": "#002204",
+ "secondaryContainer": "#D6E8CF",
+ "onSecondaryContainer": "#111F0F",
+ "surface": "#F7FBF1",
+ "surfaceContainerLow": "#F1F5EB",
+ "surfaceContainer": "#EBEFE5",
+ "surfaceContainerHigh": "#E6E9E0",
+ "surfaceContainerHighest": "#E0E4DA",
+ "onSurface": "#191D17",
+ "onSurfaceVariant": "#424940",
+ "outline": "#72796F",
+ "outlineVariant": "#C2C8BD"
},
"dark": {
- "primary": "#A1D39A", "onPrimary": "#0A390F", "primaryContainer": "#234F24", "onPrimaryContainer": "#BCF0B4",
- "secondaryContainer": "#3B4B38", "onSecondaryContainer": "#D6E8CF",
- "surface": "#10140F", "surfaceContainerLow": "#0C100B", "surfaceContainer": "#1D211B", "surfaceContainerHigh": "#272B25", "surfaceContainerHighest": "#32362F",
- "onSurface": "#E0E4DA", "onSurfaceVariant": "#C2C8BD", "outline": "#8C9388", "outlineVariant": "#424940"
+ "primary": "#A1D39A",
+ "onPrimary": "#0A390F",
+ "primaryContainer": "#234F24",
+ "onPrimaryContainer": "#BCF0B4",
+ "secondaryContainer": "#3B4B38",
+ "onSecondaryContainer": "#D6E8CF",
+ "surface": "#10140F",
+ "surfaceContainerLow": "#0C100B",
+ "surfaceContainer": "#1D211B",
+ "surfaceContainerHigh": "#272B25",
+ "surfaceContainerHighest": "#32362F",
+ "onSurface": "#E0E4DA",
+ "onSurfaceVariant": "#C2C8BD",
+ "outline": "#8C9388",
+ "outlineVariant": "#424940"
}
},
"lavender": {
"seed": "#7E6AA8",
"light": {
- "primary": "#65558F", "onPrimary": "#FFFFFF", "primaryContainer": "#E9DDFF", "onPrimaryContainer": "#201047",
- "secondaryContainer": "#E8DEF8", "onSecondaryContainer": "#1D192B",
- "surface": "#FDF7FF", "surfaceContainerLow": "#F7F2FA", "surfaceContainer": "#F2ECF4", "surfaceContainerHigh": "#ECE6EE", "surfaceContainerHighest": "#E6E0E9",
- "onSurface": "#1D1B20", "onSurfaceVariant": "#49454E", "outline": "#7A757F", "outlineVariant": "#CAC4CF"
+ "primary": "#65558F",
+ "onPrimary": "#FFFFFF",
+ "primaryContainer": "#E9DDFF",
+ "onPrimaryContainer": "#201047",
+ "secondaryContainer": "#E8DEF8",
+ "onSecondaryContainer": "#1D192B",
+ "surface": "#FDF7FF",
+ "surfaceContainerLow": "#F7F2FA",
+ "surfaceContainer": "#F2ECF4",
+ "surfaceContainerHigh": "#ECE6EE",
+ "surfaceContainerHighest": "#E6E0E9",
+ "onSurface": "#1D1B20",
+ "onSurfaceVariant": "#49454E",
+ "outline": "#7A757F",
+ "outlineVariant": "#CAC4CF"
},
"dark": {
- "primary": "#CFBDFE", "onPrimary": "#36275D", "primaryContainer": "#4D3D75", "onPrimaryContainer": "#E9DDFF",
- "secondaryContainer": "#4A4458", "onSecondaryContainer": "#E8DEF8",
- "surface": "#141218", "surfaceContainerLow": "#0F0D13", "surfaceContainer": "#211F24", "surfaceContainerHigh": "#2B292F", "surfaceContainerHighest": "#36343A",
- "onSurface": "#E6E0E9", "onSurfaceVariant": "#CAC4CF", "outline": "#948F99", "outlineVariant": "#49454E"
+ "primary": "#CFBDFE",
+ "onPrimary": "#36275D",
+ "primaryContainer": "#4D3D75",
+ "onPrimaryContainer": "#E9DDFF",
+ "secondaryContainer": "#4A4458",
+ "onSecondaryContainer": "#E8DEF8",
+ "surface": "#141218",
+ "surfaceContainerLow": "#0F0D13",
+ "surfaceContainer": "#211F24",
+ "surfaceContainerHigh": "#2B292F",
+ "surfaceContainerHighest": "#36343A",
+ "onSurface": "#E6E0E9",
+ "onSurfaceVariant": "#CAC4CF",
+ "outline": "#948F99",
+ "outlineVariant": "#49454E"
}
},
"ocean": {
"seed": "#3D7DA8",
"light": {
- "primary": "#2F628C", "onPrimary": "#FFFFFF", "primaryContainer": "#CEE5FF", "onPrimaryContainer": "#001D33",
- "secondaryContainer": "#D5E4F7", "onSecondaryContainer": "#0E1D2A",
- "surface": "#F7F9FF", "surfaceContainerLow": "#F1F4FA", "surfaceContainer": "#ECEEF4", "surfaceContainerHigh": "#E6E8EE", "surfaceContainerHighest": "#E0E2E8",
- "onSurface": "#181C20", "onSurfaceVariant": "#42474E", "outline": "#72777F", "outlineVariant": "#C2C7CF"
+ "primary": "#2F628C",
+ "onPrimary": "#FFFFFF",
+ "primaryContainer": "#CEE5FF",
+ "onPrimaryContainer": "#001D33",
+ "secondaryContainer": "#D5E4F7",
+ "onSecondaryContainer": "#0E1D2A",
+ "surface": "#F7F9FF",
+ "surfaceContainerLow": "#F1F4FA",
+ "surfaceContainer": "#ECEEF4",
+ "surfaceContainerHigh": "#E6E8EE",
+ "surfaceContainerHighest": "#E0E2E8",
+ "onSurface": "#181C20",
+ "onSurfaceVariant": "#42474E",
+ "outline": "#72777F",
+ "outlineVariant": "#C2C7CF"
},
"dark": {
- "primary": "#9BCBFB", "onPrimary": "#003354", "primaryContainer": "#0F4A73", "onPrimaryContainer": "#CEE5FF",
- "secondaryContainer": "#3B4858", "onSecondaryContainer": "#D5E4F7",
- "surface": "#101418", "surfaceContainerLow": "#0B0F13", "surfaceContainer": "#1C2024", "surfaceContainerHigh": "#262A2F", "surfaceContainerHighest": "#31353A",
- "onSurface": "#E0E2E8", "onSurfaceVariant": "#C2C7CF", "outline": "#8C9199", "outlineVariant": "#42474E"
+ "primary": "#9BCBFB",
+ "onPrimary": "#003354",
+ "primaryContainer": "#0F4A73",
+ "onPrimaryContainer": "#CEE5FF",
+ "secondaryContainer": "#3B4858",
+ "onSecondaryContainer": "#D5E4F7",
+ "surface": "#101418",
+ "surfaceContainerLow": "#0B0F13",
+ "surfaceContainer": "#1C2024",
+ "surfaceContainerHigh": "#262A2F",
+ "surfaceContainerHighest": "#31353A",
+ "onSurface": "#E0E2E8",
+ "onSurfaceVariant": "#C2C7CF",
+ "outline": "#8C9199",
+ "outlineVariant": "#42474E"
}
}
},
- "status": { "light": { "success": "#2E7D4F", "warning": "#9A6700", "error": "#BA1A1A", "onError": "#FFFFFF" },
- "dark": { "success": "#7BD8A0", "warning": "#F2C14E", "error": "#FFB4AB", "onError": "#690005" } },
- "shape": { "xs": 8, "sm": 12, "md": 16, "lg": 20, "xl": 28, "full": 999 },
- "fonts": { "ui": "Figtree", "display": "Figtree", "label": "Figtree", "mono": "Space Mono" },
- "label": { "case": "none", "tracking": 0, "size": 12.5, "weight": 600 }
+ "status": {
+ "$note": "No green. Success / done / connected states use the theme's own color roles: primary (dot, 'On' chips) and primaryContainer/onPrimaryContainer (completed checks). Only warning and error have dedicated colors.",
+ "light": {
+ "success": "{primary}",
+ "warning": "#9A6700",
+ "error": "#BA1A1A",
+ "onError": "#FFFFFF"
+ },
+ "dark": {
+ "success": "{primary}",
+ "warning": "#F2C14E",
+ "error": "#FFB4AB",
+ "onError": "#690005"
+ }
+ },
+ "shape": {
+ "xs": 8,
+ "sm": 12,
+ "md": 16,
+ "lg": 20,
+ "xl": 28,
+ "full": 999
+ },
+ "fonts": {
+ "ui": "Figtree",
+ "display": "Figtree",
+ "label": "Figtree",
+ "mono": "Space Mono"
+ },
+ "label": {
+ "case": "none",
+ "tracking": 0,
+ "size": 12.5,
+ "weight": 600
+ }
},
-
"graphite": {
"description": "Built-in alternative, from github.com/thtbee/graphite. Monochrome ink on paper / chalk on slate; dynamic color off.",
"dynamicColor": false,
"variants": {
"paper": {
- "primary": "#1A1918", "onPrimary": "#F5F2EB", "primaryContainer": "#E8E3D7", "onPrimaryContainer": "#1A1918",
- "secondaryContainer": "#E8E3D7", "onSecondaryContainer": "#1A1918",
- "surface": "#F5F2EB", "surfaceContainerLow": "#F1EDE4", "surfaceContainer": "#F5F2EB", "surfaceContainerHigh": "#EFEBE2", "surfaceContainerHighest": "#E8E3D7",
- "onSurface": "#1A1918", "onSurfaceVariant": "#5E5A54", "outline": "#4A4743", "outlineVariant": "#D5CFC2",
- "success": "#3F6B4A", "warning": "#8A6A1F", "error": "#9E2B25", "onError": "#F5F2EB",
- "buttonShadow": "3px 3px 0 #D5CFC2", "grain": 0.22, "grid": "rgba(74,71,67,0.06)"
+ "primary": "#1A1918",
+ "onPrimary": "#F5F2EB",
+ "primaryContainer": "#E8E3D7",
+ "onPrimaryContainer": "#1A1918",
+ "secondaryContainer": "#E8E3D7",
+ "onSecondaryContainer": "#1A1918",
+ "surface": "#F5F2EB",
+ "surfaceContainerLow": "#F1EDE4",
+ "surfaceContainer": "#F5F2EB",
+ "surfaceContainerHigh": "#EFEBE2",
+ "surfaceContainerHighest": "#E8E3D7",
+ "onSurface": "#1A1918",
+ "onSurfaceVariant": "#5E5A54",
+ "outline": "#4A4743",
+ "outlineVariant": "#D5CFC2",
+ "success": "#1A1918",
+ "warning": "#8A6A1F",
+ "error": "#9E2B25",
+ "onError": "#F5F2EB",
+ "buttonShadow": "3px 3px 0 #D5CFC2",
+ "grain": 0.22,
+ "grid": "rgba(74,71,67,0.06)"
},
"slate": {
- "primary": "#E8EAED", "onPrimary": "#0D0D0E", "primaryContainer": "#1A1A1D", "onPrimaryContainer": "#E8EAED",
- "secondaryContainer": "#1A1A1D", "onSecondaryContainer": "#E8EAED",
- "surface": "#0D0D0E", "surfaceContainerLow": "#0B0B0C", "surfaceContainer": "#0D0D0E", "surfaceContainerHigh": "#141416", "surfaceContainerHighest": "#1A1A1D",
- "onSurface": "#E8EAED", "onSurfaceVariant": "#9A9CA1", "outline": "#7E8084", "outlineVariant": "#26272A",
- "success": "#8FC7A0", "warning": "#E2C47A", "error": "#F0A39C", "onError": "#0D0D0E",
- "buttonShadow": "3px 3px 0 #26272A", "grain": 0.12, "grid": "rgba(200,208,216,0.035)"
+ "primary": "#E8EAED",
+ "onPrimary": "#0D0D0E",
+ "primaryContainer": "#1A1A1D",
+ "onPrimaryContainer": "#E8EAED",
+ "secondaryContainer": "#1A1A1D",
+ "onSecondaryContainer": "#E8EAED",
+ "surface": "#0D0D0E",
+ "surfaceContainerLow": "#0B0B0C",
+ "surfaceContainer": "#0D0D0E",
+ "surfaceContainerHigh": "#141416",
+ "surfaceContainerHighest": "#1A1A1D",
+ "onSurface": "#E8EAED",
+ "onSurfaceVariant": "#9A9CA1",
+ "outline": "#7E8084",
+ "outlineVariant": "#26272A",
+ "success": "#E8EAED",
+ "warning": "#E2C47A",
+ "error": "#F0A39C",
+ "onError": "#0D0D0E",
+ "buttonShadow": "3px 3px 0 #26272A",
+ "grain": 0.12,
+ "grid": "rgba(200,208,216,0.035)"
}
},
- "shape": { "xs": 2, "sm": 3, "md": 4, "lg": 4, "xl": 6, "full": 3 },
- "fonts": { "ui": "Figtree", "display": "Instrument Serif", "label": "Space Mono", "mono": "Space Mono", "note": "Caveat" },
- "label": { "case": "upper", "tracking": 0.12, "size": 10.5, "weight": 400 },
+ "shape": {
+ "xs": 2,
+ "sm": 3,
+ "md": 4,
+ "lg": 4,
+ "xl": 6,
+ "full": 3
+ },
+ "fonts": {
+ "ui": "Figtree",
+ "display": "Instrument Serif",
+ "label": "Space Mono",
+ "mono": "Space Mono",
+ "note": "Caveat"
+ },
+ "label": {
+ "case": "upper",
+ "tracking": 0.12,
+ "size": 10.5,
+ "weight": 400
+ },
"rules": [
"Cards use 1px outlineVariant borders, no fills, no elevation.",
"Primary buttons are ink-filled with the flat offset buttonShadow.",
"Crop marks frame hero imagery; 'FIG. NN // ...' annotations label sections.",
"At most one handwritten (Caveat) margin note per screen, only for delight moments.",
- "Never use Graphite's art effects in the app: no smudge physics, no gritty lettering, no scroll sound."
+ "Never use Graphite's art effects in the app: no smudge physics, no gritty lettering, no scroll sound.",
+ "Success and completed states use ink (Paper) or chalk (Slate), never green."
]
}
},
-
"typography": {
- "displayLarge": { "size": 44, "lineHeight": 1.05, "weight": 650, "tracking": -0.025 },
- "displaySmall": { "size": 30, "lineHeight": 1.1, "weight": 650, "tracking": -0.02 },
- "headline": { "size": 22, "lineHeight": 1.2, "weight": 650, "tracking": -0.015 },
- "title": { "size": 16, "lineHeight": 1.35, "weight": 600, "tracking": 0 },
- "body": { "size": 14, "lineHeight": 1.5, "weight": 400, "tracking": 0 },
- "bodySmall": { "size": 12.5, "lineHeight": 1.45, "weight": 400, "tracking": 0 },
- "label": { "size": 12.5, "lineHeight": 1.3, "weight": 600, "tracking": 0 },
- "caption": { "size": 11, "lineHeight": 1.3, "weight": 500, "tracking": 0 },
- "code": { "size": 13, "lineHeight": 1.3, "weight": 700, "tracking": 0.14, "font": "mono" }
+ "displayLarge": {
+ "size": 44,
+ "lineHeight": 1.05,
+ "weight": 650,
+ "tracking": -0.025
+ },
+ "displaySmall": {
+ "size": 30,
+ "lineHeight": 1.1,
+ "weight": 650,
+ "tracking": -0.02
+ },
+ "headline": {
+ "size": 22,
+ "lineHeight": 1.2,
+ "weight": 650,
+ "tracking": -0.015
+ },
+ "title": {
+ "size": 16,
+ "lineHeight": 1.35,
+ "weight": 600,
+ "tracking": 0
+ },
+ "body": {
+ "size": 14,
+ "lineHeight": 1.5,
+ "weight": 400,
+ "tracking": 0
+ },
+ "bodySmall": {
+ "size": 12.5,
+ "lineHeight": 1.45,
+ "weight": 400,
+ "tracking": 0
+ },
+ "label": {
+ "size": 12.5,
+ "lineHeight": 1.3,
+ "weight": 600,
+ "tracking": 0
+ },
+ "caption": {
+ "size": 11,
+ "lineHeight": 1.3,
+ "weight": 500,
+ "tracking": 0
+ },
+ "code": {
+ "size": 13,
+ "lineHeight": 1.3,
+ "weight": 700,
+ "tracking": 0.14,
+ "font": "mono"
+ }
+ },
+ "spacing": {
+ "unit": 4,
+ "scale": [
+ 0,
+ 2,
+ 4,
+ 6,
+ 8,
+ 10,
+ 12,
+ 16,
+ 20,
+ 24,
+ 32,
+ 40,
+ 48,
+ 64
+ ]
},
-
- "spacing": { "unit": 4, "scale": [0, 2, 4, 6, 8, 10, 12, 16, 20, 24, 32, 40, 48, 64] },
-
"layout": {
- "desktop": { "railWidth": 80, "topBarHeight": 52, "contentPadding": 22, "gutter": 16, "minWindow": [880, 600] },
- "phone": { "screenPadding": 16, "gutter": 10, "tabBarHeight": 64 }
+ "desktop": {
+ "railWidth": 80,
+ "topBarHeight": 52,
+ "contentPadding": 22,
+ "gutter": 16,
+ "minWindow": [
+ 880,
+ 600
+ ]
+ },
+ "phone": {
+ "screenPadding": 16,
+ "gutter": 10,
+ "tabBarHeight": 64
+ }
},
-
"elevation": {
- "bloom": { "level0": "none", "level1": "0 1px 2px rgba(0,0,0,.06)", "window": "0 1px 2px rgba(0,0,0,.06), 0 24px 60px -20px rgba(0,0,0,.18)" },
- "graphite": { "level0": "none", "level1": "none", "window": "0 30px 70px -30px rgba(0,0,0,.35)" }
+ "bloom": {
+ "level0": "none",
+ "level1": "0 1px 2px rgba(0,0,0,.06)",
+ "window": "0 1px 2px rgba(0,0,0,.06), 0 24px 60px -20px rgba(0,0,0,.18)"
+ },
+ "graphite": {
+ "level0": "none",
+ "level1": "none",
+ "window": "0 30px 70px -30px rgba(0,0,0,.35)"
+ }
},
-
"motion": {
"description": "Springs everywhere; durations are only for fades. Respect reduced-motion: replace movement with 120 ms fades.",
"spring": {
- "gentle": { "stiffness": 220, "damping": 26, "use": "page and panel transitions" },
- "standard": { "stiffness": 380, "damping": 30, "use": "cards, sheets, expanding a notification into a conversation" },
- "snappy": { "stiffness": 620, "damping": 34, "use": "toggles, chips, buttons, hover lift" }
+ "gentle": {
+ "stiffness": 220,
+ "damping": 26,
+ "use": "page and panel transitions"
+ },
+ "standard": {
+ "stiffness": 380,
+ "damping": 30,
+ "use": "cards, sheets, expanding a notification into a conversation"
+ },
+ "snappy": {
+ "stiffness": 620,
+ "damping": 34,
+ "use": "toggles, chips, buttons, hover lift"
+ }
+ },
+ "fade": {
+ "fast": 120,
+ "normal": 200
},
- "fade": { "fast": 120, "normal": 200 },
"hoverLift": 2,
"pressScale": 0.97
},
-
- "icons": { "set": "Material Symbols Rounded (Apache-2.0)", "size": 20, "stroke": "outlined, 400 weight; filled when selected" }
-}
+ "icons": {
+ "set": "Material Symbols Rounded (Apache-2.0)",
+ "size": 20,
+ "stroke": "outlined, 400 weight; filled when selected"
+ }
+}
\ No newline at end of file
diff --git a/docs/protocol/v0.md b/docs/protocol/v0.md
index 26c6fdd..00f013f 100644
--- a/docs/protocol/v0.md
+++ b/docs/protocol/v0.md
@@ -119,7 +119,7 @@ b = {
app: text, // app version, e.g. "0.1.0"
device: DeviceInfo,
caps: [text], // capability IDs this device offers (see §6)
- power: text, // "basic" | "assist" | "elevated" | "root" | "n/a" (desktop)
+ power: text, // "basic" | "assist" | "elevated" | "n/a" (desktop); unknown values are treated as "basic"
}
DeviceInfo = {