Presets
Presets lib
Install
npx ui8kit add presetsPulls in: utils
Preview
No static preview for this item: it needs content or a parent that this page cannot supply. The code is below.
Code
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework svelte --dir src --registry-url https://registry.buildy.tw/svelte --strict-cdnnpx ui8kit add presets// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
// Source: packages/compose-gen/screens/src/authoring/presets/defaults.ts
/**
* Default layout preset: the sizes of the landing blocks as Tailwind classes.
* Blocks combine these with token classes; swap the preset to resize every block at once.
*
* Numbers: ui8kit default sizes (Tailwind scale, no arbitrary values)
*/
export const defaults = {
/** small type steps for chips, badges and links */
text: {
tiny: "text-xs",
small: "text-sm",
},
hero: {
/** the inverse band: tall section, large bottom radius */
band: "min-h-160 rounded",
container: "max-w-7xl",
head: "gap-12",
badge: "w-48",
/** display title */
title: "text-5xl leading-tight",
/** one font-weight class per title word */
titleWeights: ["font-normal", "font-semibold", "font-normal", "font-semibold"],
column: "max-w-xl gap-16",
/** the prompt box */
composer: "h-40 max-w-xl rounded",
attach: "w-24",
promptLine: "h-10",
model: "w-24",
},
section: {
landing: "max-w-6xl",
},
media: {
rounded: "rounded",
},
templates: {
card: "h-60 w-64",
image: "h-40 w-58 rounded",
footer: "h-12 min-h-12",
},
stats: {
column: "min-h-28",
figure: "h-12 text-4xl leading-12 md:h-18 md:text-6xl md:leading-18",
panel: "gap-24 rounded py-20",
},
features: {
cells: "rounded",
},
news: {
card: "h-56 w-64",
cover: "h-40 w-64 rounded",
title: "top-16",
strip: "h-12 min-h-12",
},
cta: {
panel: "rounded py-20",
title: "max-w-md",
text: "max-w-2xl",
button: "w-40",
},
logos: {
/** one centered row of logo slots */
row: "h-28 max-w-4xl gap-12 pb-8",
slot: "size-20",
/** the Lucide glyph inside a slot: half the slot */
glyph: 40,
},
footer: {
card: "h-72 gap-12 rounded",
brand: "w-48",
groups: "gap-x-16",
},
} as const;
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework react --dir src --registry-url https://registry.buildy.tw/react --strict-cdnnpx ui8kit add presets// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
// Source: packages/compose-gen/screens/src/authoring/presets/defaults.ts
/**
* Default layout preset: the sizes of the landing blocks as Tailwind classes.
* Blocks combine these with token classes; swap the preset to resize every block at once.
*
* Numbers: ui8kit default sizes (Tailwind scale, no arbitrary values)
*/
export const defaults = {
/** small type steps for chips, badges and links */
text: {
tiny: "text-xs",
small: "text-sm",
},
hero: {
/** the inverse band: tall section, large bottom radius */
band: "min-h-160 rounded",
container: "max-w-7xl",
head: "gap-12",
badge: "w-48",
/** display title */
title: "text-5xl leading-tight",
/** one font-weight class per title word */
titleWeights: ["font-normal", "font-semibold", "font-normal", "font-semibold"],
column: "max-w-xl gap-16",
/** the prompt box */
composer: "h-40 max-w-xl rounded",
attach: "w-24",
promptLine: "h-10",
model: "w-24",
},
section: {
landing: "max-w-6xl",
},
media: {
rounded: "rounded",
},
templates: {
card: "h-60 w-64",
image: "h-40 w-58 rounded",
footer: "h-12 min-h-12",
},
stats: {
column: "min-h-28",
figure: "h-12 text-4xl leading-12 md:h-18 md:text-6xl md:leading-18",
panel: "gap-24 rounded py-20",
},
features: {
cells: "rounded",
},
news: {
card: "h-56 w-64",
cover: "h-40 w-64 rounded",
title: "top-16",
strip: "h-12 min-h-12",
},
cta: {
panel: "rounded py-20",
title: "max-w-md",
text: "max-w-2xl",
button: "w-40",
},
logos: {
/** one centered row of logo slots */
row: "h-28 max-w-4xl gap-12 pb-8",
slot: "size-20",
/** the Lucide glyph inside a slot: half the slot */
glyph: 40,
},
footer: {
card: "h-72 gap-12 rounded",
brand: "w-48",
groups: "gap-x-16",
},
} as const;
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework vue --dir src --registry-url https://registry.buildy.tw/vue --strict-cdnnpx ui8kit add presets// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
// Source: packages/compose-gen/screens/src/authoring/presets/defaults.ts
/**
* Default layout preset: the sizes of the landing blocks as Tailwind classes.
* Blocks combine these with token classes; swap the preset to resize every block at once.
*
* Numbers: ui8kit default sizes (Tailwind scale, no arbitrary values)
*/
export const defaults = {
/** small type steps for chips, badges and links */
text: {
tiny: "text-xs",
small: "text-sm",
},
hero: {
/** the inverse band: tall section, large bottom radius */
band: "min-h-160 rounded",
container: "max-w-7xl",
head: "gap-12",
badge: "w-48",
/** display title */
title: "text-5xl leading-tight",
/** one font-weight class per title word */
titleWeights: ["font-normal", "font-semibold", "font-normal", "font-semibold"],
column: "max-w-xl gap-16",
/** the prompt box */
composer: "h-40 max-w-xl rounded",
attach: "w-24",
promptLine: "h-10",
model: "w-24",
},
section: {
landing: "max-w-6xl",
},
media: {
rounded: "rounded",
},
templates: {
card: "h-60 w-64",
image: "h-40 w-58 rounded",
footer: "h-12 min-h-12",
},
stats: {
column: "min-h-28",
figure: "h-12 text-4xl leading-12 md:h-18 md:text-6xl md:leading-18",
panel: "gap-24 rounded py-20",
},
features: {
cells: "rounded",
},
news: {
card: "h-56 w-64",
cover: "h-40 w-64 rounded",
title: "top-16",
strip: "h-12 min-h-12",
},
cta: {
panel: "rounded py-20",
title: "max-w-md",
text: "max-w-2xl",
button: "w-40",
},
logos: {
/** one centered row of logo slots */
row: "h-28 max-w-4xl gap-12 pb-8",
slot: "size-20",
/** the Lucide glyph inside a slot: half the slot */
glyph: 40,
},
footer: {
card: "h-72 gap-12 rounded",
brand: "w-48",
groups: "gap-x-16",
},
} as const;
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework solid --dir src --registry-url https://registry.buildy.tw/solid --strict-cdnnpx ui8kit add presets// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
// Source: packages/compose-gen/screens/src/authoring/presets/defaults.ts
/**
* Default layout preset: the sizes of the landing blocks as Tailwind classes.
* Blocks combine these with token classes; swap the preset to resize every block at once.
*
* Numbers: ui8kit default sizes (Tailwind scale, no arbitrary values)
*/
export const defaults = {
/** small type steps for chips, badges and links */
text: {
tiny: "text-xs",
small: "text-sm",
},
hero: {
/** the inverse band: tall section, large bottom radius */
band: "min-h-160 rounded",
container: "max-w-7xl",
head: "gap-12",
badge: "w-48",
/** display title */
title: "text-5xl leading-tight",
/** one font-weight class per title word */
titleWeights: ["font-normal", "font-semibold", "font-normal", "font-semibold"],
column: "max-w-xl gap-16",
/** the prompt box */
composer: "h-40 max-w-xl rounded",
attach: "w-24",
promptLine: "h-10",
model: "w-24",
},
section: {
landing: "max-w-6xl",
},
media: {
rounded: "rounded",
},
templates: {
card: "h-60 w-64",
image: "h-40 w-58 rounded",
footer: "h-12 min-h-12",
},
stats: {
column: "min-h-28",
figure: "h-12 text-4xl leading-12 md:h-18 md:text-6xl md:leading-18",
panel: "gap-24 rounded py-20",
},
features: {
cells: "rounded",
},
news: {
card: "h-56 w-64",
cover: "h-40 w-64 rounded",
title: "top-16",
strip: "h-12 min-h-12",
},
cta: {
panel: "rounded py-20",
title: "max-w-md",
text: "max-w-2xl",
button: "w-40",
},
logos: {
/** one centered row of logo slots */
row: "h-28 max-w-4xl gap-12 pb-8",
slot: "size-20",
/** the Lucide glyph inside a slot: half the slot */
glyph: 40,
},
footer: {
card: "h-72 gap-12 rounded",
brand: "w-48",
groups: "gap-x-16",
},
} as const;
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework templ --dir src --registry-url https://registry.buildy.tw/templ --strict-cdnnpx ui8kit add presets// Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
package blocks
import (
_ "embed"
uiutils "github.com/ui8kit/codegen/generated/templ/orgutils"
)
//go:embed recipes/avatar.variants.json
var recipeAvatarJSON []byte
var recipeAvatar = uiutils.MustRecipe(recipeAvatarJSON)
//go:embed recipes/badge-square.variants.json
var recipeBadgeSquareJSON []byte
var recipeBadgeSquare = uiutils.MustRecipe(recipeBadgeSquareJSON)
//go:embed recipes/file-tree-item.variants.json
var recipeFileTreeItemJSON []byte
var recipeFileTreeItem = uiutils.MustRecipe(recipeFileTreeItemJSON)
//go:embed recipes/icon-tab.variants.json
var recipeIconTabJSON []byte
var recipeIconTab = uiutils.MustRecipe(recipeIconTabJSON)
//go:embed recipes/logo-sidebar.variants.json
var recipeLogoSidebarJSON []byte
var recipeLogoSidebar = uiutils.MustRecipe(recipeLogoSidebarJSON)
//go:embed recipes/media-frame.variants.json
var recipeMediaFrameJSON []byte
var recipeMediaFrame = uiutils.MustRecipe(recipeMediaFrameJSON)
//go:embed recipes/nav-item.variants.json
var recipeNavItemJSON []byte
var recipeNavItem = uiutils.MustRecipe(recipeNavItemJSON)
//go:embed recipes/nav-item-content.variants.json
var recipeNavItemContentJSON []byte
var recipeNavItemContent = uiutils.MustRecipe(recipeNavItemContentJSON)
//go:embed recipes/section-column.variants.json
var recipeSectionColumnJSON []byte
var recipeSectionColumn = uiutils.MustRecipe(recipeSectionColumnJSON)
//go:embed recipes/section-frame.variants.json
var recipeSectionFrameJSON []byte
var recipeSectionFrame = uiutils.MustRecipe(recipeSectionFrameJSON)
//go:embed recipes/section-head.variants.json
var recipeSectionHeadJSON []byte
var recipeSectionHead = uiutils.MustRecipe(recipeSectionHeadJSON)
//go:embed recipes/sidebar-panel.variants.json
var recipeSidebarPanelJSON []byte
var recipeSidebarPanel = uiutils.MustRecipe(recipeSidebarPanelJSON)
//go:embed recipes/switcher.variants.json
var recipeSwitcherJSON []byte
var recipeSwitcher = uiutils.MustRecipe(recipeSwitcherJSON)
//go:embed recipes/switcher-item.variants.json
var recipeSwitcherItemJSON []byte
var recipeSwitcherItem = uiutils.MustRecipe(recipeSwitcherItemJSON)
//go:embed presets/defaults.json
var presetDefaultsJSON []byte
var presetDefaults = uiutils.Get(uiutils.MustJSON(presetDefaultsJSON), "values")
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"specVersion": 1,
"id": "preset.defaults",
"name": "defaults",
"docs": "Default layout preset: the sizes of the landing blocks as Tailwind classes.\nBlocks combine these with token classes; swap the preset to resize every block at once.",
"source": "ui8kit default sizes (Tailwind scale, no arbitrary values)",
"notes": {
"text": "small type steps for chips, badges and links",
"hero.band": "the inverse band: tall section, large bottom radius",
"hero.title": "display title",
"hero.titleWeights": "one font-weight class per title word",
"hero.composer": "the prompt box",
"logos.row": "one centered row of logo slots",
"logos.glyph": "the Lucide glyph inside a slot: half the slot"
},
"values": {
"text": {
"tiny": "text-xs",
"small": "text-sm"
},
"hero": {
"band": "min-h-160 rounded",
"container": "max-w-7xl",
"head": "gap-12",
"badge": "w-48",
"title": "text-5xl leading-tight",
"titleWeights": [
"font-normal",
"font-semibold",
"font-normal",
"font-semibold"
],
"column": "max-w-xl gap-16",
"composer": "h-40 max-w-xl rounded",
"attach": "w-24",
"promptLine": "h-10",
"model": "w-24"
},
"section": {
"landing": "max-w-6xl"
},
"media": {
"rounded": "rounded"
},
"templates": {
"card": "h-60 w-64",
"image": "h-40 w-58 rounded",
"footer": "h-12 min-h-12"
},
"stats": {
"column": "min-h-28",
"figure": "h-12 text-4xl leading-12 md:h-18 md:text-6xl md:leading-18",
"panel": "gap-24 rounded py-20"
},
"features": {
"cells": "rounded"
},
"news": {
"card": "h-56 w-64",
"cover": "h-40 w-64 rounded",
"title": "top-16",
"strip": "h-12 min-h-12"
},
"cta": {
"panel": "rounded py-20",
"title": "max-w-md",
"text": "max-w-2xl",
"button": "w-40"
},
"logos": {
"row": "h-28 max-w-4xl gap-12 pb-8",
"slot": "size-20",
"glyph": 40
},
"footer": {
"card": "h-72 gap-12 rounded",
"brand": "w-48",
"groups": "gap-x-16"
}
}
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.avatar",
"base": "relative inline-flex shrink-0 overflow-hidden bg-muted rounded-full",
"byKey": {
"size": {
"xs": "size-6",
"sm": "size-8",
"default": "size-10",
"lg": "size-12",
"xl": "size-16"
}
},
"defaults": {
"size": "default"
},
"keys": [
"size"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.badge-square",
"base": "inline-flex shrink-0 items-center justify-center bg-card text-xs font-medium whitespace-nowrap text-foreground inset-ring inset-ring-border rounded",
"byKey": {
"size": {
"sm": "h-4 min-w-4 px-1",
"default": "h-5 px-2"
}
},
"defaults": {
"size": "default"
},
"keys": [
"size"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.file-tree-item",
"base": "flex h-6 w-full items-center gap-4 text-xs font-bold text-muted-foreground data-[state=selected]:bg-muted",
"byKey": {
"kind": {
"folder": "",
"file": "px-8"
}
},
"defaults": {
"kind": "file"
},
"keys": [
"kind"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.icon-tab",
"base": "inline-flex size-8 shrink-0 items-center justify-center text-muted-foreground inset-ring inset-ring-transparent [&>svg]:size-4 rounded",
"byKey": {
"state": {
"default": "",
"active": "bg-card text-foreground inset-ring-border"
}
},
"defaults": {
"state": "default"
},
"keys": [
"state"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.logo-sidebar",
"base": "flex h-8 items-center justify-between",
"byKey": {
"variant": {
"chat": "px-2",
"creator": "pr-4"
}
},
"defaults": {
"variant": "chat"
},
"keys": [
"variant"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "block.media-frame",
"base": "relative w-full overflow-hidden bg-muted text-muted-foreground inset-ring inset-ring-border rounded",
"byKey": {
"ratio": {
"16/9": "aspect-video",
"4/3": "aspect-4/3",
"1/1": "aspect-square",
"3/4": "aspect-3/4",
"21/9": "aspect-21/9"
}
},
"defaults": {
"ratio": "16/9"
},
"keys": [
"ratio"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.nav-item-content",
"base": "flex h-8 min-w-0 flex-1 items-center justify-between px-4 py-2 text-xs font-bold text-muted-foreground inset-ring inset-ring-transparent rounded",
"byKey": {
"level": {
"1": "",
"2": "",
"3": "px-2",
"4": "px-2"
},
"state": {
"default": "",
"selected": "bg-background text-foreground inset-ring-border"
}
},
"defaults": {
"level": "1",
"state": "default"
},
"keys": [
"level",
"state"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.nav-item",
"base": "flex w-full items-center p-2 rounded",
"byKey": {
"level": {
"1": "",
"2": "",
"3": "pr-2 pl-12",
"4": "pr-2 pl-20"
},
"state": {
"default": "",
"selected": ""
}
},
"defaults": {
"level": "1",
"state": "default"
},
"keys": [
"level",
"state"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "block.section-column",
"base": "",
"defaults": {
"measure": "default"
},
"keys": [
"measure"
],
"compound": [],
"byKey": {
"measure": {
"default": "",
"landing": "",
"fill": "",
"xs": "mx-auto w-full max-w-xs",
"sm": "mx-auto w-full max-w-sm",
"md": "mx-auto w-full max-w-md",
"lg": "mx-auto w-full max-w-lg",
"xl": "mx-auto w-full max-w-xl",
"2xl": "mx-auto w-full max-w-2xl",
"3xl": "mx-auto w-full max-w-3xl"
}
}
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "block.section-frame",
"base": "w-full",
"byKey": {
"tone": {
"default": "",
"muted": "bg-muted",
"inverse": "bg-foreground text-background [&_.text-muted-foreground]:text-background/70"
},
"density": {
"roomy": "py-16",
"default": "py-10",
"compact": "py-6",
"flush": "py-0"
},
"align": {
"start": "",
"center": "text-center"
}
},
"defaults": {
"tone": "default",
"density": "default",
"align": "start"
},
"keys": [
"tone",
"density",
"align"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.section-head",
"base": "flex items-center justify-between pr-4 pl-4",
"byKey": {
"size": {
"default": "h-8 py-2 text-xs font-semibold",
"lg": "h-12 py-2 text-sm font-bold"
}
},
"defaults": {
"size": "default"
},
"keys": [
"size"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.sidebar-panel",
"base": "flex shrink-0 flex-col",
"byKey": {
"variant": {
"chat": "w-68 gap-2 pt-6 pr-4 pb-6 pl-4",
"creator": "w-62 justify-between gap-4 p-4"
}
},
"defaults": {
"variant": "chat"
},
"keys": [
"variant"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.switcher-item",
"base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-bold text-muted-foreground inset-ring inset-ring-transparent rounded",
"byKey": {
"size": {
"sm": "h-6 gap-1 px-3 text-xs",
"default": "h-8 gap-2 px-4 text-sm",
"lg": "h-10 gap-2 px-5 text-sm"
},
"state": {
"default": "",
"active": "bg-background text-foreground inset-ring-border"
},
"layout": {
"text": "",
"icon": "[&>svg]:size-4"
}
},
"defaults": {
"size": "default",
"state": "default",
"layout": "text"
},
"keys": [
"size",
"state",
"layout"
],
"compound": [
{
"layout": "icon",
"size": "sm",
"class": "w-6 px-0"
},
{
"layout": "icon",
"size": "default",
"class": "w-8 px-0"
},
{
"layout": "icon",
"size": "lg",
"class": "w-10 px-0"
}
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.switcher",
"base": "inline-flex max-w-full items-center gap-1 overflow-x-auto bg-muted inset-ring inset-ring-border rounded",
"byKey": {
"size": {
"sm": "h-8 p-1",
"default": "h-10 p-1",
"lg": "h-12 p-1"
},
"layout": {
"text": "",
"icon": "gap-0"
}
},
"defaults": {
"size": "default",
"layout": "text"
},
"keys": [
"size",
"layout"
],
"compound": []
}
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework twig --dir src --registry-url https://registry.buildy.tw/twig --strict-cdnnpx ui8kit add presets{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"specVersion": 1,
"id": "preset.defaults",
"name": "defaults",
"docs": "Default layout preset: the sizes of the landing blocks as Tailwind classes.\nBlocks combine these with token classes; swap the preset to resize every block at once.",
"source": "ui8kit default sizes (Tailwind scale, no arbitrary values)",
"notes": {
"text": "small type steps for chips, badges and links",
"hero.band": "the inverse band: tall section, large bottom radius",
"hero.title": "display title",
"hero.titleWeights": "one font-weight class per title word",
"hero.composer": "the prompt box",
"logos.row": "one centered row of logo slots",
"logos.glyph": "the Lucide glyph inside a slot: half the slot"
},
"values": {
"text": {
"tiny": "text-xs",
"small": "text-sm"
},
"hero": {
"band": "min-h-160 rounded",
"container": "max-w-7xl",
"head": "gap-12",
"badge": "w-48",
"title": "text-5xl leading-tight",
"titleWeights": [
"font-normal",
"font-semibold",
"font-normal",
"font-semibold"
],
"column": "max-w-xl gap-16",
"composer": "h-40 max-w-xl rounded",
"attach": "w-24",
"promptLine": "h-10",
"model": "w-24"
},
"section": {
"landing": "max-w-6xl"
},
"media": {
"rounded": "rounded"
},
"templates": {
"card": "h-60 w-64",
"image": "h-40 w-58 rounded",
"footer": "h-12 min-h-12"
},
"stats": {
"column": "min-h-28",
"figure": "h-12 text-4xl leading-12 md:h-18 md:text-6xl md:leading-18",
"panel": "gap-24 rounded py-20"
},
"features": {
"cells": "rounded"
},
"news": {
"card": "h-56 w-64",
"cover": "h-40 w-64 rounded",
"title": "top-16",
"strip": "h-12 min-h-12"
},
"cta": {
"panel": "rounded py-20",
"title": "max-w-md",
"text": "max-w-2xl",
"button": "w-40"
},
"logos": {
"row": "h-28 max-w-4xl gap-12 pb-8",
"slot": "size-20",
"glyph": 40
},
"footer": {
"card": "h-72 gap-12 rounded",
"brand": "w-48",
"groups": "gap-x-16"
}
}
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.avatar",
"base": "relative inline-flex shrink-0 overflow-hidden bg-muted rounded-full",
"byKey": {
"size": {
"xs": "size-6",
"sm": "size-8",
"default": "size-10",
"lg": "size-12",
"xl": "size-16"
}
},
"defaults": {
"size": "default"
},
"keys": [
"size"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.badge-square",
"base": "inline-flex shrink-0 items-center justify-center bg-card text-xs font-medium whitespace-nowrap text-foreground inset-ring inset-ring-border rounded",
"byKey": {
"size": {
"sm": "h-4 min-w-4 px-1",
"default": "h-5 px-2"
}
},
"defaults": {
"size": "default"
},
"keys": [
"size"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.file-tree-item",
"base": "flex h-6 w-full items-center gap-4 text-xs font-bold text-muted-foreground data-[state=selected]:bg-muted",
"byKey": {
"kind": {
"folder": "",
"file": "px-8"
}
},
"defaults": {
"kind": "file"
},
"keys": [
"kind"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.icon-tab",
"base": "inline-flex size-8 shrink-0 items-center justify-center text-muted-foreground inset-ring inset-ring-transparent [&>svg]:size-4 rounded",
"byKey": {
"state": {
"default": "",
"active": "bg-card text-foreground inset-ring-border"
}
},
"defaults": {
"state": "default"
},
"keys": [
"state"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.logo-sidebar",
"base": "flex h-8 items-center justify-between",
"byKey": {
"variant": {
"chat": "px-2",
"creator": "pr-4"
}
},
"defaults": {
"variant": "chat"
},
"keys": [
"variant"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "block.media-frame",
"base": "relative w-full overflow-hidden bg-muted text-muted-foreground inset-ring inset-ring-border rounded",
"byKey": {
"ratio": {
"16/9": "aspect-video",
"4/3": "aspect-4/3",
"1/1": "aspect-square",
"3/4": "aspect-3/4",
"21/9": "aspect-21/9"
}
},
"defaults": {
"ratio": "16/9"
},
"keys": [
"ratio"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.nav-item-content",
"base": "flex h-8 min-w-0 flex-1 items-center justify-between px-4 py-2 text-xs font-bold text-muted-foreground inset-ring inset-ring-transparent rounded",
"byKey": {
"level": {
"1": "",
"2": "",
"3": "px-2",
"4": "px-2"
},
"state": {
"default": "",
"selected": "bg-background text-foreground inset-ring-border"
}
},
"defaults": {
"level": "1",
"state": "default"
},
"keys": [
"level",
"state"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.nav-item",
"base": "flex w-full items-center p-2 rounded",
"byKey": {
"level": {
"1": "",
"2": "",
"3": "pr-2 pl-12",
"4": "pr-2 pl-20"
},
"state": {
"default": "",
"selected": ""
}
},
"defaults": {
"level": "1",
"state": "default"
},
"keys": [
"level",
"state"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "block.section-column",
"base": "",
"defaults": {
"measure": "default"
},
"keys": [
"measure"
],
"compound": [],
"byKey": {
"measure": {
"default": "",
"landing": "",
"fill": "",
"xs": "mx-auto w-full max-w-xs",
"sm": "mx-auto w-full max-w-sm",
"md": "mx-auto w-full max-w-md",
"lg": "mx-auto w-full max-w-lg",
"xl": "mx-auto w-full max-w-xl",
"2xl": "mx-auto w-full max-w-2xl",
"3xl": "mx-auto w-full max-w-3xl"
}
}
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "block.section-frame",
"base": "w-full",
"byKey": {
"tone": {
"default": "",
"muted": "bg-muted",
"inverse": "bg-foreground text-background [&_.text-muted-foreground]:text-background/70"
},
"density": {
"roomy": "py-16",
"default": "py-10",
"compact": "py-6",
"flush": "py-0"
},
"align": {
"start": "",
"center": "text-center"
}
},
"defaults": {
"tone": "default",
"density": "default",
"align": "start"
},
"keys": [
"tone",
"density",
"align"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.section-head",
"base": "flex items-center justify-between pr-4 pl-4",
"byKey": {
"size": {
"default": "h-8 py-2 text-xs font-semibold",
"lg": "h-12 py-2 text-sm font-bold"
}
},
"defaults": {
"size": "default"
},
"keys": [
"size"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.sidebar-panel",
"base": "flex shrink-0 flex-col",
"byKey": {
"variant": {
"chat": "w-68 gap-2 pt-6 pr-4 pb-6 pl-4",
"creator": "w-62 justify-between gap-4 p-4"
}
},
"defaults": {
"variant": "chat"
},
"keys": [
"variant"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.switcher-item",
"base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-bold text-muted-foreground inset-ring inset-ring-transparent rounded",
"byKey": {
"size": {
"sm": "h-6 gap-1 px-3 text-xs",
"default": "h-8 gap-2 px-4 text-sm",
"lg": "h-10 gap-2 px-5 text-sm"
},
"state": {
"default": "",
"active": "bg-background text-foreground inset-ring-border"
},
"layout": {
"text": "",
"icon": "[&>svg]:size-4"
}
},
"defaults": {
"size": "default",
"state": "default",
"layout": "text"
},
"keys": [
"size",
"state",
"layout"
],
"compound": [
{
"layout": "icon",
"size": "sm",
"class": "w-6 px-0"
},
{
"layout": "icon",
"size": "default",
"class": "w-8 px-0"
},
{
"layout": "icon",
"size": "lg",
"class": "w-10 px-0"
}
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.switcher",
"base": "inline-flex max-w-full items-center gap-1 overflow-x-auto bg-muted inset-ring inset-ring-border rounded",
"byKey": {
"size": {
"sm": "h-8 p-1",
"default": "h-10 p-1",
"lg": "h-12 p-1"
},
"layout": {
"text": "",
"icon": "gap-0"
}
},
"defaults": {
"size": "default",
"layout": "text"
},
"keys": [
"size",
"layout"
],
"compound": []
}
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework latte --dir src --registry-url https://registry.buildy.tw/latte --strict-cdnnpx ui8kit add presets{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"specVersion": 1,
"id": "preset.defaults",
"name": "defaults",
"docs": "Default layout preset: the sizes of the landing blocks as Tailwind classes.\nBlocks combine these with token classes; swap the preset to resize every block at once.",
"source": "ui8kit default sizes (Tailwind scale, no arbitrary values)",
"notes": {
"text": "small type steps for chips, badges and links",
"hero.band": "the inverse band: tall section, large bottom radius",
"hero.title": "display title",
"hero.titleWeights": "one font-weight class per title word",
"hero.composer": "the prompt box",
"logos.row": "one centered row of logo slots",
"logos.glyph": "the Lucide glyph inside a slot: half the slot"
},
"values": {
"text": {
"tiny": "text-xs",
"small": "text-sm"
},
"hero": {
"band": "min-h-160 rounded",
"container": "max-w-7xl",
"head": "gap-12",
"badge": "w-48",
"title": "text-5xl leading-tight",
"titleWeights": [
"font-normal",
"font-semibold",
"font-normal",
"font-semibold"
],
"column": "max-w-xl gap-16",
"composer": "h-40 max-w-xl rounded",
"attach": "w-24",
"promptLine": "h-10",
"model": "w-24"
},
"section": {
"landing": "max-w-6xl"
},
"media": {
"rounded": "rounded"
},
"templates": {
"card": "h-60 w-64",
"image": "h-40 w-58 rounded",
"footer": "h-12 min-h-12"
},
"stats": {
"column": "min-h-28",
"figure": "h-12 text-4xl leading-12 md:h-18 md:text-6xl md:leading-18",
"panel": "gap-24 rounded py-20"
},
"features": {
"cells": "rounded"
},
"news": {
"card": "h-56 w-64",
"cover": "h-40 w-64 rounded",
"title": "top-16",
"strip": "h-12 min-h-12"
},
"cta": {
"panel": "rounded py-20",
"title": "max-w-md",
"text": "max-w-2xl",
"button": "w-40"
},
"logos": {
"row": "h-28 max-w-4xl gap-12 pb-8",
"slot": "size-20",
"glyph": 40
},
"footer": {
"card": "h-72 gap-12 rounded",
"brand": "w-48",
"groups": "gap-x-16"
}
}
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.avatar",
"base": "relative inline-flex shrink-0 overflow-hidden bg-muted rounded-full",
"byKey": {
"size": {
"xs": "size-6",
"sm": "size-8",
"default": "size-10",
"lg": "size-12",
"xl": "size-16"
}
},
"defaults": {
"size": "default"
},
"keys": [
"size"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.badge-square",
"base": "inline-flex shrink-0 items-center justify-center bg-card text-xs font-medium whitespace-nowrap text-foreground inset-ring inset-ring-border rounded",
"byKey": {
"size": {
"sm": "h-4 min-w-4 px-1",
"default": "h-5 px-2"
}
},
"defaults": {
"size": "default"
},
"keys": [
"size"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.file-tree-item",
"base": "flex h-6 w-full items-center gap-4 text-xs font-bold text-muted-foreground data-[state=selected]:bg-muted",
"byKey": {
"kind": {
"folder": "",
"file": "px-8"
}
},
"defaults": {
"kind": "file"
},
"keys": [
"kind"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.icon-tab",
"base": "inline-flex size-8 shrink-0 items-center justify-center text-muted-foreground inset-ring inset-ring-transparent [&>svg]:size-4 rounded",
"byKey": {
"state": {
"default": "",
"active": "bg-card text-foreground inset-ring-border"
}
},
"defaults": {
"state": "default"
},
"keys": [
"state"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.logo-sidebar",
"base": "flex h-8 items-center justify-between",
"byKey": {
"variant": {
"chat": "px-2",
"creator": "pr-4"
}
},
"defaults": {
"variant": "chat"
},
"keys": [
"variant"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "block.media-frame",
"base": "relative w-full overflow-hidden bg-muted text-muted-foreground inset-ring inset-ring-border rounded",
"byKey": {
"ratio": {
"16/9": "aspect-video",
"4/3": "aspect-4/3",
"1/1": "aspect-square",
"3/4": "aspect-3/4",
"21/9": "aspect-21/9"
}
},
"defaults": {
"ratio": "16/9"
},
"keys": [
"ratio"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.nav-item-content",
"base": "flex h-8 min-w-0 flex-1 items-center justify-between px-4 py-2 text-xs font-bold text-muted-foreground inset-ring inset-ring-transparent rounded",
"byKey": {
"level": {
"1": "",
"2": "",
"3": "px-2",
"4": "px-2"
},
"state": {
"default": "",
"selected": "bg-background text-foreground inset-ring-border"
}
},
"defaults": {
"level": "1",
"state": "default"
},
"keys": [
"level",
"state"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.nav-item",
"base": "flex w-full items-center p-2 rounded",
"byKey": {
"level": {
"1": "",
"2": "",
"3": "pr-2 pl-12",
"4": "pr-2 pl-20"
},
"state": {
"default": "",
"selected": ""
}
},
"defaults": {
"level": "1",
"state": "default"
},
"keys": [
"level",
"state"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "block.section-column",
"base": "",
"defaults": {
"measure": "default"
},
"keys": [
"measure"
],
"compound": [],
"byKey": {
"measure": {
"default": "",
"landing": "",
"fill": "",
"xs": "mx-auto w-full max-w-xs",
"sm": "mx-auto w-full max-w-sm",
"md": "mx-auto w-full max-w-md",
"lg": "mx-auto w-full max-w-lg",
"xl": "mx-auto w-full max-w-xl",
"2xl": "mx-auto w-full max-w-2xl",
"3xl": "mx-auto w-full max-w-3xl"
}
}
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "block.section-frame",
"base": "w-full",
"byKey": {
"tone": {
"default": "",
"muted": "bg-muted",
"inverse": "bg-foreground text-background [&_.text-muted-foreground]:text-background/70"
},
"density": {
"roomy": "py-16",
"default": "py-10",
"compact": "py-6",
"flush": "py-0"
},
"align": {
"start": "",
"center": "text-center"
}
},
"defaults": {
"tone": "default",
"density": "default",
"align": "start"
},
"keys": [
"tone",
"density",
"align"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.section-head",
"base": "flex items-center justify-between pr-4 pl-4",
"byKey": {
"size": {
"default": "h-8 py-2 text-xs font-semibold",
"lg": "h-12 py-2 text-sm font-bold"
}
},
"defaults": {
"size": "default"
},
"keys": [
"size"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.sidebar-panel",
"base": "flex shrink-0 flex-col",
"byKey": {
"variant": {
"chat": "w-68 gap-2 pt-6 pr-4 pb-6 pl-4",
"creator": "w-62 justify-between gap-4 p-4"
}
},
"defaults": {
"variant": "chat"
},
"keys": [
"variant"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.switcher-item",
"base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-bold text-muted-foreground inset-ring inset-ring-transparent rounded",
"byKey": {
"size": {
"sm": "h-6 gap-1 px-3 text-xs",
"default": "h-8 gap-2 px-4 text-sm",
"lg": "h-10 gap-2 px-5 text-sm"
},
"state": {
"default": "",
"active": "bg-background text-foreground inset-ring-border"
},
"layout": {
"text": "",
"icon": "[&>svg]:size-4"
}
},
"defaults": {
"size": "default",
"state": "default",
"layout": "text"
},
"keys": [
"size",
"state",
"layout"
],
"compound": [
{
"layout": "icon",
"size": "sm",
"class": "w-6 px-0"
},
{
"layout": "icon",
"size": "default",
"class": "w-8 px-0"
},
{
"layout": "icon",
"size": "lg",
"class": "w-10 px-0"
}
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.switcher",
"base": "inline-flex max-w-full items-center gap-1 overflow-x-auto bg-muted inset-ring inset-ring-border rounded",
"byKey": {
"size": {
"sm": "h-8 p-1",
"default": "h-10 p-1",
"lg": "h-12 p-1"
},
"layout": {
"text": "",
"icon": "gap-0"
}
},
"defaults": {
"size": "default",
"layout": "text"
},
"keys": [
"size",
"layout"
],
"compound": []
}
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework jinja2 --dir src --registry-url https://registry.buildy.tw/jinja2 --strict-cdnnpx ui8kit add presets{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"specVersion": 1,
"id": "preset.defaults",
"name": "defaults",
"docs": "Default layout preset: the sizes of the landing blocks as Tailwind classes.\nBlocks combine these with token classes; swap the preset to resize every block at once.",
"source": "ui8kit default sizes (Tailwind scale, no arbitrary values)",
"notes": {
"text": "small type steps for chips, badges and links",
"hero.band": "the inverse band: tall section, large bottom radius",
"hero.title": "display title",
"hero.titleWeights": "one font-weight class per title word",
"hero.composer": "the prompt box",
"logos.row": "one centered row of logo slots",
"logos.glyph": "the Lucide glyph inside a slot: half the slot"
},
"values": {
"text": {
"tiny": "text-xs",
"small": "text-sm"
},
"hero": {
"band": "min-h-160 rounded",
"container": "max-w-7xl",
"head": "gap-12",
"badge": "w-48",
"title": "text-5xl leading-tight",
"titleWeights": [
"font-normal",
"font-semibold",
"font-normal",
"font-semibold"
],
"column": "max-w-xl gap-16",
"composer": "h-40 max-w-xl rounded",
"attach": "w-24",
"promptLine": "h-10",
"model": "w-24"
},
"section": {
"landing": "max-w-6xl"
},
"media": {
"rounded": "rounded"
},
"templates": {
"card": "h-60 w-64",
"image": "h-40 w-58 rounded",
"footer": "h-12 min-h-12"
},
"stats": {
"column": "min-h-28",
"figure": "h-12 text-4xl leading-12 md:h-18 md:text-6xl md:leading-18",
"panel": "gap-24 rounded py-20"
},
"features": {
"cells": "rounded"
},
"news": {
"card": "h-56 w-64",
"cover": "h-40 w-64 rounded",
"title": "top-16",
"strip": "h-12 min-h-12"
},
"cta": {
"panel": "rounded py-20",
"title": "max-w-md",
"text": "max-w-2xl",
"button": "w-40"
},
"logos": {
"row": "h-28 max-w-4xl gap-12 pb-8",
"slot": "size-20",
"glyph": 40
},
"footer": {
"card": "h-72 gap-12 rounded",
"brand": "w-48",
"groups": "gap-x-16"
}
}
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.avatar",
"base": "relative inline-flex shrink-0 overflow-hidden bg-muted rounded-full",
"byKey": {
"size": {
"xs": "size-6",
"sm": "size-8",
"default": "size-10",
"lg": "size-12",
"xl": "size-16"
}
},
"defaults": {
"size": "default"
},
"keys": [
"size"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.badge-square",
"base": "inline-flex shrink-0 items-center justify-center bg-card text-xs font-medium whitespace-nowrap text-foreground inset-ring inset-ring-border rounded",
"byKey": {
"size": {
"sm": "h-4 min-w-4 px-1",
"default": "h-5 px-2"
}
},
"defaults": {
"size": "default"
},
"keys": [
"size"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.file-tree-item",
"base": "flex h-6 w-full items-center gap-4 text-xs font-bold text-muted-foreground data-[state=selected]:bg-muted",
"byKey": {
"kind": {
"folder": "",
"file": "px-8"
}
},
"defaults": {
"kind": "file"
},
"keys": [
"kind"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.icon-tab",
"base": "inline-flex size-8 shrink-0 items-center justify-center text-muted-foreground inset-ring inset-ring-transparent [&>svg]:size-4 rounded",
"byKey": {
"state": {
"default": "",
"active": "bg-card text-foreground inset-ring-border"
}
},
"defaults": {
"state": "default"
},
"keys": [
"state"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.logo-sidebar",
"base": "flex h-8 items-center justify-between",
"byKey": {
"variant": {
"chat": "px-2",
"creator": "pr-4"
}
},
"defaults": {
"variant": "chat"
},
"keys": [
"variant"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "block.media-frame",
"base": "relative w-full overflow-hidden bg-muted text-muted-foreground inset-ring inset-ring-border rounded",
"byKey": {
"ratio": {
"16/9": "aspect-video",
"4/3": "aspect-4/3",
"1/1": "aspect-square",
"3/4": "aspect-3/4",
"21/9": "aspect-21/9"
}
},
"defaults": {
"ratio": "16/9"
},
"keys": [
"ratio"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.nav-item-content",
"base": "flex h-8 min-w-0 flex-1 items-center justify-between px-4 py-2 text-xs font-bold text-muted-foreground inset-ring inset-ring-transparent rounded",
"byKey": {
"level": {
"1": "",
"2": "",
"3": "px-2",
"4": "px-2"
},
"state": {
"default": "",
"selected": "bg-background text-foreground inset-ring-border"
}
},
"defaults": {
"level": "1",
"state": "default"
},
"keys": [
"level",
"state"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.nav-item",
"base": "flex w-full items-center p-2 rounded",
"byKey": {
"level": {
"1": "",
"2": "",
"3": "pr-2 pl-12",
"4": "pr-2 pl-20"
},
"state": {
"default": "",
"selected": ""
}
},
"defaults": {
"level": "1",
"state": "default"
},
"keys": [
"level",
"state"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "block.section-column",
"base": "",
"defaults": {
"measure": "default"
},
"keys": [
"measure"
],
"compound": [],
"byKey": {
"measure": {
"default": "",
"landing": "",
"fill": "",
"xs": "mx-auto w-full max-w-xs",
"sm": "mx-auto w-full max-w-sm",
"md": "mx-auto w-full max-w-md",
"lg": "mx-auto w-full max-w-lg",
"xl": "mx-auto w-full max-w-xl",
"2xl": "mx-auto w-full max-w-2xl",
"3xl": "mx-auto w-full max-w-3xl"
}
}
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "block.section-frame",
"base": "w-full",
"byKey": {
"tone": {
"default": "",
"muted": "bg-muted",
"inverse": "bg-foreground text-background [&_.text-muted-foreground]:text-background/70"
},
"density": {
"roomy": "py-16",
"default": "py-10",
"compact": "py-6",
"flush": "py-0"
},
"align": {
"start": "",
"center": "text-center"
}
},
"defaults": {
"tone": "default",
"density": "default",
"align": "start"
},
"keys": [
"tone",
"density",
"align"
],
"compound": []
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.section-head",
"base": "flex items-center justify-between pr-4 pl-4",
"byKey": {
"size": {
"default": "h-8 py-2 text-xs font-semibold",
"lg": "h-12 py-2 text-sm font-bold"
}
},
"defaults": {
"size": "default"
},
"keys": [
"size"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.sidebar-panel",
"base": "flex shrink-0 flex-col",
"byKey": {
"variant": {
"chat": "w-68 gap-2 pt-6 pr-4 pb-6 pl-4",
"creator": "w-62 justify-between gap-4 p-4"
}
},
"defaults": {
"variant": "chat"
},
"keys": [
"variant"
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.switcher-item",
"base": "inline-flex shrink-0 items-center justify-center whitespace-nowrap font-bold text-muted-foreground inset-ring inset-ring-transparent rounded",
"byKey": {
"size": {
"sm": "h-6 gap-1 px-3 text-xs",
"default": "h-8 gap-2 px-4 text-sm",
"lg": "h-10 gap-2 px-5 text-sm"
},
"state": {
"default": "",
"active": "bg-background text-foreground inset-ring-border"
},
"layout": {
"text": "",
"icon": "[&>svg]:size-4"
}
},
"defaults": {
"size": "default",
"state": "default",
"layout": "text"
},
"keys": [
"size",
"state",
"layout"
],
"compound": [
{
"layout": "icon",
"size": "sm",
"class": "w-6 px-0"
},
{
"layout": "icon",
"size": "default",
"class": "w-8 px-0"
},
{
"layout": "icon",
"size": "lg",
"class": "w-10 px-0"
}
]
}
{
"//": "Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.",
"$schema": "../../schema/schemas/variants.schema.json",
"id": "one.switcher",
"base": "inline-flex max-w-full items-center gap-1 overflow-x-auto bg-muted inset-ring inset-ring-border rounded",
"byKey": {
"size": {
"sm": "h-8 p-1",
"default": "h-10 p-1",
"lg": "h-12 p-1"
},
"layout": {
"text": "",
"icon": "gap-0"
}
},
"defaults": {
"size": "default",
"layout": "text"
},
"keys": [
"size",
"layout"
],
"compound": []
}
Props
Names and types come from the xgen specs of the source. Standard HTML attributes (id, role, tabIndex, aria-*) pass through to the root element; the class prop is className in React.
No props data for this item.