From c0d89261677f7344e16f7073855a23904ce1fa3b Mon Sep 17 00:00:00 2001 From: John Leider Date: Tue, 14 Jul 2026 21:07:22 -0500 Subject: [PATCH 1/2] feat(genesis): extract GnDocsCallout admonition primitive Adds the docs-primitives Phase 2 #1: a headless admonition shell (tip/note/warning/caution/important) that consumes v0 severity tokens via the cascade with standalone fallbacks, following the genesis theme-inheritance convention. Icon and title are slot-overridable with inline-SVG defaults. Wires the first consumer: apps/docs DocsCallout now delegates the five standard types to GnDocsCallout, injecting AppIcon into the icon slot. The docs-only interactive types (askai/discord/tour) and the random-tip pool stay local, per the genesis non-goals. --- apps/docs/src/components/docs/DocsCallout.vue | 49 +++---- packages/genesis/SPEC.md | 21 ++- .../GnDocsCallout/GnDocsCallout.vue | 120 ++++++++++++++++++ .../src/components/GnDocsCallout/index.ts | 2 + packages/genesis/src/components/index.ts | 1 + 5 files changed, 169 insertions(+), 24 deletions(-) create mode 100644 packages/genesis/src/components/GnDocsCallout/GnDocsCallout.vue create mode 100644 packages/genesis/src/components/GnDocsCallout/index.ts diff --git a/apps/docs/src/components/docs/DocsCallout.vue b/apps/docs/src/components/docs/DocsCallout.vue index 98b3ca3410..a09e501731 100644 --- a/apps/docs/src/components/docs/DocsCallout.vue +++ b/apps/docs/src/components/docs/DocsCallout.vue @@ -1,4 +1,6 @@ + + + + + + diff --git a/packages/genesis/src/components/GnDocsCallout/index.ts b/packages/genesis/src/components/GnDocsCallout/index.ts new file mode 100644 index 0000000000..e6fbe586d6 --- /dev/null +++ b/packages/genesis/src/components/GnDocsCallout/index.ts @@ -0,0 +1,2 @@ +export type { GnDocsCalloutProps, GnDocsCalloutType } from './GnDocsCallout.vue' +export { default as GnDocsCallout } from './GnDocsCallout.vue' diff --git a/packages/genesis/src/components/index.ts b/packages/genesis/src/components/index.ts index 7d7b89a833..5dc5fa40c1 100644 --- a/packages/genesis/src/components/index.ts +++ b/packages/genesis/src/components/index.ts @@ -1,4 +1,5 @@ export * from './GnActionButton' +export * from './GnDocsCallout' export * from './GnDocsExample' export * from './GnDotGrid' export * from './GnPeek' From 40c34b3705f6fef2d8bf2063b786d279b5535825 Mon Sep 17 00:00:00 2001 From: John Leider Date: Tue, 14 Jul 2026 21:09:02 -0500 Subject: [PATCH 2/2] chore: add changeset for GnDocsCallout --- .changeset/genesis-docs-callout.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/genesis-docs-callout.md diff --git a/.changeset/genesis-docs-callout.md b/.changeset/genesis-docs-callout.md new file mode 100644 index 0000000000..ef01953959 --- /dev/null +++ b/.changeset/genesis-docs-callout.md @@ -0,0 +1,7 @@ +--- +"@paper/genesis": minor +--- + +feat(genesis): add GnDocsCallout admonition primitive (#593) + +A headless callout/admonition component for `tip`, `note`, `warning`, `caution`, and `important` types. Colors inherit from the active v0 theme via severity tokens (with standalone fallbacks); the `icon` and `title` slots override the inline-SVG and label defaults.