Skip to content
Norn
Menu

norn-fact-list

Short facts in a row, such as a license or a runtime: an optional icon and a few words each, with no box. Static text, not controls. Pass each fact as an <li>, which may start with a norn-icon. The list has role="list", which Safari needs once the markers are gone.

<norn-fact-list> a component, from @allons-y/webc-patterns

Examples

Color scheme
Width

Open on its own

Source
<norn-fact-list>
	<li><norn-icon @name="check"></norn-icon>Free &amp; open source</li>
	<li><norn-icon @name="check"></norn-icon>License: MPL-2.0</li>
	<li><norn-icon @name="check"></norn-icon>Node 24+</li>
</norn-fact-list>
Color scheme
Width

Open on its own

Source
<div style="display: grid; gap: 1.5rem">
	<div style="display: grid; gap: 0.5rem">
		<p><code>gap = xs</code></p>
		<div>
			<norn-fact-list @gap="xs">
				<li><norn-icon @name="check"></norn-icon>Free &amp; open source</li>
				<li><norn-icon @name="check"></norn-icon>License: MPL-2.0</li>
				<li><norn-icon @name="check"></norn-icon>Node 24+</li>
			</norn-fact-list>
		</div>
	</div>
	<div style="display: grid; gap: 0.5rem">
		<p><code>gap = s</code></p>
		<div>
			<norn-fact-list @gap="s">
				<li><norn-icon @name="check"></norn-icon>Free &amp; open source</li>
				<li><norn-icon @name="check"></norn-icon>License: MPL-2.0</li>
				<li><norn-icon @name="check"></norn-icon>Node 24+</li>
			</norn-fact-list>
		</div>
	</div>
	<div style="display: grid; gap: 0.5rem">
		<p><code>gap = m</code></p>
		<div>
			<norn-fact-list @gap="m">
				<li><norn-icon @name="check"></norn-icon>Free &amp; open source</li>
				<li><norn-icon @name="check"></norn-icon>License: MPL-2.0</li>
				<li><norn-icon @name="check"></norn-icon>Node 24+</li>
			</norn-fact-list>
		</div>
	</div>
	<div style="display: grid; gap: 0.5rem">
		<p><code>gap = l</code></p>
		<div>
			<norn-fact-list @gap="l">
				<li><norn-icon @name="check"></norn-icon>Free &amp; open source</li>
				<li><norn-icon @name="check"></norn-icon>License: MPL-2.0</li>
				<li><norn-icon @name="check"></norn-icon>Node 24+</li>
			</norn-fact-list>
		</div>
	</div>
</div>

Props

Write them with the @ prefix, and :@ for an expression.

NameTypeDescription
@gap string The space between rows: xs, s, m, or l, each a --norn-space-* step. The facts in a row are always m apart. A hero sets l. Falls back to xs.

Slots

NameDescription
default The facts, as <li> elements.

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-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. <color> light-dark(oklch(from color-mix(in oklch, var(--norn-ui-accent, #2346d4) 82%, black) min(l, 0.5) c h), oklch(from color-mix(in oklch, var(--norn-ui-accent, #2346d4) 55%, white) max(l, 0.72) c h))
--norn-font-size-sSmall text: captions, code, navigation, and notes. <length> 0.875rem
--norn-space-2xsSmallest spacing step. <length> 0.25rem
--norn-space-xsExtra small spacing step. <length> 0.5rem
--norn-space-sSmall spacing step. <length> 0.75rem
--norn-space-mMedium spacing step. <length> 1.25rem
--norn-space-lLarge spacing step. <length> 2rem