Text
Colors
red, blue, green, yellow, purple, pink, orange, gray, slate, zinc, neutral, stone, amber, lime, emerald, teal, cyan, sky, indigo, violet, fuchsia, rose.
Shades: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900.
Formatting
Sizes
text-xs through text-9xl.
Fonts
Super/subscript
Letter spacing
Paragraphs
Alignment
Spacing
Indentation
Line height
leading-none, leading-tight, leading-snug, leading-normal, leading-relaxed, leading-loose.
Background
Tables
Borders
border, border-0, border-2, border-4, border-8.
Individual sides: border-t, border-b, border-l, border-r.
Border colors
Padding
Cell alignment
Background
Images
Object fit
Aspect ratio
Custom config
Drop atailwind.config.js (or .ts, .mjs, .cjs) in your project root. React DOCX loads it automatically.
Custom colors
Custom fonts
Custom sizes
rem, px, and pt values.
Class merging
Later classes win:What doesn’t work
These have no DOCX equivalent:opacity-*z-*flex,grid,floatshadow-*rotate-*,scale-*,translate-*blur-*,brightness-*bg-gradient-*rounded-*(except on tables/cells via borders)w-*,h-*(use component props instead)
