"use client" import * as React from "react" import { Card, CardContent } from "@/registry/bases/aria/ui/card" import { STYLES } from "@/registry/styles" import { FONTS } from "@/app/(create)/lib/fonts" import { useDesignSystemSearchParams } from "@/app/(create)/lib/search-params" export function StyleOverview() { const [params] = useDesignSystemSearchParams() const currentFont = React.useMemo( () => FONTS.find((font) => font.value === params.font), [params.font] ) const currentFontHeading = React.useMemo( () => FONTS.find((font) => font.value === params.fontHeading), [params.fontHeading] ) const currentStyle = React.useMemo( () => STYLES.find((style) => style.name === params.style), [params.style] ) return (
{currentStyle?.title} -{" "} {currentFontHeading?.name && currentFontHeading.name !== currentFont?.name ? currentFontHeading.name : currentFont?.name}
Designers love packing quirky glyphs into test phrases. This is a preview of the typography styles.
{[ "--background", "--foreground", "--primary", "--secondary", "--muted", "--accent", "--border", "--chart-1", "--chart-2", "--chart-3", "--chart-4", "--chart-5", ].map((variant) => (
{variant}
))}
) }