Tailwind CSS is a utility-first CSS framework for rapidly building custom UIs. It offers atomic classes for styling elements without leaving your HTML.
NOTE: Tested using the latest version at time of writing, v4
sm:, md:, lg:, xl:.mt-[22px], bg-[#1a1a1a].container, mx-auto, max-w-screen-mdbox-border, box-contentblock, inline-block, flex, grid, hiddenstatic, relative, absolute, fixed, stickyz-0 to z-50, or custom: z-[9999]flex, flex-row, flex-col, items-center, justify-between, flex-wrapgrid, grid-cols-3, gap-4, place-items-centerm-4, mt-2, mx-auto, -ml-1p-4, pt-1, px-6gap-2, gap-x-4, gap-y-1w-full, w-screen, w-[450px]h-10, min-h-screen, h-fitmax-w-md, min-h-[300px]text-xs, text-sm, text-lg, text-2xlfont-light, font-bold, font-blacktext-gray-700, text-red-500, text-whiteleading-tight, leading-[1.6]tracking-wide, tracking-tighttext-left, text-center, text-justifybg-blue-500, bg-gray-900, bg-white/80bg-[url('/bg.svg')], bg-cover, bg-center, bg-no-repeatborder, border-2, border-gray-300, border-dashedrounded, rounded-lg, rounded-[12px]shadow, shadow-md, shadow-lg, shadow-noneopacity-50, opacity-0, opacity-100mix-blend-multiply, mix-blend-screentransition, duration-300, ease-in-out, hover:transition-colorshover:bg-blue-600, hover:underlinefocus:outline-none, focus:ring-2, focus:ring-blue-500active:scale-95, disabled:opacity-50list-none, list-disc, list-decimal, list-inside, list-outsideoverflow-hidden, overflow-auto, overflow-scrollsnap-x, snap-start, snap-mandatorytransform, scale-105, rotate-45, translate-x-2cursor-pointer, cursor-not-allowedselect-none, select-textpointer-events-none, pointer-events-autodark: prefix to style in dark mode.dark:bg-gray-800, dark:text-whitetailwind.config.js as 'media' or 'class'tailwind.config.jsmodule.exports = {
content: ['./src/**/*.{html,js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
brand: '#1e40af'
},
},
},
plugins: [],
};
@tailwindcss/forms, then plugin: [require('@tailwindcss/forms')]Use Tailwind to build layouts directly in your markup with precision. Remember: no custom class names, just compose.
For full documentation, see https://tailwindcss.com/docs