@kelvininc/ui-components
Version:
Kelvin UI Components
75 lines (73 loc) • 2.38 kB
CSS
/** HEADINGS **/
/** LABELS **/
/** SPANS **/
/** PARAGRAPHS **/
/** TODO: CODE/CONSOLE **/
@property --rotation {
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
}
@keyframes rotate-border {
to {
--rotation: 360deg;
}
}
/**
* Design Tokens - Auto-generated by Style Dictionary
* Do not edit manually - run `pnpm tokens:build` to regenerate
*/
kv-dropdown-base:not(.hydrated) > [slot=list] {
display: none;
}
/* stylelint-disable csstools/value-no-unknown-custom-properties */
/* stylelint-enable csstools/value-no-unknown-custom-properties */
:host {
/**
* @prop --badge-min-width: Badge's minimum width.
* @prop --badge-max-width: Badge's maximum width.
* @prop --badge-height: Badge's height.
* @prop --badge-width: Badge's width.
* @prop --badge-background-color-primary: Badge's background color when type is primary.
* @prop --badge-background-color-secondary: Badge's background color when type is secondary.
* @prop --badge-text-color-primary: Badge's text color when type is primary.
* @prop --badge-text-color-secondary: Badge's text color when type is secondary.
*/
--badge-min-width: unset;
--badge-max-width: fit-content;
--badge-height: var(--size-md);
--badge-width: unset;
--badge-background-color-primary: var(--background-container-accent-purple-default);
--badge-text-color-primary: var(--text-container-accent-purple-default);
--badge-background-color-secondary: var(--background-interactive-counter-default);
--badge-text-color-secondary: var(--text-interactive-counter-default);
}
.badge {
font-family: Proxima Nova;
font-weight: 400;
font-size: 14px;
line-height: 20px;
letter-spacing: 0;
display: flex;
align-items: center;
justify-content: center;
min-width: var(--badge-min-width);
max-width: var(--badge-max-width);
height: var(--badge-height);
width: var(--badge-width);
padding: 0 var(--spacing-xs);
line-height: unset;
border-radius: var(--radius-full);
}
.badge--type-primary {
color: var(--badge-text-color-primary);
background-color: var(--badge-background-color-primary);
}
.badge--type-secondary {
color: var(--badge-text-color-secondary);
background-color: var(--badge-background-color-secondary);
}
.badge.disabled {
color: var(--text-interactive-counter-disabled);
background-color: var(--background-interactive-counter-disabled);
}