@import '~@angular/material/theming'; @mixin card-theme($theme) { $accent: map-get($theme, accent); $background: map-get($theme, background); $background-color: mat-color($background, card); $primary: map-get($theme, primary); $primary-color: mat-color($primary, 500); $primary-dark: mat-color($primary, A800); $border-color: mat-color($primary, A700); $border-selected-color: mat-color($primary, A600); .card { background-color: $primary-dark; border: 1px solid $border-color; box-sizing: border-box; border-radius: .5rem; outline: none; .selection-icon { opacity: 0; position: absolute; top: -12px; left: -12px; color: $border-color; } &.selected { background-color: #ffffff25; border: 1px solid $border-selected-color; .text-part { .icons { opacity: 1; } } .selection-icon { color: $border-selected-color; opacity: 1; } } .iamuser { color: $primary-color; } } }