Site footer: a row of columns, and a colophon below them. The default slot holds the columns: a lead <div> first (the name in a <p><strong>, a tagline, the license), then the links, then anything else, such as a credit. Put the links in one <nav aria-labelledby="…">, pointing at a hidden name: a <p><strong> heading and a <ul>, or for several groups a <div> each holding its heading and list. The groups sit side by side and wrap. When the footer is 60rem or wider, the lead column takes up to 25rem, or the width lead-width gives, and the others size to their content; narrower, the columns wrap.
<norn-footer>
a landmark, from
@allons-y/webc-patterns
Copy {name} to clipboardCopyCopiedCopy failedhtml code
Props
Write them with the @ prefix, and :@ for an expression.
Name
Type
Description
@width
string
The content width, as a CSS length. Falls back to --norn-layout-width.
@lead-width
string
The widest the lead column gets on a wide footer, as a CSS length. Falls back to 25rem.
Slots
Name
Description
default
The columns.
colophon
Full-width content below the columns, as one element.
Tokens
The global tokens from tokens.json the component reads. Set one in a project's tokens.css to change it everywhere.
Type a value to try it in every example above. Reset puts the default back.
Token
Type
Default
Override
--norn-ui-accentThe brand color, shared by every component.
<color>
#2346d4
--norn-ui-border-colorHairline color.
<color>
light-dark(#d3d8e2, #2d323e)
--norn-text-baseText color.
<color>
light-dark(#16181d, #eceef3)
--norn-text-mutedSecondary text color.
<color>
light-dark(#4b5160, #a4abba)
--norn-text-accentThe accent for text and links: darkened in light mode, lightened in dark mode. The lightness caps keep any accent at 4.5:1 or better.