Documentation menu
Documentation / Blocks & themes / theme-counsel
Theme Counsel
npm install @wabbit/tome-theme-counselFirst install from our registry?
Get a registry token from your credentials page. You need a purchase that includes this package, or a Craft Library membership.
Add the registry and your token to the
.npmrcat the root of your project, with your token in place ofYOUR_TOKEN:@wabbit:registry=https://npm.wabbit.com/ //npm.wabbit.com/:_authToken=YOUR_TOKEN
Counsel, a Tome theme for law firms and other advisors whose credibility is their product: formal and paneled, with square panels under a thin accent rule, large serif numerals, a split first screen with a framed portrait and a compliance line on every proof block. Five light palettes (Chancery, Vellum, Sage, Slate, Tobacco), self-hosted OFL fonts, activated by data-tome-theme="counsel".
Overview
Counsel is a Tome theme for law firms first, then accountants, financial and tax advisors, consultants and medical specialists: advisors whose credibility is their product. Its look is "Chambers": formal and paneled. Square panels under a thin accent rule, large serif numerals, a split first screen with a large framed portrait, filled accent buttons, full-width grounds in four tones (the page, a light tone, a dark tone and the deepest ink), and a compliance line on every proof block. It ships five palettes (Chancery, the default, then Vellum, Sage, Slate and Tobacco), light only.
This package is a theme (a ThemeManifest of kind: 'theme'). It owns no blocks. It declares the whole token surface blocks read, self-hosts its two OFL font families, and restyles blocks and chrome through their public hooks.
Layer: ui · Family / tier: themes / addon · Versioning: independent.
Peer dependencies
| Peer | Range | Required |
|---|---|---|
@wabbit/tome-ui | >=0.18.0 <1.0.0 | yes |
@wabbit/tome-core | >=1.21.1 <2.0.0 | no (optional) |
@wabbit/tome-ui is a CSS-contract peer. Its tokens.css re-declares the var()-aliased Layer 2 under [data-tome-theme] and defines the fixed-band ink family this theme sets, and 0.18.0 is the release that ships the platform scroll reveal Counsel turns on. @wabbit/tome-core is needed only for the @wabbit/tome-theme-counsel/register subpath and the ThemeManifest type. The package imports no React and no Payload.
The home page's treatments style options the blocks, chrome and forms added for this design: the FAQ's answered mode, Navbar 1's ctaVisibleBelowDesktop and layoutHooks, Footer 7's layoutHooks and per-column joinPrevious, and the forms field width hint. On older packages the theme still applies, and those parts render with the blocks' own layout (the FAQ as an accordion, the footer columns without panels, the form one field a row).
Usage
Import the stylesheet once at the app root, after tome-ui's tokens, and activate the theme on <html>:
// app/layout.tsx
import '@wabbit/tome-ui/tokens.css'
import '@wabbit/tome-theme-counsel/styles.css'
import '@wabbit/tome-theme-counsel/fonts.css'<html data-tome-theme="counsel"> <!-- Chancery -->
<html data-tome-theme="counsel" data-tome-palette="tobacco"> <!-- Tobacco -->With no data-tome-palette the theme renders Chancery. Light only: every palette's rule also matches its [data-theme="dark"] compound, so a dark attribute on <html> resolves to the same light values, above tome-ui's dark block by specificity, and the page never half-switches. The manifest lists each palette with modes: ['light'], so the ThemeSwitcher offers no dark mode.
To have the admin ThemeSwitcher, createThemeConfig() and other registry readers list it, register it on the server before building the Payload config:
import '@wabbit/tome-theme-counsel/register'The page, band by band
The home page is a run of full-width bands, each a block. Counsel paints each band's ground on the block wrapper (RenderBlocks' [data-tome-block-wrapper], which carries data-block-type and spans the row), so the paint runs edge to edge while the content sits on the wrap: 1560px at most, with a clamp(1.25rem, 3.75vw, 3.75rem) gutter below that (the page grid's --tome-grid-padding). The dark and ink bands are scopes: they re-point the theme-relative Layer-2 names to their own family, so every block part that reads them follows.
| Band | Block and options | Ground |
|---|---|---|
| Hero | high-impact-hero, variant split, one supporting image with caption, captionMeta and label, a link and callAction | dark |
| Figures | proposal-stat-strip, header off, four stats with starred units, note | light |
| Practice areas | phase-ledger, variant index, phases with num, title, body, outcome, link | page |
| Selected matters | dated-ledger, variant columns (four columns), datePrecision: 'year', chipPlacement: 'dateline', entries with reference, chip, image, figure, complianceLabel, a note | light |
| How an engagement works | phase-ledger, variant default, phases with num ("Step 1"), title, body, outcome (the chip line) | dark, with ink panels |
| People | team-roster, variant people, statement.position: 'last', photoLabelPlacement: 'below', no empty cells | light |
| Recognition | dated-ledger, variant rows, density: 'compact', datePrecision: 'year', entries with chip, title, result, a note | page, one soft panel |
| Client voice | testimonial, layout quotes-grid, titleLevel: 'h2', a stat at position 1 (quotes optional) | ink |
| FAQ | faq with answered: true, five questions, a callout with a link | page |
| Intake | contact, variant estimate, media (a photo), aside, a tome-forms form with stepsDisplay: 'stacked' | dark |
At 640px and below every band pads 2rem and the panel grids tighten.
Header: Navbar 1 and the lockup
Use tome-chrome's Navbar 1 (design version '1') with headerPosition: 'static' (the bar scrolls away), backgroundColor: 'background' and backgroundEffect: 'solid' (the theme paints the fill the dark tone by re-pointing that token on the header frame), layoutHooks: true, mobileMenuLabel: 'word' and ctaVisibleBelowDesktop: true, with one CTA button. From 1024px the bar holds the lockup at the left and the links pushed right against the CTA, each link 44px tall with the current page and hover under a 2px band-accent rule. Below 1024px it holds the lockup, the CTA and a bordered "Menu" button; at 640px and below the CTA leaves the bar (the menu sheet keeps its copy). The menu sheet is drawn on the deepest ink. skipLink is styled by chrome.
The two-line brand ("Hollis & Marrow" over "Attorneys at law") is your LogoComponent, rendered in chrome's logo slot. Mark it up with the theme's lockup hooks:
<span data-counsel-lockup>
<span data-counsel-lockup-name>
Hollis <span data-counsel-mark>&</span> Marrow
</span>
<span data-counsel-lockup-tagline>Attorneys at law</span>
</span>The name is the display face, the ampersand italic in the band accent, the tagline tracked capitals. The same markup is the footer's wordmark.
Footer: Footer 7 as panels
Set the Footer global to design version '7' with backgroundColor: 'background' (painted the deepest ink) and layoutHooks: true. The brand column runs across the band with the wordmark at display size; the columns are panels on the dark tone under a 4px band-accent rule, four a row above 1100px, two to 560px, one below. Use chrome's text rows for offices (an office name emphasis, its address lines groupWithPrevious), label/value pairs for hours, a link row to tel: for the telephone (drawn large over a band-accent rule) and finePrint for the required notices. Tick Join the column before (joinPrevious) on a short column that should read as one panel with the column above it on phones (Counsel's demo joins "Admitted in" to "Hours"). The legal items are 44px tall on phones.
The intake
The close is a contact block, variant estimate, with a tome-forms form in its form slot and a photo in its media. Set the form's `stepsDisplay` to `'stacked'`: each step renders as a numbered fieldset (the legend in the display face over a band-accent rule, the number in a square accent chip). Fields sit two a row; give a field width: 'full' to take the row (a textarea and a checkbox or radio group always do). Inputs are 52px, filled with the deepest ink. Set optionalMarker to (optional) for the muted marker, and put the confidentiality note in the contact block's aside. The practice page's intake, without a photo, closes up.
Scroll reveal
Counsel turns on tome-ui's opt-in platform scroll reveal (--tome-reveal: on) and maps its timing to its own, quieter values: --tome-reveal-rise 8px, --tome-reveal-duration 560ms, --tome-reveal-stagger 70ms, and --tome-reveal-ease the theme's ease-out. The reveal runs only where the site mounts the controller once in its root layout:
import { TomeReveal } from '@wabbit/tome-ui/reveal'
// inside <body>, once
<TomeReveal />Without the controller nothing moves and nothing is hidden. data-tome-reveal="off" on <html>, a region or a block root turns it off there. Under reduced motion there is no reveal and no transition.
Fonts
Source Serif 4 (one variable face per style, roman and italic, carrying wght 200 to 900 and opsz 8 to 60) and Public Sans (400, 500) ship inside the package as latin-subset woff2 from fontsource 5.3.0, with their SIL OFL 1.1 licenses (fonts/OFL-SourceSerif4.md, fonts/OFL-PublicSans.md). There is no third-party font request. Pick one delivery path:
import '@wabbit/tome-theme-counsel/fonts.css': the bundler resolves the files from this package.- Your own host: copy the files from
@wabbit/tome-theme-counsel/fonts/*and injectgetCounselFontStyles({ src }). next/font/local, using the file list fromgetCounselFontFaces().
import { getCounselFontPreloads } from '@wabbit/tome-theme-counsel/fonts'
// in <head>: preload the serif roman and the 400 UI face
{getCounselFontPreloads({ src: '/fonts/counsel/' }).map((l) => <link key={l.href} {...l} />)}The serif sets every heading at a book weight, the decks, the panel prose and the numerals; Public Sans is the UI face (buttons, the nav, form labels and fields, captions, bylines, compliance lines, the footer's small print). Every --font-* slot is declared with its paired --tome-type-* alias on the theme selector (amendment A4.1).
Hooks for a site's own markup
data-counsel-band="dark", "ink" or "light" makes any element one of the theme's grounds (a dark or ink band re-points the page inks inside it). data-counsel-eyebrow sets a line in the eyebrow voice, data-counsel-button draws a filled action, data-counsel-mark sets a mark in the accent text color, and data-counsel-meta sets the inner page's small-caps meta voice.
Public API
| Export | Subpath | Purpose |
|---|---|---|
counselThemeManifest (ThemeManifest) | ., @wabbit/tome-theme-counsel/manifest | The theme's manifest: name counsel, kind: 'theme', tier addon, five light-only palettes, fonts and one pairing, recommended blocks and chrome (Navbar 1, Footer 7), styledBlocks, requires.tomeUi. |
COUNSEL_PALETTE_IDS, CounselPaletteId | ., @wabbit/tome-theme-counsel/manifest | ['chancery', 'vellum', 'sage', 'slate', 'tobacco'], the data-tome-palette values. |
COUNSEL_STYLED_BLOCKS, COUNSEL_RECOMMENDED_BLOCKS | ., @wabbit/tome-theme-counsel/manifest | The block slugs the theme restyles, and the slugs its demo is composed from. |
ThemeManifest (type) | . | Re-exported from @wabbit/tome-core/registry/theme. |
getCounselFontFaces(), getCounselFontStyles({ src }), getCounselFontPreloads({ src }) | ., @wabbit/tome-theme-counsel/fonts | Font descriptors, @font-face CSS for a custom host, and preload links. |
COUNSEL_FONT_STACKS, COUNSEL_FONT_LICENSES, COUNSEL_LATIN_UNICODE_RANGE, COUNSEL_SERIF_WEIGHTS, COUNSEL_UI_WEIGHTS | ., @wabbit/tome-theme-counsel/fonts | The CSS stacks the tokens use, the license file per family, the subset range, and the weights used. |
CounselFontFace, CounselFontPreloadDescriptor, CounselFontStylesOptions (types) | ., @wabbit/tome-theme-counsel/fonts | The descriptor shapes. |
| side effect | @wabbit/tome-theme-counsel/register | Registers counselThemeManifest in tome-core's theme registry. |
| stylesheet | @wabbit/tome-theme-counsel/styles.css | Tokens and treatments. The file that does everything visual. |
| stylesheet | @wabbit/tome-theme-counsel/fonts.css | The four @font-face rules. Optional. |
| font files | @wabbit/tome-theme-counsel/fonts/* | The woff2 files and their OFL licenses, for self-hosting. |
import { counselThemeManifest } from '@wabbit/tome-theme-counsel/manifest'
counselThemeManifest.palettes.map((p) => p.label)
// ['Chancery', 'Vellum', 'Sage', 'Slate', 'Tobacco']Tokens
The theme sets Layer 1 (the names tome-ui's tokens.css reads: --background, --foreground, --card, --primary, --accent, --muted, --border, --input, --ring, the feedback, chart and muted2 names) and lets tome-ui's generated re-resolution derive the aliased Layer 2. It also sets:
--tome-color-accent-textand the feedback*-textweights, and--tome-color-surface-tint- the fixed-band inks:
--tome-color-surface-solid-dark(the palette's dark tone),--tome-color-on-solid-dark,--tome-color-on-solid-dark-muted,--tome-color-accent-on-solid-dark,--tome-color-primary-on-solid-dark,--tome-color-border-inverse, and the white inverse surface with its inks - the four
--tome-type-*families, each paired with its--font-*slot - private tokens read only by the treatments: the fifteen palette roles (
--counsel-dark,--counsel-on-dark,--counsel-light,--counsel-on-light,--counsel-soft,--counsel-field,--counsel-ink-ground,--counsel-on-ink,--counsel-muted,--counsel-muted-on-dark,--counsel-accent,--counsel-on-accent,--counsel-accent-on-dark,--counsel-line,--counsel-line-on-dark) and the derived values below
How the roles land: the page ground (field) is --background, --card and --popover; the page ink (on-light) is --foreground; the soft tint is --muted and --secondary; the accent is --primary and --accent (buttons are accent-filled), with on-accent on them; the dark tone is the solid-dark band; the hairline (line) is --border.
The derived values are each the smallest OKLCH lightness move from a role (hue kept) that clears its rule on every ground it is used on, and the role itself where it already does: --tome-color-accent-text (accent as text, 4.5:1 on the page, the tints and white), --input (the hairline at 3:1 on the page and the soft tint), --counsel-field-edge (the band hairline at 3:1 against the dark band and the ink field it frames), --ring and --counsel-ring (the page ink: focus rings are never the accent on a light ground), --counsel-ring-on-dark (the band accent), --counsel-button-edge, -edge-tint and -edge-on-dark (the accent shade that gives a filled button a 3:1 boundary on the page, on the light and soft grounds, and on the dark and ink grounds), and --counsel-placeholder.
Shape and rhythm. --radius 2px; panels are square; full 999px is unused by the treatments. No shadows anywhere. Four band paddings (--counsel-band-xs to -lg), all 2rem at 640px and below. tome-ui sets the root at 18px, the root the approved design was drawn on.
Palettes
The palettes are generated. scripts/palettes.json holds each palette's fifteen roles, copied unchanged from the approved design; node scripts/palettes.mjs writes src/tokens/palettes/*.css (Layer 1, the literals, the band inks, the private roles and the derived values, with a contrast summary in each file's header) and prints the full contrast report. node scripts/palettes.mjs --check writes nothing and fails when a file is stale, and the test suite runs the same comparison.
| Palette | Page / light / soft | Dark / ink | Accent / band accent |
|---|---|---|---|
| Chancery (default) | #F8F9FB / #CBD3E2 / #E7EBF2 | navy #1C2C4D / #07132A | brass #A88641 / #D9BC78 |
| Vellum | #FBF8F3 / #E3CFC9 / #F2E6E1 | burgundy #4A1C26 / #221013 | brass #A88641 / #DCC07E |
| Sage | #F8F9F5 / #C8D6C9 / #E4ECE4 | green #2F4A3E / #12201A | clay #8F5F4A / #D9B8A4 |
| Slate | #F8F9FA / #CDD2D8 / #E7EAED | slate #2F3742 / #12161B | blue #2F6392 / #A6CBEC |
| Tobacco | #FBF8F2 / #DDCDB8 / #EFE5D6 | tobacco #3D2C22 / #1F150E | teal #1F5E57 / #9AD3C8 |
Contrast
All ratios are WCAG 2.x. Text must reach 4.5; button edges, input outlines, the field edge and the focus rings must reach 3. The generator refuses a palette that misses a floor, and the test suite re-measures the floors from the shipped values.
| Pair | Chancery | Vellum | Sage | Slate | Tobacco |
|---|---|---|---|---|---|
| body on the page | 15.24 | 17.10 | 15.72 | 16.91 | 16.70 |
| muted on the page | 7.45 | 8.51 | 7.50 | 7.64 | 8.26 |
| accent text on the page | 6.52 | 6.39 | 6.47 | 6.56 | 7.08 |
| button label | 5.42 | 5.34 | 5.38 | 6.32 | 7.51 |
| button hover label | 10.05 | 10.32 | 9.09 | 10.70 | 10.69 |
| band text / band accent | 12.23 / 7.53 | 12.45 / 8.00 | 8.69 / 5.23 | 10.72 / 7.09 | 11.73 / 7.92 |
| ink band text | 16.33 | 16.06 | 15.12 | 16.18 | 15.84 |
| button edge on the page / the band | 3.24 / 4.06 | 3.22 / 4.14 | 5.09 / 3.01 | 6.00 / 3.04 | 7.08 / 3.03 |
| field edge on the band | 3.59 | 3.04 | 3.00 | 3.04 | 3.02 |
| focus ring on the page / the band | 15.24 / 7.53 | 17.10 / 8.00 | 15.72 / 5.23 | 16.91 / 7.09 | 16.70 / 7.92 |
| input outline on the page | 3.43 | 3.48 | 3.46 | 3.44 | 3.54 |
In Sage, Slate and Tobacco the accent is under 3:1 against the dark tone, so a button on a dark band carries a lighter accent edge (--counsel-button-edge-on-dark); in Chancery and Vellum the edge is the accent itself and does not show. The accent top rules on the light tone and the soft tint (2.27 and 2.86 in Chancery) are decoration and never carry meaning alone.
What it styles
| Hook | Treatment |
|---|---|
Chrome header (Navbar 1: the frame's data-visible / data-nav-theme, [data-nav-row], [data-nav-links], [data-nav-actions], [data-nav-mobile-actions], [data-header-cta-bar], button[data-mobile-menu-trigger="word"], [data-sheet-content] with [data-mobile-menu-list]) | The dark bar under a band hairline through --tome-navbar1-pad-block; links 44px with a band-accent rule for hover and aria-current="page"; the accent CTA through --tome-header-cta-*; the CTA leaving the phone bar at 640px; the bordered "Menu" button; the ink menu sheet. |
Lockup ([data-counsel-lockup], -name, -tagline, [data-counsel-mark]) | The two-line brand in the bar, the sheet and, at display size, the footer. |
high-impact-hero split | The dark first screen, 7fr / 5fr ([data-hero-copy] and [data-hero-media]), min(100vh - 80px, 860px) from 1024px, stacking below; the eyebrow in the band accent; the hero-size promise; the lede; the 56px accent button and the call ([data-hero-call]); the portrait in a field mat under a 4px accent rule, the caption ([data-caption-meta]) and the photo label ([data-compliance-label]) in one row under it. |
proposal-stat-strip | Four field panels ([data-stat]) under the accent rule on the light tone, the numeral ([data-stat-value]) large, the starred unit italic and raised, the caption ([data-stat-caption]) in the serif, the note ([data-stat-note]). |
phase-ledger index | Five dark panels ([data-phase-row]) in a wrapping row (three, then two), the number ([data-phase-num]) large in the band accent, the byline ([data-phase-outcome]) and the 44px "Read § n" link ([data-phase-link]) at the foot. |
phase-ledger default | The centered head and four ink step panels (the variant's article), the step tag, a counter numeral ("01", silent to screen readers), the chip line ([data-phase-outcome]) at the foot. |
dated-ledger columns | Matter cards: photo first ([data-ledger-photo]), one meta line from [data-ledger-date] ("2025 · No. 1 · Commercial lease"), the title, the result, the figure ([data-ledger-figure]) at the foot, the compliance line; the note. |
dated-ledger rows + compact | The awards panel: the root as one soft panel, 1240px at most; five field tiles (year, person, honor, giver); the note. |
team-roster people | Soft cards under the accent rule ([data-roster-person]), square portraits, the photo label under each, the name, the role, the credential and fact; the statement tile ([data-roster-statement]) on the dark tone, label first; columns through --tome-roster-people-cols. |
testimonial quotes-grid | The ink band, the eyebrow and title, the figure ([data-testimonial-stat], [data-testimonial-stat-value], [data-testimonial-stat-unit] through --tome-testimonial-stat-unit-size) across the row under a band-accent rule, centered from 1024px; quotes ([data-testimonial-quote]) under band hairlines where a band keeps them. |
faq (answered) | [data-faq-answered] as two columns of soft cards ([data-faq-item], [data-faq-question], [data-faq-answer]), the callout ([data-faq-callout]) as the dark closing card with its 44px link ([data-faq-callout-link]). The accordion keeps the block's list. |
contact estimate | The dark close: the intro let out ([data-contact-intro]), the photo ([data-contact-media]) in a mat, the note ([data-contact-aside]), the form card ([data-contact-form-card]) on the band; in the slot ([data-contact-form-slot]), numbered legends ([data-form-step-legend], [data-form-step-number]), two fields a row ([data-form-fields], [data-field-width]), 52px ink inputs, the accent submit and its note ([data-form-actions], [data-form-submit-note]), the muted (optional) marker through --tome-forms-optional-color and -weight. |
info-panel | The practice page head: the crumb ([data-section-label]) in serif small caps through --tome-info-panel-label-font, -case, -tracking and -caps, its section sign ([data-section-label-mark]) in accent text, the title, the deck, and the fact card ([data-panel-card]) as a soft panel under the accent rule, with the portrait or initials ([data-panel-initials]), the photo-label line ([data-panel-person-note]) and an accent-text link ([data-panel-cta]). |
annotated-page | The practice page's reading layout: an ink rule above; paragraph marks ([data-para-mark]); prose ([data-annotated-body]); notes ([data-note-kind]) in the margin; citation markers ([data-cite-marker]) in accent text. |
zone-directory | Other practices: cells ([data-zone-cell]) as soft panels under the accent rule, section numerals ([data-zone-num]), titles, lines and "Read § n" links. |
[data-compliance-label] (every block) | One look: a small UI-face line in muted ink, never on top of a photograph. |
Chrome footer 7 ([data-footer-variant="7"], [data-footer-brand], [data-footer-column], [data-footer-column-join="previous"], [data-footer-fine-print], [data-footer-bottom]) | The ink band under an 8px band-accent rule; the wordmark ([data-footer-wordmark] or the lockup) at display size; dark panels with titles in band-accent capitals, text rows in the serif, office names ([data-footer-text-strong]) in the display face, justified pairs ([data-footer-pair]), a large tel: link; the joined column merged on phones; the fine print and the base row, legal items 44px on phones. Column counts through --tome-footer-nav-cols. |
Treatments target only public hooks: data-block-type on the block wrapper, data-block-variant on the root, the blocks' documented data-* part attributes, and published component tokens. Element names are used only where a block publishes no part hook (the process variant's article, the form fields inside the intake's form slot). They never target class names or counting selectors such as :nth-child. data-block-type is matched in its catalog form (high-impact-hero, not the stored highImpactHero), and a test fails any other form.
Server / client posture
The package is pure CSS plus constants. It has no React components and no 'use client' files, so it is inert under React Server Components. It adds nothing to a client bundle beyond the stylesheets the consumer imports. @wabbit/tome-theme-counsel/register is a server-side import.
Tests
pnpm --filter @wabbit/tome-theme-counsel test
node scripts/palettes.mjs --checkThe vitest suites cover:
- the theme conformance check in theme mode (Layer-1 surface,
*-textliterals, radius and font slots, the full dark redeclaration, palette coverage, scoping, no module class names, font pairing) and in platform mode - manifest validation, its agreement with
package.json, and registration - the token contract: every palette defines the full set (Layer 1, literals, band inks, private roles and derived values), each light-only rule equals its dark compound, the files equal the generator's output, and the text and boundary floors re-measured from the shipped values
- the A4.1 font pairing, and the self-hosted faces with their licenses
- no color literal outside
src/tokens/, no comment that swallows a rule, no structural or class selector, no shadow, no retired token, and every treatment rule scoped to the theme - each treatment's hooks, the dark and ink scopes, the button edges and focus rings, and the approved design's band-by-band declarations
Exports
| Import path |
|---|
@wabbit/tome-theme-counsel |
@wabbit/tome-theme-counsel/manifest |
@wabbit/tome-theme-counsel/register |
@wabbit/tome-theme-counsel/fonts |
@wabbit/tome-theme-counsel/styles.css |
@wabbit/tome-theme-counsel/fonts.css |
@wabbit/tome-theme-counsel/fonts/* |
Changelog
0.3.xMinor
BREAKING: Counsel is redrawn as a formal, paneled theme with five light-only palettes, and Chancery is now the default.
Migration: a site already on Counsel should, in this order:
- Expect the look to change everywhere: square panels under a thin accent rule, large serif numerals, full-width grounds in four tones (the page, a light tone, a dark tone and the deepest ink), filled accent buttons with 2px corners, and a split first screen with a framed portrait.
- Check your palette: with no
data-tome-palettethe theme now renders Chancery (navy and brass), not Vellum; setdata-tome-palette="vellum"to keep the Vellum name. The palette ids are nowchancery,vellum,sage,slateand the newtobacco. None is removed, but four are redefined:vellum(burgundy and warm paper with brass, replacing cream and oxblood),chancery(a deeper navy band and brass buttons),sage(deep green with a clay accent, replacing the rust) andslate(a blue accent, replacing the teal). - Drop any dark-mode toggle: the theme is light only. Every palette lists
modes: ['light'], anddata-theme="dark"now resolves to the light values. - Remove
data-counsel-effect="laid-paper": the laid-paper texture is retired and the attribute does nothing. Portraits and photographs are no longer grayscaled or desaturated. - Move the header to tome-chrome Navbar 1 (the manifest now recommends
'1'):headerPosition: 'static',backgroundColor: 'background',layoutHooks: true,mobileMenuLabel: 'word'andctaVisibleBelowDesktop: true. The Navbar 7 compaction, curtain scrim andmenuLabelpill are no longer styled. - Set Footer 7 to
backgroundColor: 'background'withlayoutHooks: true; the columns become panels. TickjoinPreviouson a short column that should merge with the one above it on phones, and use atel:link row for the telephone. - Turn on the block options the new layout expects: the FAQ's
answered; the testimonialquotes-gridwithtitleLevel: 'h2'and its stat at position 1; the mattersdated-ledgeras variantcolumns; the processphase-ledgeras variantdefault(itsmetalines moved tooutcome); theteam-rosterpeoplevariant withstatement.position: 'last',photoLabelPlacement: 'below'and no empty cells; a photo in the intakecontactblock'smedia; and the forms fieldwidth: 'full'on the intake fields that take a whole row. - Update any override of a removed private token:
--counsel-grain-ink,--counsel-grain-pitch,--counsel-rule-strong,--counsel-portrait-filter,--counsel-photo-filter,--counsel-photo-scrim, the Navbar 7 header tokens (--counsel-header-h,--counsel-header-pad,--counsel-header-scrim,--counsel-header-blurand their compact forms),--counsel-hero-pt,--counsel-reading-insetand the old per-section size tokens. The new private tokens are the fifteen palette roles (--counsel-dark,--counsel-light,--counsel-field,--counsel-ink-groundand the rest) and their contrast-checked derivatives (--counsel-button-edge*,--counsel-field-edge,--counsel-ring*).
The palettes are now generated by the package's own
scripts/palettes.mjsfromscripts/palettes.json, which derives every slot the roles do not name (accent text, the input outline, focus rings, button edges, the field edge on dark bands, state colors) under a contrast rule and refuses a palette that misses a floor: text 4.5:1, button edges, outlines and focus rings 3:1. Focus rings are the page ink on light grounds and the band accent on dark ones, never the accent on a light ground.
0.2.xMinor
BREAKING: the custom property
--counsel-honour-sizeis now--counsel-honor-size.Update any override that sets the old name.
0.1.xMinor
New theme: Counsel, for law firms and other advisors whose credibility is their product, activated with
data-tome-theme="counsel".- Four palettes (Vellum, the default; Chancery; Sage; Slate), each in light and a derived dark, selected with
data-tome-palette. Every palette sets Layer 1, the*-textliterals, the tinted surface and the fixed-band ink family, contrast-checked (text at least 4.5:1; input outlines, accent marks and the focus ring at least 3:1). - Self-hosted OFL fonts: Source Serif 4 (one variable face per style, roman and italic, with the optical-size axis) for headings, prose and the small-caps meta voice, and Public Sans (400, 500) for the UI only, latin-subset woff2 with their licenses, via
./fonts.css, the./fontsdescriptors or./fonts/*for your own host. Each--font-*slot is paired with its--tome-type-*alias. - Treatments through public hooks only: the Navbar 7 lockup and its compact state on scroll, the
splithero with its portrait plate, the credibility numerals, theindexpractice ledger with section marks, the matters and compact recognition ledgers, thepanelprocess step bar, thepeoplegrid, thequotes-gridclient voice, the numbered FAQ, the dark intake band with a stacked form, the practice page head, the Annotated Page, the other-practices directory, footer 7 with its fine print, and one look for every compliance label. The accent is used only as punctuation, and nothing casts a shadow. - The platform scroll reveal is on, with Counsel's quieter timing (8px rise, 560ms, 70ms stagger); it runs only where the site mounts
TomeReveal. - One opt-in effect: a laid-paper texture on the Vellum page ground (
data-counsel-effect="laid-paper"). ./registeradds the theme to tome-core's theme registry. Requires@wabbit/tome-ui0.18.0 or later;@wabbit/tome-coreis an optional peer.
- Four palettes (Vellum, the default; Chancery; Sage; Slate), each in light and a derived dark, selected with
4 fixes (0.1.1 – 0.1.4)
- 0.1.4
README: subpath and file mentions are written package-qualified (for example
@wabbit/tome-x/render) or as code text, so crawlers no longer resolve them as site URLs. - 0.1.3
Counsel's practice crumb sets its section sign in the accent text color, through the info panel's new
data-section-label-markhook. - 0.1.2
Counsel's intake, footer and section openers now sit where the mockups put them from 1024px.
- Intake. The form no longer overlaps the heading and deck. The
estimatevariant places its form card on rows 1 and 2 (and its call, hours and areas on row 2) from 1024px; the theme now resets both toauto, so the opener holds the first row and the form follows it in the reading column, with the confidentiality aside beside it in the right margin lane. With apromise, the promise leads the reading column and the aside runs beside the promise and the form. - Confidentiality aside. The note is the small UI-face size again and its label is ink. The deck rule matched the aside's paragraphs (the aside renders inside the intro) and set them at the deck size in muted ink; it now leaves the aside out.
- Footer 7. From 1024px the link columns start on the reading column, as the fine print does, with the brand in the left margin lane. The nav no longer shrinks to make room for the brand column's width cap (it started 227px late at 1440).
- FAQ and people openers. From 1024px the heading starts exactly on the reading column. The blocks' header
gapbecame a column gap when the theme made the header a subgrid and moved the heading 2px. - Intake submit row. The submit button starts the row at the reading column, with the response promise after it, as in the mockup (it sat right of center, the forms default). The theme sets tome-forms' new
--tome-forms-submit-justifyand, for earlier forms releases, the row's alignment directly.
- Intake. The form no longer overlaps the heading and deck. The
- 0.1.1
Fixes from the Counsel starter demo, measured against the v2 mockups and written on the hooks and tokens the blocks, chrome and forms now publish.
- Compact header no longer turns pink in Chromium. Every
color-mix()towardtransparent(the header scrim, the photo labels, the text selection) now mixes in oklab. In oklch, the missing hue oftransparentcarried into the result, and Chromium painted the near-neutral ground at hue 0. A test banscolor-mix(in oklch, … transparent)anywhere in the theme. - Section openers. The FAQ, the people grid and the quotes-grid open like every other labeled section through the shared header-group hooks (
data-block-header,data-block-eyebrow,data-block-heading,data-block-subtext): the label in small caps, the heading at the h2 size, the deck. From 1024px each header group is a subgrid of the page, so the label sits in the left margin lane and the heading runs from the reading column. - FAQ. With
calloutStyle: 'line'(data-faq-callout-style="line"), the bridge is the mockup's plain line: a serif sentence and an accent-text link (data-faq-callout-link) with an arrow. Set it on a Counsel site; the box style keeps the block's own panel and button. From 1024px the list and the callout (data-faq-callout) sit in the reading column. - Intake. The confidentiality aside's label (the aside's own
<p>) is set in serif small caps, and its body in small UI-face type. From 1024px the band draws the page's lanes: the label in the left margin, the heading and form in the reading column, the aside in the right margin lane, sticky. Form rules key ondata-contact-form-slot. The band is padded once, on the section. The(optional)marker is muted and regular through--tome-forms-optional-colorand--tome-forms-optional-weight. - Matters ledger. With
chipPlacement: 'dateline', the matter type sits under "No. 1" in the dateline's small caps ([data-ledger-date] [data-ledger-chip]), with no pill or bullet. - Client voice. Four columns from 1024px (
--tome-testimonial-grid-cols: 4). Theeyebrowis the small-caps label and the section title the heading. The starred stat unit is 0.45em through--tome-testimonial-stat-unit-size. - People. Four columns from 1024px (
--tome-roster-people-cols: 4), on the variant's content lane. - Footer 7. A text row's emphasis (
data-footer-text-strong, the office names) is ink at 500, and grouped rows (data-footer-row-group) sit tight (--tome-footer-row-group-gap: 0). From 1024px the columns and the fine print start on the reading column (--tome-footer-fine-print-inset), the fine print keeping its 600px text measure. - Practice page head. The crumb is the serif in small caps through
--tome-info-panel-label-font,-case,-trackingand-caps, the linked part and the rest (data-section-label-link,data-section-label-rest) in the same voice. "Book a consultation" (data-panel-cta) is an accent-text link with an arrow, not a full-width filled button. - Other practices. Cells are reached by
data-zone-cell.
Column tokens are set only inside media queries, since the blocks apply them at every width.
- Compact header no longer turns pink in Chromium. Every