refactor(ui): enhance component className structure for better readability and maintainability

This commit is contained in:
Maximilian Liebmann 2025-05-30 19:45:49 +02:00
parent 9cb378f197
commit 573c3053b6
9 changed files with 553 additions and 24 deletions

View file

@ -7,7 +7,33 @@ function Card({ className, ...props }: React.ComponentProps<'div'>) {
<div
data-slot='card'
className={cn(
'bg-card flex flex-col gap-6 py-6 shadow-[4px_4px_9px_9px_rgba(0,0,0,0.25)] rounded-[11px]',
/* Text */
'',
/* Background */
'bg-card',
/* Border */
'rounded-[11px]',
/* Font */
'',
/* Cursor */
'',
/* Ring */
'',
/* Outline */
'',
/* Shadow */
'shadow-[4px_4px_9px_9px_rgba(0,0,0,0.25)]',
/* Opacity */
'',
/* Scaling */
'',
/* Spacing */
'gap-6 py-6',
/* Alignment */
'flex flex-col',
/* Miscellaneous */
'',
/* ////////// */
className,
)}
{...props}