Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Much softer speaker pill outlines — bumped color-mix from 20% to 55% blend with white in light mode and black in dark mode so the outline sits clearly back from the pill content; still recognizable as the speaker's hue but no longer competing with the name and time text for attention

Murtaza Nasir63a567cec518
diff --git a/static/css/styles.css b/static/css/styles.css
index bcfff29b..bd82e032 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -1697,12 +1697,13 @@ body {
margin: 0 0.5rem 0.5rem 0;
border-radius: 0.375rem;
overflow: hidden;
- /* Hairline outline in a softened version of the speaker's identity
- colour. Uses color-mix to blend the inherited currentColor with
- white so the dark saturated hue (light mode) reads as a little
- softer; .dark mode below mixes with black instead to darken the
- light pastel a notch. */
- border: 1px solid color-mix(in srgb, currentColor 80%, #ffffff 20%);
+ /* Hairline outline in a much-softened version of the speaker's
+ identity colour. Light mode mixes 55% with white so the
+ saturated dark edge becomes a quiet pastel; dark mode mixes
+ 55% with black so the light pastel edge becomes a quiet
+ muted hue. The outline still reads as the speaker's hue but
+ sits well back from the pill content. */
+ border: 1px solid color-mix(in srgb, currentColor 45%, #ffffff 55%);
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
font-size: 0.75rem;
font-weight: 600;
@@ -1710,7 +1711,7 @@ body {
white-space: nowrap;
}
.dark .speaker-tablet-group {
- border-color: color-mix(in srgb, currentColor 80%, #000000 20%);
+ border-color: color-mix(in srgb, currentColor 45%, #000000 55%);
}
.speaker-tablet-group .speaker-tablet-time {
@@ -1974,15 +1975,14 @@ body {
font-weight: 600;
margin-bottom: 0.5rem;
margin-right: 0.5rem;
- /* Hairline outline in a softened speaker-identity colour — see
- .speaker-tablet-group for the rationale; light mode lightens
- the inherited currentColor toward white, dark mode darkens it
- toward black. */
- border: 1px solid color-mix(in srgb, currentColor 80%, #ffffff 20%);
+ /* Hairline outline in a much-softened speaker-identity colour —
+ see .speaker-tablet-group for the rationale; 55% blend with
+ white/black is enough to read as quiet rather than identity. */
+ border: 1px solid color-mix(in srgb, currentColor 45%, #ffffff 55%);
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.dark .speaker-tablet {
- border-color: color-mix(in srgb, currentColor 80%, #000000 20%);
+ border-color: color-mix(in srgb, currentColor 45%, #000000 55%);
}
.speaker-text {