diff --git a/src/layouts/MdxWrapper.tsx b/src/layouts/MdxWrapper.tsx index 3775ded..206cb0c 100644 --- a/src/layouts/MdxWrapper.tsx +++ b/src/layouts/MdxWrapper.tsx @@ -360,8 +360,8 @@ export function MdxWrapper({ Component }: { Component: MdxComponent }) { data-ai-toolbar="true" className="not-prose mb-6 flex flex-wrap items-center justify-between gap-2 pb-4 border-b border-border" > -
- +
+ AI Context: {/* Palette Fine-Tuning */} -
-
+
+
Primary Brand Palette (`data-primary="{primaryColor}"`) -
+
{PRIMARY_COLORS.map(c => { const isSelected = primaryColor === c.id; return ( @@ -155,11 +156,11 @@ export function CustomizationPlayground() {
-
+
Base Neutral Palette (`data-base="{baseColor}"`) -
+
{BASE_COLORS.map(c => { const isSelected = baseColor === c.id; return ( @@ -205,54 +206,56 @@ export function CustomizationPlayground() {
- - - - Token Variable - Category - Light Value (`:root`) - Dark Value (`.dark`) - Role - - - - {activePreset.tokens.map(token => ( - - - {token.variable} - - - - - - - {token.lightPreviewColor && ( - - )} - {token.lightValue} - - - - - {token.darkPreviewColor && ( - - )} - {token.darkValue} - - - - {token.description} - + +
+ + + Token Variable + Category + Light Value (`:root`) + Dark Value (`.dark`) + Role - ))} - -
+ + + {activePreset.tokens.map(token => ( + + + {token.variable} + + + + + + + {token.lightPreviewColor && ( + + )} + {token.lightValue} + + + + + {token.darkPreviewColor && ( + + )} + {token.darkValue} + + + + {token.description} + + + ))} + + +
diff --git a/src/partials/PropertyDoc.tsx b/src/partials/PropertyDoc.tsx index 5f0f8ed..0749e18 100644 --- a/src/partials/PropertyDoc.tsx +++ b/src/partials/PropertyDoc.tsx @@ -19,49 +19,55 @@ export function PropertyDoc({ title, properties, className }: PropertyDocProps) const hasDefault = properties.some(p => p.defaultValue !== undefined); return ( -
+
{title && (

{title}

)} -
+
- - - {hasType && } - {hasDefault && } - + + + {hasType && } + {hasDefault && } + - + {properties.map((property, idx) => ( - {hasType && ( - )} {hasDefault && ( - )}
PropertyTypeDefaultDescription
PropertyTypeDefaultDescription
- + + {property.prop} - + - + + {property.type} - + - - {property.defaultValue || '—'} - + + {property.defaultValue ? ( + + {property.defaultValue} + + ) : ( + + — + + )} -

+

{property.description}