2024-02-10 14:09:54 +00:00
|
|
|
export default {
|
2024-02-12 15:21:38 +00:00
|
|
|
variables: {
|
|
|
|
colorScheme: {
|
|
|
|
light: {
|
2024-02-12 22:57:06 +00:00
|
|
|
primary: {
|
|
|
|
background: '{primary.color}',
|
|
|
|
textColor: '{primary.inverseColor}'
|
|
|
|
},
|
2024-02-12 15:21:38 +00:00
|
|
|
secondary: {
|
|
|
|
background: '{surface.100}',
|
|
|
|
textColor: '{surface.600}'
|
|
|
|
},
|
|
|
|
success: {
|
|
|
|
background: '{green.500}',
|
|
|
|
textColor: '{surface.0}'
|
|
|
|
},
|
|
|
|
info: {
|
|
|
|
background: '{sky.500}',
|
|
|
|
textColor: '{surface.0}'
|
|
|
|
},
|
|
|
|
warn: {
|
|
|
|
background: '{orange.500}',
|
|
|
|
textColor: '{surface.0}'
|
|
|
|
},
|
|
|
|
danger: {
|
|
|
|
background: '{red.500}',
|
|
|
|
textColor: '{surface.0}'
|
|
|
|
},
|
|
|
|
contrast: {
|
|
|
|
background: '{surface.950}',
|
|
|
|
textColor: '{surface.0}'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
dark: {
|
2024-02-12 22:57:06 +00:00
|
|
|
primary: {
|
|
|
|
background: '{primary.color}',
|
|
|
|
textColor: '{primary.inverseColor}'
|
|
|
|
},
|
2024-02-12 15:21:38 +00:00
|
|
|
secondary: {
|
|
|
|
background: '{surface.800}',
|
|
|
|
textColor: '{surface.300}'
|
|
|
|
},
|
|
|
|
success: {
|
|
|
|
background: '{green.400}',
|
|
|
|
textColor: '{green.950}'
|
|
|
|
},
|
|
|
|
info: {
|
|
|
|
background: '{sky.400}',
|
|
|
|
textColor: '{sky.950}'
|
|
|
|
},
|
|
|
|
warn: {
|
|
|
|
background: '{orange.400}',
|
|
|
|
textColor: '{orange.950}'
|
|
|
|
},
|
|
|
|
danger: {
|
|
|
|
background: '{red.400}',
|
|
|
|
textColor: '{red.950}'
|
|
|
|
},
|
|
|
|
contrast: {
|
|
|
|
background: '{surface.0}',
|
|
|
|
textColor: '{surface.950}'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2024-02-10 14:09:54 +00:00
|
|
|
css: `
|
|
|
|
.p-badge {
|
|
|
|
display: inline-flex;
|
|
|
|
border-radius: 10px;
|
|
|
|
justify-content: center;
|
|
|
|
padding: 0 0.5rem;
|
2024-02-12 22:57:06 +00:00
|
|
|
background: var(--p-badge-primary-background);
|
|
|
|
color: var(--p-badge-primary-text-color);
|
2024-02-10 14:09:54 +00:00
|
|
|
font-size: 0.75rem;
|
|
|
|
font-weight: 700;
|
|
|
|
min-width: 1.5rem;
|
|
|
|
height: 1.5rem;
|
|
|
|
line-height: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlay-badge {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-overlay-badge .p-badge {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
transform: translate(50%, -50%);
|
|
|
|
transform-origin: 100% 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-badge-dot {
|
|
|
|
width: 0.5rem;
|
|
|
|
min-width: 0.5rem;
|
|
|
|
height: 0.5rem;
|
|
|
|
border-radius: 50%;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-badge-no-gutter {
|
|
|
|
padding: 0;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-badge-secondary {
|
2024-02-12 15:21:38 +00:00
|
|
|
background-color: var(--p-badge-secondary-background);
|
|
|
|
color: var(--p-badge-secondary-text-color);
|
2024-02-10 14:09:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-badge-success {
|
2024-02-12 15:21:38 +00:00
|
|
|
background-color: var(--p-badge-success-background);
|
|
|
|
color: var(--p-badge-success-text-color);
|
2024-02-10 14:09:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-badge-info {
|
2024-02-12 15:21:38 +00:00
|
|
|
background-color: var(--p-badge-info-background);
|
|
|
|
color: var(--p-badge-info-text-color);
|
2024-02-10 14:09:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-badge-warning {
|
2024-02-12 15:21:38 +00:00
|
|
|
background-color: var(--p-badge-warn-background);
|
|
|
|
color: var(--p-badge-warn-text-color);
|
2024-02-10 14:09:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-badge-danger {
|
2024-02-12 15:21:38 +00:00
|
|
|
background-color: var(--p-badge-danger-background);
|
|
|
|
color: var(--p-badge-danger-text-color);
|
2024-02-10 14:09:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-badge-contrast {
|
2024-02-12 15:21:38 +00:00
|
|
|
background-color: var(--p-badge-contrast-background);
|
|
|
|
color: var(--p-badge-contrast-text-color);
|
2024-02-10 14:09:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-badge-lg {
|
|
|
|
font-size: 1.125rem;
|
|
|
|
min-width: 2.25rem;
|
|
|
|
height: 2.25rem;
|
|
|
|
line-height: 2.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-badge-xl {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
min-width: 3rem;
|
|
|
|
height: 3rem;
|
|
|
|
line-height: 3rem;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|