--- title: "@sonr.io/ui" sidebarTitle: "@sonr.io/ui" description: "A package for Sonr's centralized shadcn/ui component library" icon: "palette" --- # @sonr.io/ui ## Overview The `@sonr.io/ui` package serves as our centralized shadcn/ui component library, providing a consistent and accessible design system across Sonr's ecosystem. Leveraging the power of shadcn/ui, we've created a fully customizable and type-safe component library with a primary color of `#17c2ff`. Our UI package is built to provide maximum flexibility while maintaining strict design consistency. ## Component Migration Strategy ### Before: Custom Button Component Previously, our Button component relied on manual variant classes and custom implementations: ```tsx // Old Implementation const Button = ({ variant, className, ...props }) => { const variantClasses = { primary: "bg-blue-500 text-white", secondary: "bg-gray-200 text-black", // Multiple manual variant definitions }; return (