Reference site: Example Studio on ipal-kit (reference/), index for agents, CI job
reference/ is one complete client site on the plugin (made-up company, pl/en, MongoDB, every library block and template, token standard light/dark, forms, consent, SEO/GEO, enforced CSP, 2FA, base + demo seeds, Coolify runbook, smoke tests). It uses the plugin as file:.. (injected) and is not shipped. - docs/agent/reference-site/INDEX.md (generated by scripts/reference-index.mjs, kept current by test/referenceIndex.test.ts) - AGENT.md section and pointers in ipal-site, ipal-setup, ipal-reference, ipal-upgrade, ipal-block; release steps in PROGRAMISTA §8.1b - CI: reference (fast) on every push, reference-full on main; doctor steps wired, commented until ipal-doctor ships Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8bb5ebd394
commit
8adac41f92
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* GENERATED by `ipal-tokens` from src/design/tokens.ts — do not edit; change src/design/tokens.ts and run
|
||||
* `pnpm exec ipal-tokens`. Import it in styles.css after @intecion/ipal-kit/tokens.css (and tailwind.css).
|
||||
*/
|
||||
|
||||
: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"] {
|
||||
--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-text: oklch(0.18 0.02 160);
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// src/design/tokens.ts — the ONLY file edited to rebrand the site (docs/design-tokens.md).
|
||||
// After every change: `pnpm tokens` → writes src/design/tokens.css (commit it) and prints the WCAG contrast check.
|
||||
// Leave out anything the brand does not change: the neutral defaults in @intecion/ipal-kit/tokens.css apply.
|
||||
import { defineTokens } from '@intecion/ipal-kit/tokens'
|
||||
|
||||
export const tokens = defineTokens({
|
||||
theme: 'both', // must match Site settings → Theme (seeded: system, toggle on)
|
||||
fluid: 'wide',
|
||||
color: {
|
||||
light: {
|
||||
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
|
||||
bg: 'oklch(0.985 0.006 85)', // warm paper white
|
||||
'surface-muted': 'oklch(0.955 0.012 85)',
|
||||
},
|
||||
dark: {
|
||||
primary: 'oklch(0.74 0.09 160)',
|
||||
'primary-text': 'oklch(0.18 0.02 160)', // dark text on the lighter dark-mode primary
|
||||
accent: 'oklch(0.76 0.12 55)',
|
||||
'accent-text': 'oklch(0.18 0.02 55)',
|
||||
'link-inverse': 'oklch(0.42 0.09 160)',
|
||||
bg: 'oklch(0.2 0.01 160)',
|
||||
'surface-muted': 'oklch(0.25 0.012 160)',
|
||||
},
|
||||
},
|
||||
font: { fwHeading: 600 },
|
||||
radius: { card: '0.25rem', control: '0.25rem' }, // "sharp": architectural, precise
|
||||
})
|
||||
Reference in New Issue
Block a user