@ammduncan/easel 0.2.10 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  All notable changes to easel. This project adheres to [Semantic Versioning](https://semver.org/).
4
4
 
5
+ ## 0.2.11 — 2026-05-22
6
+
7
+ ### Docs
8
+ - **Locked-mode container guidance now covers syntax highlighting explicitly.** The existing rule ("background and text are a pair — commit both, re-scope `color: inherit` to children") only addressed single-color text. Syntax-highlighted code blocks layer multiple token colors on top of that, and the recurring failure was a `property` / `punctuation` / `comment` token colored near-background (e.g. `#2c2c40` on `#0f172a`) silently rendering whole identifiers invisible. New guidance in `skills/using-easel/SKILL.md` and the inline `push` tool description spells out: use a tested theme designed for your bg (Shiki `github-dark` / `vitesse-dark` / `one-dark-pro` for `#0f172a`-ish; `github-light` / `vitesse-light` for `#f5f7fa`-ish) OR pick from a verified 6-color palette for `#0f172a` (keyword `#ff7b72`, string `#a5d6ff`, function `#d2a8ff`, property `#79c0ff`, number `#ffa657`, comment `#8b949e`, default `#e6edf3`). Fallback: drop highlighting, use single-color monospace.
9
+
5
10
  ## 0.2.10 — 2026-05-22
6
11
 
7
12
  ### Changed
package/dist/mcp.js CHANGED
@@ -127,7 +127,8 @@ export async function main() {
127
127
  " .terminal { background: #0f172a; color: #e6edf3; border-radius: 12px; padding: 20px 24px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13.5px; line-height: 1.7; }\n" +
128
128
  " .terminal *, .terminal span, .terminal pre { color: inherit; }\n" +
129
129
  " .terminal .muted { color: #94a3b8; }\n" +
130
- " .terminal .accent { color: #6ee7b7; }\n\n" +
130
+ " .terminal .accent { color: #6ee7b7; }\n" +
131
+ "• Syntax-highlighted code in a locked-bg block: EVERY token color must be verified readable against the bg, not just the body color. Recurring bug: locking to #0f172a then giving 'property' / 'punctuation' / 'comment' tokens something like #2c2c40 because it 'looked subtle' — against #0f172a it's nearly invisible and identifiers disappear. Either use a tested theme designed for your bg (Shiki github-dark / vitesse-dark / one-dark-pro for #0f172a-ish, github-light / vitesse-light for #f5f7fa-ish), or pick from this verified palette for #0f172a: keyword #ff7b72, string #a5d6ff, function #d2a8ff, property #79c0ff, number #ffa657, comment #8b949e, default text #e6edf3. If you can't articulate why each token reads against the bg, drop highlighting and use single-color monospace — that always works.\n\n" +
131
132
  "═══ TYPOGRAPHY (presentation scale, NOT dashboard) ═══\n" +
132
133
  "• Hero title: 44–52px, weight 500, letter-spacing -0.025em\n" +
133
134
  "• Section titles: 28–36px, weight 500\n" +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ammduncan/easel",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "A live browser tab for every Claude Code (and MCP) session. The push MCP tool appends HTML cards to a scrolling feed you keep open in split-screen.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -198,6 +198,24 @@ When the mockup references a real thing — a real app, a real component, a real
198
198
 
199
199
  The rule of thumb: background and text are a pair — commit one, commit the other.
200
200
 
201
+ **Syntax highlighting in locked-bg code blocks needs *every token* verified.** "Bg + text are a pair" extends to every token color you use. The recurring failure: lock a code block to `#0f172a`, then layer syntax tokens where one (usually `property`, `punctuation`, or `comment`) is colored `#2c2c40` or `#3b4252` because it "looked subtle" — against `#0f172a` it's nearly invisible and whole identifiers disappear from the block. Two ways out:
202
+
203
+ 1. **Use a tested theme designed for your bg.** Shiki / Prism / Highlight.js themes like `github-dark`, `vitesse-dark`, `one-dark-pro` for `#0f172a`-ish backgrounds; `github-light`, `vitesse-light` for `#f5f7fa`-ish. The theme's author already verified contrast — don't override individual tokens.
204
+ 2. **Hand-rolling tokens? Verify each one against the bg, or pick from this verified palette for `#0f172a`:**
205
+
206
+ ```css
207
+ .code { background: #0f172a; color: #e6edf3; }
208
+ .code .keyword { color: #ff7b72; } /* red-pink: keywords, control flow */
209
+ .code .string { color: #a5d6ff; } /* sky: strings, attribute values */
210
+ .code .function { color: #d2a8ff; } /* purple: function names */
211
+ .code .property { color: #79c0ff; } /* blue: identifiers, properties, members */
212
+ .code .number { color: #ffa657; } /* orange: numbers, constants */
213
+ .code .comment { color: #8b949e; } /* muted gray: comments — still readable */
214
+ .code * { color: inherit; } /* default everything else to body color */
215
+ ```
216
+
217
+ If you can't articulate why each token color reads against the bg, drop syntax highlighting entirely and use single-color monospace — that always works.
218
+
201
219
  ### 5. Visualizations — tangible over abstract
202
220
 
203
221
  When something can be represented as a real-world object — browser-chrome tab cards with red/yellow/green dots, proportional horizontal timeline bars with marked phases, device frames, code editor windows, terminal windows, merging-pipe shapes for funnels — **do that**, not abstract labeled rectangles with arrows.