Here we go, it’s in the formula in airtable directly:
CONCATENATE(
"<div class='badge-pulse' style='padding: 0 6px;'>",
"<sl-badge class='initial-pulse-badge' variant='primary' pill pulse style='pulse: 3s;'>", {notifs non lues},
"</sl-badge>",
"</div>",
"<style>",
"@keyframes pulse {",
"0% { transform: scale(1); }",
"50% { transform: scale(1.1); }",
"100% { transform: scale(1); }",
"}",
".badge-pulse sl-badge:not(:last-of-type) {",
"margin-right: 1rem;",
"}",
"</style>"
),
You have to replace “primary” in variant=‘primary’ by one of the option in this CSS file.
For example I replaced “primary” by “danger” and it turned red.