# Text The Text Color system creates the illusion of grayscale text through carefully designed dither patterns. When rendered on 1-bit (black and white only) displays, these patterns create an illusion of different shades of gray by using specific arrangements of black and white pixels. ### Usage Use the `text--{shade}` utility classes to apply these text color patterns to any element. Choose from sixteen values: black, gray-10 through gray-75, and white. See the [Responsive Features](#responsive-text) section for responsive variants. Aa black Aa gray-10 Aa gray-15 Aa gray-20 Aa gray-25 Aa gray-30 Aa gray-35 Aa gray-40 Aa gray-45 Aa gray-50 Aa gray-55 Aa gray-60 Aa gray-65 Aa gray-70 Aa gray-75 Aa white Aa black Aa gray-10 Aa gray-15 Aa gray-20 Aa gray-25 Aa gray-30 Aa gray-35 Aa gray-40 Aa gray-45 Aa gray-50 Aa gray-55 Aa gray-60 Aa gray-65 Aa gray-70 Aa gray-75 Aa white Text color shades **Dark Mode Notice:** The color palette appears inverted because TRMNL's dark mode inverts the entire screen, except the images.
Black text
Gray 10 text
Gray 15 text
Gray 20 text
Gray 25 text
Gray 30 text
Gray 35 text
Gray 40 text
Gray 45 text
Gray 50 text
Gray 55 text
Gray 60 text
Gray 65 text
Gray 70 text
Gray 75 text
White text
### Backward Compatibility For backward compatibility, the original shade names (`gray-1` through `gray-7`) are still supported but deprecated. These map to equivalent extended shades:
Gray 1 text (deprecated)
Gray 2 text (deprecated)
Gray 10 text (preferred)
Gray 20 text (preferred)
### Text Alignment Control text alignment using the alignment utility classes. Options include left, center, right, and justify alignment. See the [Responsive Features](#responsive-text) section for breakpoint and orientation variants. This text is left-aligned. This is the default alignment for most text content. This text is center-aligned. Useful for headings and important content. This text is right-aligned. Often used for numerical data or RTL languages. This text is justified. Creates even text edges on both sides but affects readability. Useful for multi-column text layouts. TextAlignment

Left-aligned text

Center-aligned text

Right-aligned text

Justified text

### Responsive Features Text utilities support responsive variants. Alignment classes (`text--left`, `text--center`, `text--right`, `text--justify`) support all three responsive systems: size-based, orientation-based, and bit-depth variants. Text color classes support size-based and orientation-based variants only. #### Breakpoint Prefixes Use breakpoint prefixes like `sm:`, `md:`, `lg:` to apply different alignment or colors at different screen widths. Responsive alignment Left by default, center on md+, right on lg+ Responsive color Gray 50 by default, gray 30 on md+ TextResponsive

Responsive alignment

Responsive color

Progressive alignment

#### Orientation and Size+Orientation Text alignment and colors can adapt to orientation with `portrait:` and `landscape:`, and can be combined with size breakpoints (e.g., `md:portrait:`). Orientation variant Left by default, center in portrait TextOrientation

Orientation variant

Left by default, right on md+ portrait

#### Bit-Depth Responsive (Alignment Only) Alignment classes support bit-depth prefixes like `1bit:`, `2bit:`, and `4bit:` to apply different alignment on different display color capabilities. Bit-depth alignment Center by default, right on 2-bit screens TextBit-Depth Responsive

Bit-depth alignment

Left by default, center on lg+ 4-bit screens

#### Combined Responsive Features Combine size, orientation, and bit-depth modifiers for alignment. Use the pattern `size:orientation:bit-depth:utility` for highly targeted styling.

Right on md+ portrait 2-bit screens

Progressive with bit-depth override

Text color classes support size-based and orientation-based variants only. Bit-depth affects color rendering automatically based on the device (1-bit patterns, 2-bit patterns, 4-bit solid colors)—no bit-depth class prefixes are needed for colors. Previous [Outline Pixel-perfect rounded borders using border-image for 1-bit displays](/framework/docs/outline) Next [Image Optimize images using dithering techniques for 1-bit rendering](/framework/docs/image)