Fix template tag theme colors

This commit is contained in:
Gregory Schier
2026-01-28 13:08:22 -08:00
parent d031ff231a
commit 9c45254952
2 changed files with 5 additions and 4 deletions

View File

@@ -101,8 +101,8 @@
.template-tag { .template-tag {
/* Colors */ /* Colors */
@apply bg-surface text-text border-border-subtle whitespace-nowrap cursor-default; @apply bg-surface text-text-subtle border-border-subtle whitespace-nowrap cursor-default;
@apply hover:border-border-subtle hover:text-text hover:bg-surface-highlight; @apply hover:border-border hover:text-text hover:bg-surface-highlight;
@apply inline border px-1 mx-[0.5px] rounded dark:shadow; @apply inline border px-1 mx-[0.5px] rounded dark:shadow;

View File

@@ -104,11 +104,12 @@ function templateTagColorVariables(color: YaakColor | null): Partial<CSSVariable
if (color == null) return {}; if (color == null) return {};
return { return {
text: color.lift(0.6).css(), text: color.lift(0.7).css(),
textSubtle: color.lift(0.4).css(), textSubtle: color.lift(0.4).css(),
textSubtlest: color.css(), textSubtlest: color.css(),
surface: color.lower(0.2).translucify(0.8).css(), surface: color.lower(0.2).translucify(0.8).css(),
border: color.lower(0.2).translucify(0.2).css(), border: color.translucify(0.6).css(),
borderSubtle: color.translucify(0.8).css(),
surfaceHighlight: color.lower(0.1).translucify(0.7).css(), surfaceHighlight: color.lower(0.1).translucify(0.7).css(),
}; };
} }