design: improve badge flair color mixing

This commit is contained in:
Xylight committed 2025-09-23 16:42:15 -07:00
1 parent 15581e7b07
commit 24101665d0
1 file changed
+21 -2
+21 -2
View File
@@ -388,6 +388,8 @@
{/if} {/if}
<style> <style>
@reference '../../../../app.css';
.meta { .meta {
display: grid; display: grid;
grid-template-areas: grid-template-areas:
@@ -428,7 +430,24 @@
} }
:global(.badge-tag-color) { :global(.badge-tag-color) {
background-color: var(--tag-color, #fff) !important; background-color: color-mix(
color: var(--tag-text-color, #000) !important; in oklab,
#eee,
var(--tag-color, #fff)
) !important;
color: color-mix(in oklab, #000, var(--tag-text-color, #000)) !important;
@variant dark {
background-color: color-mix(
in oklab,
#222,
var(--tag-color, #fff)
) !important;
color: color-mix(
in oklab,
#fff 80%,
var(--tag-text-color, #fff)
) !important;
}
} }
</style> </style>