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
+22 -11
View File
@@ -646,7 +646,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' }
@@ -657,13 +657,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>
@@ -682,23 +682,30 @@ export const generateStaticParams = () => i18nConfig.locales.map(({ code }) => (
*/
:root {
--ipal-bg: oklch(0.985 0.006 85);
--ipal-primary: oklch(0.47 0.09 160);
--ipal-surface-muted: oklch(0.955 0.012 85);
--ipal-accent: oklch(0.55 0.13 50);
--ipal-link-inverse: oklch(0.82 0.08 160);
--ipal-fw-heading: 600;
--ipal-radius: 0.25rem;
--ipal-radius-card: 0.25rem;
}
:root[data-theme="dark"] {
:root, [data-theme="light"] {
--ipal-bg: oklch(0.985 0.006 85);
--ipal-primary: oklch(0.47 0.09 160);
--ipal-surface-muted: oklch(0.955 0.012 85);
--ipal-accent: oklch(0.55 0.13 50);
--ipal-link-inverse: oklch(0.82 0.08 160);
--ipal-primary-inverse: oklch(0.74 0.09 160);
--ipal-primary-inverse-text: oklch(0.18 0.02 160);
}
:root[data-theme="dark"], [data-theme="dark"] {
--ipal-bg: oklch(0.2 0.01 160);
--ipal-primary: oklch(0.74 0.09 160);
--ipal-surface-muted: oklch(0.25 0.012 160);
--ipal-accent: oklch(0.76 0.12 55);
--ipal-accent-text: oklch(0.18 0.02 55);
--ipal-link-inverse: oklch(0.42 0.09 160);
--ipal-primary-inverse: oklch(0.47 0.09 160);
--ipal-primary-inverse-text: oklch(0.99 0 0);
--ipal-primary-text: oklch(0.18 0.02 160);
}
```
@@ -719,6 +726,8 @@ export const tokens = defineTokens({
primary: 'oklch(0.47 0.09 160)', // deep sage green — the studio's brand colour (DESIGN.md §2)
accent: 'oklch(0.55 0.13 50)', // terracotta, for highlights only
'link-inverse': 'oklch(0.82 0.08 160)', // links and accents on inverted sections
'primary-inverse': 'oklch(0.74 0.09 160)', // buttons on inverted (dark) sections
'primary-inverse-text': 'oklch(0.18 0.02 160)',
bg: 'oklch(0.985 0.006 85)', // warm paper white
'surface-muted': 'oklch(0.955 0.012 85)',
},
@@ -728,6 +737,8 @@ export const tokens = defineTokens({
accent: 'oklch(0.76 0.12 55)',
'accent-text': 'oklch(0.18 0.02 55)',
'link-inverse': 'oklch(0.42 0.09 160)',
'primary-inverse': 'oklch(0.47 0.09 160)', // inverted sections are light in dark mode
'primary-inverse-text': 'oklch(0.99 0 0)',
bg: 'oklch(0.2 0.01 160)',
'surface-muted': 'oklch(0.25 0.012 160)',
},