--- title: text-emphasis-color slug: Web/CSS/text-emphasis-color tags: - CSS - Colores HTML - Decoración de Texto CSS - Estilizando HTML - Estilos CSS - Propiedad CSS - Referencia - text-decoration-color - Énfasis de Texto translation_of: Web/CSS/text-emphasis-color ---
{{CSSRef}}

La propiedad CSS text-emphasis-color (que podría traducirse como color del texto con énfasis) define el color de las marcas de énfasis. Este valor también puede definirse usando el atajo {{cssxref("text-emphasis")}}

/* Valor inicial*/
text-emphasis-color: currentColor;

/* <color>  */
text-emphasis-color: #555;
text-emphasis-color: blue;
text-emphasis-color: rgba(90, 200, 160, 0.8);
text-emphasis-color: transparent;

/* Valores globales */
text-emphasis-color: inherit;
text-emphasis-color: initial;
text-emphasis-color: unset;

{{cssinfo}}

Sintáxis

Valores

<color>
Define el color de las marcas de énfasis. Si ningún color es declarado, el color por defecto es currentColor (color actual).

Sintáxis Formal

{{csssyntax}}

Ejemplos

CSS

h3 {
  text-emphasis-color: #555;
  text-emphasis-style: "*";
}

HTML

<p>Este es un ejemplo:</p>

<h3>Esto está marcado con énfasis!</h3>

Resultado

{{EmbedLiveSample("Examples", 450, 100)}}Ejemplo incrustado en vivo

Especificaciones

Especificaciones Estado Comentario
{{SpecName('CSS3 Text Decoration', '#text-emphasis-color-property', 'text-emphasis')}} {{Spec2('CSS3 Text Decoration')}} Initial definition

Compatibilidad de Navegadores

{{Compat("css.properties.text-emphasis-color")}}

Ver También