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:
co-authored by
Claude Opus 5.5
parent
353e65e7bd
commit
e43198b2fe
@@ -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="dark" on the panel). The bottom row is the inverse scope (data-surface="inverse").
|
||||
src/design/tokens.ts → pnpm tokens → src/design/tokens.css. The panels set data-theme="light" and data-theme="dark"
|
||||
on themselves (the tokens switch on any element); the bottom row is the inverse scope (data-surface="inverse") 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="inverse")" />
|
||||
</Container>
|
||||
|
||||
Reference in New Issue
Block a user