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,31 @@
|
||||
import type { BuilderFormClassNames } from '@intecion/ipal-kit/client'
|
||||
import { buttonClass } from '@intecion/ipal-kit/blocks/rsc'
|
||||
|
||||
const control =
|
||||
'w-full rounded-control border border-border bg-surface px-3 py-2 text-fg placeholder:text-fg-muted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus'
|
||||
|
||||
/** The ONLY place panel forms are styled (ipal-form). Token utilities only — no hex, no dark:. */
|
||||
export const formClasses: BuilderFormClassNames = {
|
||||
actions: 'flex flex-wrap gap-3',
|
||||
back: buttonClass('secondary'),
|
||||
checkboxLabel: 'flex items-start gap-2 text-fg',
|
||||
choice: 'flex items-center gap-2',
|
||||
choices: 'grid gap-2',
|
||||
error: 'mt-1 text-sm text-danger',
|
||||
field: 'col-span-12',
|
||||
fieldHalf: 'md:col-span-6',
|
||||
fields: 'grid grid-cols-12 gap-4',
|
||||
form: 'grid gap-6',
|
||||
formError: 'rounded-control bg-danger-surface p-3 text-danger',
|
||||
input: control,
|
||||
label: 'mb-1 block font-medium text-fg-strong',
|
||||
legend: 'mb-1 font-medium text-fg-strong',
|
||||
progress: 'text-sm text-fg-muted',
|
||||
select: control,
|
||||
step: 'grid gap-4',
|
||||
stepDescription: 'text-fg-muted',
|
||||
stepTitle: 'font-heading text-h4 text-fg-strong',
|
||||
submit: buttonClass('primary'),
|
||||
success: 'rounded-card bg-success-surface p-6 text-fg',
|
||||
textarea: `${control} min-h-32`,
|
||||
}
|
||||
Reference in New Issue
Block a user