Skip to documentation
Design system / Sources & standards
Current repository source
documentation-hero.tsx
src/components/editorial/instances/documentation-hero.tsx
This view contains the escaped source read during the deployment build. Code and policy text are unchanged. Markdown is shown as source, not rendered as a document. A new deployment refreshes the content.
import { ContentHeading } from "../content-heading";
import { HeroLayout } from "../hero-layout";
import { SpecimenBoard } from "../specimen-board";
import { Text } from "@/components/ui/text";
import { DecisionList } from "../decision-list";
/** Documentation instance binds copy/palette choices; values supplied by the
* server route are current public theme declarations, not snapshot counts. */
export function DocumentationHero({
title,
description,
family,
bodySize,
}: {
title: string;
description: string;
family: string;
bodySize: string;
}) {
return (
<HeroLayout
content={
<ContentHeading
title={title}
description={description}
eyebrow="CreativeXHub design system"
/>
}
specimen={
<SpecimenBoard
title="The neutral foundation"
footer={
<Text
variant="supporting"
rhythm="loose"
className="text-text-muted"
>
Current typography and neutral palette values. Brand and feedback
palette placeholders remain identified in the source.
</Text>
}
>
<Text
variant="inherit"
className="text-title-jumbo"
aria-label="Typography specimen: Aa"
>
Aa
</Text>
<div
className="flex overflow-hidden rounded-md border"
aria-label="Neutral palette specimen"
>
{[0, 100, 300, 700, 950].map((step) => (
<span
key={step}
role="img"
aria-label={`Neutral ${step}`}
title={`--cxh-color-neutral-${step}`}
className="h-12 flex-1"
style={{ backgroundColor: `var(--cxh-color-neutral-${step})` }}
/>
))}
</div>
<DecisionList
items={[
{ id: "family", term: "System sans", description: family },
{ id: "body", term: "Fluid body size", description: bodySize },
]}
/>
</SpecimenBoard>
}
/>
);
}
All sources and standards