Dev Helpers

Tailwind CSS / Editorial details

Ruby pronunciation note

Dev Helpers · June 19, 2025

Ruby markup carries the pronunciation relationship while utility classes adjust its typography. Annotation size should remain legible on small screens.

Worked example

<ruby class="demo [ruby-position:over] text-[2rem]">山<rt>やま</rt></ruby>

Implementation notes

Leave pronunciation content in the document so assistive technologies and browsers can use the structure. A tiny absolutely positioned label loses that association.

Try it yourself

Use a long reading above a short base character.

Open the Tailwind CSS example →

Editorial date June 19, 2025 · Published December 6, 2026

Related articles

Selection background swatch

The selection variant lets a component specify its own selected-text colours. Readability depends on the selected foreground as well as the highlight.

Skew a label

A skew utility changes the painted shape without allocating extra room for the slanted edge. A separate inner wrapper can keep lettering upright.

Horizontal flex row

Flex utilities define the row but children can still resist shrinking. Inspect long labels before adding more breakpoints.