+
{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}
)}
-
+
-
- | Property |
- {hasType && Type | }
- {hasDefault && Default | }
- Description |
+
+ | Property |
+ {hasType && Type | }
+ {hasDefault && Default | }
+ Description |
-
+
{properties.map((property, idx) => (
- |
-
+ |
+
{property.prop}
-
+
|
{hasType && (
-
-
+ |
+
{property.type}
-
+
|
)}
{hasDefault && (
-
-
- {property.defaultValue || '—'}
-
+ |
+ {property.defaultValue ? (
+
+ {property.defaultValue}
+
+ ) : (
+
+ —
+
+ )}
|
)}
-
+
{property.description}
|