Reference site: follow main's block and token fixes

- entryList entryCollection, post template hero with the title, legal templates noindex
  (drop the reference's own workarounds)
- brand primary-inverse roles: 74/74 contrast pairs
- /design shows Light and Dark panels (tokens switch on any element)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 15:21:55 +01:00
co-authored by Claude Opus 5.5
parent 353e65e7bd
commit e43198b2fe
10 changed files with 66 additions and 55 deletions
@@ -5,7 +5,7 @@ import { Container } from '@intecion/ipal-kit/blocks/rsc'
import { TokenPanel } from '@/components/design/TokenPanel'
import { i18nConfig } from '@/i18n.config'
// The styleguide: every design token, in the current theme and in dark side by side. Technical page —
// The styleguide: every design token, light and dark side by side. Technical page —
// noindex, not in the sitemap (it is not a Pages document), labels are token names (AGENTS.md → Project decisions).
export const metadata: Metadata = { robots: { follow: false, index: false }, title: 'Design tokens' }
@@ -16,13 +16,13 @@ export default function DesignPage() {
<p className="text-sm uppercase tracking-heading text-fg-muted">ipal-kit</p>
<h1 className="font-heading text-h1 leading-heading text-fg-strong">Design tokens</h1>
<p className="max-w-measure text-lead text-fg-muted">
src/design/tokens.ts → pnpm tokens → src/design/tokens.css. The left panel follows the page theme; the right one is always dark
(data-theme=&quot;dark&quot; on the panel). The bottom row is the inverse scope (data-surface=&quot;inverse&quot;).
src/design/tokens.ts → pnpm tokens → src/design/tokens.css. The panels set data-theme=&quot;light&quot; and data-theme=&quot;dark&quot;
on themselves (the tokens switch on any element); the bottom row is the inverse scope (data-surface=&quot;inverse&quot;) in the page theme.
</p>
</header>
<div className="grid gap-gap lg:grid-cols-2">
<TokenPanel title="Current theme" />
<TokenPanel dark title="Dark" />
<TokenPanel theme="light" title="Light" />
<TokenPanel theme="dark" title="Dark" />
</div>
<TokenPanel inverse title="Inverse surface (data-surface=&quot;inverse&quot;)" />
</Container>