# 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.
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+ TextResponsiveResponsive alignment
Responsive colorProgressive 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 TextOrientationOrientation 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 ResponsiveBit-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)