text-emphasis-color

Sets the color of emphasis marks (like the dots or circles often used in East Asian typography) added to text.

It is documented as part of the CSS Text Decoration specification.

/* Usage Example */
em {
  text-emphasis: circle;
  /* Sets the color of the emphasis circles to our primary brand color */
  text-emphasis-color: var(--brand-primary);
}

/* Global values */
text-emphasis-color: inherit;
text-emphasis-color: initial;
text-emphasis-color: revert;
text-emphasis-color: revert-layer;
text-emphasis-color: unset;
Widely available Since 2022 95% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2022.

99+
46+
7+
99+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC