You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks! Card colours work through the utility classes, e.g. :class-card: sd-bg-primary sd-bg-text-primary. The CSS variable to override is --sd-color-primary (and --sd-color-primary-text, --sd-color-primary-highlight), not --bg-primary; see the CSS variables page. For a hover colour on a clickable card, add a rule such as .sd-card.sd-bg-primary.sd-card-hover:hover { background-color: var(--sd-color-primary-highlight) !important; } to your custom CSS. Closing as answered.
Activity
chrisjsewell commentedon Nov 10, 2026
Thanks! Card colours work through the utility classes, e.g.
:class-card: sd-bg-primary sd-bg-text-primary. The CSS variable to override is--sd-color-primary(and--sd-color-primary-text,--sd-color-primary-highlight), not--bg-primary; see the CSS variables page. For a hover colour on a clickable card, add a rule such as.sd-card.sd-bg-primary.sd-card-hover:hover { background-color: var(--sd-color-primary-highlight) !important; }to your custom CSS. Closing as answered.