Current section

Files

Jump to
prenix_components assets css prenix_components chip.css
Raw

assets/css/prenix_components/chip.css

@layer components {
.chip {
@apply relative max-w-fit inline-flex items-center justify-between;
@apply whitespace-nowrap box-border;
}
.chip-content {
@apply flex-1 text-inherit font-normal px-2;
}
.chip--sm {
@apply px-1 h-6 text-xs;
}
.chip-content--sm {
@apply px-1;
}
.chip--md {
@apply px-1 h-7 text-sm;
}
.chip-content--md {
@apply px-2;
}
.chip--lg {
@apply px-2 h-8 text-base;
}
.chip-content--lg {
@apply px-2;
}
.chip--default {
--chip: hsl(var(--default));
--chip-foreground: hsl(var(--default-foreground));
--chip-flat: hsl(var(--default) / 0.4);
--chip-flat-foreground: hsl(var(--default-foreground));
}
.chip--primary {
--chip: hsl(var(--primary));
--chip-foreground: hsl(var(--primary-foreground));
--chip-flat: hsl(var(--primary) / 0.2);
--chip-flat-foreground: hsl(var(--primary));
}
.chip--secondary {
--chip: hsl(var(--secondary));
--chip-foreground: hsl(var(--secondary-foreground));
--chip-flat: hsl(var(--secondary) / 0.2);
--chip-flat-foreground: hsl(var(--secondary));
}
.chip--success {
--chip: hsl(var(--success));
--chip-foreground: hsl(var(--success-foreground));
--chip-flat: hsl(var(--success) / 0.2);
--chip-flat-foreground: hsl(var(--success));
}
.chip--warning {
--chip: hsl(var(--warning));
--chip-foreground: hsl(var(--warning-foreground));
--chip-flat: hsl(var(--warning) / 0.2);
--chip-flat-foreground: hsl(var(--warning));
}
.chip--danger {
--chip: hsl(var(--danger));
--chip-foreground: hsl(var(--danger-foreground));
--chip-flat: hsl(var(--danger) / 0.2);
--chip-flat-foreground: hsl(var(--danger));
}
.chip--solid {
@apply bg-[--chip];
@apply text-[--chip-foreground];
}
.chip--bordered {
@apply bg-transparent border-[--chip] text-[--chip-flat-foreground] border-2;
}
.chip--flat {
@apply text-[--chip-flat-foreground] bg-[--chip-flat];
}
.chip--radius-full {
@apply rounded-full;
}
.chip--radius-sm {
@apply rounded-md;
}
.chip--radius-md {
@apply rounded-lg;
}
.chip--radius-lg {
@apply rounded-xl;
}
}