Hover borders
Candidate colors and weights for the border that appears when hovering a card, pill or bar.
Each candidate shows the same three shapes the site uses: a card, a pill and a bar. The left set reacts to hover; the right set is pinned in its hover state so the colors can be compared side by side. Today they all use hover:border-primary.
Current
#58a6ff Today's --primary.
GitHub emphasis
#388bfd A step deeper and more saturated.
GitHub blue
#1f6feb Deeper again; GitHub's button blue.
Steel blue
oklch(0.62 0.09 250) Same lightness range, much less saturated.
Slate
oklch(0.52 0.06 260) Darker and greyer; blue only as a tint.
Primary 60%
primary mixed 60% into the page Today's blue, faded toward the background.
Primary 40%
primary mixed 40% into the page Fainter; close to the separator color.
Indigo
oklch(0.62 0.19 280) The theme's old second color.
Neutral
foreground at 45% No blue at all; a brighter border.
Weights
All in GitHub blue (--hover). None of them shift the layout: the extra weight is drawn with box-shadow or outline, not a wider border.
1px border
Today's weight.
2px ring
The border plus a 1px ring outside it.
3px ring
The border plus a 2px ring outside it.
2px inset
Thickens inward, so the shape's outside edge stays put.
Gap ring
A 2px ring with a gap of page color, like the focus ring.
Offset outline
A 2px outline floating 3px out, like the link utility's ring.
2px ring + tint
2px ring with a 12% blue wash inside.
2px ring + glow
2px ring with a soft blue glow around it.
Related
- Outline smoothing
The byline chips' blue outline drawn seven ways, to see which anti-aliases most smoothly.
- Feed entry styles
Test page for comparing feed-entry separators, shadows and layout treatments across image, post and page examples.
- Spacing
Body text line height, paragraph gaps and list spacing, from today's to tighter, side by side.
- Hover speed
Every hover fade on the site at its current speed, next to instant, 10ms, 50ms and 100ms.