mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-25 02:08:28 +02:00
Fix template tag theme colors
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user