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
Font weight
font-thin, font-extralight, font-light, font-normal, font-medium, font-semibold, font-bold, font-extrabold, font-black.
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
Border styles
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:Arbitrary values
Use bracket syntax for values not in the default scale:px, pt.
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)
