import type { ReactNode } from 'react' import { VERSION } from '@openkhalix/tansy-ui' import { TansyMark } from '@tansy/brand' /* * Building blocks for the Storybook Introduction pages. They sit inside * `sb-unstyled` so Storybook's docs typography does not restyle them, and use * inline styles so they read the same in every palette. */ const ink = '#12151c' const muted = '#6b7384' const line = '#dde1e8' const display = '"Schibsted Grotesk", "Instrument Sans", sans-serif' const mono = '"JetBrains Mono", ui-monospace, monospace' /** Page header: mark, title, one-line summary and the kit version. */ export function DocHero({ title, children }: { title: string; children: ReactNode }) { return (
Tansy UI · v{VERSION}

{title}

{children}

) } export type DocCard = { title: string body: string /** A Storybook path such as `/docs/introduction-theming--documentation`. */ path: string } /** * Links that navigate the whole Storybook, not just the preview frame. * `./?path=` resolves next to iframe.html, so it works at `/` in dev and * under `/docs/` in production. */ export function DocCards({ items }: { items: DocCard[] }) { return (
{items.map((item) => ( {item.title} → {item.body} ))}
) }