increase topic chip contrast

This commit is contained in:
2026-06-22 23:11:48 +02:00
parent e76a33d28f
commit e8c0144441
2 changed files with 33 additions and 9 deletions
@@ -116,6 +116,25 @@ export class TopicChipComponent {
return this.colorTokens?.color ?? this.color;
}
@HostBinding('style.--topic-text')
get topicText(): string {
return this.colorTokens?.color
? this.colorTokens.color
: `color-mix(in srgb, ${this.topicColor} 38%, #0f172a)`;
}
@HostBinding('style.--topic-count-bg')
get topicCountBackground(): string {
return this.colorTokens?.background ?? '#ffffff';
}
@HostBinding('style.--topic-count-text')
get topicCountText(): string {
return this.colorTokens?.color
? this.colorTokens.color
: `color-mix(in srgb, ${this.topicColor} 48%, #0f172a)`;
}
get hasCount(): boolean {
return (
this.count !== undefined && this.count !== null && `${this.count}` !== ''