Tailwind Class Sorter
Sort Tailwind classes and detect conflicting utilities with a winner explanation.
OpenGrab a pure CSS background pattern or a small utility class without searching old projects for it.
Click a pattern (dots, stripes, checkerboard, grid) or a utility.
The editor shows the full rule for the snippet you picked.
Change the selector, colors and background-size for your design.
Copy the snippet into your stylesheet or component.
A dashboard empty state looks bare, and a faint dot grid behind it would help. You know it can be done with radial-gradient alone, but not the exact sizes. One click gives you a pattern you can paste and recolor.
Seven snippets sit behind buttons. Four are background patterns built only with gradients: dots (a radial-gradient repeated every 18 px), diagonal stripes (repeating-linear-gradient at -45 degrees), a checkerboard made of four layered linear gradients, and a 24 px line grid. Three are everyday utilities: a flex rule that centers content both ways, a single-line truncate class with ellipsis, and a visually hidden class that keeps text available to screen readers. Click a button and the code appears in the editor, ready to copy.
The patterns are written for body with a dark slate palette. To use one on a card, change the selector, then swap the two colors; for a subtle effect, keep them close in lightness. background-size controls the spacing, so doubling it gives a looser pattern. Because the patterns are gradients, they scale cleanly on high-density screens and add no image requests. If you need richer gradients for the colors themselves, the CSS gradient maker helps, and the palette generator suggests matching shades. More generators live in the CSS tools hub.
Keyboard shortcut
Answers for this tool. For site-wide help, open the FAQ hub.
No. Every pattern is made from CSS gradients only, so there are no extra network requests and the pattern stays sharp at any zoom level.
No, it truncates a single line. Multi-line clamping needs -webkit-line-clamp with display: -webkit-box, which you can add separately.