Upgrade a site to the Marques design
Goal: upgrade a site built on @recit/site to the Marques design, see what changes on screen
across every surface, restore a previous look where configuration keys, props or CSS tokens allow
it, and check the built pages in light and dark mode.
The Marques design is the default visual direction of @recit/site and @recit/theme (there is no
intermediate named theme). Upgrading changes the default neutral palette, corner radii, embedded
fonts, header active state, sidebar chrome, borderless page components, footer alignment, split
landing page hero, home page sections, deck cover and toolbar, banners, and single-column reading
layout.
Shared tokens and fonts
Across the whole site, surfaces move to pure white (--recit-, --recit-) and
#f2f2f3 (--recit-; dark #0b0b0f, #15151a, #1c1c22), body text and the default
brand move to #0b0b0f (--recit-text, --recit-; dark #fafafa) with #55555e for muted
text (--recit-; dark #a1a1aa), corner radii tighten from 10–14px to 8–10px
(--radius: and --recit-), and @recit/theme embeds
Red Hat Display (--recit-), Red Hat Text (--recit-) and Red Hat
Mono (--recit-) in place of Inter and JetBrains Mono.
What does not revert, and how to substitute fonts or tokens:
- Red Hat is the only bundled font family. Inter and JetBrains Mono are no longer shipped in
@recit/. To keep them on a site via Google Fonts, settheme/ fonts.css theme.fontsinrecit.(config.ts theme:, allowing Google Fonts origins when{ fonts: { sans: "Inter", mono: "JetBrains Mono" } } security.cspis"strict"; settingtheme.also pointsfonts.sans --recit-back tofont- heading var(--). If you load self-hostedrecit- font- sans) @font-facefiles instyles.cssinstead, override--recit-,font- sans --recit-andfont- heading --recit-together—settingfont- mono --recit-alone in CSS leaves headings in Red Hat Display.font- sans - Restore the previous neutrals, site aliases and
14pxradius instyles.css. Because--recit-now computesradius- lg calc(var(--, settingradius) + 2px) --radius:alone stops at0. 625rem 12px; override--recit-alongsideradius- lg --recit-*,--secondaryand--accent:
styles.css
Header and search
When site. is set, the site name appears after the logo images in --recit-
(truncating with an ellipsis on narrow screens), and the active top-navigation tab renders in bold
ink (--recit-text, weight 700) with a 3px underline while reserving its bold width so adjacent
tabs never shift. Below 30em, the header search trigger shrinks to a 44 × 44 px magnifier
button, and matched <mark> terms in Pagefind search results render in bold on an 18% tint of
--recit- instead of a solid highlight.
The header links are now 16 px, weight 500, and two new options follow the mockups:
header. puts the tabs in the bar instead of their own row, and
header. puts the search pill after the links (the magnifier alone below
80em). Both are off by default. A site can also tint the background of the header search pill by
setting --recit- and --recit- in its styles.css (falling back to
--recit- and --recit-).
The header draws a 1 px bottom rule (--recit-) in light and dark mode; redefine
--recit- on the header (for example to transparent) or add a border- rule in
styles.css to remove it.
How to keep the previous look:
- Omit
site.inlogo. label recit.(it is absent by default) to render only the logo images, and keep usingconfig.ts header.andnavigation header.(placements search,navigation,tabs) as before;@recit/siteadds no format menu bar unlessheader.is configured (Header).formats - Tune
--recit-andtext- muted --recit-inbrand styles.cssto adjust the logo label color and the search<mark>tint; the3pxactive underline, bold active tab weight and44 × 44 pxmobile search button do not revert.
styles.css
Sidebar
The desktop sidebar narrows from 288px to 272px (--side-) and, together with
the 320px mobile navigation drawer, now rests on --recit-; the current page sits on a
filled --recit- pill in bold ink (--recit-text, weight 700) instead of
primary-colored text, category rows use regular casing without letter-spacing, and the mobile drawer
adds a 60px --recit- header with the site name (site., site., or
site.title) and a 44 × 44 px close button. The collapse button on the sidebar edge is now a
28px ink circle (44 × 44 px click target) placed 20px from the top by default
(site.).
The "On this page" table of contents no longer shows a header icon, vertical rail or sliding
indicator; its current entry renders in bold (weight 700), mixed with the site's primary color
(color-), while other
entries use --recit-.
How to keep the previous look:
- Restore the
288pxdesktop sidebar width with:root { --in your site'sside- nav- width: 18rem; } styles.css. - Set
site.tosidebar. togglePosition "bottom"(85%from the top, the previous placement) or"center"inrecit.—or setconfig.ts --sidebar-intoggle- y styles.css—and keepsite.andsidebar. collapsible site.(sidebar. toggleVisibility "always"or"hover"). - The filled
--recit-active pill, non-uppercase section labels,surface- 0 60pxmobile drawer header, and the "On this page" table of contents without its icon, rail or sliding indicator have no revert option; note that changing--recit-insurface- 2 styles.cssaffects callouts, code blocks and the footer as well as the sidebar.
styles.css
Page components
Callouts (Callout, :::tip, :::note…) drop their outer border and 4px side bar for a
borderless tinted surface (--recit-, --recit-, --recit-,
--recit-, or --recit- when neutral) with a bold ink title; code blocks and
table headers (thead th) sit borderless on --recit- (with default github-light tokens
mixed with 12% of --recit-text for contrast); inline code uses a borderless 6% tint of
currentColor in --recit-; and previous/next pagination links become filled
--recit- cards with no top rule.
How to keep the previous look:
- Pick explicit Shiki themes in
syntaxHighlighting.(themes lightanddarkinrecit.) if you want code blocks to keep their own theme background instead ofconfig.ts --recit-.surface- 2 - Override
--radiusand--recit-inradius- lg styles.cssto restore wider corners on callouts, code blocks and pagination cards; the removed borders,4pxcallout bar and pagination rule do not revert.
styles.css
Footer
The site footer sits on a borderless --recit- band with no top divider, its link columns
align to the inline start across the full container width with bold ink titles (--recit-text), and
the bottom copyright and social row is separated by vertical spacing alone. On a multilingual site
with a footer, the language switcher moves from the header to the footer (footer-after), beside
the light/dark switch; on a phone the footer row wraps instead of overflowing.
How to keep the previous look:
- Set
position:in"center" site.footerinrecit.(andconfig.ts position:on individual items of"center" site.when needed) to center the footer columns as before:footer. columns
recit.config.ts
- The removed horizontal rules above the footer and above its bottom row cannot be restored through configuration.
Landing page
In the split variant of <LandingPage>, the aside content is now placed inside <SlantedBlock>
by default—a full-height block in the site's primary color (--recit-, or a palette hue
--recit- via color on <SlantedBlock>) with a 15° slanted leading edge and upright
content inside a 5fr 7fr desktop grid.
How to keep the previous look:
- Pass
slanted=to{false} <LandingPage variant=to render"split" slanted= {false} … / > asidedirectly without the slanted color block; the defaultvariant=is unaffected."hero" - When
<SlantedBlock>is kept, its15°slope cannot be turned off or flattened; only its fill color changes through--recit-(orbrand color/--recit-).hue- <name>
styles.css
Home page rhythm
Home pages follow a steady rhythm below the hero. Each section holds one idea: a heading, a short
text, and at most one action. Sections are separated by background, alternating page and surface
(#f2f2f3 in light mode), edge to edge, never by a rule line. The hero fits in the first screen, at
about 85% of the visible height. Every section below keeps a constant 96 px vertical spacing on
desktop and 64 px on phones, within one screen of content, and direct paragraphs and lists keep
about 70 characters of reading width (70ch).
The usual order is: hero, the format in action, the formats, how it works (the code), proof, and a last call to action. Each site may add bands in its own color, light or solid.
<PageSection> (available in MDX and exported from @recit/) applies this spacing,
edge-to-edge background and reading width. Pass label to name the <section> (region role via
aria-label) and id for anchor links; omit label for an unnamed <section>. Under
forced-, where backgrounds disappear, it adds a 1px solid CanvasText block border
instead. Bands run edge to edge only on a full-width page: set fullWidth: and toc: false in
the front matter of a home page, or the band also paints behind the table of contents column.
MDX
tone | Background and text |
|---|---|
"plain" (default) | Page background (var(--). |
"surface" | Surface band (var(--, #f2f2f3 in light mode). |
"tint" | Light tint of the site color (var(--). |
"solid" | Solid site color (var(--), contrast text and links (var(--). |
With tone="tint", hue paints the band in the tint of a format instead of the site's color: a
palette hue (blue, sky, green, violet…), mixed at 9 % over the page (16 % in dark mode). The
home of recit.dev sets "One source" in blue (hue="blue"), "Getting started" in sky (hue="sky")
and "Go further" without a tint (tone="plain"):
MDX
Inside a <PageSection tone=, links, buttons and accents follow the band's hue
(mixed toward ink to keep a 4.5:1 contrast ratio).
Deck
In @recit/deck, the player toolbar places a 15° slanted pill in --recit- (falling back
to --recit-) before the deck title and uses that accent for the current section and progress
bar. In @recit/, the default layout=cover slide aligns its text to the start and
draws a 15° slanted block in --recit- on the trailing side—or along the bottom on
4:5, 1:1 and 9:16 slides, and hidden when bg sets a background—while layout= drops
its background gradient.
On .slide, --recit- is
var(--: the deck format's blue by
default, the theme's primary color when the deck chooses one. The slide lost its border and its
shadow, and sits on a stage read from --recit- (--recit- in light mode,
--recit- in dark mode). On a desktop window and in fullscreen, the player's 76px bottom
bar sits in the flow below the slide and stays visible instead of floating over its foot.
Where that bottom bar stays in view with its own progression (a tall window, fullscreen, a deck in a
page, a phone) and under the current slide of the presenter console, the slide's 4px progress line
(.slide-) is hidden: the place in the deck is said once. It stays on an embedded deck
whose bar lies over the slide, on a short landscape window and on a deck without controls. It is no
longer printed, so an exported PDF does not carry it.
How to keep the previous look:
- Use
layout=(center --- layout=) on an opening slide when you want centered cover text without the slanted block, or set a slidecenter bgimage, which hides the cover block automatically. - Override
--recit-(andbrand --recit-for the player toolbar) onhue- blue :rootand[data-—ormantine- color- scheme= "dark"] --recit-ondeck- accent .slideand[data-inmantine- color- scheme= "dark"] . slide theme.—to change the accent color; thecustomCss 15°slope of the toolbar pill and oflayout=cover(mirrored toskewX(15deg)inrtl) does not revert. - Show the slide's progress line everywhere again with
.slide-inprogress { display: block !important; } theme..customCss
styles.css
Films
In @recit/, a film that names no theme now takes marques: an ink frame, white titles in
Red Hat Display and text in Red Hat Text. Before, it took warm- (a cream frame and a
serif). The marques theme draws the film's display title at weight 800 via a named theme's
motion. (400 otherwise). The default is written once, DEFAULT_ of
@recit/; @recit/ (DEFAULT_), the starter of
recit init -- and the atlas bridge read it. A film that already names a theme does
not change, and warm- stays a named theme.
How to keep the previous look: write theme: in the front matter of the film, or
set it once for every film of the project in recit.:
TypeScript
Banners
Named site. presets (info, note, tip, caution, danger) now use the
borderless status surface and text tokens of @recit/theme (--recit- and
--recit-, --recit- and --recit-text, --recit- and
--recit-, --recit- and --recit-, --recit- and
--recit-) instead of saturated solid fills, while a banner without color uses
--recit- and --recit-.
How to keep the previous look:
- Pass a custom CSS color string in
site.to keep a solid background, with white text in both modes. Do not override the status tokens (banner. color --recit-and the others) for a banner: callouts and badges read them too.info- bg
recit.config.ts
Reading column
On wide screens (80em and above), a Markdown or MDX page without a table of contents (toc: false
or no headings) now uses a single-column layout instead of reserving an empty right-hand track, so a
centered article (centered: by default) sits in the middle of the page rather than against
its start edge.
How to keep the previous look:
- Set
centered:in the page front matter or infalse docs.indefaultOptions. centered recit.to keep pages without a table of contents aligned to the inline start, or keepconfig.ts toc: true(the default indocs.and front matter) on pages with headings so the right-hand table of contents column remains present (defaultOptions.toc fullWidth:still spans the full width):true
recit.config.ts
Neutrals: Verre by default
The neutrals of the site chrome now default to Verre (theme., written on <html> as
data-): a very soft field of the site color behind the page, a frosted glass header,
sidebar and footer, the page read on a nearly opaque sheet, and code blocks dark and sharp. Under
prefers-, or without backdrop-, the glass falls back to opaque
surfaces. A site on the flat named theme traits keeps Marques.
theme. is a site option: in a config that sets only theme (a deck config, with no site
options such as navigation or publish), it has no effect. To keep the look of before in your
site's recit., set the old direction alongside your site options:
recit.config.ts
Three other directions can be chosen: "acier" (cool grays, an ink footer and dark code blocks on
ink), "teinte" (grays with a hint of the site color, a deep footer in that color) and "console"
(the header, sidebar and footer always dark on a fine grid). See
theme..
Check the result
- Run
pnpm buildand confirm that your site builds cleanly with no configuration or stylesheet error. - Open the landing page in your browser and check the header logo, any
<LandingPage>hero (splitorhero),<PageSection>bands, and the footer columns. - Open a documentation page—including callouts, code blocks, inline code, tables, banners and any
page with
toc: false—and check the sidebar, toggle button and reading column alignment. - Toggle dark mode on a page (and check any embedded deck) to confirm contrast and custom
--recit-*overrides under[data-.mantine- color- scheme= "dark"]