Four more visual styles: Deco, Nouveau, Riso, Spectrum#9
Merged
Conversation
Four more presets, faithful in preview and PNG/SVG/PDF export: - Deco: dark emerald, thin gold connectors + dots, Poiret One uppercase with letter-spacing, gold double frame with corner diamonds. - Nouveau: cream, tapered "whiplash" ribbon connectors, Spectral, muted botanical palette, soft oval inset frame. - Riso: off-white with halftone dot grain, thick spot-ink strokes, and an offset misregistration text shadow in a hue-shifted companion ink. Approximates risograph overprint without multiply/turbulence so export matches the preview. - Spectrum: deep violet, thick solid color ribbons; bundles a vivid rainbow palette so a set of links spans the spectrum (linked words share one color, so no per-link gradient). New capabilities: connector widthScale reuse, textOffsetShadow, tokenTransform (uppercase + letter-spacing), shiftHue, grain background, deco/nouveau frames. Adds Poiret One font and deco/nouveau/riso/spectrum palettes (also selectable on their own). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
- Export now crops to the token bounding box (plus a small margin) instead of the full preview height, so the shared image isn't padded with editor chrome and the credit sits right below the diagram. Removes the empty stretch that invited cropping. Background, frame, credit and QR all follow the cropped viewBox. - Spectrum ribbons and Riso strokes are thinner by default. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds four more presets to the visual-styles system, each faithful in the live preview and the PNG/SVG/PDF export (single catalog drives both).
feTurbulence, so the export matches the preview (per the parity decision).New capabilities
textOffsetShadow(Riso misregistration),tokenTransform(uppercase + letter-spacing, Deco),shiftHuehelper, halftone grain background, Deco/Nouveau decorative frames.Notes
Testing
npm run checkclean, lint clean, 95 tests pass. Verified all four in preview and PNG export (Deco frame + uppercase, Riso grain + misregistration, Spectrum ribbons, Nouveau ribbons) via Playwright.🤖 Generated with Claude Code