/caligrafy-quill:design [style-name | off]from caligrafy-quill
Restyles every page of a Caligrafy Quill project by writing a single override stylesheet. Supports 84 vendored design styles plus local ones. Activated when user asks to theme or re-skin the app.
Ships in caligrafy-quill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Style: $ARGUMENTS (a style name; empty = the DESIGN_STYLE of .env, or ask; off = back to the Caligrafy look).
How it fits together (Quill 2.8+):
DESIGN.md (colors, type, spacing, components, do's and don'ts), looked up in this order, the
first one winning on a name clash: the project's own application/design/<name>/, then Caligrafy's
framework/design/local/<name>/ (interstellar...), then framework/design/vendor/<vendor>/<name>/ (84 styles of
VoltAgent/awesome-design-md, MIT, attribution in its README.md
and LICENSE). framework/design/README.md explains the layout; design list shows each style's source.DESIGN_STYLE=<name> in .env selects one; empty is Caligrafy's own look.site.pug, Caligrafy's pages since 2.11.0, and the older layoutblocks.pug), the Vue app template
(framework/plugins/app/index.php) and the camera apps (face detection, machine learning) link
public/css/designs/<name>.css last: after styles.css, Bootstrap, theme.css, tokens.css, layout.css, camera.css
and look.css (Caligrafy's look, 2.11.0+), through design_stylesheet(), only when that file exists. Unknown name or
no stylesheet: the Caligrafy look, unchanged.php caligrafer.php design list | show <name> | use <name> | off | status; doctor reports the selected style.The one rule: write only public/css/designs/<name>.css. Never edit look.css, layout.css, camera.css,
tokens.css, tokens.json (the QA suite checks they match), theme.css, styles.css, the masters or the views to restyle: the user's Caligrafy look must come
back intact the moment DESIGN_STYLE is emptied. If a page truly cannot be styled without a markup change, tell the
user which one and why instead of making it.
Commands: php caligrafer.php ... when PHP 8.3+ is on this computer (php -v), otherwise in the Docker server:
docker compose exec -T dev-box php caligrafer.php .... Below, caligrafer means whichever works. Never print .env.
off: caligrafer design off, say the Caligrafy look is back (the stylesheets stay in public/css/designs/, unused),
check one page in the browser, stop.caligrafer design show <name>. Unknown: caligrafer design list and offer the closest names.caligrafer design status. Nothing selected: ask which style, with three or four fitting suggestions from
caligrafer design list (light editorial, dark developer, colorful consumer...) and "Other". A project without
framework/design/ (before 2.8): fetch the one file the user picked,
https://raw.githubusercontent.com/VoltAgent/awesome-design-md/main/design-md/<name>/DESIGN.md, into
application/design/<name>/DESIGN.md with a line crediting VoltAgent/awesome-design-md (MIT).application/design/<name>/DESIGN.md in the
same sections first, then continue with it.Most files open with YAML front matter: colors, typography (fontFamily, fontSize, fontWeight, lineHeight,
letterSpacing per role), rounded, spacing, components (button-primary, card, text-input...: background, text
color, radius, padding, height, with {colors.x} references). The prose explains what the tokens can't: the
atmosphere, elevation (shadows or borders), the font substitutes, do's and don'ts, responsive behavior. About ten files
are prose only: take the hex values and sizes from their tables. Note before writing anything:
Pages share a few surfaces, so one stylesheet covers them all (surfaces.md maps every selector to its design role and the Caligrafy rule it has to beat):
look.css): its --design-* tokens (canvas, surface, ink, body, muted, hairline,
primary and its hover and text, error, success, font, radii) feed the --cq-* tokens: overriding the --design-*
values in :root restyles most of every page at once;site.pug (layout.css): the top bar .cq-nav (sticky, 56px, .cq-nav-mark the Caligrafy mark,
.cq-nav-brand, .cq-nav-link, .cq-nav-toggle on phones), .cq-hero, .cq-display, .cq-lead, .cq-cta,
.cq-band(--surface), .cq-heading, .cq-auth (sign-in, register), .cq-field, .cq-form-grid, .cq-or,
.cq-alert(--error), .cq-field-error, .cq-segments, .cq-count, .cq-rows, .cq-row, .cq-row-actions,
.cq-tiles, .cq-tile, .cq-stats, .cq-badge, .cq-account, .cq-account-nav, .cq-doc, .cq-code,
.cq-pre, .cq-empty-state, .cq-footer;camera.css): .cq-camera and its --cq-camera-* tokens (the main action over the camera,
the see-through buttons, the oval, the sheet);layoutblocks.pug: header (fixed, 60px, .color0), footer, and the card components of
tokens.css: .cq-page, .cq-card, .cq-card-head, .cq-title, .cq-note, .cq-form, .cq-submit,
.cq-error, .cq-tabs, .cq-list, .cq-item, .cq-actions, .cq-empty, .cq-foot;grep -rhoE "class=['\"][^'\"]+|\.[a-z][a-z0-9-]+" application/views and the
public/<app>/index.php templates. Vite SPAs (public/<app>/src/main.js) import the stylesheets at build time:
add import '../../css/designs/<name>.css' after the look.css import there and say so (it is then always on for
that SPA until removed).public/css/designs/<name>.cssFollow the six sections of the two worked examples, written by this skill and checked at desktop and phone width: examples/claude.css (a light style: cream canvas, serif headings, hairline cards) and examples/linear.app.css (a dark one: layered surfaces, one accent). Fill every section from your notes, never from the example's values:
DESIGN.md path that design show <name> prints, and its license or origin),
"loaded after the Caligrafy stylesheets when DESIGN_STYLE=; empty it to get the Caligrafy look back".@import the free substitutes from Google Fonts at the very top. Never link or embed proprietary fonts
(Söhne, SF Pro, Copernicus, Styrene, Circular...): name them first in font-family only when the DESIGN.md does,
followed by the substitute and a generic family.:root (the first rule of the file: the app's emails read their colors, font and corners from it, G111): the
design's values as the --design-* custom properties of look.css (same names, so every Caligrafy
rule follows), then the Caligrafy tokens they replace (--cq-color-ink, --cq-color-paper, --cq-color-page,
--cq-color-canvas, --cq-color-surface, --cq-color-primary, --cq-color-on-primary, --cq-color-text,
--cq-color-text-muted, --cq-color-border, --cq-radius-control, --cq-radius-card) and, for the camera pages,
--cq-camera-*. Every rule below uses these variables, never repeated hex values.--bs-btn-* variables, fields, focus),
then the page components, then phone width (@media (max-width: 575px)).Rules that keep it working:
!important: prefix with html body (theme.css uses
html .btn-primary, styles.css body *, look.css html body: loaded after it, the same prefix wins). !important
only against an inline style or a Bootstrap utility.styles.css sets font-family and font-weight: lighter on body *: reset both on html body * and restore
weights on headings, labels, buttons and .semibold.layout.css, the full-screen camera, the
one-column phone layout (and on older pages the 60px fixed header, .cq-page's 76px top padding, card widths).
Change colors, type, radii, borders, shadows, spacing; not the page skeleton..cq-nav (frosted white), .cq-tile,
.cq-band--surface, .cq-segments button, .cq-count, .form-control (text, placeholder, background, autofill),
alerts, .cq-code, .cq-pre, .btn-secondary, the camera sheet; on older pages .color0, .card.color0, .cq-card.--cq-touch-target).style blocks: the stylesheet does the work.Then select it: caligrafer design use <name> (it sets DESIGN_STYLE=<name> in .env; the layout adds ?v=<mtime>
so the browser picks up every edit).
Open the pages at 1280 px and 375 px wide (the built-in browser or Claude in Chrome): /, /login, /register, each page
of application/views and its routes (the Tasks example at /tasks with a few tasks added, an empty state, a done
task, a segment switched), the client apps (/apps/<name>, a camera app with the camera allowed), signed out and
signed in, and the phone Menu opened. For each one:
link[href*="css/designs/"]).
Then the emails (Caligrafy Quill 2.15.0+): docker compose exec dev-box php -r 'require "vendor/autoload.php"; foreach (["ServiceError","Notify"] as $c) require "framework/core/$c.php"; echo Caligrafy\Notify::html("Hello", ["A notification in this style."], ["Open", "https://example.com"], "Footer");' > /tmp/email.html, open it: its button,
font and colors must be the style's.
Fix the stylesheet and reload until all of them pass. Show the user desktop and phone screenshots of the sign-in page
and of a component page, say which file you wrote, and how to switch back: caligrafer design off (or another style
with design use <name>, then this skill again).caligrafer doctor must then report OK Design style: <name>: public/css/designs/<name>.css loaded....
Commit only when the user asks: the stylesheet, .env stays out of git (set DESIGN_STYLE on the production server
or Caligrafy Cloud: caligrafer cloud secret set <app> DESIGN_STYLE=<name>).
The override stylesheet uses logical properties (margin-inline-start, padding-inline-end, text-align: start), never left/right: in an app with Arabic or Hebrew (2.28.0, lang_dir() gives rtl) the pages must mirror.
What SKILL.md sets; muted values are Claude Code's defaults
The user asks to restyle, theme or re-skin the application, to make it look like a website or a design system, to use a DESIGN.md, a design style, DESIGN_STYLE or php caligrafer.php design, or to go back to the Caligrafy look ("/caligrafy-quill:design linear.app", "/caligrafy-quill:design off").
npx claudepluginhub caligrafy/caligrafy-quill --plugin caligrafy-quill14 skills in this plugin
/assistantGive a Caligrafy Quill project Snap Cards and the assistant (2.23.0, Route::snap()) end to end - every capability becomes a card a person can use (an Ask card: Form, Choice or Confirm; a Show card: Answer or List; a Go card: Shortcut; a Track card: Task; an Offer card: Suggestion or Routine), and /assistant gives each signed-in person a Home that shows what needs them and a conversation that answers with those cards. Adds Route::snap(); to web.php, runs php caligrafer.php snap install, writes application/config/snap.php hints from the app's own capabilities, writes a card view (application/views/snap/<capability>.pug, 2.25.0) for each main list and record from the app's own pages and look, adds the queue and routines jobs, marks slow capabilities async, asks for an Anthropic API key, and checks /assistant and /snap./caligrafyExpert knowledge of the Caligrafy Quill PHP MVC framework (Caligrafy\Controller, Caligrafy\Model, Route, Request, Auth, Pug/Phug views, GUMP validation, caligrafer CLI, Docker dev server, Vue client apps, Stripe/Coinbase payments, OpenAI/Groq/Watson AI, open models (Llama) through Together, Fireworks, OpenRouter or Ollama, FaceDetect, ML, and the build-once layer: services and capabilities served to web pages, REST, the JS client and AI agents over MCP, with personal access tokens and an audit log, the query builder (Database::table, Book::where), the declarative routes (Route::form, Route::auth, Route::webhook, Route::download, Route::action with web-only capabilities and Caligrafy\Web), Snap Cards and the assistant (Route::snap(): every capability as a card, an assistant that answers with them), and the page components every new UI is built with). Use whenever code touches a Caligrafy Quill project - application/config/routing/web.php, application/controllers, application/models, application/views/*.pug, public/<app>/, .env, caligrafer.php or .bin/caligrafer./dbRun Caligrafy Quill SQL scripts (application/models/**/create_db.sql or any .sql file) and migrations (application/migrations, php caligrafer.php migrate) against the project's MySQL - inside the docker-compose mysql container, or a local MySQL using the .env DB_* settings - and inspect tables./deployPut a Caligrafy Quill project online - check it is ready for production (Dockerfile, composer.lock, create_db.sql scripts safe to run again, no secrets in git, pushed to GitHub), then deploy it to Caligrafy Cloud (https://<name>.caligrafy.com) with php caligrafer.php cloud, or prepare it for the user's own server (Coolify, Docker)./ideaDescribe it. Approve it. Ship it. - the user's idea turned into a complete app online, in one conversation and one confirmation - turn the user's idea into a plan, set up a Caligrafy Quill project, write the tables and capabilities once, serve them to a web page, a REST API, the JS client and AI agents (MCP), check every experience, then ship it to GitHub and https://<name>.caligrafy.com by itself (the ship skill). The user only approves in the browser. The Quickstart with Claude./marketplacePackage a Caligrafy app hosted on Caligrafy Cloud for the marketplace of caligrafy.com - read the whole code, run the app and walk the whole experience end to end to screenshot its key features (5 at most, all different), and write, in one private file (.caligrafy/marketplace.json, never in git), its title, its description for buyers, those screenshots, the prompt that recreates the whole app with Caligrafy and an estimated price window from a short market study; then send it to Caligrafy (php caligrafer.php cloud submit) and redeploy the app. Caligrafy reviews it, sets the final price and publishes it; the maker earns 25% of every sale.Other plugins' skills for the same job