Skip to content

Tailwind Classes Reference

Ogre resolves these Tailwind v3 classes at render time with no build step.

ClassCSS
flexdisplay: flex
flex-rowflex-direction: row
flex-colflex-direction: column
flex-wrapflex-wrap: wrap
flex-nowrapflex-wrap: nowrap
flex-1flex: 1 1 0%
flex-autoflex: 1 1 auto
flex-initialflex: 0 1 auto
flex-noneflex: none
flex-growflex-grow: 1
flex-grow-0flex-grow: 0
flex-shrinkflex-shrink: 1
flex-shrink-0flex-shrink: 0
hiddendisplay: none
blockdisplay: block
relativeposition: relative
absoluteposition: absolute
ClassCSS
items-startalign-items: flex-start
items-endalign-items: flex-end
items-centeralign-items: center
items-stretchalign-items: stretch
items-baselinealign-items: baseline
justify-startjustify-content: flex-start
justify-endjustify-content: flex-end
justify-centerjustify-content: center
justify-betweenjustify-content: space-between
justify-aroundjustify-content: space-around
justify-evenlyjustify-content: space-evenly
self-autoalign-self: auto
self-startalign-self: flex-start
self-endalign-self: flex-end
self-centeralign-self: center
self-stretchalign-self: stretch

Pattern: {property}-{size} where size maps to the Tailwind spacing scale.

SizeValue
00px
px1px
0.52px
14px
1.56px
28px
312px
416px
520px
624px
832px
1040px
1248px
1664px
2080px
2496px
32128px
40160px
48192px
64256px
80320px
96384px

Prefixes: p, px, py, pt, pr, pb, pl, m, mx, my, mt, mr, mb, ml, gap, gap-x, gap-y, space-x, space-y

ClassCSS
w-{n}width: {n * 4}px
h-{n}height: {n * 4}px
w-fullwidth: 100%
h-fullheight: 100%
w-screenwidth: 100vw
h-screenheight: 100vh
w-autowidth: auto
h-autoheight: auto
w-1/2width: 50%
w-1/3width: 33.333%
w-2/3width: 66.667%
w-1/4width: 25%
w-3/4width: 75%
ClassCSS
text-xsfont-size: 12px
text-smfont-size: 14px
text-basefont-size: 16px
text-lgfont-size: 18px
text-xlfont-size: 20px
text-2xlfont-size: 24px
text-3xlfont-size: 30px
text-4xlfont-size: 36px
text-5xlfont-size: 48px
text-6xlfont-size: 60px
text-7xlfont-size: 72px
text-8xlfont-size: 96px
text-9xlfont-size: 128px
font-thinfont-weight: 100
font-lightfont-weight: 300
font-normalfont-weight: 400
font-mediumfont-weight: 500
font-semiboldfont-weight: 600
font-boldfont-weight: 700
font-extraboldfont-weight: 800
font-blackfont-weight: 900
text-lefttext-align: left
text-centertext-align: center
text-righttext-align: right
italicfont-style: italic
uppercasetext-transform: uppercase
lowercasetext-transform: lowercase
capitalizetext-transform: capitalize
underlinetext-decoration: underline
line-throughtext-decoration: line-through
truncateoverflow: hidden; text-overflow: ellipsis; white-space: nowrap
line-clamp-{n}-webkit-line-clamp: {n}

Pattern: {text|bg|border}-{palette}-{shade}

Palettes: slate, gray, zinc, neutral, stone, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose

Shades: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950

Special: text-white, text-black, text-transparent, bg-white, bg-black, bg-transparent

ClassCSS
borderborder-width: 1px
border-0border-width: 0
border-2border-width: 2px
border-4border-width: 4px
border-8border-width: 8px
rounded-noneborder-radius: 0
rounded-smborder-radius: 2px
roundedborder-radius: 4px
rounded-mdborder-radius: 6px
rounded-lgborder-radius: 8px
rounded-xlborder-radius: 12px
rounded-2xlborder-radius: 16px
rounded-3xlborder-radius: 24px
rounded-fullborder-radius: 9999px
ClassCSS
shadow-smSmall shadow
shadowDefault shadow
shadow-mdMedium shadow
shadow-lgLarge shadow
shadow-xlExtra large shadow
shadow-2xl2XL shadow
shadow-noneNo shadow
opacity-{n}opacity: {n/100} (0-100)
ClassCSS
blur-nonefilter: blur(0)
blur-smfilter: blur(4px)
blurfilter: blur(8px)
blur-mdfilter: blur(12px)
blur-lgfilter: blur(16px)
blur-xlfilter: blur(24px)
blur-2xlfilter: blur(40px)
blur-3xlfilter: blur(64px)
brightness-{n}filter: brightness({n/100}) (0, 50, 75, 90, 95, 100, 105, 110, 125, 150, 200)
grayscalefilter: grayscale(100%)
grayscale-0filter: grayscale(0)
ClassCSS
rotate-{n}transform: rotate({n}deg) (0, 1, 2, 3, 6, 12, 45, 90, 180)
scale-{n}transform: scale({n/100}) (0, 50, 75, 90, 95, 100, 105, 110, 125, 150)
scale-x-{n}transform: scaleX({n/100})
scale-y-{n}transform: scaleY({n/100})
translate-x-{n}transform: translateX({spacing})
translate-y-{n}transform: translateY({spacing})
skew-x-{n}transform: skewX({n}deg)
skew-y-{n}transform: skewY({n}deg)

Use bracket notation for any property:

<div class="text-[32px] bg-[#ff5500] w-[200px] p-[20px] rounded-[12px] gap-[8px] leading-[1.5] tracking-[0.05em] rotate-[15deg] blur-[2px] scale-[1.2]">
</div>