Skip to content

armgit / pdfcn

Public Imported from GitHub
0

Beautiful pdf components, built on Takumi and Forme. 100% Free, Zero config, one command setup.

feat: add theming support with multiple theme presets and documentation updates

Aniket-5085a491f520c97
diff --git a/components/theme-preview-grid.tsx b/components/theme-preview-grid.tsx
new file mode 100644
index 0000000..5239b96
--- /dev/null
+++ b/components/theme-preview-grid.tsx
@@ -0,0 +1,60 @@
+import Link from "next/link";
+
+import { THEMES } from "@/registry/themes";
+import type { RegistryThemeName } from "@/registry/themes";
+
+interface ThemePreviewGridProps {
+ themes?: RegistryThemeName[];
+ className?: string;
+}
+
+export const ThemePreviewGrid = ({
+ themes: requestedThemes,
+ className,
+}: ThemePreviewGridProps) => {
+ const slugs = requestedThemes ?? THEMES.map((theme) => theme.name);
+ const themes = slugs
+ .map((slug) => {
+ const theme = THEMES.find((item) => item.name === slug);
+ if (!theme) {
+ return null;
+ }
+ return {
+ accent: theme.theme.colors.accent,
+ foreground: theme.theme.colors.foreground,
+ muted: theme.theme.colors.muted,
+ name: theme.title,
+ primary: theme.theme.colors.primary,
+ slug: theme.name,
+ };
+ })
+ .filter((t): t is NonNullable<typeof t> => t !== null);
+
+ return (
+ <div
+ className={`mt-6 grid grid-cols-2 gap-4 md:grid-cols-3 md:gap-x-8 lg:gap-x-16 lg:gap-y-6 xl:gap-x-20 ${className ?? ""}`}
+ >
+ {themes.map((theme) => (
+ <Link
+ key={theme.slug}
+ href={`/docs/themes/${theme.slug}`}
+ className="inline-flex items-center gap-2 text-lg font-medium underline-offset-4 hover:underline md:text-base"
+ transitionTypes={["nav-forward"]}
+ >
+ <div className="flex shrink-0 gap-0.5">
+ {(["foreground", "primary", "accent", "muted"] as const).map(
+ (color) => (
+ <div
+ key={color}
+ className="flex h-4 w-2.5 shrink-0 rounded-xs inset-ring-1 inset-ring-foreground/15"
+ style={{ backgroundColor: theme[color] }}
+ />
+ )
+ )}
+ </div>
+ <span className="truncate">{theme.name}</span>
+ </Link>
+ ))}
+ </div>
+ );
+};
diff --git a/components/theme-preview.tsx b/components/theme-preview.tsx
new file mode 100644
index 0000000..457173d
--- /dev/null
+++ b/components/theme-preview.tsx
@@ -0,0 +1,161 @@
+"use client";
+
+import { createElement, useEffect, useRef, useState } from "react";
+
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
+import { replacePreviewImageSources } from "@/examples/preview-assets";
+import { cn } from "@/lib/utils";
+import { THEMES } from "@/registry/themes";
+import type { RegistryThemeName } from "@/registry/themes";
+
+const THEMES_OPTIONS = [
+ { value: "professional", label: "Professional" },
+ { value: "modern", label: "Modern" },
+ { value: "minimal", label: "Minimal" },
+ { value: "executive", label: "Executive" },
+ { value: "corporate", label: "Corporate" },
+ { value: "elegant", label: "Elegant" },
+ { value: "vivid", label: "Vivid" },
+ { value: "forest", label: "Forest" },
+ { value: "blueprint", label: "Blueprint" },
+] as const;
+
+interface ThemePreviewProps {
+ name?: string;
+ className?: string;
+ height?: number;
+}
+
+export const ThemePreview = ({
+ name = "invoice-classic",
+ className,
+ height = 640,
+}: ThemePreviewProps) => {
+ const [selectedTheme, setSelectedTheme] = useState<RegistryThemeName>("professional");
+ const [pdfUrl, setPdfUrl] = useState<string | null>(null);
+ const [error, setError] = useState<string | null>(null);
+ const containerRef = useRef<HTMLDivElement>(null);
+
+ useEffect(() => {
+ let cancelled = false;
+ let nextPdfUrl: string | undefined;
+ setPdfUrl(null);
+ setError(null);
+
+ (async () => {
+ try {
+ const [
+ { InvoiceClassicDocument },
+ { renderSerializedDoc },
+ { serialize },
+ ] = await Promise.all([
+ import("@/registry/bases/forme/blocks/invoice-classic/invoice-classic"),
+ import("@formepdf/core/browser"),
+ import("@formepdf/react"),
+ ]);
+
+ const theme = THEMES.find((t) => t.name === selectedTheme)?.theme;
+ const document = replacePreviewImageSources(
+ serialize(createElement(InvoiceClassicDocument, { theme }))
+ );
+ const buffer = await renderSerializedDoc(
+ document as unknown as Record<string, unknown>
+ );
+ const pdfBytes = new Uint8Array(buffer);
+
+ const source = new TextDecoder("latin1").decode(pdfBytes);
+ const pageCounts = [...source.matchAll(/\/Count\s+(\d+)/g)].map((match) =>
+ Number(match[1])
+ );
+ if (pageCounts.length > 0 && Math.max(...pageCounts) === 0) {
+ throw new Error("PDF renderer returned a document with no pages");
+ }
+
+ nextPdfUrl = URL.createObjectURL(
+ new Blob([pdfBytes as BlobPart], { type: "application/pdf" })
+ );
+ if (cancelled) {
+ URL.revokeObjectURL(nextPdfUrl);
+ return;
+ }
+ setPdfUrl(nextPdfUrl);
+ } catch (renderError) {
+ if (!cancelled) {
+ setError(
+ renderError instanceof Error
+ ? renderError.message
+ : "Failed to render PDF"
+ );
+ }
+ }
+ })();
+
+ return () => {
+ cancelled = true;
+ if (nextPdfUrl) {
+ URL.revokeObjectURL(nextPdfUrl);
+ }
+ };
+ }, [name, selectedTheme]);
+
+ return (
+ <div className={cn("not-prose", className)}>
+ <div className="flex items-center justify-between rounded-t-lg border border-b-0 bg-muted/50 px-4 py-2">
+ <div className="flex gap-1.5" aria-hidden="true">
+ <span className="size-2.5 rounded-full bg-red-400" />
+ <span className="size-2.5 rounded-full bg-amber-400" />
+ <span className="size-2.5 rounded-full bg-emerald-400" />
+ </div>
+ <span className="text-sm text-muted-foreground">document.pdf</span>
+ <Select value={selectedTheme} onValueChange={(v) => setSelectedTheme(v as RegistryThemeName)}>
+ <SelectTrigger className="h-8 w-[140px] bg-background text-sm font-medium">
+ <SelectValue placeholder="Theme" />
+ </SelectTrigger>
+ <SelectContent>
+ {THEMES_OPTIONS.map((t) => (
+ <SelectItem key={t.value} value={t.value}>
+ {t.label}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ </div>
+ <div
+ ref={containerRef}
+ className="overflow-hidden rounded-b-lg border bg-muted/30"
+ style={{ minHeight: height }}
+ >
+ {error ? (
+ <div
+ className="flex items-center justify-center p-8 text-sm text-muted-foreground"
+ style={{ minHeight: height }}
+ >
+ {error}
+ </div>
+ ) : null}
+ {!error && !pdfUrl ? (
+ <div
+ className="flex items-center justify-center p-8 text-sm text-muted-foreground"
+ style={{ minHeight: height }}
+ >
+ Rendering PDF…
+ </div>
+ ) : null}
+ {pdfUrl ? (
+ <iframe
+ className="block w-full bg-background"
+ src={`${pdfUrl}#toolbar=1&navpanes=0`}
+ style={{ height }}
+ title={`${name} PDF preview`}
+ />
+ ) : null}
+ </div>
+ </div>
+ );
+};
diff --git a/components/ui/select.tsx b/components/ui/select.tsx
new file mode 100644
index 0000000..c0dc712
--- /dev/null
+++ b/components/ui/select.tsx
@@ -0,0 +1,190 @@
+"use client"
+
+import * as React from "react"
+import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"
+import { Select as SelectPrimitive } from "radix-ui"
+
+import { cn } from "@/lib/utils"
+
+function Select({
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Root>) {
+ return <SelectPrimitive.Root data-slot="select" {...props} />
+}
+
+function SelectGroup({
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Group>) {
+ return <SelectPrimitive.Group data-slot="select-group" {...props} />
+}
+
+function SelectValue({
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Value>) {
+ return <SelectPrimitive.Value data-slot="select-value" {...props} />
+}
+
+function SelectTrigger({
+ className,
+ size = "default",
+ children,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
+ size?: "sm" | "default"
+}) {
+ return (
+ <SelectPrimitive.Trigger
+ data-slot="select-trigger"
+ data-size={size}
+ className={cn(
+ "flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ <SelectPrimitive.Icon asChild>
+ <ChevronDownIcon className="size-4 opacity-50" />
+ </SelectPrimitive.Icon>
+ </SelectPrimitive.Trigger>
+ )
+}
+
+function SelectContent({
+ className,
+ children,
+ position = "item-aligned",
+ align = "center",
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Content>) {
+ return (
+ <SelectPrimitive.Portal>
+ <SelectPrimitive.Content
+ data-slot="select-content"
+ className={cn(
+ "relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
+ position === "popper" &&
+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
+ className
+ )}
+ position={position}
+ align={align}
+ {...props}
+ >
+ <SelectScrollUpButton />
+ <SelectPrimitive.Viewport
+ className={cn(
+ "p-1",
+ position === "popper" &&
+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
+ )}
+ >
+ {children}
+ </SelectPrimitive.Viewport>
+ <SelectScrollDownButton />
+ </SelectPrimitive.Content>
+ </SelectPrimitive.Portal>
+ )
+}
+
+function SelectLabel({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Label>) {
+ return (
+ <SelectPrimitive.Label
+ data-slot="select-label"
+ className={cn("px-2 py-1.5 text-xs text-muted-foreground", className)}
+ {...props}
+ />
+ )
+}
+
+function SelectItem({
+ className,
+ children,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Item>) {
+ return (
+ <SelectPrimitive.Item
+ data-slot="select-item"
+ className={cn(
+ "relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
+ className
+ )}
+ {...props}
+ >
+ <span
+ data-slot="select-item-indicator"
+ className="absolute right-2 flex size-3.5 items-center justify-center"
+ >
+ <SelectPrimitive.ItemIndicator>
+ <CheckIcon className="size-4" />
+ </SelectPrimitive.ItemIndicator>
+ </span>
+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
+ </SelectPrimitive.Item>
+ )
+}
+
+function SelectSeparator({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Separator>) {
+ return (
+ <SelectPrimitive.Separator
+ data-slot="select-separator"
+ className={cn("pointer-events-none -mx-1 my-1 h-px bg-border", className)}
+ {...props}
+ />
+ )
+}
+
+function SelectScrollUpButton({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {
+ return (
+ <SelectPrimitive.ScrollUpButton
+ data-slot="select-scroll-up-button"
+ className={cn(
+ "flex cursor-default items-center justify-center py-1",
+ className
+ )}
+ {...props}
+ >
+ <ChevronUpIcon className="size-4" />
+ </SelectPrimitive.ScrollUpButton>
+ )
+}
+
+function SelectScrollDownButton({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {
+ return (
+ <SelectPrimitive.ScrollDownButton
+ data-slot="select-scroll-down-button"
+ className={cn(
+ "flex cursor-default items-center justify-center py-1",
+ className
+ )}
+ {...props}
+ >
+ <ChevronDownIcon className="size-4" />
+ </SelectPrimitive.ScrollDownButton>
+ )
+}
+
+export {
+ Select,
+ SelectContent,
+ SelectGroup,
+ SelectItem,
+ SelectLabel,
+ SelectScrollDownButton,
+ SelectScrollUpButton,
+ SelectSeparator,
+ SelectTrigger,
+ SelectValue,
+}
diff --git a/constants/nav.ts b/constants/nav.ts
index d7ead75..8a0c84d 100644
--- a/constants/nav.ts
+++ b/constants/nav.ts
@@ -50,6 +50,7 @@ export const TOP_LEVEL_SECTIONS = [
{ href: ROUTES.DOCS_INSTALLATION, name: "Installation" },
{ href: ROUTES.DOCS_COMPONENTS, name: "Components" },
{ href: ROUTES.DOCS_BLOCKS, name: "Blocks" },
+ { href: ROUTES.DOCS_THEMING, name: "Theming" },
{ href: ROUTES.DOCS_MCP, name: "MCP" },
{ href: ROUTES.DOCS_REGISTRY, name: "Registry" },
{ href: ROUTES.LLMS, name: "llms.txt" },
diff --git a/constants/routes.ts b/constants/routes.ts
index f1a3257..c660204 100644
--- a/constants/routes.ts
+++ b/constants/routes.ts
@@ -10,6 +10,8 @@ export const ROUTES = {
DOCS_INSTALLATION: "/docs/installation",
DOCS_MCP: "/docs/mcp",
DOCS_REGISTRY: "/docs/registry",
+ DOCS_THEMES: "/docs/themes",
+ DOCS_THEMING: "/docs/theming",
HOME: "/",
LLMS: "/llms.txt",
LLMS_FULL: "/llms-full.txt",
diff --git a/content/docs/(root)/installation.mdx b/content/docs/(root)/installation.mdx
index 21ef059..918a4ba 100644
--- a/content/docs/(root)/installation.mdx
+++ b/content/docs/(root)/installation.mdx
@@ -72,5 +72,5 @@ npx shadcn@latest add @pdfcn/takumi/theme-minimal
For Forme:
```bash
-npx shadcn@latest add @pdfcn/forme/theme-minimal
+npx shadcn@latest add @pdfcn/theme-minimal
```
diff --git a/content/docs/meta.json b/content/docs/meta.json
index 3c949fe..baf4e7a 100644
--- a/content/docs/meta.json
+++ b/content/docs/meta.json
@@ -1,4 +1,4 @@
{
"title": "Documentation",
- "pages": ["(root)", "components", "blocks"]
+ "pages": ["(root)", "themes", "components", "blocks"]
}
diff --git a/content/docs/themes/blueprint.mdx b/content/docs/themes/blueprint.mdx
new file mode 100644
index 0000000..aa38bd1
--- /dev/null
+++ b/content/docs/themes/blueprint.mdx
@@ -0,0 +1,60 @@
+---
+title: "Blueprint"
+description: "Dark slate with cyan accent, monospace headings, technical precision."
+---
+
+<ComponentPreview
+ base="forme"
+ name="invoice-classic"
+ theme="blueprint"
+ hideCode
+/>
+
+## Installation
+
+<CodeTabs>
+
+<TabsList>
+ <TabsTrigger value="cli">Command</TabsTrigger>
+ <TabsTrigger value="manual">Manual</TabsTrigger>
+</TabsList>
+<TabsContent value="cli">
+
+```bash
+npx shadcn@latest add @pdfcn/theme-blueprint
+```
+
+</TabsContent>
+<TabsContent value="manual">
+
+<Steps>
+
+<Step>Copy and paste the following code into your project.</Step>
+
+<ComponentSource
+ src="registry/themes/blueprint.ts"
+ title="lib/themes/blueprint.ts"
+/>
+
+<Step>Update the import paths to match your project setup.</Step>
+
+</Steps>
+
+</TabsContent>
+
+</CodeTabs>
+
+## Usage
+
+```tsx
+import { PdfcnThemeProvider } from "@/registry/bases/forme/components";
+import { blueprintTheme } from "@/registry/themes";
+
+export function Invoice() {
+ return (
+ <PdfcnThemeProvider theme={blueprintTheme}>
+ {/* Your PDF content */}
+ </PdfcnThemeProvider>
+ );
+}
+```
diff --git a/content/docs/themes/corporate.mdx b/content/docs/themes/corporate.mdx
new file mode 100644
index 0000000..3ccb7dc
--- /dev/null
+++ b/content/docs/themes/corporate.mdx
@@ -0,0 +1,60 @@
+---
+title: "Corporate"
+description: "Blue-gray palette, Lato sans-serif, structured and dependable."
+---
+
+<ComponentPreview
+ base="forme"
+ name="invoice-corporate"
+ theme="corporate"
+ hideCode
+/>
+
+## Installation
+
+<CodeTabs>
+
+<TabsList>
+ <TabsTrigger value="cli">Command</TabsTrigger>
+ <TabsTrigger value="manual">Manual</TabsTrigger>
+</TabsList>
+<TabsContent value="cli">
+
+```bash
+npx shadcn@latest add @pdfcn/theme-corporate
+```
+
+</TabsContent>
+<TabsContent value="manual">
+
+<Steps>
+
+<Step>Copy and paste the following code into your project.</Step>
+
+<ComponentSource
+ src="registry/themes/corporate.ts"
+ title="lib/themes/corporate.ts"
+/>
+
+<Step>Update the import paths to match your project setup.</Step>
+
+</Steps>
+
+</TabsContent>
+
+</CodeTabs>
+
+## Usage
+
+```tsx
+import { PdfcnThemeProvider } from "@/registry/bases/forme/components";
+import { corporateTheme } from "@/registry/themes";
+
+export function Invoice() {
+ return (
+ <PdfcnThemeProvider theme={corporateTheme}>
+ {/* Your PDF content */}
+ </PdfcnThemeProvider>
+ );
+}
+```
diff --git a/content/docs/themes/elegant.mdx b/content/docs/themes/elegant.mdx
new file mode 100644
index 0000000..97b1563
--- /dev/null
+++ b/content/docs/themes/elegant.mdx
@@ -0,0 +1,60 @@
+---
+title: "Elegant"
+description: "Warm cream whites, amber/gold accent, classic editorial combination."
+---
+
+<ComponentPreview
+ base="forme"
+ name="invoice-creative"
+ theme="elegant"
+ hideCode
+/>
+
+## Installation
+
+<CodeTabs>
+
+<TabsList>
+ <TabsTrigger value="cli">Command</TabsTrigger>
+ <TabsTrigger value="manual">Manual</TabsTrigger>
+</TabsList>
+<TabsContent value="cli">
+
+```bash
+npx shadcn@latest add @pdfcn/theme-elegant
+```
+
+</TabsContent>
+<TabsContent value="manual">
+
+<Steps>
+
+<Step>Copy and paste the following code into your project.</Step>
+
+<ComponentSource
+ src="registry/themes/elegant.ts"
+ title="lib/themes/elegant.ts"
+/>
+
+<Step>Update the import paths to match your project setup.</Step>
+
+</Steps>
+
+</TabsContent>
+
+</CodeTabs>
+
+## Usage
+
+```tsx
+import { PdfcnThemeProvider } from "@/registry/bases/forme/components";
+import { elegantTheme } from "@/registry/themes";
+
+export function Invoice() {
+ return (
+ <PdfcnThemeProvider theme={elegantTheme}>
+ {/* Your PDF content */}
+ </PdfcnThemeProvider>
+ );
+}
+```
diff --git a/content/docs/themes/executive.mdx b/content/docs/themes/executive.mdx
new file mode 100644
index 0000000..9aa0d39
--- /dev/null
+++ b/content/docs/themes/executive.mdx
@@ -0,0 +1,60 @@
+---
+title: "Executive"
+description: "Deep navy palette, Merriweather serif headings, premium boardroom aesthetic."
+---
+
+<ComponentPreview
+ base="forme"
+ name="invoice-corporate"
+ theme="executive"
+ hideCode
+/>
+
+## Installation
+
+<CodeTabs>
+
+<TabsList>
+ <TabsTrigger value="cli">Command</TabsTrigger>
+ <TabsTrigger value="manual">Manual</TabsTrigger>
+</TabsList>
+<TabsContent value="cli">
+
+```bash
+npx shadcn@latest add @pdfcn/theme-executive
+```
+
+</TabsContent>
+<TabsContent value="manual">
+
+<Steps>
+
+<Step>Copy and paste the following code into your project.</Step>
+
+<ComponentSource
+ src="registry/themes/executive.ts"
+ title="lib/themes/executive.ts"
+/>
+
+<Step>Update the import paths to match your project setup.</Step>
+
+</Steps>
+
+</TabsContent>
+
+</CodeTabs>
+
+## Usage
+
+```tsx
+import { PdfcnThemeProvider } from "@/registry/bases/forme/components";
+import { executiveTheme } from "@/registry/themes";
+
+export function Invoice() {
+ return (
+ <PdfcnThemeProvider theme={executiveTheme}>
+ {/* Your PDF content */}
+ </PdfcnThemeProvider>
+ );
+}
+```
diff --git a/content/docs/themes/forest.mdx b/content/docs/themes/forest.mdx
new file mode 100644
index 0000000..8eb730d
--- /dev/null
+++ b/content/docs/themes/forest.mdx
@@ -0,0 +1,60 @@
+---
+title: "Forest"
+description: "Natural deep greens, Merriweather headings, earthy and trustworthy."
+---
+
+<ComponentPreview
+ base="forme"
+ name="invoice-classic"
+ theme="forest"
+ hideCode
+/>
+
+## Installation
+
+<CodeTabs>
+
+<TabsList>
+ <TabsTrigger value="cli">Command</TabsTrigger>
+ <TabsTrigger value="manual">Manual</TabsTrigger>
+</TabsList>
+<TabsContent value="cli">
+
+```bash
+npx shadcn@latest add @pdfcn/theme-forest
+```
+
+</TabsContent>
+<TabsContent value="manual">
+
+<Steps>
+
+<Step>Copy and paste the following code into your project.</Step>
+
+<ComponentSource
+ src="registry/themes/forest.ts"
+ title="lib/themes/forest.ts"
+/>
+
+<Step>Update the import paths to match your project setup.</Step>
+
+</Steps>
+
+</TabsContent>
+
+</CodeTabs>
+
+## Usage
+
+```tsx
+import { PdfcnThemeProvider } from "@/registry/bases/forme/components";
+import { forestTheme } from "@/registry/themes";
+
+export function Invoice() {
+ return (
+ <PdfcnThemeProvider theme={forestTheme}>
+ {/* Your PDF content */}
+ </PdfcnThemeProvider>
+ );
+}
+```
diff --git a/content/docs/themes/index.mdx b/content/docs/themes/index.mdx
new file mode 100644
index 0000000..2ea892d
--- /dev/null
+++ b/content/docs/themes/index.mdx
@@ -0,0 +1,6 @@
+---
+title: Themes
+description: Pre-built theme presets for styling your PDF components.
+---
+
+<ComponentsList className="mt-4" folderName="Themes" />
diff --git a/content/docs/themes/meta.json b/content/docs/themes/meta.json
new file mode 100644
index 0000000..7e15d49
--- /dev/null
+++ b/content/docs/themes/meta.json
@@ -0,0 +1,4 @@
+{
+ "title": "Themes",
+ "pages": ["---", "professional", "modern", "minimal", "executive", "corporate", "elegant", "vivid", "forest", "blueprint"]
+}
diff --git a/content/docs/themes/minimal.mdx b/content/docs/themes/minimal.mdx
new file mode 100644
index 0000000..1b727ee
--- /dev/null
+++ b/content/docs/themes/minimal.mdx
@@ -0,0 +1,60 @@
+---
+title: "Minimal"
+description: "Courier headings, zinc neutrals, maximum whitespace."
+---
+
+<ComponentPreview
+ base="forme"
+ name="invoice-minimal"
+ theme="minimal"
+ hideCode
+/>
+
+## Installation
+
+<CodeTabs>
+
+<TabsList>
+ <TabsTrigger value="cli">Command</TabsTrigger>
+ <TabsTrigger value="manual">Manual</TabsTrigger>
+</TabsList>
+<TabsContent value="cli">
+
+```bash
+npx shadcn@latest add @pdfcn/theme-minimal
+```
+
+</TabsContent>
+<TabsContent value="manual">
+
+<Steps>
+
+<Step>Copy and paste the following code into your project.</Step>
+
+<ComponentSource
+ src="registry/themes/minimal.ts"
+ title="lib/themes/minimal.ts"
+/>
+
+<Step>Update the import paths to match your project setup.</Step>
+
+</Steps>
+
+</TabsContent>
+
+</CodeTabs>
+
+## Usage
+
+```tsx
+import { PdfcnThemeProvider } from "@/registry/bases/forme/components";
+import { minimalTheme } from "@/registry/themes";
+
+export function Invoice() {
+ return (
+ <PdfcnThemeProvider theme={minimalTheme}>
+ {/* Your PDF content */}
+ </PdfcnThemeProvider>
+ );
+}
+```
diff --git a/content/docs/themes/modern.mdx b/content/docs/themes/modern.mdx
new file mode 100644
index 0000000..b16362f
--- /dev/null
+++ b/content/docs/themes/modern.mdx
@@ -0,0 +1,60 @@
+---
+title: "Modern"
+description: "All-Helvetica typography, slate-cool neutrals with subtle violet accent."
+---
+
+<ComponentPreview
+ base="forme"
+ name="invoice-modern"
+ theme="modern"
+ hideCode
+/>
+
+## Installation
+
+<CodeTabs>
+
+<TabsList>
+ <TabsTrigger value="cli">Command</TabsTrigger>
+ <TabsTrigger value="manual">Manual</TabsTrigger>
+</TabsList>
+<TabsContent value="cli">
+
+```bash
+npx shadcn@latest add @pdfcn/theme-modern
+```
+
+</TabsContent>
+<TabsContent value="manual">
+
+<Steps>
+
+<Step>Copy and paste the following code into your project.</Step>
+
+<ComponentSource
+ src="registry/themes/modern.ts"
+ title="lib/themes/modern.ts"
+/>
+
+<Step>Update the import paths to match your project setup.</Step>
+
+</Steps>
+
+</TabsContent>
+
+</CodeTabs>
+
+## Usage
+
+```tsx
+import { PdfcnThemeProvider } from "@/registry/bases/forme/components";
+import { modernTheme } from "@/registry/themes";
+
+export function Invoice() {
+ return (
+ <PdfcnThemeProvider theme={modernTheme}>
+ {/* Your PDF content */}
+ </PdfcnThemeProvider>
+ );
+}
+```
diff --git a/content/docs/themes/professional.mdx b/content/docs/themes/professional.mdx
new file mode 100644
index 0000000..eb8a2ab
--- /dev/null
+++ b/content/docs/themes/professional.mdx
@@ -0,0 +1,60 @@
+---
+title: "Professional"
+description: "Serif headings, refined zinc/slate palette, formal document feel."
+---
+
+<ComponentPreview
+ base="forme"
+ name="invoice-classic"
+ theme="professional"
+ hideCode
+/>
+
+## Installation
+
+<CodeTabs>
+
+<TabsList>
+ <TabsTrigger value="cli">Command</TabsTrigger>
+ <TabsTrigger value="manual">Manual</TabsTrigger>
+</TabsList>
+<TabsContent value="cli">
+
+```bash
+npx shadcn@latest add @pdfcn/theme-professional
+```
+
+</TabsContent>
+<TabsContent value="manual">
+
+<Steps>
+
+<Step>Copy and paste the following code into your project.</Step>
+
+<ComponentSource
+ src="registry/themes/professional.ts"
+ title="lib/themes/professional.ts"
+/>
+
+<Step>Update the import paths to match your project setup.</Step>
+
+</Steps>
+
+</TabsContent>
+
+</CodeTabs>
+
+## Usage
+
+```tsx
+import { PdfcnThemeProvider } from "@/registry/bases/forme/components";
+import { professionalTheme } from "@/registry/themes";
+
+export function Invoice() {
+ return (
+ <PdfcnThemeProvider theme={professionalTheme}>
+ {/* Your PDF content */}
+ </PdfcnThemeProvider>
+ );
+}
+```
diff --git a/content/docs/themes/vivid.mdx b/content/docs/themes/vivid.mdx
new file mode 100644
index 0000000..287f553
--- /dev/null
+++ b/content/docs/themes/vivid.mdx
@@ -0,0 +1,60 @@
+---
+title: "Vivid"
+description: "Deep violet palette, Nunito rounded sans-serif, playful but professional."
+---
+
+<ComponentPreview
+ base="forme"
+ name="invoice-creative"
+ theme="vivid"
+ hideCode
+/>
+
+## Installation
+
+<CodeTabs>
+
+<TabsList>
+ <TabsTrigger value="cli">Command</TabsTrigger>
+ <TabsTrigger value="manual">Manual</TabsTrigger>
+</TabsList>
+<TabsContent value="cli">
+
+```bash
+npx shadcn@latest add @pdfcn/theme-vivid
+```
+
+</TabsContent>
+<TabsContent value="manual">
+
+<Steps>
+
+<Step>Copy and paste the following code into your project.</Step>
+
+<ComponentSource
+ src="registry/themes/vivid.ts"
+ title="lib/themes/vivid.ts"
+/>
+
+<Step>Update the import paths to match your project setup.</Step>
+
+</Steps>
+
+</TabsContent>
+
+</CodeTabs>
+
+## Usage
+
+```tsx
+import { PdfcnThemeProvider } from "@/registry/bases/forme/components";
+import { vividTheme } from "@/registry/themes";
+
+export function Invoice() {
+ return (
+ <PdfcnThemeProvider theme={vividTheme}>
+ {/* Your PDF content */}
+ </PdfcnThemeProvider>
+ );
+}
+```
diff --git a/content/docs/theming.mdx b/content/docs/theming.mdx
new file mode 100644
index 0000000..e3578cf
--- /dev/null
+++ b/content/docs/theming.mdx
@@ -0,0 +1,135 @@
+---
+title: Theming
+description: Configure PDF themes, colors, typography, and spacing.
+---
+
+import { ThemePreview } from "@/components/theme-preview";
+import { ThemePreviewGrid } from "@/components/theme-preview-grid";
+
+<ThemePreview />
+
+## Installation
+
+<CodeTabs>
+
+<TabsList>
+ <TabsTrigger value="cli">Command</TabsTrigger>
+ <TabsTrigger value="manual">Manual</TabsTrigger>
+</TabsList>
+<TabsContent value="cli">
+
+```bash
+npx shadcn@latest add @pdfcn/theme-provider
+```
+
+</TabsContent>
+<TabsContent value="manual">
+
+<Steps>
+
+<Step>Copy and paste the following code into your project.</Step>
+
+<ComponentSource
+ src="registry/bases/forme/lib/theme-provider.tsx"
+ title="components/theme-provider.tsx"
+/>
+
+<Step>Update the import paths to match your project setup.</Step>
+
+</Steps>
+
+</TabsContent>
+
+</CodeTabs>
+
+## Usage
+
+```tsx
+import { PdfcnThemeProvider } from "@/registry/bases/forme/components";
+import { professionalTheme } from "@/registry/themes";
+
+export function Invoice() {
+ return (
+ <PdfcnThemeProvider theme={professionalTheme}>
+ {/* Your PDF content */}
+ </PdfcnThemeProvider>
+ );
+}
+```
+
+## Color Tokens
+
+All color values must be hex strings (e.g., `#1a1a1a`). React PDF supports hex, `rgb()`, and `hsl()` — but NOT `oklch`.
+
+| Token | Purpose |
+|-------|---------|
+| `foreground` | Primary text color |
+| `background` | Page background |
+| `muted` | Secondary backgrounds |
+| `mutedForeground` | Captions, footnotes |
+| `primary` | Brand/accent color |
+| `primaryForeground` | Text on primary backgrounds |
+| `border` | Table borders, dividers |
+| `accent` | Call-to-action elements |
+| `destructive` | Error states |
+| `success` | Success states |
+| `warning` | Warning states |
+| `info` | Informational states |
+
+## Primitive Tokens
+
+Primitives define the raw design scales available to themes:
+
+- **Typography Scale** — Major Third (1.25) ratio with 12pt base
+- **Spacing Scale** — 4pt grid system
+- **Font Weights** — 400–700
+- **Line Heights** — 1.2–1.6
+- **Border Radius** — 0–8pt
+
+## Custom Themes
+
+Use the `PdfcnTheme` interface to create custom themes while preserving the complete theme shape.
+
+```tsx
+import type { PdfcnTheme } from "@/registry/themes";
+import { defaultPrimitives } from "@/registry/themes";
+
+export const oceanTheme: PdfcnTheme = {
+ name: "ocean",
+ primitives: defaultPrimitives,
+ colors: {
+ foreground: "#0f172a",
+ background: "#ffffff",
+ primary: "#0369a1",
+ accent: "#0ea5e9",
+ muted: "#f1f5f9",
+ border: "#e2e8f0",
+ mutedForeground: "#64748b",
+ primaryForeground: "#ffffff",
+ destructive: "#dc2626",
+ success: "#16a34a",
+ warning: "#d97706",
+ info: "#0ea5e9",
+ },
+ typography: {
+ body: { fontFamily: "Helvetica", fontSize: 11, lineHeight: 1.6 },
+ heading: {
+ fontFamily: "Times-Roman",
+ fontWeight: 700,
+ lineHeight: 1.25,
+ fontSize: { h1: 32, h2: 24, h3: 20, h4: 16, h5: 14, h6: 12 },
+ },
+ },
+ spacing: {
+ page: { marginTop: 56, marginRight: 48, marginBottom: 56, marginLeft: 48 },
+ sectionGap: 28,
+ paragraphGap: 10,
+ componentGap: 14,
+ },
+ page: { size: "A4", orientation: "portrait" },
+};
+```
+
+## Available Themes
+
+<ThemePreviewGrid />
diff --git a/public/r/registry.json b/public/r/registry.json
index 9fd5a11..a0ff2ec 100644
--- a/public/r/registry.json
+++ b/public/r/registry.json
@@ -3,7 +3,10 @@
"homepage": "https://pdfcn.vercel.app",
"items": [
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Theme context and helpers for the takumi base",
"files": [
{
@@ -37,7 +40,10 @@
"type": "registry:lib"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Alert PDF component (takumi)",
"files": [
{
@@ -52,12 +58,17 @@
}
],
"name": "takumi/alert",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Alert",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Badge PDF component (takumi)",
"files": [
{
@@ -72,12 +83,17 @@
}
],
"name": "takumi/badge",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Badge",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Card PDF component (takumi)",
"files": [
{
@@ -92,12 +108,17 @@
}
],
"name": "takumi/card",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Card",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Data Table PDF component (takumi)",
"files": [
{
@@ -122,12 +143,18 @@
}
],
"name": "takumi/data-table",
- "registryDependencies": ["takumi/utils", "takumi/table"],
+ "registryDependencies": [
+ "takumi/utils",
+ "takumi/table"
+ ],
"title": "Data Table",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Divider PDF component (takumi)",
"files": [
{
@@ -142,12 +169,17 @@
}
],
"name": "takumi/divider",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Divider",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Form PDF component (takumi)",
"files": [
{
@@ -172,12 +204,17 @@
}
],
"name": "takumi/form",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Form",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Graph PDF component (takumi)",
"files": [
{
@@ -207,12 +244,17 @@
}
],
"name": "takumi/graph",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Graph",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Heading PDF component (takumi)",
"files": [
{
@@ -227,12 +269,17 @@
}
],
"name": "takumi/heading",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Heading",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Keep Together PDF component (takumi)",
"files": [
{
@@ -247,12 +294,17 @@
}
],
"name": "takumi/keep-together",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Keep Together",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Key Value PDF component (takumi)",
"files": [
{
@@ -267,12 +319,17 @@
}
],
"name": "takumi/key-value",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Key Value",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Link PDF component (takumi)",
"files": [
{
@@ -287,12 +344,17 @@
}
],
"name": "takumi/link",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Link",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "List PDF component (takumi)",
"files": [
{
@@ -317,12 +379,17 @@
}
],
"name": "takumi/list",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "List",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Page Break PDF component (takumi)",
"files": [
{
@@ -337,12 +404,17 @@
}
],
"name": "takumi/page-break",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Page Break",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Page Footer PDF component (takumi)",
"files": [
{
@@ -357,12 +429,17 @@
}
],
"name": "takumi/page-footer",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Page Footer",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Page Header PDF component (takumi)",
"files": [
{
@@ -377,12 +454,17 @@
}
],
"name": "takumi/page-header",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Page Header",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Page Number PDF component (takumi)",
"files": [
{
@@ -397,12 +479,17 @@
}
],
"name": "takumi/page-number",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Page Number",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Pdf Image PDF component (takumi)",
"files": [
{
@@ -417,12 +504,18 @@
}
],
"name": "takumi/pdf-image",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Pdf Image",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers", "qrcode"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers",
+ "qrcode"
+ ],
"description": "Qrcode PDF component (takumi)",
"files": [
{
@@ -437,12 +530,17 @@
}
],
"name": "takumi/qrcode",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Qrcode",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Section PDF component (takumi)",
"files": [
{
@@ -457,12 +555,17 @@
}
],
"name": "takumi/section",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Section",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Signature PDF component (takumi)",
"files": [
{
@@ -477,12 +580,17 @@
}
],
"name": "takumi/signature",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Signature",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Stack PDF component (takumi)",
"files": [
{
@@ -497,12 +605,17 @@
}
],
"name": "takumi/stack",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Stack",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Table PDF component (takumi)",
"files": [
{
@@ -527,12 +640,17 @@
}
],
"name": "takumi/table",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Table",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Text PDF component (takumi)",
"files": [
{
@@ -547,12 +665,17 @@
}
],
"name": "takumi/text",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Text",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Watermark PDF component (takumi)",
"files": [
{
@@ -567,12 +690,17 @@
}
],
"name": "takumi/watermark",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Watermark",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Invoice Classic PDF block (takumi)",
"files": [
{
@@ -587,12 +715,17 @@
}
],
"name": "takumi/invoice-classic",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Invoice Classic",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Invoice Consultant PDF block (takumi)",
"files": [
{
@@ -607,12 +740,17 @@
}
],
"name": "takumi/invoice-consultant",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Invoice Consultant",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Invoice Corporate PDF block (takumi)",
"files": [
{
@@ -627,12 +765,17 @@
}
],
"name": "takumi/invoice-corporate",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Invoice Corporate",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Invoice Creative PDF block (takumi)",
"files": [
{
@@ -647,12 +790,17 @@
}
],
"name": "takumi/invoice-creative",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Invoice Creative",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Invoice Minimal PDF block (takumi)",
"files": [
{
@@ -667,12 +815,17 @@
}
],
"name": "takumi/invoice-minimal",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Invoice Minimal",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Invoice Modern PDF block (takumi)",
"files": [
{
@@ -687,12 +840,17 @@
}
],
"name": "takumi/invoice-modern",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Invoice Modern",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Report Financial PDF block (takumi)",
"files": [
{
@@ -712,12 +870,17 @@
}
],
"name": "takumi/report-financial",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Report Financial",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Report Marketing PDF block (takumi)",
"files": [
{
@@ -737,12 +900,17 @@
}
],
"name": "takumi/report-marketing",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Report Marketing",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Report Operations PDF block (takumi)",
"files": [
{
@@ -762,12 +930,17 @@
}
],
"name": "takumi/report-operations",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Report Operations",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Report Security PDF block (takumi)",
"files": [
{
@@ -787,13 +960,14 @@
}
],
"name": "takumi/report-security",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Report Security",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "professional theme tokens for takumi",
+ "description": "professional theme tokens",
"files": [
{
"path": "registry/themes/professional.ts",
@@ -809,20 +983,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-professional",
- "title": "Professional Theme (takumi)",
+ "name": "theme-professional",
+ "title": "Professional Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "modern theme tokens for takumi",
+ "description": "modern theme tokens",
"files": [
{
"path": "registry/themes/modern.ts",
@@ -838,20 +1006,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-modern",
- "title": "Modern Theme (takumi)",
+ "name": "theme-modern",
+ "title": "Modern Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "minimal theme tokens for takumi",
+ "description": "minimal theme tokens",
"files": [
{
"path": "registry/themes/minimal.ts",
@@ -867,20 +1029,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-minimal",
- "title": "Minimal Theme (takumi)",
+ "name": "theme-minimal",
+ "title": "Minimal Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "executive theme tokens for takumi",
+ "description": "executive theme tokens",
"files": [
{
"path": "registry/themes/executive.ts",
@@ -896,20 +1052,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-executive",
- "title": "Executive Theme (takumi)",
+ "name": "theme-executive",
+ "title": "Executive Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "corporate theme tokens for takumi",
+ "description": "corporate theme tokens",
"files": [
{
"path": "registry/themes/corporate.ts",
@@ -925,20 +1075,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-corporate",
- "title": "Corporate Theme (takumi)",
+ "name": "theme-corporate",
+ "title": "Corporate Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "elegant theme tokens for takumi",
+ "description": "elegant theme tokens",
"files": [
{
"path": "registry/themes/elegant.ts",
@@ -954,20 +1098,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-elegant",
- "title": "Elegant Theme (takumi)",
+ "name": "theme-elegant",
+ "title": "Elegant Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "vivid theme tokens for takumi",
+ "description": "vivid theme tokens",
"files": [
{
"path": "registry/themes/vivid.ts",
@@ -983,20 +1121,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-vivid",
- "title": "Vivid Theme (takumi)",
+ "name": "theme-vivid",
+ "title": "Vivid Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "forest theme tokens for takumi",
+ "description": "forest theme tokens",
"files": [
{
"path": "registry/themes/forest.ts",
@@ -1012,20 +1144,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-forest",
- "title": "Forest Theme (takumi)",
+ "name": "theme-forest",
+ "title": "Forest Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "blueprint theme tokens for takumi",
+ "description": "blueprint theme tokens",
"files": [
{
"path": "registry/themes/blueprint.ts",
@@ -1041,19 +1167,17 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-blueprint",
- "title": "Blueprint Theme (takumi)",
+ "name": "theme-blueprint",
+ "title": "Blueprint Theme",
"type": "registry:theme"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Theme context and helpers for the forme base",
"files": [
{
@@ -1092,7 +1216,10 @@
"type": "registry:lib"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Alert PDF component (forme)",
"files": [
{
@@ -1107,12 +1234,17 @@
}
],
"name": "forme/alert",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Alert",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Badge PDF component (forme)",
"files": [
{
@@ -1127,12 +1259,17 @@
}
],
"name": "forme/badge",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Badge",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Card PDF component (forme)",
"files": [
{
@@ -1147,12 +1284,17 @@
}
],
"name": "forme/card",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Card",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Data Table PDF component (forme)",
"files": [
{
@@ -1177,12 +1319,18 @@
}
],
"name": "forme/data-table",
- "registryDependencies": ["forme/utils", "forme/table"],
+ "registryDependencies": [
+ "forme/utils",
+ "forme/table"
+ ],
"title": "Data Table",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Divider PDF component (forme)",
"files": [
{
@@ -1197,12 +1345,17 @@
}
],
"name": "forme/divider",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Divider",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Form PDF component (forme)",
"files": [
{
@@ -1227,12 +1380,17 @@
}
],
"name": "forme/form",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Form",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Graph PDF component (forme)",
"files": [
{
@@ -1262,12 +1420,17 @@
}
],
"name": "forme/graph",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Graph",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Heading PDF component (forme)",
"files": [
{
@@ -1282,12 +1445,17 @@
}
],
"name": "forme/heading",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Heading",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Keep Together PDF component (forme)",
"files": [
{
@@ -1302,12 +1470,17 @@
}
],
"name": "forme/keep-together",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Keep Together",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Key Value PDF component (forme)",
"files": [
{
@@ -1322,12 +1495,17 @@
}
],
"name": "forme/key-value",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Key Value",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Link PDF component (forme)",
"files": [
{
@@ -1342,12 +1520,17 @@
}
],
"name": "forme/link",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Link",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "List PDF component (forme)",
"files": [
{
@@ -1372,12 +1555,17 @@
}
],
"name": "forme/list",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "List",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Page Break PDF component (forme)",
"files": [
{
@@ -1392,12 +1580,17 @@
}
],
"name": "forme/page-break",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Page Break",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Page Footer PDF component (forme)",
"files": [
{
@@ -1412,12 +1605,17 @@
}
],
"name": "forme/page-footer",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Page Footer",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Page Header PDF component (forme)",
"files": [
{
@@ -1432,12 +1630,17 @@
}
],
"name": "forme/page-header",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Page Header",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Page Number PDF component (forme)",
"files": [
{
@@ -1452,12 +1655,17 @@
}
],
"name": "forme/page-number",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Page Number",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Pdf Image PDF component (forme)",
"files": [
{
@@ -1472,12 +1680,18 @@
}
],
"name": "forme/pdf-image",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Pdf Image",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core", "qrcode"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core",
+ "qrcode"
+ ],
"description": "Qrcode PDF component (forme)",
"files": [
{
@@ -1492,12 +1706,17 @@
}
],
"name": "forme/qrcode",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Qrcode",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Section PDF component (forme)",
"files": [
{
@@ -1512,12 +1731,17 @@
}
],
"name": "forme/section",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Section",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Signature PDF component (forme)",
"files": [
{
@@ -1532,12 +1756,17 @@
}
],
"name": "forme/signature",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Signature",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Stack PDF component (forme)",
"files": [
{
@@ -1552,12 +1781,17 @@
}
],
"name": "forme/stack",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Stack",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Table PDF component (forme)",
"files": [
{
@@ -1582,12 +1816,17 @@
}
],
"name": "forme/table",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Table",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Text PDF component (forme)",
"files": [
{
@@ -1602,12 +1841,17 @@
}
],
"name": "forme/text",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Text",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Watermark PDF component (forme)",
"files": [
{
@@ -1622,12 +1866,17 @@
}
],
"name": "forme/watermark",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Watermark",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Invoice Classic PDF block (forme)",
"files": [
{
@@ -1642,12 +1891,17 @@
}
],
"name": "forme/invoice-classic",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Invoice Classic",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Invoice Consultant PDF block (forme)",
"files": [
{
@@ -1662,12 +1916,17 @@
}
],
"name": "forme/invoice-consultant",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Invoice Consultant",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Invoice Corporate PDF block (forme)",
"files": [
{
@@ -1682,12 +1941,17 @@
}
],
"name": "forme/invoice-corporate",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Invoice Corporate",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Invoice Creative PDF block (forme)",
"files": [
{
@@ -1702,12 +1966,17 @@
}
],
"name": "forme/invoice-creative",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Invoice Creative",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Invoice Minimal PDF block (forme)",
"files": [
{
@@ -1722,12 +1991,17 @@
}
],
"name": "forme/invoice-minimal",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Invoice Minimal",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Invoice Modern PDF block (forme)",
"files": [
{
@@ -1742,12 +2016,17 @@
}
],
"name": "forme/invoice-modern",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Invoice Modern",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Report Financial PDF block (forme)",
"files": [
{
@@ -1767,12 +2046,17 @@
}
],
"name": "forme/report-financial",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Report Financial",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Report Marketing PDF block (forme)",
"files": [
{
@@ -1792,12 +2076,17 @@
}
],
"name": "forme/report-marketing",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Report Marketing",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Report Operations PDF block (forme)",
"files": [
{
@@ -1817,12 +2106,17 @@
}
],
"name": "forme/report-operations",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Report Operations",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Report Security PDF block (forme)",
"files": [
{
@@ -1842,271 +2136,12 @@
}
],
"name": "forme/report-security",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Report Security",
"type": "registry:block"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "professional theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/professional.ts",
- "target": "components/pdf/theme-professional.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-professional",
- "title": "Professional Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "modern theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/modern.ts",
- "target": "components/pdf/theme-modern.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-modern",
- "title": "Modern Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "minimal theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/minimal.ts",
- "target": "components/pdf/theme-minimal.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-minimal",
- "title": "Minimal Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "executive theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/executive.ts",
- "target": "components/pdf/theme-executive.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-executive",
- "title": "Executive Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "corporate theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/corporate.ts",
- "target": "components/pdf/theme-corporate.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-corporate",
- "title": "Corporate Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "elegant theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/elegant.ts",
- "target": "components/pdf/theme-elegant.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-elegant",
- "title": "Elegant Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "vivid theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/vivid.ts",
- "target": "components/pdf/theme-vivid.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-vivid",
- "title": "Vivid Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "forest theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/forest.ts",
- "target": "components/pdf/theme-forest.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-forest",
- "title": "Forest Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "blueprint theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/blueprint.ts",
- "target": "components/pdf/theme-blueprint.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-blueprint",
- "title": "Blueprint Theme (forme)",
- "type": "registry:theme"
}
],
"name": "pdfcn"
-}
+}
\ No newline at end of file
diff --git a/public/r/theme-blueprint.json b/public/r/theme-blueprint.json
new file mode 100644
index 0000000..c25dd52
--- /dev/null
+++ b/public/r/theme-blueprint.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "theme-blueprint",
+ "title": "Blueprint Theme",
+ "description": "blueprint theme tokens",
+ "files": [
+ {
+ "path": "registry/themes/blueprint.ts",
+ "content": "import { defaultPrimitives } from \"./primitives\";\nimport type { PdfcnTheme } from \"./theme-types\";\n\n/**\n * Blueprint theme preset.\n *\n * Character: Dark slate palette with cyan accent, JetBrains Mono headings,\n * Source Code Pro body — a technical, precision-first aesthetic.\n * Ideal for API docs, engineering specs, and developer-focused reports.\n */\nexport const blueprintTheme: PdfcnTheme = {\n colors: {\n accent: \"#0891b2\",\n background: \"#ffffff\",\n border: \"#cbd5e1\",\n destructive: \"#e11d48\",\n foreground: \"#0f172a\",\n info: \"#0284c7\",\n muted: \"#f1f5f9\",\n mutedForeground: \"#475569\",\n primary: \"#0f172a\",\n primaryForeground: \"#f0f9ff\",\n success: \"#059669\",\n warning: \"#d97706\",\n },\n name: \"blueprint\",\n page: {\n orientation: \"portrait\",\n size: \"A4\",\n },\n primitives: defaultPrimitives,\n spacing: {\n componentGap: 14,\n page: {\n marginBottom: 52,\n marginLeft: 48,\n marginRight: 48,\n marginTop: 52,\n },\n paragraphGap: 10,\n sectionGap: 26,\n },\n typography: {\n body: {\n fontFamily: \"Source Code Pro\",\n fontSize: 10,\n lineHeight: 1.75,\n },\n heading: {\n fontFamily: \"JetBrains Mono\",\n fontSize: {\n h1: 28,\n h2: 21,\n h3: 17,\n h4: 14,\n h5: 12,\n h6: 10,\n },\n fontWeight: 700,\n lineHeight: 1.2,\n },\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-blueprint.ts"
+ },
+ {
+ "path": "registry/themes/primitives.ts",
+ "content": "import type { PrimitiveTokens } from \"./theme-types\";\n\n/**\n * Default primitive tokens shared by all theme presets.\n *\n * These define the raw design scales — the \"palette\" of values available.\n * Themes select from these scales when assigning semantic tokens.\n *\n * - Typography: Major Third (1.25) ratio, 12pt base\n * - Spacing: 4pt grid system\n * - Font weights: 400–700\n * - Line heights: 1.2–1.6\n * - Border radius: 0–8pt (plus full for pills)\n * - Letter spacing: -0.025 to 0.05 (em-like ratios for PDF points)\n */\nexport const defaultPrimitives: PrimitiveTokens = {\n borderRadius: {\n full: 9999,\n lg: 8,\n md: 4,\n none: 0,\n sm: 2,\n },\n fontWeights: {\n bold: 700,\n medium: 500,\n regular: 400,\n semibold: 600,\n },\n letterSpacing: {\n normal: 0,\n tight: -0.025,\n wide: 0.025,\n wider: 0.05,\n },\n lineHeights: {\n normal: 1.4,\n relaxed: 1.6,\n tight: 1.2,\n },\n spacing: {\n 0: 0,\n 0.5: 2,\n 1: 4,\n 10: 40,\n 12: 48,\n 16: 64,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 20,\n 6: 24,\n 8: 32,\n },\n typography: {\n \"2xl\": 28,\n \"3xl\": 36,\n base: 15,\n lg: 18,\n sm: 12,\n xl: 22,\n xs: 10,\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/primitives.ts"
+ },
+ {
+ "path": "registry/themes/theme-types.ts",
+ "content": "/**\n * pdfcn Theme System — Type Definitions\n *\n * Defines the complete type hierarchy for the pdfcn PDF theme system.\n * All PDF components consume these tokens instead of hardcoding style values.\n *\n * Architecture:\n * - PrimitiveTokens: Raw design scales (typography, spacing, weights, line heights)\n * - ColorTokens: Semantic color mappings (foreground/background pairs)\n * - TypographyTokens: Font family, size, weight, and line height decisions\n * - SpacingTokens: Page margins, section/paragraph/component gaps\n * - PageTokens: Default page size and orientation\n * - PdfcnTheme: The complete theme object combining all token layers\n *\n * @example\n * ```ts\n * import type { PdfcnTheme } from '@/registry/themes';\n *\n * const myTheme: PdfcnTheme = {\n * name: 'custom',\n * primitives: { ... },\n * colors: { foreground: '#1a1a1a', ... },\n * typography: { body: { ... }, heading: { ... } },\n * spacing: { page: { ... }, sectionGap: 24, ... },\n * page: { size: 'A4', orientation: 'portrait' },\n * };\n * ```\n */\n\n// ─── Primitive Tokens ───────────────────────────────────────────────────────\n// Raw design scales. These define WHAT values are available.\n// Themes choose from these when populating semantic tokens.\n\n/** Typography scale using a Major Third (1.25) ratio with 12pt base */\nexport interface TypographyScale {\n /** 10pt — Captions, footnotes */\n xs: number;\n /** 12pt — Body text (PDF standard) */\n sm: number;\n /** 15pt — Large body, small headings */\n base: number;\n /** 18pt — H4 equivalent */\n lg: number;\n /** 22pt — H3 equivalent */\n xl: number;\n /** 28pt — H2 equivalent */\n \"2xl\": number;\n /** 36pt — H1 equivalent */\n \"3xl\": number;\n}\n\n/** Spacing scale based on a 4pt grid system */\nexport interface SpacingScale {\n /** 0pt */\n 0: number;\n /** 2pt */\n 0.5: number;\n /** 4pt */\n 1: number;\n /** 8pt */\n 2: number;\n /** 12pt */\n 3: number;\n /** 16pt */\n 4: number;\n /** 20pt */\n 5: number;\n /** 24pt */\n 6: number;\n /** 32pt */\n 8: number;\n /** 40pt */\n 10: number;\n /** 48pt */\n 12: number;\n /** 64pt */\n 16: number;\n}\n\n/** Font weight scale */\nexport interface FontWeights {\n regular: number;\n medium: number;\n semibold: number;\n bold: number;\n}\n\n/** Line height scale */\nexport interface LineHeights {\n /** 1.2 — Tight, for headings */\n tight: number;\n /** 1.4 — Normal, for body text */\n normal: number;\n /** 1.6 — Relaxed, for reading-heavy content */\n relaxed: number;\n}\n\n/** Border radius scale for rounded corners */\nexport interface BorderRadiusScale {\n /** 0pt — Sharp corners */\n none: number;\n /** 2pt — Subtle rounding */\n sm: number;\n /** 4pt — Standard rounding */\n md: number;\n /** 8pt — Pronounced rounding */\n lg: number;\n /** 9999pt — Pill/circle shape */\n full: number;\n}\n\n/** Letter spacing scale for typography adjustments */\nexport interface LetterSpacingScale {\n /** -0.025em — Tighter spacing */\n tight: number;\n /** 0em — Normal spacing */\n normal: number;\n /** 0.025em — Slightly wider spacing */\n wide: number;\n /** 0.05em — Much wider spacing (for uppercase) */\n wider: number;\n}\n\n/** Raw design scales shared across themes */\nexport interface PrimitiveTokens {\n typography: TypographyScale;\n spacing: SpacingScale;\n fontWeights: FontWeights;\n lineHeights: LineHeights;\n borderRadius: BorderRadiusScale;\n letterSpacing: LetterSpacingScale;\n}\n\n// ─── Semantic Tokens ────────────────────────────────────────────────────────\n// These map primitives to design intent. Themes differ primarily here.\n\n/**\n * Semantic color tokens using the foreground/background pair convention.\n * All values must be hex strings (e.g., '#1a1a1a').\n * react-pdf supports hex, rgb(), and hsl() — but NOT oklch.\n */\nexport interface ColorTokens {\n /** Primary text and content color */\n foreground: string;\n /** Page background color */\n background: string;\n /** Subtle background for secondary areas (e.g., code blocks, table headers) */\n muted: string;\n /** Text on muted backgrounds (captions, footnotes, timestamps) */\n mutedForeground: string;\n /** Brand/accent color for emphasis and highlights */\n primary: string;\n /** Text on primary-colored backgrounds */\n primaryForeground: string;\n /** Table borders, dividers, rules */\n border: string;\n /** Secondary accent for call-to-action elements, badges */\n accent: string;\n /** Error text, warning indicators */\n destructive: string;\n /** Success states (e.g., badges, confirmations) */\n success: string;\n /** Warning states (e.g., badges, alerts) */\n warning: string;\n /** Info states (e.g., badges, informational alerts) */\n info: string;\n}\n\n/** Typography semantic tokens — what fonts and sizes to use where */\nexport interface TypographyTokens {\n /** Body text settings */\n body: {\n /** Font family for body text (e.g., 'Helvetica') */\n fontFamily: string;\n /** Base font size in points */\n fontSize: number;\n /** Line height multiplier */\n lineHeight: number;\n };\n /** Heading text settings */\n heading: {\n /** Font family for headings (e.g., 'Times-Roman', 'Courier') */\n fontFamily: string;\n /** Font weight as numeric value (400-700) */\n fontWeight: number;\n /** Line height multiplier for headings */\n lineHeight: number;\n /** Font sizes for each heading level in points */\n fontSize: {\n h1: number;\n h2: number;\n h3: number;\n h4: number;\n h5: number;\n h6: number;\n };\n };\n}\n\n/** Spacing semantic tokens — consistent spacing across the document */\nexport interface SpacingTokens {\n /** Page margin settings in points */\n page: {\n marginTop: number;\n marginRight: number;\n marginBottom: number;\n marginLeft: number;\n };\n /** Space between major document sections (after h2, before new sections) */\n sectionGap: number;\n /** Space between paragraphs and after text blocks */\n paragraphGap: number;\n /** Space between inline components, list items, table rows */\n componentGap: number;\n}\n\n/** Page layout defaults */\nexport interface PageTokens {\n /** Default page size */\n size: \"A4\" | \"LETTER\" | \"LEGAL\";\n /** Default page orientation */\n orientation: \"portrait\" | \"landscape\";\n}\n\n// ─── Full Theme ─────────────────────────────────────────────────────────────\n\n/**\n * The complete pdfcn theme object.\n *\n * Components import this and use its tokens for all style values.\n * Since React Context doesn't work in @react-pdf/renderer,\n * the theme is a plain TypeScript object imported directly by components.\n *\n * @example\n * ```tsx\n * // In a component:\n * import { theme } from '../lib/pdfcn-theme';\n *\n * function createStyles(t: PdfcnTheme) {\n * return StyleSheet.create({\n * text: {\n * fontFamily: t.typography.body.fontFamily,\n * fontSize: t.typography.body.fontSize,\n * color: t.colors.foreground,\n * },\n * });\n * }\n *\n * const styles = createStyles(theme);\n * ```\n */\nexport interface PdfcnTheme {\n /** Theme name identifier */\n name: string;\n /** Raw design scales */\n primitives: PrimitiveTokens;\n /** Semantic color mappings */\n colors: ColorTokens;\n /** Typography settings for body and headings */\n typography: TypographyTokens;\n /** Spacing settings for page, sections, and components */\n spacing: SpacingTokens;\n /** Page layout defaults */\n page: PageTokens;\n}\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-types.ts"
+ }
+ ],
+ "type": "registry:theme"
+}
\ No newline at end of file
diff --git a/public/r/theme-corporate.json b/public/r/theme-corporate.json
new file mode 100644
index 0000000..c264d51
--- /dev/null
+++ b/public/r/theme-corporate.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "theme-corporate",
+ "title": "Corporate Theme",
+ "description": "corporate theme tokens",
+ "files": [
+ {
+ "path": "registry/themes/corporate.ts",
+ "content": "import { defaultPrimitives } from \"./primitives\";\nimport type { PdfcnTheme } from \"./theme-types\";\n\n/**\n * Corporate theme preset.\n *\n * Character: Blue-gray palette, Lato sans-serif throughout, structured and\n * dependable. Sky-blue accent adds clarity without distraction.\n * Ideal for business proposals, project plans, and client-facing reports.\n */\nexport const corporateTheme: PdfcnTheme = {\n colors: {\n accent: \"#0ea5e9\",\n background: \"#ffffff\",\n border: \"#e2e8f0\",\n destructive: \"#ef4444\",\n foreground: \"#1e293b\",\n info: \"#3b82f6\",\n muted: \"#f8fafc\",\n mutedForeground: \"#64748b\",\n primary: \"#0f4c81\",\n primaryForeground: \"#ffffff\",\n success: \"#22c55e\",\n warning: \"#f59e0b\",\n },\n name: \"corporate\",\n page: {\n orientation: \"portrait\",\n size: \"A4\",\n },\n primitives: defaultPrimitives,\n spacing: {\n componentGap: 13,\n page: {\n marginBottom: 52,\n marginLeft: 44,\n marginRight: 44,\n marginTop: 52,\n },\n paragraphGap: 9,\n sectionGap: 24,\n },\n typography: {\n body: {\n fontFamily: \"Lato\",\n fontSize: 11,\n lineHeight: 1.55,\n },\n heading: {\n fontFamily: \"Lato\",\n fontSize: {\n h1: 30,\n h2: 22,\n h3: 18,\n h4: 15,\n h5: 13,\n h6: 11,\n },\n fontWeight: 700,\n lineHeight: 1.2,\n },\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-corporate.ts"
+ },
+ {
+ "path": "registry/themes/primitives.ts",
+ "content": "import type { PrimitiveTokens } from \"./theme-types\";\n\n/**\n * Default primitive tokens shared by all theme presets.\n *\n * These define the raw design scales — the \"palette\" of values available.\n * Themes select from these scales when assigning semantic tokens.\n *\n * - Typography: Major Third (1.25) ratio, 12pt base\n * - Spacing: 4pt grid system\n * - Font weights: 400–700\n * - Line heights: 1.2–1.6\n * - Border radius: 0–8pt (plus full for pills)\n * - Letter spacing: -0.025 to 0.05 (em-like ratios for PDF points)\n */\nexport const defaultPrimitives: PrimitiveTokens = {\n borderRadius: {\n full: 9999,\n lg: 8,\n md: 4,\n none: 0,\n sm: 2,\n },\n fontWeights: {\n bold: 700,\n medium: 500,\n regular: 400,\n semibold: 600,\n },\n letterSpacing: {\n normal: 0,\n tight: -0.025,\n wide: 0.025,\n wider: 0.05,\n },\n lineHeights: {\n normal: 1.4,\n relaxed: 1.6,\n tight: 1.2,\n },\n spacing: {\n 0: 0,\n 0.5: 2,\n 1: 4,\n 10: 40,\n 12: 48,\n 16: 64,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 20,\n 6: 24,\n 8: 32,\n },\n typography: {\n \"2xl\": 28,\n \"3xl\": 36,\n base: 15,\n lg: 18,\n sm: 12,\n xl: 22,\n xs: 10,\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/primitives.ts"
+ },
+ {
+ "path": "registry/themes/theme-types.ts",
+ "content": "/**\n * pdfcn Theme System — Type Definitions\n *\n * Defines the complete type hierarchy for the pdfcn PDF theme system.\n * All PDF components consume these tokens instead of hardcoding style values.\n *\n * Architecture:\n * - PrimitiveTokens: Raw design scales (typography, spacing, weights, line heights)\n * - ColorTokens: Semantic color mappings (foreground/background pairs)\n * - TypographyTokens: Font family, size, weight, and line height decisions\n * - SpacingTokens: Page margins, section/paragraph/component gaps\n * - PageTokens: Default page size and orientation\n * - PdfcnTheme: The complete theme object combining all token layers\n *\n * @example\n * ```ts\n * import type { PdfcnTheme } from '@/registry/themes';\n *\n * const myTheme: PdfcnTheme = {\n * name: 'custom',\n * primitives: { ... },\n * colors: { foreground: '#1a1a1a', ... },\n * typography: { body: { ... }, heading: { ... } },\n * spacing: { page: { ... }, sectionGap: 24, ... },\n * page: { size: 'A4', orientation: 'portrait' },\n * };\n * ```\n */\n\n// ─── Primitive Tokens ───────────────────────────────────────────────────────\n// Raw design scales. These define WHAT values are available.\n// Themes choose from these when populating semantic tokens.\n\n/** Typography scale using a Major Third (1.25) ratio with 12pt base */\nexport interface TypographyScale {\n /** 10pt — Captions, footnotes */\n xs: number;\n /** 12pt — Body text (PDF standard) */\n sm: number;\n /** 15pt — Large body, small headings */\n base: number;\n /** 18pt — H4 equivalent */\n lg: number;\n /** 22pt — H3 equivalent */\n xl: number;\n /** 28pt — H2 equivalent */\n \"2xl\": number;\n /** 36pt — H1 equivalent */\n \"3xl\": number;\n}\n\n/** Spacing scale based on a 4pt grid system */\nexport interface SpacingScale {\n /** 0pt */\n 0: number;\n /** 2pt */\n 0.5: number;\n /** 4pt */\n 1: number;\n /** 8pt */\n 2: number;\n /** 12pt */\n 3: number;\n /** 16pt */\n 4: number;\n /** 20pt */\n 5: number;\n /** 24pt */\n 6: number;\n /** 32pt */\n 8: number;\n /** 40pt */\n 10: number;\n /** 48pt */\n 12: number;\n /** 64pt */\n 16: number;\n}\n\n/** Font weight scale */\nexport interface FontWeights {\n regular: number;\n medium: number;\n semibold: number;\n bold: number;\n}\n\n/** Line height scale */\nexport interface LineHeights {\n /** 1.2 — Tight, for headings */\n tight: number;\n /** 1.4 — Normal, for body text */\n normal: number;\n /** 1.6 — Relaxed, for reading-heavy content */\n relaxed: number;\n}\n\n/** Border radius scale for rounded corners */\nexport interface BorderRadiusScale {\n /** 0pt — Sharp corners */\n none: number;\n /** 2pt — Subtle rounding */\n sm: number;\n /** 4pt — Standard rounding */\n md: number;\n /** 8pt — Pronounced rounding */\n lg: number;\n /** 9999pt — Pill/circle shape */\n full: number;\n}\n\n/** Letter spacing scale for typography adjustments */\nexport interface LetterSpacingScale {\n /** -0.025em — Tighter spacing */\n tight: number;\n /** 0em — Normal spacing */\n normal: number;\n /** 0.025em — Slightly wider spacing */\n wide: number;\n /** 0.05em — Much wider spacing (for uppercase) */\n wider: number;\n}\n\n/** Raw design scales shared across themes */\nexport interface PrimitiveTokens {\n typography: TypographyScale;\n spacing: SpacingScale;\n fontWeights: FontWeights;\n lineHeights: LineHeights;\n borderRadius: BorderRadiusScale;\n letterSpacing: LetterSpacingScale;\n}\n\n// ─── Semantic Tokens ────────────────────────────────────────────────────────\n// These map primitives to design intent. Themes differ primarily here.\n\n/**\n * Semantic color tokens using the foreground/background pair convention.\n * All values must be hex strings (e.g., '#1a1a1a').\n * react-pdf supports hex, rgb(), and hsl() — but NOT oklch.\n */\nexport interface ColorTokens {\n /** Primary text and content color */\n foreground: string;\n /** Page background color */\n background: string;\n /** Subtle background for secondary areas (e.g., code blocks, table headers) */\n muted: string;\n /** Text on muted backgrounds (captions, footnotes, timestamps) */\n mutedForeground: string;\n /** Brand/accent color for emphasis and highlights */\n primary: string;\n /** Text on primary-colored backgrounds */\n primaryForeground: string;\n /** Table borders, dividers, rules */\n border: string;\n /** Secondary accent for call-to-action elements, badges */\n accent: string;\n /** Error text, warning indicators */\n destructive: string;\n /** Success states (e.g., badges, confirmations) */\n success: string;\n /** Warning states (e.g., badges, alerts) */\n warning: string;\n /** Info states (e.g., badges, informational alerts) */\n info: string;\n}\n\n/** Typography semantic tokens — what fonts and sizes to use where */\nexport interface TypographyTokens {\n /** Body text settings */\n body: {\n /** Font family for body text (e.g., 'Helvetica') */\n fontFamily: string;\n /** Base font size in points */\n fontSize: number;\n /** Line height multiplier */\n lineHeight: number;\n };\n /** Heading text settings */\n heading: {\n /** Font family for headings (e.g., 'Times-Roman', 'Courier') */\n fontFamily: string;\n /** Font weight as numeric value (400-700) */\n fontWeight: number;\n /** Line height multiplier for headings */\n lineHeight: number;\n /** Font sizes for each heading level in points */\n fontSize: {\n h1: number;\n h2: number;\n h3: number;\n h4: number;\n h5: number;\n h6: number;\n };\n };\n}\n\n/** Spacing semantic tokens — consistent spacing across the document */\nexport interface SpacingTokens {\n /** Page margin settings in points */\n page: {\n marginTop: number;\n marginRight: number;\n marginBottom: number;\n marginLeft: number;\n };\n /** Space between major document sections (after h2, before new sections) */\n sectionGap: number;\n /** Space between paragraphs and after text blocks */\n paragraphGap: number;\n /** Space between inline components, list items, table rows */\n componentGap: number;\n}\n\n/** Page layout defaults */\nexport interface PageTokens {\n /** Default page size */\n size: \"A4\" | \"LETTER\" | \"LEGAL\";\n /** Default page orientation */\n orientation: \"portrait\" | \"landscape\";\n}\n\n// ─── Full Theme ─────────────────────────────────────────────────────────────\n\n/**\n * The complete pdfcn theme object.\n *\n * Components import this and use its tokens for all style values.\n * Since React Context doesn't work in @react-pdf/renderer,\n * the theme is a plain TypeScript object imported directly by components.\n *\n * @example\n * ```tsx\n * // In a component:\n * import { theme } from '../lib/pdfcn-theme';\n *\n * function createStyles(t: PdfcnTheme) {\n * return StyleSheet.create({\n * text: {\n * fontFamily: t.typography.body.fontFamily,\n * fontSize: t.typography.body.fontSize,\n * color: t.colors.foreground,\n * },\n * });\n * }\n *\n * const styles = createStyles(theme);\n * ```\n */\nexport interface PdfcnTheme {\n /** Theme name identifier */\n name: string;\n /** Raw design scales */\n primitives: PrimitiveTokens;\n /** Semantic color mappings */\n colors: ColorTokens;\n /** Typography settings for body and headings */\n typography: TypographyTokens;\n /** Spacing settings for page, sections, and components */\n spacing: SpacingTokens;\n /** Page layout defaults */\n page: PageTokens;\n}\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-types.ts"
+ }
+ ],
+ "type": "registry:theme"
+}
\ No newline at end of file
diff --git a/public/r/theme-elegant.json b/public/r/theme-elegant.json
new file mode 100644
index 0000000..4ca8ee2
--- /dev/null
+++ b/public/r/theme-elegant.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "theme-elegant",
+ "title": "Elegant Theme",
+ "description": "elegant theme tokens",
+ "files": [
+ {
+ "path": "registry/themes/elegant.ts",
+ "content": "import { defaultPrimitives } from \"./primitives\";\nimport type { PdfcnTheme } from \"./theme-types\";\n\n/**\n * Elegant theme preset.\n *\n * Character: Warm cream-adjacent whites, amber/gold accent, Playfair Display\n * headings paired with Lora body — a classic editorial combination.\n * Ideal for design portfolios, luxury brands, and high-end editorial PDFs.\n */\nexport const elegantTheme: PdfcnTheme = {\n colors: {\n accent: \"#b45309\",\n background: \"#ffffff\",\n border: \"#d6d3d1\",\n destructive: \"#dc2626\",\n foreground: \"#1c1917\",\n info: \"#0ea5e9\",\n muted: \"#fafaf9\",\n mutedForeground: \"#78716c\",\n primary: \"#78350f\",\n primaryForeground: \"#fffbeb\",\n success: \"#16a34a\",\n warning: \"#d97706\",\n },\n name: \"elegant\",\n page: {\n orientation: \"portrait\",\n size: \"A4\",\n },\n primitives: defaultPrimitives,\n spacing: {\n componentGap: 16,\n page: {\n marginBottom: 60,\n marginLeft: 52,\n marginRight: 52,\n marginTop: 60,\n },\n paragraphGap: 12,\n sectionGap: 30,\n },\n typography: {\n body: {\n fontFamily: \"Lora\",\n fontSize: 11,\n lineHeight: 1.7,\n },\n heading: {\n fontFamily: \"Playfair Display\",\n fontSize: {\n h1: 36,\n h2: 26,\n h3: 20,\n h4: 16,\n h5: 14,\n h6: 12,\n },\n fontWeight: 700,\n lineHeight: 1.2,\n },\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-elegant.ts"
+ },
+ {
+ "path": "registry/themes/primitives.ts",
+ "content": "import type { PrimitiveTokens } from \"./theme-types\";\n\n/**\n * Default primitive tokens shared by all theme presets.\n *\n * These define the raw design scales — the \"palette\" of values available.\n * Themes select from these scales when assigning semantic tokens.\n *\n * - Typography: Major Third (1.25) ratio, 12pt base\n * - Spacing: 4pt grid system\n * - Font weights: 400–700\n * - Line heights: 1.2–1.6\n * - Border radius: 0–8pt (plus full for pills)\n * - Letter spacing: -0.025 to 0.05 (em-like ratios for PDF points)\n */\nexport const defaultPrimitives: PrimitiveTokens = {\n borderRadius: {\n full: 9999,\n lg: 8,\n md: 4,\n none: 0,\n sm: 2,\n },\n fontWeights: {\n bold: 700,\n medium: 500,\n regular: 400,\n semibold: 600,\n },\n letterSpacing: {\n normal: 0,\n tight: -0.025,\n wide: 0.025,\n wider: 0.05,\n },\n lineHeights: {\n normal: 1.4,\n relaxed: 1.6,\n tight: 1.2,\n },\n spacing: {\n 0: 0,\n 0.5: 2,\n 1: 4,\n 10: 40,\n 12: 48,\n 16: 64,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 20,\n 6: 24,\n 8: 32,\n },\n typography: {\n \"2xl\": 28,\n \"3xl\": 36,\n base: 15,\n lg: 18,\n sm: 12,\n xl: 22,\n xs: 10,\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/primitives.ts"
+ },
+ {
+ "path": "registry/themes/theme-types.ts",
+ "content": "/**\n * pdfcn Theme System — Type Definitions\n *\n * Defines the complete type hierarchy for the pdfcn PDF theme system.\n * All PDF components consume these tokens instead of hardcoding style values.\n *\n * Architecture:\n * - PrimitiveTokens: Raw design scales (typography, spacing, weights, line heights)\n * - ColorTokens: Semantic color mappings (foreground/background pairs)\n * - TypographyTokens: Font family, size, weight, and line height decisions\n * - SpacingTokens: Page margins, section/paragraph/component gaps\n * - PageTokens: Default page size and orientation\n * - PdfcnTheme: The complete theme object combining all token layers\n *\n * @example\n * ```ts\n * import type { PdfcnTheme } from '@/registry/themes';\n *\n * const myTheme: PdfcnTheme = {\n * name: 'custom',\n * primitives: { ... },\n * colors: { foreground: '#1a1a1a', ... },\n * typography: { body: { ... }, heading: { ... } },\n * spacing: { page: { ... }, sectionGap: 24, ... },\n * page: { size: 'A4', orientation: 'portrait' },\n * };\n * ```\n */\n\n// ─── Primitive Tokens ───────────────────────────────────────────────────────\n// Raw design scales. These define WHAT values are available.\n// Themes choose from these when populating semantic tokens.\n\n/** Typography scale using a Major Third (1.25) ratio with 12pt base */\nexport interface TypographyScale {\n /** 10pt — Captions, footnotes */\n xs: number;\n /** 12pt — Body text (PDF standard) */\n sm: number;\n /** 15pt — Large body, small headings */\n base: number;\n /** 18pt — H4 equivalent */\n lg: number;\n /** 22pt — H3 equivalent */\n xl: number;\n /** 28pt — H2 equivalent */\n \"2xl\": number;\n /** 36pt — H1 equivalent */\n \"3xl\": number;\n}\n\n/** Spacing scale based on a 4pt grid system */\nexport interface SpacingScale {\n /** 0pt */\n 0: number;\n /** 2pt */\n 0.5: number;\n /** 4pt */\n 1: number;\n /** 8pt */\n 2: number;\n /** 12pt */\n 3: number;\n /** 16pt */\n 4: number;\n /** 20pt */\n 5: number;\n /** 24pt */\n 6: number;\n /** 32pt */\n 8: number;\n /** 40pt */\n 10: number;\n /** 48pt */\n 12: number;\n /** 64pt */\n 16: number;\n}\n\n/** Font weight scale */\nexport interface FontWeights {\n regular: number;\n medium: number;\n semibold: number;\n bold: number;\n}\n\n/** Line height scale */\nexport interface LineHeights {\n /** 1.2 — Tight, for headings */\n tight: number;\n /** 1.4 — Normal, for body text */\n normal: number;\n /** 1.6 — Relaxed, for reading-heavy content */\n relaxed: number;\n}\n\n/** Border radius scale for rounded corners */\nexport interface BorderRadiusScale {\n /** 0pt — Sharp corners */\n none: number;\n /** 2pt — Subtle rounding */\n sm: number;\n /** 4pt — Standard rounding */\n md: number;\n /** 8pt — Pronounced rounding */\n lg: number;\n /** 9999pt — Pill/circle shape */\n full: number;\n}\n\n/** Letter spacing scale for typography adjustments */\nexport interface LetterSpacingScale {\n /** -0.025em — Tighter spacing */\n tight: number;\n /** 0em — Normal spacing */\n normal: number;\n /** 0.025em — Slightly wider spacing */\n wide: number;\n /** 0.05em — Much wider spacing (for uppercase) */\n wider: number;\n}\n\n/** Raw design scales shared across themes */\nexport interface PrimitiveTokens {\n typography: TypographyScale;\n spacing: SpacingScale;\n fontWeights: FontWeights;\n lineHeights: LineHeights;\n borderRadius: BorderRadiusScale;\n letterSpacing: LetterSpacingScale;\n}\n\n// ─── Semantic Tokens ────────────────────────────────────────────────────────\n// These map primitives to design intent. Themes differ primarily here.\n\n/**\n * Semantic color tokens using the foreground/background pair convention.\n * All values must be hex strings (e.g., '#1a1a1a').\n * react-pdf supports hex, rgb(), and hsl() — but NOT oklch.\n */\nexport interface ColorTokens {\n /** Primary text and content color */\n foreground: string;\n /** Page background color */\n background: string;\n /** Subtle background for secondary areas (e.g., code blocks, table headers) */\n muted: string;\n /** Text on muted backgrounds (captions, footnotes, timestamps) */\n mutedForeground: string;\n /** Brand/accent color for emphasis and highlights */\n primary: string;\n /** Text on primary-colored backgrounds */\n primaryForeground: string;\n /** Table borders, dividers, rules */\n border: string;\n /** Secondary accent for call-to-action elements, badges */\n accent: string;\n /** Error text, warning indicators */\n destructive: string;\n /** Success states (e.g., badges, confirmations) */\n success: string;\n /** Warning states (e.g., badges, alerts) */\n warning: string;\n /** Info states (e.g., badges, informational alerts) */\n info: string;\n}\n\n/** Typography semantic tokens — what fonts and sizes to use where */\nexport interface TypographyTokens {\n /** Body text settings */\n body: {\n /** Font family for body text (e.g., 'Helvetica') */\n fontFamily: string;\n /** Base font size in points */\n fontSize: number;\n /** Line height multiplier */\n lineHeight: number;\n };\n /** Heading text settings */\n heading: {\n /** Font family for headings (e.g., 'Times-Roman', 'Courier') */\n fontFamily: string;\n /** Font weight as numeric value (400-700) */\n fontWeight: number;\n /** Line height multiplier for headings */\n lineHeight: number;\n /** Font sizes for each heading level in points */\n fontSize: {\n h1: number;\n h2: number;\n h3: number;\n h4: number;\n h5: number;\n h6: number;\n };\n };\n}\n\n/** Spacing semantic tokens — consistent spacing across the document */\nexport interface SpacingTokens {\n /** Page margin settings in points */\n page: {\n marginTop: number;\n marginRight: number;\n marginBottom: number;\n marginLeft: number;\n };\n /** Space between major document sections (after h2, before new sections) */\n sectionGap: number;\n /** Space between paragraphs and after text blocks */\n paragraphGap: number;\n /** Space between inline components, list items, table rows */\n componentGap: number;\n}\n\n/** Page layout defaults */\nexport interface PageTokens {\n /** Default page size */\n size: \"A4\" | \"LETTER\" | \"LEGAL\";\n /** Default page orientation */\n orientation: \"portrait\" | \"landscape\";\n}\n\n// ─── Full Theme ─────────────────────────────────────────────────────────────\n\n/**\n * The complete pdfcn theme object.\n *\n * Components import this and use its tokens for all style values.\n * Since React Context doesn't work in @react-pdf/renderer,\n * the theme is a plain TypeScript object imported directly by components.\n *\n * @example\n * ```tsx\n * // In a component:\n * import { theme } from '../lib/pdfcn-theme';\n *\n * function createStyles(t: PdfcnTheme) {\n * return StyleSheet.create({\n * text: {\n * fontFamily: t.typography.body.fontFamily,\n * fontSize: t.typography.body.fontSize,\n * color: t.colors.foreground,\n * },\n * });\n * }\n *\n * const styles = createStyles(theme);\n * ```\n */\nexport interface PdfcnTheme {\n /** Theme name identifier */\n name: string;\n /** Raw design scales */\n primitives: PrimitiveTokens;\n /** Semantic color mappings */\n colors: ColorTokens;\n /** Typography settings for body and headings */\n typography: TypographyTokens;\n /** Spacing settings for page, sections, and components */\n spacing: SpacingTokens;\n /** Page layout defaults */\n page: PageTokens;\n}\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-types.ts"
+ }
+ ],
+ "type": "registry:theme"
+}
\ No newline at end of file
diff --git a/public/r/theme-executive.json b/public/r/theme-executive.json
new file mode 100644
index 0000000..6803c02
--- /dev/null
+++ b/public/r/theme-executive.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "theme-executive",
+ "title": "Executive Theme",
+ "description": "executive theme tokens",
+ "files": [
+ {
+ "path": "registry/themes/executive.ts",
+ "content": "import { defaultPrimitives } from \"./primitives\";\nimport type { PdfcnTheme } from \"./theme-types\";\n\n/**\n * Executive theme preset.\n *\n * Character: Deep navy palette, Merriweather serif headings, Open Sans body.\n * Generous margins, high contrast, premium boardroom aesthetic.\n * Ideal for board reports, executive briefs, and investor documents.\n */\nexport const executiveTheme: PdfcnTheme = {\n colors: {\n accent: \"#1e40af\",\n background: \"#ffffff\",\n border: \"#cbd5e1\",\n destructive: \"#dc2626\",\n foreground: \"#0f172a\",\n info: \"#0369a1\",\n muted: \"#f1f5f9\",\n mutedForeground: \"#64748b\",\n primary: \"#1e3a5f\",\n primaryForeground: \"#ffffff\",\n success: \"#15803d\",\n warning: \"#b45309\",\n },\n name: \"executive\",\n page: {\n orientation: \"portrait\",\n size: \"A4\",\n },\n primitives: defaultPrimitives,\n spacing: {\n componentGap: 16,\n page: {\n marginBottom: 64,\n marginLeft: 56,\n marginRight: 56,\n marginTop: 64,\n },\n paragraphGap: 10,\n sectionGap: 32,\n },\n typography: {\n body: {\n fontFamily: \"Open Sans\",\n fontSize: 11,\n lineHeight: 1.65,\n },\n heading: {\n fontFamily: \"Merriweather\",\n fontSize: {\n h1: 34,\n h2: 26,\n h3: 20,\n h4: 16,\n h5: 14,\n h6: 12,\n },\n fontWeight: 700,\n lineHeight: 1.25,\n },\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-executive.ts"
+ },
+ {
+ "path": "registry/themes/primitives.ts",
+ "content": "import type { PrimitiveTokens } from \"./theme-types\";\n\n/**\n * Default primitive tokens shared by all theme presets.\n *\n * These define the raw design scales — the \"palette\" of values available.\n * Themes select from these scales when assigning semantic tokens.\n *\n * - Typography: Major Third (1.25) ratio, 12pt base\n * - Spacing: 4pt grid system\n * - Font weights: 400–700\n * - Line heights: 1.2–1.6\n * - Border radius: 0–8pt (plus full for pills)\n * - Letter spacing: -0.025 to 0.05 (em-like ratios for PDF points)\n */\nexport const defaultPrimitives: PrimitiveTokens = {\n borderRadius: {\n full: 9999,\n lg: 8,\n md: 4,\n none: 0,\n sm: 2,\n },\n fontWeights: {\n bold: 700,\n medium: 500,\n regular: 400,\n semibold: 600,\n },\n letterSpacing: {\n normal: 0,\n tight: -0.025,\n wide: 0.025,\n wider: 0.05,\n },\n lineHeights: {\n normal: 1.4,\n relaxed: 1.6,\n tight: 1.2,\n },\n spacing: {\n 0: 0,\n 0.5: 2,\n 1: 4,\n 10: 40,\n 12: 48,\n 16: 64,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 20,\n 6: 24,\n 8: 32,\n },\n typography: {\n \"2xl\": 28,\n \"3xl\": 36,\n base: 15,\n lg: 18,\n sm: 12,\n xl: 22,\n xs: 10,\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/primitives.ts"
+ },
+ {
+ "path": "registry/themes/theme-types.ts",
+ "content": "/**\n * pdfcn Theme System — Type Definitions\n *\n * Defines the complete type hierarchy for the pdfcn PDF theme system.\n * All PDF components consume these tokens instead of hardcoding style values.\n *\n * Architecture:\n * - PrimitiveTokens: Raw design scales (typography, spacing, weights, line heights)\n * - ColorTokens: Semantic color mappings (foreground/background pairs)\n * - TypographyTokens: Font family, size, weight, and line height decisions\n * - SpacingTokens: Page margins, section/paragraph/component gaps\n * - PageTokens: Default page size and orientation\n * - PdfcnTheme: The complete theme object combining all token layers\n *\n * @example\n * ```ts\n * import type { PdfcnTheme } from '@/registry/themes';\n *\n * const myTheme: PdfcnTheme = {\n * name: 'custom',\n * primitives: { ... },\n * colors: { foreground: '#1a1a1a', ... },\n * typography: { body: { ... }, heading: { ... } },\n * spacing: { page: { ... }, sectionGap: 24, ... },\n * page: { size: 'A4', orientation: 'portrait' },\n * };\n * ```\n */\n\n// ─── Primitive Tokens ───────────────────────────────────────────────────────\n// Raw design scales. These define WHAT values are available.\n// Themes choose from these when populating semantic tokens.\n\n/** Typography scale using a Major Third (1.25) ratio with 12pt base */\nexport interface TypographyScale {\n /** 10pt — Captions, footnotes */\n xs: number;\n /** 12pt — Body text (PDF standard) */\n sm: number;\n /** 15pt — Large body, small headings */\n base: number;\n /** 18pt — H4 equivalent */\n lg: number;\n /** 22pt — H3 equivalent */\n xl: number;\n /** 28pt — H2 equivalent */\n \"2xl\": number;\n /** 36pt — H1 equivalent */\n \"3xl\": number;\n}\n\n/** Spacing scale based on a 4pt grid system */\nexport interface SpacingScale {\n /** 0pt */\n 0: number;\n /** 2pt */\n 0.5: number;\n /** 4pt */\n 1: number;\n /** 8pt */\n 2: number;\n /** 12pt */\n 3: number;\n /** 16pt */\n 4: number;\n /** 20pt */\n 5: number;\n /** 24pt */\n 6: number;\n /** 32pt */\n 8: number;\n /** 40pt */\n 10: number;\n /** 48pt */\n 12: number;\n /** 64pt */\n 16: number;\n}\n\n/** Font weight scale */\nexport interface FontWeights {\n regular: number;\n medium: number;\n semibold: number;\n bold: number;\n}\n\n/** Line height scale */\nexport interface LineHeights {\n /** 1.2 — Tight, for headings */\n tight: number;\n /** 1.4 — Normal, for body text */\n normal: number;\n /** 1.6 — Relaxed, for reading-heavy content */\n relaxed: number;\n}\n\n/** Border radius scale for rounded corners */\nexport interface BorderRadiusScale {\n /** 0pt — Sharp corners */\n none: number;\n /** 2pt — Subtle rounding */\n sm: number;\n /** 4pt — Standard rounding */\n md: number;\n /** 8pt — Pronounced rounding */\n lg: number;\n /** 9999pt — Pill/circle shape */\n full: number;\n}\n\n/** Letter spacing scale for typography adjustments */\nexport interface LetterSpacingScale {\n /** -0.025em — Tighter spacing */\n tight: number;\n /** 0em — Normal spacing */\n normal: number;\n /** 0.025em — Slightly wider spacing */\n wide: number;\n /** 0.05em — Much wider spacing (for uppercase) */\n wider: number;\n}\n\n/** Raw design scales shared across themes */\nexport interface PrimitiveTokens {\n typography: TypographyScale;\n spacing: SpacingScale;\n fontWeights: FontWeights;\n lineHeights: LineHeights;\n borderRadius: BorderRadiusScale;\n letterSpacing: LetterSpacingScale;\n}\n\n// ─── Semantic Tokens ────────────────────────────────────────────────────────\n// These map primitives to design intent. Themes differ primarily here.\n\n/**\n * Semantic color tokens using the foreground/background pair convention.\n * All values must be hex strings (e.g., '#1a1a1a').\n * react-pdf supports hex, rgb(), and hsl() — but NOT oklch.\n */\nexport interface ColorTokens {\n /** Primary text and content color */\n foreground: string;\n /** Page background color */\n background: string;\n /** Subtle background for secondary areas (e.g., code blocks, table headers) */\n muted: string;\n /** Text on muted backgrounds (captions, footnotes, timestamps) */\n mutedForeground: string;\n /** Brand/accent color for emphasis and highlights */\n primary: string;\n /** Text on primary-colored backgrounds */\n primaryForeground: string;\n /** Table borders, dividers, rules */\n border: string;\n /** Secondary accent for call-to-action elements, badges */\n accent: string;\n /** Error text, warning indicators */\n destructive: string;\n /** Success states (e.g., badges, confirmations) */\n success: string;\n /** Warning states (e.g., badges, alerts) */\n warning: string;\n /** Info states (e.g., badges, informational alerts) */\n info: string;\n}\n\n/** Typography semantic tokens — what fonts and sizes to use where */\nexport interface TypographyTokens {\n /** Body text settings */\n body: {\n /** Font family for body text (e.g., 'Helvetica') */\n fontFamily: string;\n /** Base font size in points */\n fontSize: number;\n /** Line height multiplier */\n lineHeight: number;\n };\n /** Heading text settings */\n heading: {\n /** Font family for headings (e.g., 'Times-Roman', 'Courier') */\n fontFamily: string;\n /** Font weight as numeric value (400-700) */\n fontWeight: number;\n /** Line height multiplier for headings */\n lineHeight: number;\n /** Font sizes for each heading level in points */\n fontSize: {\n h1: number;\n h2: number;\n h3: number;\n h4: number;\n h5: number;\n h6: number;\n };\n };\n}\n\n/** Spacing semantic tokens — consistent spacing across the document */\nexport interface SpacingTokens {\n /** Page margin settings in points */\n page: {\n marginTop: number;\n marginRight: number;\n marginBottom: number;\n marginLeft: number;\n };\n /** Space between major document sections (after h2, before new sections) */\n sectionGap: number;\n /** Space between paragraphs and after text blocks */\n paragraphGap: number;\n /** Space between inline components, list items, table rows */\n componentGap: number;\n}\n\n/** Page layout defaults */\nexport interface PageTokens {\n /** Default page size */\n size: \"A4\" | \"LETTER\" | \"LEGAL\";\n /** Default page orientation */\n orientation: \"portrait\" | \"landscape\";\n}\n\n// ─── Full Theme ─────────────────────────────────────────────────────────────\n\n/**\n * The complete pdfcn theme object.\n *\n * Components import this and use its tokens for all style values.\n * Since React Context doesn't work in @react-pdf/renderer,\n * the theme is a plain TypeScript object imported directly by components.\n *\n * @example\n * ```tsx\n * // In a component:\n * import { theme } from '../lib/pdfcn-theme';\n *\n * function createStyles(t: PdfcnTheme) {\n * return StyleSheet.create({\n * text: {\n * fontFamily: t.typography.body.fontFamily,\n * fontSize: t.typography.body.fontSize,\n * color: t.colors.foreground,\n * },\n * });\n * }\n *\n * const styles = createStyles(theme);\n * ```\n */\nexport interface PdfcnTheme {\n /** Theme name identifier */\n name: string;\n /** Raw design scales */\n primitives: PrimitiveTokens;\n /** Semantic color mappings */\n colors: ColorTokens;\n /** Typography settings for body and headings */\n typography: TypographyTokens;\n /** Spacing settings for page, sections, and components */\n spacing: SpacingTokens;\n /** Page layout defaults */\n page: PageTokens;\n}\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-types.ts"
+ }
+ ],
+ "type": "registry:theme"
+}
\ No newline at end of file
diff --git a/public/r/theme-forest.json b/public/r/theme-forest.json
new file mode 100644
index 0000000..69d0e5c
--- /dev/null
+++ b/public/r/theme-forest.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "theme-forest",
+ "title": "Forest Theme",
+ "description": "forest theme tokens",
+ "files": [
+ {
+ "path": "registry/themes/forest.ts",
+ "content": "import { defaultPrimitives } from \"./primitives\";\nimport type { PdfcnTheme } from \"./theme-types\";\n\n/**\n * Forest theme preset.\n *\n * Character: Natural deep greens, Merriweather headings for gravitas, Inter\n * body for readability. Earthy and trustworthy.\n * Ideal for sustainability reports, environmental docs, and wellness brands.\n */\nexport const forestTheme: PdfcnTheme = {\n colors: {\n accent: \"#16a34a\",\n background: \"#ffffff\",\n border: \"#bbf7d0\",\n destructive: \"#dc2626\",\n foreground: \"#14532d\",\n info: \"#0ea5e9\",\n muted: \"#f0fdf4\",\n mutedForeground: \"#4d7c5f\",\n primary: \"#15803d\",\n primaryForeground: \"#ffffff\",\n success: \"#15803d\",\n warning: \"#d97706\",\n },\n name: \"forest\",\n page: {\n orientation: \"portrait\",\n size: \"A4\",\n },\n primitives: defaultPrimitives,\n spacing: {\n componentGap: 14,\n page: {\n marginBottom: 56,\n marginLeft: 48,\n marginRight: 48,\n marginTop: 56,\n },\n paragraphGap: 10,\n sectionGap: 28,\n },\n typography: {\n body: {\n fontFamily: \"Inter\",\n fontSize: 11,\n lineHeight: 1.6,\n },\n heading: {\n fontFamily: \"Merriweather\",\n fontSize: {\n h1: 32,\n h2: 24,\n h3: 19,\n h4: 15,\n h5: 13,\n h6: 11,\n },\n fontWeight: 700,\n lineHeight: 1.25,\n },\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-forest.ts"
+ },
+ {
+ "path": "registry/themes/primitives.ts",
+ "content": "import type { PrimitiveTokens } from \"./theme-types\";\n\n/**\n * Default primitive tokens shared by all theme presets.\n *\n * These define the raw design scales — the \"palette\" of values available.\n * Themes select from these scales when assigning semantic tokens.\n *\n * - Typography: Major Third (1.25) ratio, 12pt base\n * - Spacing: 4pt grid system\n * - Font weights: 400–700\n * - Line heights: 1.2–1.6\n * - Border radius: 0–8pt (plus full for pills)\n * - Letter spacing: -0.025 to 0.05 (em-like ratios for PDF points)\n */\nexport const defaultPrimitives: PrimitiveTokens = {\n borderRadius: {\n full: 9999,\n lg: 8,\n md: 4,\n none: 0,\n sm: 2,\n },\n fontWeights: {\n bold: 700,\n medium: 500,\n regular: 400,\n semibold: 600,\n },\n letterSpacing: {\n normal: 0,\n tight: -0.025,\n wide: 0.025,\n wider: 0.05,\n },\n lineHeights: {\n normal: 1.4,\n relaxed: 1.6,\n tight: 1.2,\n },\n spacing: {\n 0: 0,\n 0.5: 2,\n 1: 4,\n 10: 40,\n 12: 48,\n 16: 64,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 20,\n 6: 24,\n 8: 32,\n },\n typography: {\n \"2xl\": 28,\n \"3xl\": 36,\n base: 15,\n lg: 18,\n sm: 12,\n xl: 22,\n xs: 10,\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/primitives.ts"
+ },
+ {
+ "path": "registry/themes/theme-types.ts",
+ "content": "/**\n * pdfcn Theme System — Type Definitions\n *\n * Defines the complete type hierarchy for the pdfcn PDF theme system.\n * All PDF components consume these tokens instead of hardcoding style values.\n *\n * Architecture:\n * - PrimitiveTokens: Raw design scales (typography, spacing, weights, line heights)\n * - ColorTokens: Semantic color mappings (foreground/background pairs)\n * - TypographyTokens: Font family, size, weight, and line height decisions\n * - SpacingTokens: Page margins, section/paragraph/component gaps\n * - PageTokens: Default page size and orientation\n * - PdfcnTheme: The complete theme object combining all token layers\n *\n * @example\n * ```ts\n * import type { PdfcnTheme } from '@/registry/themes';\n *\n * const myTheme: PdfcnTheme = {\n * name: 'custom',\n * primitives: { ... },\n * colors: { foreground: '#1a1a1a', ... },\n * typography: { body: { ... }, heading: { ... } },\n * spacing: { page: { ... }, sectionGap: 24, ... },\n * page: { size: 'A4', orientation: 'portrait' },\n * };\n * ```\n */\n\n// ─── Primitive Tokens ───────────────────────────────────────────────────────\n// Raw design scales. These define WHAT values are available.\n// Themes choose from these when populating semantic tokens.\n\n/** Typography scale using a Major Third (1.25) ratio with 12pt base */\nexport interface TypographyScale {\n /** 10pt — Captions, footnotes */\n xs: number;\n /** 12pt — Body text (PDF standard) */\n sm: number;\n /** 15pt — Large body, small headings */\n base: number;\n /** 18pt — H4 equivalent */\n lg: number;\n /** 22pt — H3 equivalent */\n xl: number;\n /** 28pt — H2 equivalent */\n \"2xl\": number;\n /** 36pt — H1 equivalent */\n \"3xl\": number;\n}\n\n/** Spacing scale based on a 4pt grid system */\nexport interface SpacingScale {\n /** 0pt */\n 0: number;\n /** 2pt */\n 0.5: number;\n /** 4pt */\n 1: number;\n /** 8pt */\n 2: number;\n /** 12pt */\n 3: number;\n /** 16pt */\n 4: number;\n /** 20pt */\n 5: number;\n /** 24pt */\n 6: number;\n /** 32pt */\n 8: number;\n /** 40pt */\n 10: number;\n /** 48pt */\n 12: number;\n /** 64pt */\n 16: number;\n}\n\n/** Font weight scale */\nexport interface FontWeights {\n regular: number;\n medium: number;\n semibold: number;\n bold: number;\n}\n\n/** Line height scale */\nexport interface LineHeights {\n /** 1.2 — Tight, for headings */\n tight: number;\n /** 1.4 — Normal, for body text */\n normal: number;\n /** 1.6 — Relaxed, for reading-heavy content */\n relaxed: number;\n}\n\n/** Border radius scale for rounded corners */\nexport interface BorderRadiusScale {\n /** 0pt — Sharp corners */\n none: number;\n /** 2pt — Subtle rounding */\n sm: number;\n /** 4pt — Standard rounding */\n md: number;\n /** 8pt — Pronounced rounding */\n lg: number;\n /** 9999pt — Pill/circle shape */\n full: number;\n}\n\n/** Letter spacing scale for typography adjustments */\nexport interface LetterSpacingScale {\n /** -0.025em — Tighter spacing */\n tight: number;\n /** 0em — Normal spacing */\n normal: number;\n /** 0.025em — Slightly wider spacing */\n wide: number;\n /** 0.05em — Much wider spacing (for uppercase) */\n wider: number;\n}\n\n/** Raw design scales shared across themes */\nexport interface PrimitiveTokens {\n typography: TypographyScale;\n spacing: SpacingScale;\n fontWeights: FontWeights;\n lineHeights: LineHeights;\n borderRadius: BorderRadiusScale;\n letterSpacing: LetterSpacingScale;\n}\n\n// ─── Semantic Tokens ────────────────────────────────────────────────────────\n// These map primitives to design intent. Themes differ primarily here.\n\n/**\n * Semantic color tokens using the foreground/background pair convention.\n * All values must be hex strings (e.g., '#1a1a1a').\n * react-pdf supports hex, rgb(), and hsl() — but NOT oklch.\n */\nexport interface ColorTokens {\n /** Primary text and content color */\n foreground: string;\n /** Page background color */\n background: string;\n /** Subtle background for secondary areas (e.g., code blocks, table headers) */\n muted: string;\n /** Text on muted backgrounds (captions, footnotes, timestamps) */\n mutedForeground: string;\n /** Brand/accent color for emphasis and highlights */\n primary: string;\n /** Text on primary-colored backgrounds */\n primaryForeground: string;\n /** Table borders, dividers, rules */\n border: string;\n /** Secondary accent for call-to-action elements, badges */\n accent: string;\n /** Error text, warning indicators */\n destructive: string;\n /** Success states (e.g., badges, confirmations) */\n success: string;\n /** Warning states (e.g., badges, alerts) */\n warning: string;\n /** Info states (e.g., badges, informational alerts) */\n info: string;\n}\n\n/** Typography semantic tokens — what fonts and sizes to use where */\nexport interface TypographyTokens {\n /** Body text settings */\n body: {\n /** Font family for body text (e.g., 'Helvetica') */\n fontFamily: string;\n /** Base font size in points */\n fontSize: number;\n /** Line height multiplier */\n lineHeight: number;\n };\n /** Heading text settings */\n heading: {\n /** Font family for headings (e.g., 'Times-Roman', 'Courier') */\n fontFamily: string;\n /** Font weight as numeric value (400-700) */\n fontWeight: number;\n /** Line height multiplier for headings */\n lineHeight: number;\n /** Font sizes for each heading level in points */\n fontSize: {\n h1: number;\n h2: number;\n h3: number;\n h4: number;\n h5: number;\n h6: number;\n };\n };\n}\n\n/** Spacing semantic tokens — consistent spacing across the document */\nexport interface SpacingTokens {\n /** Page margin settings in points */\n page: {\n marginTop: number;\n marginRight: number;\n marginBottom: number;\n marginLeft: number;\n };\n /** Space between major document sections (after h2, before new sections) */\n sectionGap: number;\n /** Space between paragraphs and after text blocks */\n paragraphGap: number;\n /** Space between inline components, list items, table rows */\n componentGap: number;\n}\n\n/** Page layout defaults */\nexport interface PageTokens {\n /** Default page size */\n size: \"A4\" | \"LETTER\" | \"LEGAL\";\n /** Default page orientation */\n orientation: \"portrait\" | \"landscape\";\n}\n\n// ─── Full Theme ─────────────────────────────────────────────────────────────\n\n/**\n * The complete pdfcn theme object.\n *\n * Components import this and use its tokens for all style values.\n * Since React Context doesn't work in @react-pdf/renderer,\n * the theme is a plain TypeScript object imported directly by components.\n *\n * @example\n * ```tsx\n * // In a component:\n * import { theme } from '../lib/pdfcn-theme';\n *\n * function createStyles(t: PdfcnTheme) {\n * return StyleSheet.create({\n * text: {\n * fontFamily: t.typography.body.fontFamily,\n * fontSize: t.typography.body.fontSize,\n * color: t.colors.foreground,\n * },\n * });\n * }\n *\n * const styles = createStyles(theme);\n * ```\n */\nexport interface PdfcnTheme {\n /** Theme name identifier */\n name: string;\n /** Raw design scales */\n primitives: PrimitiveTokens;\n /** Semantic color mappings */\n colors: ColorTokens;\n /** Typography settings for body and headings */\n typography: TypographyTokens;\n /** Spacing settings for page, sections, and components */\n spacing: SpacingTokens;\n /** Page layout defaults */\n page: PageTokens;\n}\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-types.ts"
+ }
+ ],
+ "type": "registry:theme"
+}
\ No newline at end of file
diff --git a/public/r/theme-minimal.json b/public/r/theme-minimal.json
new file mode 100644
index 0000000..8ece457
--- /dev/null
+++ b/public/r/theme-minimal.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "theme-minimal",
+ "title": "Minimal Theme",
+ "description": "minimal theme tokens",
+ "files": [
+ {
+ "path": "registry/themes/minimal.ts",
+ "content": "import { defaultPrimitives } from \"./primitives\";\nimport type { PdfcnTheme } from \"./theme-types\";\n\n/**\n * Minimal theme preset.\n *\n * Character: Courier headings, zinc neutrals, maximum whitespace.\n * shadcn-inspired restrained palette. Ideal for clean documentation,\n * technical specs, and literary manuscripts.\n */\nexport const minimalTheme: PdfcnTheme = {\n colors: {\n accent: \"#71717a\",\n background: \"#ffffff\",\n border: \"#e4e4e7\",\n destructive: \"#b91c1c\",\n foreground: \"#18181b\",\n info: \"#0369a1\",\n muted: \"#fafafa\",\n mutedForeground: \"#a1a1aa\",\n primary: \"#18181b\",\n primaryForeground: \"#ffffff\",\n success: \"#15803d\",\n warning: \"#a16207\",\n },\n name: \"minimal\",\n page: {\n orientation: \"portrait\",\n size: \"A4\",\n },\n primitives: defaultPrimitives,\n spacing: {\n componentGap: 18,\n page: {\n marginBottom: 72,\n marginLeft: 56,\n marginRight: 56,\n marginTop: 72,\n },\n paragraphGap: 14,\n sectionGap: 36,\n },\n typography: {\n body: {\n fontFamily: \"Helvetica\",\n fontSize: 11,\n lineHeight: 1.65,\n },\n heading: {\n fontFamily: \"Courier\",\n fontSize: {\n h1: 24,\n h2: 20,\n h3: 16,\n h4: 14,\n h5: 12,\n h6: 10,\n },\n fontWeight: 600,\n lineHeight: 1.25,\n },\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-minimal.ts"
+ },
+ {
+ "path": "registry/themes/primitives.ts",
+ "content": "import type { PrimitiveTokens } from \"./theme-types\";\n\n/**\n * Default primitive tokens shared by all theme presets.\n *\n * These define the raw design scales — the \"palette\" of values available.\n * Themes select from these scales when assigning semantic tokens.\n *\n * - Typography: Major Third (1.25) ratio, 12pt base\n * - Spacing: 4pt grid system\n * - Font weights: 400–700\n * - Line heights: 1.2–1.6\n * - Border radius: 0–8pt (plus full for pills)\n * - Letter spacing: -0.025 to 0.05 (em-like ratios for PDF points)\n */\nexport const defaultPrimitives: PrimitiveTokens = {\n borderRadius: {\n full: 9999,\n lg: 8,\n md: 4,\n none: 0,\n sm: 2,\n },\n fontWeights: {\n bold: 700,\n medium: 500,\n regular: 400,\n semibold: 600,\n },\n letterSpacing: {\n normal: 0,\n tight: -0.025,\n wide: 0.025,\n wider: 0.05,\n },\n lineHeights: {\n normal: 1.4,\n relaxed: 1.6,\n tight: 1.2,\n },\n spacing: {\n 0: 0,\n 0.5: 2,\n 1: 4,\n 10: 40,\n 12: 48,\n 16: 64,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 20,\n 6: 24,\n 8: 32,\n },\n typography: {\n \"2xl\": 28,\n \"3xl\": 36,\n base: 15,\n lg: 18,\n sm: 12,\n xl: 22,\n xs: 10,\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/primitives.ts"
+ },
+ {
+ "path": "registry/themes/theme-types.ts",
+ "content": "/**\n * pdfcn Theme System — Type Definitions\n *\n * Defines the complete type hierarchy for the pdfcn PDF theme system.\n * All PDF components consume these tokens instead of hardcoding style values.\n *\n * Architecture:\n * - PrimitiveTokens: Raw design scales (typography, spacing, weights, line heights)\n * - ColorTokens: Semantic color mappings (foreground/background pairs)\n * - TypographyTokens: Font family, size, weight, and line height decisions\n * - SpacingTokens: Page margins, section/paragraph/component gaps\n * - PageTokens: Default page size and orientation\n * - PdfcnTheme: The complete theme object combining all token layers\n *\n * @example\n * ```ts\n * import type { PdfcnTheme } from '@/registry/themes';\n *\n * const myTheme: PdfcnTheme = {\n * name: 'custom',\n * primitives: { ... },\n * colors: { foreground: '#1a1a1a', ... },\n * typography: { body: { ... }, heading: { ... } },\n * spacing: { page: { ... }, sectionGap: 24, ... },\n * page: { size: 'A4', orientation: 'portrait' },\n * };\n * ```\n */\n\n// ─── Primitive Tokens ───────────────────────────────────────────────────────\n// Raw design scales. These define WHAT values are available.\n// Themes choose from these when populating semantic tokens.\n\n/** Typography scale using a Major Third (1.25) ratio with 12pt base */\nexport interface TypographyScale {\n /** 10pt — Captions, footnotes */\n xs: number;\n /** 12pt — Body text (PDF standard) */\n sm: number;\n /** 15pt — Large body, small headings */\n base: number;\n /** 18pt — H4 equivalent */\n lg: number;\n /** 22pt — H3 equivalent */\n xl: number;\n /** 28pt — H2 equivalent */\n \"2xl\": number;\n /** 36pt — H1 equivalent */\n \"3xl\": number;\n}\n\n/** Spacing scale based on a 4pt grid system */\nexport interface SpacingScale {\n /** 0pt */\n 0: number;\n /** 2pt */\n 0.5: number;\n /** 4pt */\n 1: number;\n /** 8pt */\n 2: number;\n /** 12pt */\n 3: number;\n /** 16pt */\n 4: number;\n /** 20pt */\n 5: number;\n /** 24pt */\n 6: number;\n /** 32pt */\n 8: number;\n /** 40pt */\n 10: number;\n /** 48pt */\n 12: number;\n /** 64pt */\n 16: number;\n}\n\n/** Font weight scale */\nexport interface FontWeights {\n regular: number;\n medium: number;\n semibold: number;\n bold: number;\n}\n\n/** Line height scale */\nexport interface LineHeights {\n /** 1.2 — Tight, for headings */\n tight: number;\n /** 1.4 — Normal, for body text */\n normal: number;\n /** 1.6 — Relaxed, for reading-heavy content */\n relaxed: number;\n}\n\n/** Border radius scale for rounded corners */\nexport interface BorderRadiusScale {\n /** 0pt — Sharp corners */\n none: number;\n /** 2pt — Subtle rounding */\n sm: number;\n /** 4pt — Standard rounding */\n md: number;\n /** 8pt — Pronounced rounding */\n lg: number;\n /** 9999pt — Pill/circle shape */\n full: number;\n}\n\n/** Letter spacing scale for typography adjustments */\nexport interface LetterSpacingScale {\n /** -0.025em — Tighter spacing */\n tight: number;\n /** 0em — Normal spacing */\n normal: number;\n /** 0.025em — Slightly wider spacing */\n wide: number;\n /** 0.05em — Much wider spacing (for uppercase) */\n wider: number;\n}\n\n/** Raw design scales shared across themes */\nexport interface PrimitiveTokens {\n typography: TypographyScale;\n spacing: SpacingScale;\n fontWeights: FontWeights;\n lineHeights: LineHeights;\n borderRadius: BorderRadiusScale;\n letterSpacing: LetterSpacingScale;\n}\n\n// ─── Semantic Tokens ────────────────────────────────────────────────────────\n// These map primitives to design intent. Themes differ primarily here.\n\n/**\n * Semantic color tokens using the foreground/background pair convention.\n * All values must be hex strings (e.g., '#1a1a1a').\n * react-pdf supports hex, rgb(), and hsl() — but NOT oklch.\n */\nexport interface ColorTokens {\n /** Primary text and content color */\n foreground: string;\n /** Page background color */\n background: string;\n /** Subtle background for secondary areas (e.g., code blocks, table headers) */\n muted: string;\n /** Text on muted backgrounds (captions, footnotes, timestamps) */\n mutedForeground: string;\n /** Brand/accent color for emphasis and highlights */\n primary: string;\n /** Text on primary-colored backgrounds */\n primaryForeground: string;\n /** Table borders, dividers, rules */\n border: string;\n /** Secondary accent for call-to-action elements, badges */\n accent: string;\n /** Error text, warning indicators */\n destructive: string;\n /** Success states (e.g., badges, confirmations) */\n success: string;\n /** Warning states (e.g., badges, alerts) */\n warning: string;\n /** Info states (e.g., badges, informational alerts) */\n info: string;\n}\n\n/** Typography semantic tokens — what fonts and sizes to use where */\nexport interface TypographyTokens {\n /** Body text settings */\n body: {\n /** Font family for body text (e.g., 'Helvetica') */\n fontFamily: string;\n /** Base font size in points */\n fontSize: number;\n /** Line height multiplier */\n lineHeight: number;\n };\n /** Heading text settings */\n heading: {\n /** Font family for headings (e.g., 'Times-Roman', 'Courier') */\n fontFamily: string;\n /** Font weight as numeric value (400-700) */\n fontWeight: number;\n /** Line height multiplier for headings */\n lineHeight: number;\n /** Font sizes for each heading level in points */\n fontSize: {\n h1: number;\n h2: number;\n h3: number;\n h4: number;\n h5: number;\n h6: number;\n };\n };\n}\n\n/** Spacing semantic tokens — consistent spacing across the document */\nexport interface SpacingTokens {\n /** Page margin settings in points */\n page: {\n marginTop: number;\n marginRight: number;\n marginBottom: number;\n marginLeft: number;\n };\n /** Space between major document sections (after h2, before new sections) */\n sectionGap: number;\n /** Space between paragraphs and after text blocks */\n paragraphGap: number;\n /** Space between inline components, list items, table rows */\n componentGap: number;\n}\n\n/** Page layout defaults */\nexport interface PageTokens {\n /** Default page size */\n size: \"A4\" | \"LETTER\" | \"LEGAL\";\n /** Default page orientation */\n orientation: \"portrait\" | \"landscape\";\n}\n\n// ─── Full Theme ─────────────────────────────────────────────────────────────\n\n/**\n * The complete pdfcn theme object.\n *\n * Components import this and use its tokens for all style values.\n * Since React Context doesn't work in @react-pdf/renderer,\n * the theme is a plain TypeScript object imported directly by components.\n *\n * @example\n * ```tsx\n * // In a component:\n * import { theme } from '../lib/pdfcn-theme';\n *\n * function createStyles(t: PdfcnTheme) {\n * return StyleSheet.create({\n * text: {\n * fontFamily: t.typography.body.fontFamily,\n * fontSize: t.typography.body.fontSize,\n * color: t.colors.foreground,\n * },\n * });\n * }\n *\n * const styles = createStyles(theme);\n * ```\n */\nexport interface PdfcnTheme {\n /** Theme name identifier */\n name: string;\n /** Raw design scales */\n primitives: PrimitiveTokens;\n /** Semantic color mappings */\n colors: ColorTokens;\n /** Typography settings for body and headings */\n typography: TypographyTokens;\n /** Spacing settings for page, sections, and components */\n spacing: SpacingTokens;\n /** Page layout defaults */\n page: PageTokens;\n}\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-types.ts"
+ }
+ ],
+ "type": "registry:theme"
+}
\ No newline at end of file
diff --git a/public/r/theme-modern.json b/public/r/theme-modern.json
new file mode 100644
index 0000000..1212488
--- /dev/null
+++ b/public/r/theme-modern.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "theme-modern",
+ "title": "Modern Theme",
+ "description": "modern theme tokens",
+ "files": [
+ {
+ "path": "registry/themes/modern.ts",
+ "content": "import { defaultPrimitives } from \"./primitives\";\nimport type { PdfcnTheme } from \"./theme-types\";\n\n/**\n * Modern theme preset.\n *\n * Character: All-Helvetica, slate-cool neutrals with subtle violet accent,\n * clean spacing. shadcn-inspired contemporary feel.\n * Ideal for startups, tech companies, and design-forward documents.\n */\nexport const modernTheme: PdfcnTheme = {\n colors: {\n accent: \"#6366f1\",\n background: \"#ffffff\",\n border: \"#e2e8f0\",\n destructive: \"#ef4444\",\n foreground: \"#0f172a\",\n info: \"#3b82f6\",\n muted: \"#f1f5f9\",\n mutedForeground: \"#64748b\",\n primary: \"#334155\",\n primaryForeground: \"#ffffff\",\n success: \"#22c55e\",\n warning: \"#f59e0b\",\n },\n name: \"modern\",\n page: {\n orientation: \"portrait\",\n size: \"A4\",\n },\n primitives: defaultPrimitives,\n spacing: {\n componentGap: 12,\n page: {\n marginBottom: 40,\n marginLeft: 40,\n marginRight: 40,\n marginTop: 40,\n },\n paragraphGap: 10,\n sectionGap: 24,\n },\n typography: {\n body: {\n fontFamily: \"Helvetica\",\n fontSize: 11,\n lineHeight: 1.6,\n },\n heading: {\n fontFamily: \"Helvetica\",\n fontSize: {\n h1: 28,\n h2: 22,\n h3: 18,\n h4: 16,\n h5: 14,\n h6: 12,\n },\n fontWeight: 600,\n lineHeight: 1.25,\n },\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-modern.ts"
+ },
+ {
+ "path": "registry/themes/primitives.ts",
+ "content": "import type { PrimitiveTokens } from \"./theme-types\";\n\n/**\n * Default primitive tokens shared by all theme presets.\n *\n * These define the raw design scales — the \"palette\" of values available.\n * Themes select from these scales when assigning semantic tokens.\n *\n * - Typography: Major Third (1.25) ratio, 12pt base\n * - Spacing: 4pt grid system\n * - Font weights: 400–700\n * - Line heights: 1.2–1.6\n * - Border radius: 0–8pt (plus full for pills)\n * - Letter spacing: -0.025 to 0.05 (em-like ratios for PDF points)\n */\nexport const defaultPrimitives: PrimitiveTokens = {\n borderRadius: {\n full: 9999,\n lg: 8,\n md: 4,\n none: 0,\n sm: 2,\n },\n fontWeights: {\n bold: 700,\n medium: 500,\n regular: 400,\n semibold: 600,\n },\n letterSpacing: {\n normal: 0,\n tight: -0.025,\n wide: 0.025,\n wider: 0.05,\n },\n lineHeights: {\n normal: 1.4,\n relaxed: 1.6,\n tight: 1.2,\n },\n spacing: {\n 0: 0,\n 0.5: 2,\n 1: 4,\n 10: 40,\n 12: 48,\n 16: 64,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 20,\n 6: 24,\n 8: 32,\n },\n typography: {\n \"2xl\": 28,\n \"3xl\": 36,\n base: 15,\n lg: 18,\n sm: 12,\n xl: 22,\n xs: 10,\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/primitives.ts"
+ },
+ {
+ "path": "registry/themes/theme-types.ts",
+ "content": "/**\n * pdfcn Theme System — Type Definitions\n *\n * Defines the complete type hierarchy for the pdfcn PDF theme system.\n * All PDF components consume these tokens instead of hardcoding style values.\n *\n * Architecture:\n * - PrimitiveTokens: Raw design scales (typography, spacing, weights, line heights)\n * - ColorTokens: Semantic color mappings (foreground/background pairs)\n * - TypographyTokens: Font family, size, weight, and line height decisions\n * - SpacingTokens: Page margins, section/paragraph/component gaps\n * - PageTokens: Default page size and orientation\n * - PdfcnTheme: The complete theme object combining all token layers\n *\n * @example\n * ```ts\n * import type { PdfcnTheme } from '@/registry/themes';\n *\n * const myTheme: PdfcnTheme = {\n * name: 'custom',\n * primitives: { ... },\n * colors: { foreground: '#1a1a1a', ... },\n * typography: { body: { ... }, heading: { ... } },\n * spacing: { page: { ... }, sectionGap: 24, ... },\n * page: { size: 'A4', orientation: 'portrait' },\n * };\n * ```\n */\n\n// ─── Primitive Tokens ───────────────────────────────────────────────────────\n// Raw design scales. These define WHAT values are available.\n// Themes choose from these when populating semantic tokens.\n\n/** Typography scale using a Major Third (1.25) ratio with 12pt base */\nexport interface TypographyScale {\n /** 10pt — Captions, footnotes */\n xs: number;\n /** 12pt — Body text (PDF standard) */\n sm: number;\n /** 15pt — Large body, small headings */\n base: number;\n /** 18pt — H4 equivalent */\n lg: number;\n /** 22pt — H3 equivalent */\n xl: number;\n /** 28pt — H2 equivalent */\n \"2xl\": number;\n /** 36pt — H1 equivalent */\n \"3xl\": number;\n}\n\n/** Spacing scale based on a 4pt grid system */\nexport interface SpacingScale {\n /** 0pt */\n 0: number;\n /** 2pt */\n 0.5: number;\n /** 4pt */\n 1: number;\n /** 8pt */\n 2: number;\n /** 12pt */\n 3: number;\n /** 16pt */\n 4: number;\n /** 20pt */\n 5: number;\n /** 24pt */\n 6: number;\n /** 32pt */\n 8: number;\n /** 40pt */\n 10: number;\n /** 48pt */\n 12: number;\n /** 64pt */\n 16: number;\n}\n\n/** Font weight scale */\nexport interface FontWeights {\n regular: number;\n medium: number;\n semibold: number;\n bold: number;\n}\n\n/** Line height scale */\nexport interface LineHeights {\n /** 1.2 — Tight, for headings */\n tight: number;\n /** 1.4 — Normal, for body text */\n normal: number;\n /** 1.6 — Relaxed, for reading-heavy content */\n relaxed: number;\n}\n\n/** Border radius scale for rounded corners */\nexport interface BorderRadiusScale {\n /** 0pt — Sharp corners */\n none: number;\n /** 2pt — Subtle rounding */\n sm: number;\n /** 4pt — Standard rounding */\n md: number;\n /** 8pt — Pronounced rounding */\n lg: number;\n /** 9999pt — Pill/circle shape */\n full: number;\n}\n\n/** Letter spacing scale for typography adjustments */\nexport interface LetterSpacingScale {\n /** -0.025em — Tighter spacing */\n tight: number;\n /** 0em — Normal spacing */\n normal: number;\n /** 0.025em — Slightly wider spacing */\n wide: number;\n /** 0.05em — Much wider spacing (for uppercase) */\n wider: number;\n}\n\n/** Raw design scales shared across themes */\nexport interface PrimitiveTokens {\n typography: TypographyScale;\n spacing: SpacingScale;\n fontWeights: FontWeights;\n lineHeights: LineHeights;\n borderRadius: BorderRadiusScale;\n letterSpacing: LetterSpacingScale;\n}\n\n// ─── Semantic Tokens ────────────────────────────────────────────────────────\n// These map primitives to design intent. Themes differ primarily here.\n\n/**\n * Semantic color tokens using the foreground/background pair convention.\n * All values must be hex strings (e.g., '#1a1a1a').\n * react-pdf supports hex, rgb(), and hsl() — but NOT oklch.\n */\nexport interface ColorTokens {\n /** Primary text and content color */\n foreground: string;\n /** Page background color */\n background: string;\n /** Subtle background for secondary areas (e.g., code blocks, table headers) */\n muted: string;\n /** Text on muted backgrounds (captions, footnotes, timestamps) */\n mutedForeground: string;\n /** Brand/accent color for emphasis and highlights */\n primary: string;\n /** Text on primary-colored backgrounds */\n primaryForeground: string;\n /** Table borders, dividers, rules */\n border: string;\n /** Secondary accent for call-to-action elements, badges */\n accent: string;\n /** Error text, warning indicators */\n destructive: string;\n /** Success states (e.g., badges, confirmations) */\n success: string;\n /** Warning states (e.g., badges, alerts) */\n warning: string;\n /** Info states (e.g., badges, informational alerts) */\n info: string;\n}\n\n/** Typography semantic tokens — what fonts and sizes to use where */\nexport interface TypographyTokens {\n /** Body text settings */\n body: {\n /** Font family for body text (e.g., 'Helvetica') */\n fontFamily: string;\n /** Base font size in points */\n fontSize: number;\n /** Line height multiplier */\n lineHeight: number;\n };\n /** Heading text settings */\n heading: {\n /** Font family for headings (e.g., 'Times-Roman', 'Courier') */\n fontFamily: string;\n /** Font weight as numeric value (400-700) */\n fontWeight: number;\n /** Line height multiplier for headings */\n lineHeight: number;\n /** Font sizes for each heading level in points */\n fontSize: {\n h1: number;\n h2: number;\n h3: number;\n h4: number;\n h5: number;\n h6: number;\n };\n };\n}\n\n/** Spacing semantic tokens — consistent spacing across the document */\nexport interface SpacingTokens {\n /** Page margin settings in points */\n page: {\n marginTop: number;\n marginRight: number;\n marginBottom: number;\n marginLeft: number;\n };\n /** Space between major document sections (after h2, before new sections) */\n sectionGap: number;\n /** Space between paragraphs and after text blocks */\n paragraphGap: number;\n /** Space between inline components, list items, table rows */\n componentGap: number;\n}\n\n/** Page layout defaults */\nexport interface PageTokens {\n /** Default page size */\n size: \"A4\" | \"LETTER\" | \"LEGAL\";\n /** Default page orientation */\n orientation: \"portrait\" | \"landscape\";\n}\n\n// ─── Full Theme ─────────────────────────────────────────────────────────────\n\n/**\n * The complete pdfcn theme object.\n *\n * Components import this and use its tokens for all style values.\n * Since React Context doesn't work in @react-pdf/renderer,\n * the theme is a plain TypeScript object imported directly by components.\n *\n * @example\n * ```tsx\n * // In a component:\n * import { theme } from '../lib/pdfcn-theme';\n *\n * function createStyles(t: PdfcnTheme) {\n * return StyleSheet.create({\n * text: {\n * fontFamily: t.typography.body.fontFamily,\n * fontSize: t.typography.body.fontSize,\n * color: t.colors.foreground,\n * },\n * });\n * }\n *\n * const styles = createStyles(theme);\n * ```\n */\nexport interface PdfcnTheme {\n /** Theme name identifier */\n name: string;\n /** Raw design scales */\n primitives: PrimitiveTokens;\n /** Semantic color mappings */\n colors: ColorTokens;\n /** Typography settings for body and headings */\n typography: TypographyTokens;\n /** Spacing settings for page, sections, and components */\n spacing: SpacingTokens;\n /** Page layout defaults */\n page: PageTokens;\n}\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-types.ts"
+ }
+ ],
+ "type": "registry:theme"
+}
\ No newline at end of file
diff --git a/public/r/theme-professional.json b/public/r/theme-professional.json
new file mode 100644
index 0000000..fc7d659
--- /dev/null
+++ b/public/r/theme-professional.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "theme-professional",
+ "title": "Professional Theme",
+ "description": "professional theme tokens",
+ "files": [
+ {
+ "path": "registry/themes/professional.ts",
+ "content": "import { defaultPrimitives } from \"./primitives\";\nimport type { PdfcnTheme } from \"./theme-types\";\n\n/**\n * Professional theme preset.\n *\n * Character: Serif headings (Times-Roman), refined zinc/slate palette,\n * generous margins, formal document feel. shadcn-inspired minimal aesthetic.\n * Ideal for business documents, reports, and official correspondence.\n */\nexport const professionalTheme: PdfcnTheme = {\n colors: {\n accent: \"#3b82f6\",\n background: \"#ffffff\",\n border: \"#e4e4e7\",\n destructive: \"#dc2626\",\n foreground: \"#18181b\",\n info: \"#0ea5e9\",\n muted: \"#f4f4f5\",\n mutedForeground: \"#71717a\",\n primary: \"#18181b\",\n primaryForeground: \"#ffffff\",\n success: \"#16a34a\",\n warning: \"#d97706\",\n },\n name: \"professional\",\n page: {\n orientation: \"portrait\",\n size: \"A4\",\n },\n primitives: defaultPrimitives,\n spacing: {\n componentGap: 14,\n page: {\n marginBottom: 56,\n marginLeft: 48,\n marginRight: 48,\n marginTop: 56,\n },\n paragraphGap: 10,\n sectionGap: 28,\n },\n typography: {\n body: {\n fontFamily: \"Helvetica\",\n fontSize: 11,\n lineHeight: 1.6,\n },\n heading: {\n fontFamily: \"Times-Roman\",\n fontSize: {\n h1: 32,\n h2: 24,\n h3: 20,\n h4: 16,\n h5: 14,\n h6: 12,\n },\n fontWeight: 700,\n lineHeight: 1.25,\n },\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-professional.ts"
+ },
+ {
+ "path": "registry/themes/primitives.ts",
+ "content": "import type { PrimitiveTokens } from \"./theme-types\";\n\n/**\n * Default primitive tokens shared by all theme presets.\n *\n * These define the raw design scales — the \"palette\" of values available.\n * Themes select from these scales when assigning semantic tokens.\n *\n * - Typography: Major Third (1.25) ratio, 12pt base\n * - Spacing: 4pt grid system\n * - Font weights: 400–700\n * - Line heights: 1.2–1.6\n * - Border radius: 0–8pt (plus full for pills)\n * - Letter spacing: -0.025 to 0.05 (em-like ratios for PDF points)\n */\nexport const defaultPrimitives: PrimitiveTokens = {\n borderRadius: {\n full: 9999,\n lg: 8,\n md: 4,\n none: 0,\n sm: 2,\n },\n fontWeights: {\n bold: 700,\n medium: 500,\n regular: 400,\n semibold: 600,\n },\n letterSpacing: {\n normal: 0,\n tight: -0.025,\n wide: 0.025,\n wider: 0.05,\n },\n lineHeights: {\n normal: 1.4,\n relaxed: 1.6,\n tight: 1.2,\n },\n spacing: {\n 0: 0,\n 0.5: 2,\n 1: 4,\n 10: 40,\n 12: 48,\n 16: 64,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 20,\n 6: 24,\n 8: 32,\n },\n typography: {\n \"2xl\": 28,\n \"3xl\": 36,\n base: 15,\n lg: 18,\n sm: 12,\n xl: 22,\n xs: 10,\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/primitives.ts"
+ },
+ {
+ "path": "registry/themes/theme-types.ts",
+ "content": "/**\n * pdfcn Theme System — Type Definitions\n *\n * Defines the complete type hierarchy for the pdfcn PDF theme system.\n * All PDF components consume these tokens instead of hardcoding style values.\n *\n * Architecture:\n * - PrimitiveTokens: Raw design scales (typography, spacing, weights, line heights)\n * - ColorTokens: Semantic color mappings (foreground/background pairs)\n * - TypographyTokens: Font family, size, weight, and line height decisions\n * - SpacingTokens: Page margins, section/paragraph/component gaps\n * - PageTokens: Default page size and orientation\n * - PdfcnTheme: The complete theme object combining all token layers\n *\n * @example\n * ```ts\n * import type { PdfcnTheme } from '@/registry/themes';\n *\n * const myTheme: PdfcnTheme = {\n * name: 'custom',\n * primitives: { ... },\n * colors: { foreground: '#1a1a1a', ... },\n * typography: { body: { ... }, heading: { ... } },\n * spacing: { page: { ... }, sectionGap: 24, ... },\n * page: { size: 'A4', orientation: 'portrait' },\n * };\n * ```\n */\n\n// ─── Primitive Tokens ───────────────────────────────────────────────────────\n// Raw design scales. These define WHAT values are available.\n// Themes choose from these when populating semantic tokens.\n\n/** Typography scale using a Major Third (1.25) ratio with 12pt base */\nexport interface TypographyScale {\n /** 10pt — Captions, footnotes */\n xs: number;\n /** 12pt — Body text (PDF standard) */\n sm: number;\n /** 15pt — Large body, small headings */\n base: number;\n /** 18pt — H4 equivalent */\n lg: number;\n /** 22pt — H3 equivalent */\n xl: number;\n /** 28pt — H2 equivalent */\n \"2xl\": number;\n /** 36pt — H1 equivalent */\n \"3xl\": number;\n}\n\n/** Spacing scale based on a 4pt grid system */\nexport interface SpacingScale {\n /** 0pt */\n 0: number;\n /** 2pt */\n 0.5: number;\n /** 4pt */\n 1: number;\n /** 8pt */\n 2: number;\n /** 12pt */\n 3: number;\n /** 16pt */\n 4: number;\n /** 20pt */\n 5: number;\n /** 24pt */\n 6: number;\n /** 32pt */\n 8: number;\n /** 40pt */\n 10: number;\n /** 48pt */\n 12: number;\n /** 64pt */\n 16: number;\n}\n\n/** Font weight scale */\nexport interface FontWeights {\n regular: number;\n medium: number;\n semibold: number;\n bold: number;\n}\n\n/** Line height scale */\nexport interface LineHeights {\n /** 1.2 — Tight, for headings */\n tight: number;\n /** 1.4 — Normal, for body text */\n normal: number;\n /** 1.6 — Relaxed, for reading-heavy content */\n relaxed: number;\n}\n\n/** Border radius scale for rounded corners */\nexport interface BorderRadiusScale {\n /** 0pt — Sharp corners */\n none: number;\n /** 2pt — Subtle rounding */\n sm: number;\n /** 4pt — Standard rounding */\n md: number;\n /** 8pt — Pronounced rounding */\n lg: number;\n /** 9999pt — Pill/circle shape */\n full: number;\n}\n\n/** Letter spacing scale for typography adjustments */\nexport interface LetterSpacingScale {\n /** -0.025em — Tighter spacing */\n tight: number;\n /** 0em — Normal spacing */\n normal: number;\n /** 0.025em — Slightly wider spacing */\n wide: number;\n /** 0.05em — Much wider spacing (for uppercase) */\n wider: number;\n}\n\n/** Raw design scales shared across themes */\nexport interface PrimitiveTokens {\n typography: TypographyScale;\n spacing: SpacingScale;\n fontWeights: FontWeights;\n lineHeights: LineHeights;\n borderRadius: BorderRadiusScale;\n letterSpacing: LetterSpacingScale;\n}\n\n// ─── Semantic Tokens ────────────────────────────────────────────────────────\n// These map primitives to design intent. Themes differ primarily here.\n\n/**\n * Semantic color tokens using the foreground/background pair convention.\n * All values must be hex strings (e.g., '#1a1a1a').\n * react-pdf supports hex, rgb(), and hsl() — but NOT oklch.\n */\nexport interface ColorTokens {\n /** Primary text and content color */\n foreground: string;\n /** Page background color */\n background: string;\n /** Subtle background for secondary areas (e.g., code blocks, table headers) */\n muted: string;\n /** Text on muted backgrounds (captions, footnotes, timestamps) */\n mutedForeground: string;\n /** Brand/accent color for emphasis and highlights */\n primary: string;\n /** Text on primary-colored backgrounds */\n primaryForeground: string;\n /** Table borders, dividers, rules */\n border: string;\n /** Secondary accent for call-to-action elements, badges */\n accent: string;\n /** Error text, warning indicators */\n destructive: string;\n /** Success states (e.g., badges, confirmations) */\n success: string;\n /** Warning states (e.g., badges, alerts) */\n warning: string;\n /** Info states (e.g., badges, informational alerts) */\n info: string;\n}\n\n/** Typography semantic tokens — what fonts and sizes to use where */\nexport interface TypographyTokens {\n /** Body text settings */\n body: {\n /** Font family for body text (e.g., 'Helvetica') */\n fontFamily: string;\n /** Base font size in points */\n fontSize: number;\n /** Line height multiplier */\n lineHeight: number;\n };\n /** Heading text settings */\n heading: {\n /** Font family for headings (e.g., 'Times-Roman', 'Courier') */\n fontFamily: string;\n /** Font weight as numeric value (400-700) */\n fontWeight: number;\n /** Line height multiplier for headings */\n lineHeight: number;\n /** Font sizes for each heading level in points */\n fontSize: {\n h1: number;\n h2: number;\n h3: number;\n h4: number;\n h5: number;\n h6: number;\n };\n };\n}\n\n/** Spacing semantic tokens — consistent spacing across the document */\nexport interface SpacingTokens {\n /** Page margin settings in points */\n page: {\n marginTop: number;\n marginRight: number;\n marginBottom: number;\n marginLeft: number;\n };\n /** Space between major document sections (after h2, before new sections) */\n sectionGap: number;\n /** Space between paragraphs and after text blocks */\n paragraphGap: number;\n /** Space between inline components, list items, table rows */\n componentGap: number;\n}\n\n/** Page layout defaults */\nexport interface PageTokens {\n /** Default page size */\n size: \"A4\" | \"LETTER\" | \"LEGAL\";\n /** Default page orientation */\n orientation: \"portrait\" | \"landscape\";\n}\n\n// ─── Full Theme ─────────────────────────────────────────────────────────────\n\n/**\n * The complete pdfcn theme object.\n *\n * Components import this and use its tokens for all style values.\n * Since React Context doesn't work in @react-pdf/renderer,\n * the theme is a plain TypeScript object imported directly by components.\n *\n * @example\n * ```tsx\n * // In a component:\n * import { theme } from '../lib/pdfcn-theme';\n *\n * function createStyles(t: PdfcnTheme) {\n * return StyleSheet.create({\n * text: {\n * fontFamily: t.typography.body.fontFamily,\n * fontSize: t.typography.body.fontSize,\n * color: t.colors.foreground,\n * },\n * });\n * }\n *\n * const styles = createStyles(theme);\n * ```\n */\nexport interface PdfcnTheme {\n /** Theme name identifier */\n name: string;\n /** Raw design scales */\n primitives: PrimitiveTokens;\n /** Semantic color mappings */\n colors: ColorTokens;\n /** Typography settings for body and headings */\n typography: TypographyTokens;\n /** Spacing settings for page, sections, and components */\n spacing: SpacingTokens;\n /** Page layout defaults */\n page: PageTokens;\n}\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-types.ts"
+ }
+ ],
+ "type": "registry:theme"
+}
\ No newline at end of file
diff --git a/public/r/theme-vivid.json b/public/r/theme-vivid.json
new file mode 100644
index 0000000..a961ceb
--- /dev/null
+++ b/public/r/theme-vivid.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "theme-vivid",
+ "title": "Vivid Theme",
+ "description": "vivid theme tokens",
+ "files": [
+ {
+ "path": "registry/themes/vivid.ts",
+ "content": "import { defaultPrimitives } from \"./primitives\";\nimport type { PdfcnTheme } from \"./theme-types\";\n\n/**\n * Vivid theme preset.\n *\n * Character: Deep violet/purple palette, Nunito rounded sans-serif, playful\n * but still professional. High-energy creative accent.\n * Ideal for creative agencies, startups, marketing decks, and pitch docs.\n */\nexport const vividTheme: PdfcnTheme = {\n colors: {\n accent: \"#8b5cf6\",\n background: \"#ffffff\",\n border: \"#ddd6fe\",\n destructive: \"#dc2626\",\n foreground: \"#1e1b4b\",\n info: \"#0ea5e9\",\n muted: \"#f5f3ff\",\n mutedForeground: \"#7c3aed\",\n primary: \"#6d28d9\",\n primaryForeground: \"#ffffff\",\n success: \"#16a34a\",\n warning: \"#d97706\",\n },\n name: \"vivid\",\n page: {\n orientation: \"portrait\",\n size: \"A4\",\n },\n primitives: defaultPrimitives,\n spacing: {\n componentGap: 14,\n page: {\n marginBottom: 48,\n marginLeft: 44,\n marginRight: 44,\n marginTop: 48,\n },\n paragraphGap: 10,\n sectionGap: 26,\n },\n typography: {\n body: {\n fontFamily: \"Nunito\",\n fontSize: 11,\n lineHeight: 1.6,\n },\n heading: {\n fontFamily: \"Nunito\",\n fontSize: {\n h1: 32,\n h2: 24,\n h3: 19,\n h4: 16,\n h5: 14,\n h6: 12,\n },\n fontWeight: 700,\n lineHeight: 1.2,\n },\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-vivid.ts"
+ },
+ {
+ "path": "registry/themes/primitives.ts",
+ "content": "import type { PrimitiveTokens } from \"./theme-types\";\n\n/**\n * Default primitive tokens shared by all theme presets.\n *\n * These define the raw design scales — the \"palette\" of values available.\n * Themes select from these scales when assigning semantic tokens.\n *\n * - Typography: Major Third (1.25) ratio, 12pt base\n * - Spacing: 4pt grid system\n * - Font weights: 400–700\n * - Line heights: 1.2–1.6\n * - Border radius: 0–8pt (plus full for pills)\n * - Letter spacing: -0.025 to 0.05 (em-like ratios for PDF points)\n */\nexport const defaultPrimitives: PrimitiveTokens = {\n borderRadius: {\n full: 9999,\n lg: 8,\n md: 4,\n none: 0,\n sm: 2,\n },\n fontWeights: {\n bold: 700,\n medium: 500,\n regular: 400,\n semibold: 600,\n },\n letterSpacing: {\n normal: 0,\n tight: -0.025,\n wide: 0.025,\n wider: 0.05,\n },\n lineHeights: {\n normal: 1.4,\n relaxed: 1.6,\n tight: 1.2,\n },\n spacing: {\n 0: 0,\n 0.5: 2,\n 1: 4,\n 10: 40,\n 12: 48,\n 16: 64,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 20,\n 6: 24,\n 8: 32,\n },\n typography: {\n \"2xl\": 28,\n \"3xl\": 36,\n base: 15,\n lg: 18,\n sm: 12,\n xl: 22,\n xs: 10,\n },\n};\n",
+ "type": "registry:theme",
+ "target": "components/pdf/primitives.ts"
+ },
+ {
+ "path": "registry/themes/theme-types.ts",
+ "content": "/**\n * pdfcn Theme System — Type Definitions\n *\n * Defines the complete type hierarchy for the pdfcn PDF theme system.\n * All PDF components consume these tokens instead of hardcoding style values.\n *\n * Architecture:\n * - PrimitiveTokens: Raw design scales (typography, spacing, weights, line heights)\n * - ColorTokens: Semantic color mappings (foreground/background pairs)\n * - TypographyTokens: Font family, size, weight, and line height decisions\n * - SpacingTokens: Page margins, section/paragraph/component gaps\n * - PageTokens: Default page size and orientation\n * - PdfcnTheme: The complete theme object combining all token layers\n *\n * @example\n * ```ts\n * import type { PdfcnTheme } from '@/registry/themes';\n *\n * const myTheme: PdfcnTheme = {\n * name: 'custom',\n * primitives: { ... },\n * colors: { foreground: '#1a1a1a', ... },\n * typography: { body: { ... }, heading: { ... } },\n * spacing: { page: { ... }, sectionGap: 24, ... },\n * page: { size: 'A4', orientation: 'portrait' },\n * };\n * ```\n */\n\n// ─── Primitive Tokens ───────────────────────────────────────────────────────\n// Raw design scales. These define WHAT values are available.\n// Themes choose from these when populating semantic tokens.\n\n/** Typography scale using a Major Third (1.25) ratio with 12pt base */\nexport interface TypographyScale {\n /** 10pt — Captions, footnotes */\n xs: number;\n /** 12pt — Body text (PDF standard) */\n sm: number;\n /** 15pt — Large body, small headings */\n base: number;\n /** 18pt — H4 equivalent */\n lg: number;\n /** 22pt — H3 equivalent */\n xl: number;\n /** 28pt — H2 equivalent */\n \"2xl\": number;\n /** 36pt — H1 equivalent */\n \"3xl\": number;\n}\n\n/** Spacing scale based on a 4pt grid system */\nexport interface SpacingScale {\n /** 0pt */\n 0: number;\n /** 2pt */\n 0.5: number;\n /** 4pt */\n 1: number;\n /** 8pt */\n 2: number;\n /** 12pt */\n 3: number;\n /** 16pt */\n 4: number;\n /** 20pt */\n 5: number;\n /** 24pt */\n 6: number;\n /** 32pt */\n 8: number;\n /** 40pt */\n 10: number;\n /** 48pt */\n 12: number;\n /** 64pt */\n 16: number;\n}\n\n/** Font weight scale */\nexport interface FontWeights {\n regular: number;\n medium: number;\n semibold: number;\n bold: number;\n}\n\n/** Line height scale */\nexport interface LineHeights {\n /** 1.2 — Tight, for headings */\n tight: number;\n /** 1.4 — Normal, for body text */\n normal: number;\n /** 1.6 — Relaxed, for reading-heavy content */\n relaxed: number;\n}\n\n/** Border radius scale for rounded corners */\nexport interface BorderRadiusScale {\n /** 0pt — Sharp corners */\n none: number;\n /** 2pt — Subtle rounding */\n sm: number;\n /** 4pt — Standard rounding */\n md: number;\n /** 8pt — Pronounced rounding */\n lg: number;\n /** 9999pt — Pill/circle shape */\n full: number;\n}\n\n/** Letter spacing scale for typography adjustments */\nexport interface LetterSpacingScale {\n /** -0.025em — Tighter spacing */\n tight: number;\n /** 0em — Normal spacing */\n normal: number;\n /** 0.025em — Slightly wider spacing */\n wide: number;\n /** 0.05em — Much wider spacing (for uppercase) */\n wider: number;\n}\n\n/** Raw design scales shared across themes */\nexport interface PrimitiveTokens {\n typography: TypographyScale;\n spacing: SpacingScale;\n fontWeights: FontWeights;\n lineHeights: LineHeights;\n borderRadius: BorderRadiusScale;\n letterSpacing: LetterSpacingScale;\n}\n\n// ─── Semantic Tokens ────────────────────────────────────────────────────────\n// These map primitives to design intent. Themes differ primarily here.\n\n/**\n * Semantic color tokens using the foreground/background pair convention.\n * All values must be hex strings (e.g., '#1a1a1a').\n * react-pdf supports hex, rgb(), and hsl() — but NOT oklch.\n */\nexport interface ColorTokens {\n /** Primary text and content color */\n foreground: string;\n /** Page background color */\n background: string;\n /** Subtle background for secondary areas (e.g., code blocks, table headers) */\n muted: string;\n /** Text on muted backgrounds (captions, footnotes, timestamps) */\n mutedForeground: string;\n /** Brand/accent color for emphasis and highlights */\n primary: string;\n /** Text on primary-colored backgrounds */\n primaryForeground: string;\n /** Table borders, dividers, rules */\n border: string;\n /** Secondary accent for call-to-action elements, badges */\n accent: string;\n /** Error text, warning indicators */\n destructive: string;\n /** Success states (e.g., badges, confirmations) */\n success: string;\n /** Warning states (e.g., badges, alerts) */\n warning: string;\n /** Info states (e.g., badges, informational alerts) */\n info: string;\n}\n\n/** Typography semantic tokens — what fonts and sizes to use where */\nexport interface TypographyTokens {\n /** Body text settings */\n body: {\n /** Font family for body text (e.g., 'Helvetica') */\n fontFamily: string;\n /** Base font size in points */\n fontSize: number;\n /** Line height multiplier */\n lineHeight: number;\n };\n /** Heading text settings */\n heading: {\n /** Font family for headings (e.g., 'Times-Roman', 'Courier') */\n fontFamily: string;\n /** Font weight as numeric value (400-700) */\n fontWeight: number;\n /** Line height multiplier for headings */\n lineHeight: number;\n /** Font sizes for each heading level in points */\n fontSize: {\n h1: number;\n h2: number;\n h3: number;\n h4: number;\n h5: number;\n h6: number;\n };\n };\n}\n\n/** Spacing semantic tokens — consistent spacing across the document */\nexport interface SpacingTokens {\n /** Page margin settings in points */\n page: {\n marginTop: number;\n marginRight: number;\n marginBottom: number;\n marginLeft: number;\n };\n /** Space between major document sections (after h2, before new sections) */\n sectionGap: number;\n /** Space between paragraphs and after text blocks */\n paragraphGap: number;\n /** Space between inline components, list items, table rows */\n componentGap: number;\n}\n\n/** Page layout defaults */\nexport interface PageTokens {\n /** Default page size */\n size: \"A4\" | \"LETTER\" | \"LEGAL\";\n /** Default page orientation */\n orientation: \"portrait\" | \"landscape\";\n}\n\n// ─── Full Theme ─────────────────────────────────────────────────────────────\n\n/**\n * The complete pdfcn theme object.\n *\n * Components import this and use its tokens for all style values.\n * Since React Context doesn't work in @react-pdf/renderer,\n * the theme is a plain TypeScript object imported directly by components.\n *\n * @example\n * ```tsx\n * // In a component:\n * import { theme } from '../lib/pdfcn-theme';\n *\n * function createStyles(t: PdfcnTheme) {\n * return StyleSheet.create({\n * text: {\n * fontFamily: t.typography.body.fontFamily,\n * fontSize: t.typography.body.fontSize,\n * color: t.colors.foreground,\n * },\n * });\n * }\n *\n * const styles = createStyles(theme);\n * ```\n */\nexport interface PdfcnTheme {\n /** Theme name identifier */\n name: string;\n /** Raw design scales */\n primitives: PrimitiveTokens;\n /** Semantic color mappings */\n colors: ColorTokens;\n /** Typography settings for body and headings */\n typography: TypographyTokens;\n /** Spacing settings for page, sections, and components */\n spacing: SpacingTokens;\n /** Page layout defaults */\n page: PageTokens;\n}\n",
+ "type": "registry:theme",
+ "target": "components/pdf/theme-types.ts"
+ }
+ ],
+ "type": "registry:theme"
+}
\ No newline at end of file
diff --git a/registry.json b/registry.json
index 9fd5a11..a0ff2ec 100644
--- a/registry.json
+++ b/registry.json
@@ -3,7 +3,10 @@
"homepage": "https://pdfcn.vercel.app",
"items": [
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Theme context and helpers for the takumi base",
"files": [
{
@@ -37,7 +40,10 @@
"type": "registry:lib"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Alert PDF component (takumi)",
"files": [
{
@@ -52,12 +58,17 @@
}
],
"name": "takumi/alert",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Alert",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Badge PDF component (takumi)",
"files": [
{
@@ -72,12 +83,17 @@
}
],
"name": "takumi/badge",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Badge",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Card PDF component (takumi)",
"files": [
{
@@ -92,12 +108,17 @@
}
],
"name": "takumi/card",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Card",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Data Table PDF component (takumi)",
"files": [
{
@@ -122,12 +143,18 @@
}
],
"name": "takumi/data-table",
- "registryDependencies": ["takumi/utils", "takumi/table"],
+ "registryDependencies": [
+ "takumi/utils",
+ "takumi/table"
+ ],
"title": "Data Table",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Divider PDF component (takumi)",
"files": [
{
@@ -142,12 +169,17 @@
}
],
"name": "takumi/divider",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Divider",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Form PDF component (takumi)",
"files": [
{
@@ -172,12 +204,17 @@
}
],
"name": "takumi/form",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Form",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Graph PDF component (takumi)",
"files": [
{
@@ -207,12 +244,17 @@
}
],
"name": "takumi/graph",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Graph",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Heading PDF component (takumi)",
"files": [
{
@@ -227,12 +269,17 @@
}
],
"name": "takumi/heading",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Heading",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Keep Together PDF component (takumi)",
"files": [
{
@@ -247,12 +294,17 @@
}
],
"name": "takumi/keep-together",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Keep Together",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Key Value PDF component (takumi)",
"files": [
{
@@ -267,12 +319,17 @@
}
],
"name": "takumi/key-value",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Key Value",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Link PDF component (takumi)",
"files": [
{
@@ -287,12 +344,17 @@
}
],
"name": "takumi/link",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Link",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "List PDF component (takumi)",
"files": [
{
@@ -317,12 +379,17 @@
}
],
"name": "takumi/list",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "List",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Page Break PDF component (takumi)",
"files": [
{
@@ -337,12 +404,17 @@
}
],
"name": "takumi/page-break",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Page Break",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Page Footer PDF component (takumi)",
"files": [
{
@@ -357,12 +429,17 @@
}
],
"name": "takumi/page-footer",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Page Footer",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Page Header PDF component (takumi)",
"files": [
{
@@ -377,12 +454,17 @@
}
],
"name": "takumi/page-header",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Page Header",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Page Number PDF component (takumi)",
"files": [
{
@@ -397,12 +479,17 @@
}
],
"name": "takumi/page-number",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Page Number",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Pdf Image PDF component (takumi)",
"files": [
{
@@ -417,12 +504,18 @@
}
],
"name": "takumi/pdf-image",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Pdf Image",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers", "qrcode"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers",
+ "qrcode"
+ ],
"description": "Qrcode PDF component (takumi)",
"files": [
{
@@ -437,12 +530,17 @@
}
],
"name": "takumi/qrcode",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Qrcode",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Section PDF component (takumi)",
"files": [
{
@@ -457,12 +555,17 @@
}
],
"name": "takumi/section",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Section",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Signature PDF component (takumi)",
"files": [
{
@@ -477,12 +580,17 @@
}
],
"name": "takumi/signature",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Signature",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Stack PDF component (takumi)",
"files": [
{
@@ -497,12 +605,17 @@
}
],
"name": "takumi/stack",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Stack",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Table PDF component (takumi)",
"files": [
{
@@ -527,12 +640,17 @@
}
],
"name": "takumi/table",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Table",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Text PDF component (takumi)",
"files": [
{
@@ -547,12 +665,17 @@
}
],
"name": "takumi/text",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Text",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Watermark PDF component (takumi)",
"files": [
{
@@ -567,12 +690,17 @@
}
],
"name": "takumi/watermark",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Watermark",
"type": "registry:ui"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Invoice Classic PDF block (takumi)",
"files": [
{
@@ -587,12 +715,17 @@
}
],
"name": "takumi/invoice-classic",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Invoice Classic",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Invoice Consultant PDF block (takumi)",
"files": [
{
@@ -607,12 +740,17 @@
}
],
"name": "takumi/invoice-consultant",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Invoice Consultant",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Invoice Corporate PDF block (takumi)",
"files": [
{
@@ -627,12 +765,17 @@
}
],
"name": "takumi/invoice-corporate",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Invoice Corporate",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Invoice Creative PDF block (takumi)",
"files": [
{
@@ -647,12 +790,17 @@
}
],
"name": "takumi/invoice-creative",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Invoice Creative",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Invoice Minimal PDF block (takumi)",
"files": [
{
@@ -667,12 +815,17 @@
}
],
"name": "takumi/invoice-minimal",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Invoice Minimal",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Invoice Modern PDF block (takumi)",
"files": [
{
@@ -687,12 +840,17 @@
}
],
"name": "takumi/invoice-modern",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Invoice Modern",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Report Financial PDF block (takumi)",
"files": [
{
@@ -712,12 +870,17 @@
}
],
"name": "takumi/report-financial",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Report Financial",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Report Marketing PDF block (takumi)",
"files": [
{
@@ -737,12 +900,17 @@
}
],
"name": "takumi/report-marketing",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Report Marketing",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Report Operations PDF block (takumi)",
"files": [
{
@@ -762,12 +930,17 @@
}
],
"name": "takumi/report-operations",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Report Operations",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
+ "dependencies": [
+ "takumi-pdf",
+ "@takumi-rs/helpers"
+ ],
"description": "Report Security PDF block (takumi)",
"files": [
{
@@ -787,13 +960,14 @@
}
],
"name": "takumi/report-security",
- "registryDependencies": ["takumi/utils"],
+ "registryDependencies": [
+ "takumi/utils"
+ ],
"title": "Report Security",
"type": "registry:block"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "professional theme tokens for takumi",
+ "description": "professional theme tokens",
"files": [
{
"path": "registry/themes/professional.ts",
@@ -809,20 +983,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-professional",
- "title": "Professional Theme (takumi)",
+ "name": "theme-professional",
+ "title": "Professional Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "modern theme tokens for takumi",
+ "description": "modern theme tokens",
"files": [
{
"path": "registry/themes/modern.ts",
@@ -838,20 +1006,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-modern",
- "title": "Modern Theme (takumi)",
+ "name": "theme-modern",
+ "title": "Modern Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "minimal theme tokens for takumi",
+ "description": "minimal theme tokens",
"files": [
{
"path": "registry/themes/minimal.ts",
@@ -867,20 +1029,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-minimal",
- "title": "Minimal Theme (takumi)",
+ "name": "theme-minimal",
+ "title": "Minimal Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "executive theme tokens for takumi",
+ "description": "executive theme tokens",
"files": [
{
"path": "registry/themes/executive.ts",
@@ -896,20 +1052,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-executive",
- "title": "Executive Theme (takumi)",
+ "name": "theme-executive",
+ "title": "Executive Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "corporate theme tokens for takumi",
+ "description": "corporate theme tokens",
"files": [
{
"path": "registry/themes/corporate.ts",
@@ -925,20 +1075,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-corporate",
- "title": "Corporate Theme (takumi)",
+ "name": "theme-corporate",
+ "title": "Corporate Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "elegant theme tokens for takumi",
+ "description": "elegant theme tokens",
"files": [
{
"path": "registry/themes/elegant.ts",
@@ -954,20 +1098,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-elegant",
- "title": "Elegant Theme (takumi)",
+ "name": "theme-elegant",
+ "title": "Elegant Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "vivid theme tokens for takumi",
+ "description": "vivid theme tokens",
"files": [
{
"path": "registry/themes/vivid.ts",
@@ -983,20 +1121,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-vivid",
- "title": "Vivid Theme (takumi)",
+ "name": "theme-vivid",
+ "title": "Vivid Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "forest theme tokens for takumi",
+ "description": "forest theme tokens",
"files": [
{
"path": "registry/themes/forest.ts",
@@ -1012,20 +1144,14 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-forest",
- "title": "Forest Theme (takumi)",
+ "name": "theme-forest",
+ "title": "Forest Theme",
"type": "registry:theme"
},
{
- "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],
- "description": "blueprint theme tokens for takumi",
+ "description": "blueprint theme tokens",
"files": [
{
"path": "registry/themes/blueprint.ts",
@@ -1041,19 +1167,17 @@
"path": "registry/themes/theme-types.ts",
"target": "components/pdf/theme-types.ts",
"type": "registry:theme"
- },
- {
- "path": "registry/bases/takumi/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
}
],
- "name": "takumi/theme-blueprint",
- "title": "Blueprint Theme (takumi)",
+ "name": "theme-blueprint",
+ "title": "Blueprint Theme",
"type": "registry:theme"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Theme context and helpers for the forme base",
"files": [
{
@@ -1092,7 +1216,10 @@
"type": "registry:lib"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Alert PDF component (forme)",
"files": [
{
@@ -1107,12 +1234,17 @@
}
],
"name": "forme/alert",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Alert",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Badge PDF component (forme)",
"files": [
{
@@ -1127,12 +1259,17 @@
}
],
"name": "forme/badge",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Badge",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Card PDF component (forme)",
"files": [
{
@@ -1147,12 +1284,17 @@
}
],
"name": "forme/card",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Card",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Data Table PDF component (forme)",
"files": [
{
@@ -1177,12 +1319,18 @@
}
],
"name": "forme/data-table",
- "registryDependencies": ["forme/utils", "forme/table"],
+ "registryDependencies": [
+ "forme/utils",
+ "forme/table"
+ ],
"title": "Data Table",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Divider PDF component (forme)",
"files": [
{
@@ -1197,12 +1345,17 @@
}
],
"name": "forme/divider",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Divider",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Form PDF component (forme)",
"files": [
{
@@ -1227,12 +1380,17 @@
}
],
"name": "forme/form",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Form",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Graph PDF component (forme)",
"files": [
{
@@ -1262,12 +1420,17 @@
}
],
"name": "forme/graph",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Graph",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Heading PDF component (forme)",
"files": [
{
@@ -1282,12 +1445,17 @@
}
],
"name": "forme/heading",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Heading",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Keep Together PDF component (forme)",
"files": [
{
@@ -1302,12 +1470,17 @@
}
],
"name": "forme/keep-together",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Keep Together",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Key Value PDF component (forme)",
"files": [
{
@@ -1322,12 +1495,17 @@
}
],
"name": "forme/key-value",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Key Value",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Link PDF component (forme)",
"files": [
{
@@ -1342,12 +1520,17 @@
}
],
"name": "forme/link",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Link",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "List PDF component (forme)",
"files": [
{
@@ -1372,12 +1555,17 @@
}
],
"name": "forme/list",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "List",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Page Break PDF component (forme)",
"files": [
{
@@ -1392,12 +1580,17 @@
}
],
"name": "forme/page-break",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Page Break",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Page Footer PDF component (forme)",
"files": [
{
@@ -1412,12 +1605,17 @@
}
],
"name": "forme/page-footer",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Page Footer",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Page Header PDF component (forme)",
"files": [
{
@@ -1432,12 +1630,17 @@
}
],
"name": "forme/page-header",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Page Header",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Page Number PDF component (forme)",
"files": [
{
@@ -1452,12 +1655,17 @@
}
],
"name": "forme/page-number",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Page Number",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Pdf Image PDF component (forme)",
"files": [
{
@@ -1472,12 +1680,18 @@
}
],
"name": "forme/pdf-image",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Pdf Image",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core", "qrcode"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core",
+ "qrcode"
+ ],
"description": "Qrcode PDF component (forme)",
"files": [
{
@@ -1492,12 +1706,17 @@
}
],
"name": "forme/qrcode",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Qrcode",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Section PDF component (forme)",
"files": [
{
@@ -1512,12 +1731,17 @@
}
],
"name": "forme/section",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Section",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Signature PDF component (forme)",
"files": [
{
@@ -1532,12 +1756,17 @@
}
],
"name": "forme/signature",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Signature",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Stack PDF component (forme)",
"files": [
{
@@ -1552,12 +1781,17 @@
}
],
"name": "forme/stack",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Stack",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Table PDF component (forme)",
"files": [
{
@@ -1582,12 +1816,17 @@
}
],
"name": "forme/table",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Table",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Text PDF component (forme)",
"files": [
{
@@ -1602,12 +1841,17 @@
}
],
"name": "forme/text",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Text",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Watermark PDF component (forme)",
"files": [
{
@@ -1622,12 +1866,17 @@
}
],
"name": "forme/watermark",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Watermark",
"type": "registry:ui"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Invoice Classic PDF block (forme)",
"files": [
{
@@ -1642,12 +1891,17 @@
}
],
"name": "forme/invoice-classic",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Invoice Classic",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Invoice Consultant PDF block (forme)",
"files": [
{
@@ -1662,12 +1916,17 @@
}
],
"name": "forme/invoice-consultant",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Invoice Consultant",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Invoice Corporate PDF block (forme)",
"files": [
{
@@ -1682,12 +1941,17 @@
}
],
"name": "forme/invoice-corporate",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Invoice Corporate",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Invoice Creative PDF block (forme)",
"files": [
{
@@ -1702,12 +1966,17 @@
}
],
"name": "forme/invoice-creative",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Invoice Creative",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Invoice Minimal PDF block (forme)",
"files": [
{
@@ -1722,12 +1991,17 @@
}
],
"name": "forme/invoice-minimal",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Invoice Minimal",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Invoice Modern PDF block (forme)",
"files": [
{
@@ -1742,12 +2016,17 @@
}
],
"name": "forme/invoice-modern",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Invoice Modern",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Report Financial PDF block (forme)",
"files": [
{
@@ -1767,12 +2046,17 @@
}
],
"name": "forme/report-financial",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Report Financial",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Report Marketing PDF block (forme)",
"files": [
{
@@ -1792,12 +2076,17 @@
}
],
"name": "forme/report-marketing",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Report Marketing",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Report Operations PDF block (forme)",
"files": [
{
@@ -1817,12 +2106,17 @@
}
],
"name": "forme/report-operations",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Report Operations",
"type": "registry:block"
},
{
- "dependencies": ["@formepdf/react", "@formepdf/core"],
+ "dependencies": [
+ "@formepdf/react",
+ "@formepdf/core"
+ ],
"description": "Report Security PDF block (forme)",
"files": [
{
@@ -1842,271 +2136,12 @@
}
],
"name": "forme/report-security",
- "registryDependencies": ["forme/utils"],
+ "registryDependencies": [
+ "forme/utils"
+ ],
"title": "Report Security",
"type": "registry:block"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "professional theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/professional.ts",
- "target": "components/pdf/theme-professional.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-professional",
- "title": "Professional Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "modern theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/modern.ts",
- "target": "components/pdf/theme-modern.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-modern",
- "title": "Modern Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "minimal theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/minimal.ts",
- "target": "components/pdf/theme-minimal.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-minimal",
- "title": "Minimal Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "executive theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/executive.ts",
- "target": "components/pdf/theme-executive.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-executive",
- "title": "Executive Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "corporate theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/corporate.ts",
- "target": "components/pdf/theme-corporate.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-corporate",
- "title": "Corporate Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "elegant theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/elegant.ts",
- "target": "components/pdf/theme-elegant.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-elegant",
- "title": "Elegant Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "vivid theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/vivid.ts",
- "target": "components/pdf/theme-vivid.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-vivid",
- "title": "Vivid Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "forest theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/forest.ts",
- "target": "components/pdf/theme-forest.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-forest",
- "title": "Forest Theme (forme)",
- "type": "registry:theme"
- },
- {
- "dependencies": ["@formepdf/react", "@formepdf/core"],
- "description": "blueprint theme tokens for forme",
- "files": [
- {
- "path": "registry/themes/blueprint.ts",
- "target": "components/pdf/theme-blueprint.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/primitives.ts",
- "target": "components/pdf/primitives.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/themes/theme-types.ts",
- "target": "components/pdf/theme-types.ts",
- "type": "registry:theme"
- },
- {
- "path": "registry/bases/forme/lib/pdfcn-theme.ts",
- "target": "components/pdf/pdfcn-theme.ts",
- "type": "registry:lib"
- }
- ],
- "name": "forme/theme-blueprint",
- "title": "Blueprint Theme (forme)",
- "type": "registry:theme"
}
],
"name": "pdfcn"
-}
+}
\ No newline at end of file
diff --git a/registry/bases/forme/lib/themes.ts b/registry/bases/forme/lib/themes.ts
index 30615f1..94e0aaa 100644
--- a/registry/bases/forme/lib/themes.ts
+++ b/registry/bases/forme/lib/themes.ts
@@ -1,7 +1,7 @@
export type {
PDFComponentProps,
Style,
-} from "@/registry/themes/component-types";
+} from "@/registry/themes";
export type {
PdfcnTheme,
PrimitiveTokens,
@@ -30,4 +30,4 @@ export {
blueprintTheme,
themePresets,
type ThemePresetName,
-} from "@/registry/themes/themes-barrel";
+} from "@/registry/themes";
diff --git a/registry/bases/takumi/lib/themes.ts b/registry/bases/takumi/lib/themes.ts
index 30615f1..94e0aaa 100644
--- a/registry/bases/takumi/lib/themes.ts
+++ b/registry/bases/takumi/lib/themes.ts
@@ -1,7 +1,7 @@
export type {
PDFComponentProps,
Style,
-} from "@/registry/themes/component-types";
+} from "@/registry/themes";
export type {
PdfcnTheme,
PrimitiveTokens,
@@ -30,4 +30,4 @@ export {
blueprintTheme,
themePresets,
type ThemePresetName,
-} from "@/registry/themes/themes-barrel";
+} from "@/registry/themes";
diff --git a/registry/config.ts b/registry/config.ts
index 9a6dae5..3f586a7 100644
--- a/registry/config.ts
+++ b/registry/config.ts
@@ -2,11 +2,11 @@ import { z } from "zod";
import { BASE_NAMES, BASES, DEFAULT_BASE } from "@/registry/bases";
import type { Base, BaseName } from "@/registry/bases";
-import { THEME_NAMES, THEMES } from "@/registry/themes-registry";
+import { THEME_NAMES, THEMES } from "@/registry/themes";
import type {
RegistryTheme,
RegistryThemeName,
-} from "@/registry/themes-registry";
+} from "@/registry/themes";
export { BASES, type Base, type BaseName, DEFAULT_BASE };
export { THEMES, type RegistryTheme, type RegistryThemeName };
diff --git a/registry/themes-registry.ts b/registry/themes-registry.ts
deleted file mode 100644
index 4277168..0000000
--- a/registry/themes-registry.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import { themePresets } from "@/registry/themes";
-import type { ThemePresetName } from "@/registry/themes";
-
-export const THEMES = Object.entries(themePresets).map(([name, theme]) => ({
- name: name as ThemePresetName,
- theme,
- title: name.charAt(0).toUpperCase() + name.slice(1),
-}));
-
-export type RegistryTheme = (typeof THEMES)[number];
-export type RegistryThemeName = RegistryTheme["name"];
-
-export const THEME_NAMES = THEMES.map((t) => t.name) as [
- RegistryThemeName,
- ...RegistryThemeName[],
-];
-
-export const getTheme = (name: RegistryThemeName) =>
- THEMES.find((t) => t.name === name);
diff --git a/registry/themes.ts b/registry/themes.ts
new file mode 100644
index 0000000..65b6c57
--- /dev/null
+++ b/registry/themes.ts
@@ -0,0 +1,70 @@
+import { blueprintTheme } from "./themes/blueprint";
+import { corporateTheme } from "./themes/corporate";
+import { elegantTheme } from "./themes/elegant";
+import { executiveTheme } from "./themes/executive";
+import { forestTheme } from "./themes/forest";
+import { minimalTheme } from "./themes/minimal";
+import { modernTheme } from "./themes/modern";
+import { professionalTheme } from "./themes/professional";
+import { vividTheme } from "./themes/vivid";
+
+export type { PDFComponentProps, Style } from "./themes/component-types";
+export type {
+ PdfcnTheme,
+ PrimitiveTokens,
+ ColorTokens,
+ TypographyTokens,
+ SpacingTokens,
+ PageTokens,
+ TypographyScale,
+ SpacingScale,
+ FontWeights,
+ LineHeights,
+ BorderRadiusScale,
+ LetterSpacingScale,
+} from "./themes/theme-types";
+
+export { defaultPrimitives } from "./themes/primitives";
+export { professionalTheme } from "./themes/professional";
+export { modernTheme } from "./themes/modern";
+export { minimalTheme } from "./themes/minimal";
+export { executiveTheme } from "./themes/executive";
+export { corporateTheme } from "./themes/corporate";
+export { elegantTheme } from "./themes/elegant";
+export { vividTheme } from "./themes/vivid";
+export { forestTheme } from "./themes/forest";
+export { blueprintTheme } from "./themes/blueprint";
+
+/** Map of all built-in theme presets */
+export const themePresets = {
+ blueprint: blueprintTheme,
+ corporate: corporateTheme,
+ elegant: elegantTheme,
+ executive: executiveTheme,
+ forest: forestTheme,
+ minimal: minimalTheme,
+ modern: modernTheme,
+ professional: professionalTheme,
+ vivid: vividTheme,
+} as const;
+
+/** Valid theme preset names */
+export type ThemePresetName = keyof typeof themePresets;
+
+/** Array of all themes with metadata */
+export const THEMES = Object.entries(themePresets).map(([name, theme]) => ({
+ name: name as ThemePresetName,
+ theme,
+ title: name.charAt(0).toUpperCase() + name.slice(1),
+}));
+
+export type RegistryTheme = (typeof THEMES)[number];
+export type RegistryThemeName = RegistryTheme["name"];
+
+export const THEME_NAMES = THEMES.map((t) => t.name) as [
+ RegistryThemeName,
+ ...RegistryThemeName[],
+];
+
+export const getTheme = (name: RegistryThemeName) =>
+ THEMES.find((t) => t.name === name);
diff --git a/registry/themes/index.ts b/registry/themes/index.ts
deleted file mode 100644
index 490ccd2..0000000
--- a/registry/themes/index.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-export type { PDFComponentProps, Style } from "./component-types";
-export type {
- PdfcnTheme,
- PrimitiveTokens,
- ColorTokens,
- TypographyTokens,
- SpacingTokens,
- PageTokens,
- TypographyScale,
- SpacingScale,
- FontWeights,
- LineHeights,
- BorderRadiusScale,
- LetterSpacingScale,
-} from "./theme-types";
-
-export {
- defaultPrimitives,
- professionalTheme,
- modernTheme,
- minimalTheme,
- executiveTheme,
- corporateTheme,
- elegantTheme,
- vividTheme,
- forestTheme,
- blueprintTheme,
- themePresets,
- type ThemePresetName,
-} from "./themes-barrel";
diff --git a/registry/themes/themes-barrel.ts b/registry/themes/themes-barrel.ts
deleted file mode 100644
index 4881e2f..0000000
--- a/registry/themes/themes-barrel.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-import { blueprintTheme } from "./blueprint";
-import { corporateTheme } from "./corporate";
-import { elegantTheme } from "./elegant";
-import { executiveTheme } from "./executive";
-import { forestTheme } from "./forest";
-import { minimalTheme } from "./minimal";
-import { modernTheme } from "./modern";
-import { professionalTheme } from "./professional";
-import { vividTheme } from "./vivid";
-
-export { defaultPrimitives } from "./primitives";
-export { professionalTheme } from "./professional";
-export { modernTheme } from "./modern";
-export { minimalTheme } from "./minimal";
-export { executiveTheme } from "./executive";
-export { corporateTheme } from "./corporate";
-export { elegantTheme } from "./elegant";
-export { vividTheme } from "./vivid";
-export { forestTheme } from "./forest";
-export { blueprintTheme } from "./blueprint";
-
-/** Map of all built-in theme presets */
-export const themePresets = {
- blueprint: blueprintTheme,
- corporate: corporateTheme,
- elegant: elegantTheme,
- executive: executiveTheme,
- forest: forestTheme,
- minimal: minimalTheme,
- modern: modernTheme,
- professional: professionalTheme,
- vivid: vividTheme,
-} as const;
-
-/** Valid theme preset names */
-export type ThemePresetName = keyof typeof themePresets;