SHADE is young: 0.1.0-next.2 is a pre-release, and 0.1.0 isn't out yet.

SHADE
Website

Header and footer

Every page of the website is framed by a header and a footer. Both are built in the visual editor like a page, from elements, components and SHADE's widgets, on their own screen, Header and footer. What they show of the menu, the footer's link columns, the social links and the copyright stays content: it is kept on the Navigation and Footer screens of the website module, and the header and footer read it through data sources.

One header and one footer are the defaults: every page shows them unless it picks another, or none. A site starts with SHADE's own header and footer and changes them from there.

What users can do

Editors and admins:

  • See the site's headers and footers on the Header and footer screen, the defaults marked Default.
  • Make a new header or footer (a name and its kind) and build it in the visual editor: elements, components, data and styles as on a page. Publish it from the editor.
  • Make another header or footer the default; the old one stops being the default at once.
  • Remove a header or footer that is not the default. One that pages pick is not removed: the message names them.
  • On a site without any, start from SHADE's header and footer (Start from SHADE's header and footer).
  • Pick another header or footer for one page, or none, in the page's form under Header and footer (Header, No header, Footer, No footer). Empty means the default.
  • Build the menu, the call-to-action button, the footer's columns, the social links and the copyright on the Navigation and Footer screens, with drafts, publishing, history and translations like any entry (see Drafts, publishing and version history):
    • the menu: up to 12 items, each with a label, a link and up to 20 dropdown items (one level deep);
    • one optional call-to-action button (label and link);
    • up to 6 link columns (an optional title and up to 20 links each), up to 10 social links (platform and URL) and the closing words, up to 1,000 characters, in which {year} becomes the current year: the copyright and, after a blank line, a paragraph of its own such as the licence;
    • links to a page of the site (optionally with an anchor such as #pricing) or a URL (https://…, /path, #…, mailto: or tel:), opening in a new tab or not.
  • Restyle the consent banner from the Site styles screen with variables named consent-background, consent-text, consent-border, consent-accent, consent-accent-contrast and consent-radius; each falls back to the theme. Styles or a theme that would make its text hard to read (below 4.5:1 in any mode) are refused.

Visitors:

  • See the page's header and footer, in the page's language. SHADE's header has the site's name, the menu (with dropdowns), the call-to-action button and a language switch; on phones a Menu button opens the menu, and Escape or a click outside closes it. SHADE's footer has the columns, the social links with their icons, and the copyright with the current year.
  • See the default header and footer on the built-in "page not found" message. The account pages are pages of the site, with their own pick.

AI assistants change them as drafts, as they change pages, and a person publishes what they drafted: the headers' and footers' elements, styles and animations with the website tools (website_list_parts, website_create_part, then the page tools given a partId), and the Navigation and Footer content with the content tools (update_draft_entry). An assistant makes a header or footer unpublished and not the default, and never publishes one. It may move one nothing shows to the trash (website_delete_part): never the default, never one a page picks; a person restores it or removes it for good.

Who may do it

Headers and footers use their collection's actions, collections.website-parts.<action>; the navigation and footer content use collections.website-navigation.<action> and collections.website-footer.<action>. The ai role reads, makes and drafts them, and moves a header or footer nothing shows to the trash; it can't publish one, restore or remove one for good, or publish the navigation or footer.

ActionPermissionRoles
See the Header and footer screen, open one in the editor (ai: read one over MCP)collections.website-parts.readadmin, editor, ai
Make one, start from SHADE'scollections.website-parts.create and .publishadmin, editor; ai makes one, unpublished and not the default
Change one, make it the defaultcollections.website-parts.updateadmin, editor; ai drafts its elements, styles and animations only
Publish onecollections.website-parts.publishadmin, editor
Remove onecollections.website-parts.deleteadmin, editor; ai one nothing shows (not the default, not one a page picks), to the trash
Design or build in the editorwebsite.pages.design, website.pages.build, as on pagesadmin, editor
Change the Navigation and Footer contentcollections.website-navigation.update / collections.website-footer.updateadmin, editor; ai as drafts
Read the published header and footer (the site's build, AI assistants)content.readadmin, editor, ai, read tokens

In the admin

Header and footer is in the sidebar's Website section. It lists Headers and Footers, each with New header or New footer. A card shows the name, Default, Not published or Unpublished changes, and Edit (or View), Make default and Remove (not on the default). Without any headers or footers the screen offers Start from SHADE's header and footer.

Edit opens the visual editor as for a page: the canvas shows the header or footer alone on the home page (or else the page changed last), with the structure, settings, style, data and motion panels, History, Accessibility and Publish. The way back is Header and footer.

  • Motion animates its elements as on a page. Saved animations reach the site when it is published again, on every page that shows it.
  • Accessibility runs the check a publish runs on the header or footer as it is now, alone around an empty page. A refused publish opens it with what the publish said.

A page's form has the group Header and footer: Header and Footer pick one ("Empty for the default header."), No header and No footer show none. A header picked as a footer, or the other way round, is refused.

The Navigation and Footer screens are the entry editor: Menu items (Label, Link, Dropdown items) and Call-to-action button; Columns (Title, Links), Social links (Platform: Facebook, Instagram, LinkedIn, X, YouTube, TikTok, GitHub or Mastodon; URL) and Closing words, where a blank line starts a new paragraph. Deleting a page that they link to is refused, naming them.

On the website

The page's header comes before it and its footer after it, each with its own styles. The built-in "page not found" message shows the defaults. The editor's canvas shows a page without them.

SHADE's starting header and footer read the content through these data sources, which any header or footer may loop over in the editor's Data tab:

SourceEach item
website.navigationa menu item: label, url, newTab, current, its children (the dropdown items, each with its own current)
website.ctathe call-to-action button, when it has a label and a link: label, url, newTab
website.footera link column: title, its links (label, url, newTab)
website.sociala social link: platform, its name label, url, its icon's name icon
website.footer-infoone item: the copyright, with {year} replaced; and split around its first {year}: hasYear, before, after

Links to pages that are not published, or not shown in this language, are left out (a menu item with its dropdown; a dropdown item or a column's link on its own).

A menu item's current is on when it links to the page shown, in the page's language (a link to a section of the page, /#pricing, is not the page), on every page and in every language. SHADE's starting header binds each menu link's The current one setting to it (item.current ? 'page' : null), so screen readers say which page is open; a designer can style the current link by it too.

SHADE's widgets do the parts that need behaviour: Navigation is a labelled menu with a Menu button on narrow screens; Disclosure is a dropdown that works with the keyboard and without script; Icon is a Lucide icon by name, named for screen readers only when it has a label; Year is this year, which the visitor's browser keeps current, so a site not built since New Year shows the right year (without script, the year it was built). TikTok and Mastodon have no Lucide icon and show their name instead; X uses Lucide's twitter icon. A widget takes the site's classes like an element, under Classes in its settings; they go on its outermost element. Its inner elements take classes under Classes of its parts: the Navigation's Menu button, menu and what it holds, a Menu's button, list and links, each tab and panel of Tabs, the Light and dark switch's button. Style a class's Selected, Open or The page shown state for the tab shown, a button while its menu is open, or the current page's link.

A language menu is a Menu with Icon set to globe, its items a loop over the page's languages: a Menu item inside Repeat for each of page.languages, its label language.name, its link language.url, its language language.code (so each link says its language, hreflang and lang) and The page shownlanguage.current (so the current language is marked for screen readers, aria-current, and a class's The page shown state can style it).

Where the menu folds behind its button is the Navigation's Where the menu folds setting:

  • Below 48rem (768 px), the default, when nothing is chosen.
  • One of the site's breakpoints, such as a wide one at 1100 px for a menu with many items. On a site whose styles start from the phone (mobile-first) it folds below the breakpoint; on one that starts from the desktop, at and below it, as the choice says.
  • Never, for a short menu that always fits.

A breakpoint a menu folds at stays while it does: removing or renaming it on the Site styles screen is refused, with the pages, headers, footers and components that use it, including a version waiting to be published. A page or header naming a breakpoint the site doesn't have is refused when it is saved, and the accessibility check warns of one, since that menu would never fold. A component's menu folds where it says as soon as the component is saved.

One gap remains: a menu inside a component whose fold point comes from one of the component's properties is not checked, so give the fold point in the component itself.

The consent banner stays SHADE's own; a site restyles it with the variables above. Once the site sets one of them, saving the styles or the theme is refused when the banner's text, its buttons' text or its main button's text would fall below a contrast of 4.5:1, in light or dark mode, with a message saying which and how far.

Rules and limits

  • One default header and one default footer. A page shows its own pick when that one is published and of the right kind, else the published default, else none.
  • Only the published version of a header or footer reaches the site. Publishing one rebuilds the site, and so does making another the default.
  • Publishing a header or footer checks its accessibility alone; publishing a page checks it with the header and footer it shows, so ids and landmarks count across them (see Pages).
  • A header or footer that pages pick is not removed (the message names them); the default is not removed from the screen.
  • Counts and lengths of the content: 12 menu items, 20 dropdown items per item, 6 columns, 20 links per column, 10 social links; labels and titles 60 characters, the copyright 200. Only one level of dropdowns.
  • Languages: the content's labels, titles and copyright are translated per language; a header's or footer's own texts are translated in the editor like a page's.
  • A site where the module was switched on before headers and footers were built in the editor has none: open Header and footer and start from SHADE's.

For developers

The code and its tests: the README of shade-plugin-website.