Utilities
Colors
Color text, icons, backgrounds and borders by name: text-green, text-red, bg-blue-100, border-amber-300.
Text colors
text-<color> picks the right shade for light and dark mode — the same text color its theme uses (theme-green → text-green).
text-blue
text-indigo
text-purple
text-pink
text-red
text-orange
text-amber
text-yellow
text-lime
text-green
text-teal
text-cyan
text-brown
text-gray
<span class="text-blue"><i class="mi mi-circle-check"></i> text-blue</span>
<span class="text-indigo"><i class="mi mi-circle-check"></i> text-indigo</span>
<span class="text-purple"><i class="mi mi-circle-check"></i> text-purple</span>
<span class="text-pink"><i class="mi mi-circle-check"></i> text-pink</span>
<span class="text-red"><i class="mi mi-circle-check"></i> text-red</span>
<span class="text-orange"><i class="mi mi-circle-check"></i> text-orange</span>
<span class="text-amber"><i class="mi mi-circle-check"></i> text-amber</span>
<span class="text-yellow"><i class="mi mi-circle-check"></i> text-yellow</span>
<span class="text-lime"><i class="mi mi-circle-check"></i> text-lime</span>
<span class="text-green"><i class="mi mi-circle-check"></i> text-green</span>
<span class="text-teal"><i class="mi mi-circle-check"></i> text-teal</span>
<span class="text-cyan"><i class="mi mi-circle-check"></i> text-cyan</span>
<span class="text-brown"><i class="mi mi-circle-check"></i> text-brown</span>
<span class="text-gray"><i class="mi mi-circle-check"></i> text-gray</span>
Icons
Icons take the text color, so the same classes color them.
<i class="mi mi-circle-check text-green"></i>
<i class="mi mi-triangle-alert text-amber"></i>
<i class="mi mi-circle-x text-red"></i>
<i class="mi mi-info text-cyan"></i>
<i class="mi mi-heart text-pink"></i>
<i class="mi mi-star text-yellow"></i>
<i class="mi mi-settings text-muted"></i>
Exact shades
Every color comes in 12 shades, from -25 (almost white) to -950 (almost black), for text, backgrounds and borders. These stay exactly the same in light and dark mode — use the plain text-green when it should adapt.
2550100200300400500600700800900950
text-blue-400text-blue-500text-blue-600text-blue-700
<span class="text-green-700">…</span>
<div class="bg-green-50 border-green-200">…</div>
<!-- shades: 25 · 50 · 100 · 200 · 300 · 400 · 500 · 600 · 700 · 800 · 900 · 950 -->
Backgrounds and borders
Your trial ends in 3 days.
Moey Pro is here.
<div class="bg-amber-50 border border-amber-200 text-amber-900">…</div>
<div class="bg-indigo-600 text-white">…</div>
Text levels
text-body — main text
text-subtle — secondary text
text-muted — hints, captions, timestamps
text-default — the default color (blue unless you change it)
text-reset — takes the parent’s color (e.g. a quiet link)
<span class="text-body">text-body — main text</span>
<span class="text-subtle">text-subtle — secondary text</span>
<span class="text-muted">text-muted — hints, captions, timestamps</span>
<span class="text-default">text-default — the default color (blue unless you change it)</span>
<a href="#text-color" class="text-reset">text-reset — takes the parent’s color (e.g. a quiet link)</a>
In real use
- Payment received
- Order shipped
- Card declined
<li class="list-group-item">
<i class="mi mi-circle-check text-green"></i>
<div class="list-group-content">Payment received</div>
<span class="list-group-meta text-muted">2m</span>
</li>
| Class | Color |
|---|---|
text-<color> | Adapts to light / dark mode. Colors: blue · indigo · purple · pink · red · orange · amber · yellow · lime · green · teal · cyan · brown · gray |
text-<color>-<shade> · bg-<color>-<shade> · border-<color>-<shade> | An exact shade: 25 · 50 · 100 · 200 · 300 · 400 · 500 · 600 · 700 · 800 · 900 · 950 |
text-body · text-subtle · text-muted · text-default | Main · secondary · muted text · the default color |
text-white · text-black · text-reset · bg-white · bg-black · bg-transparent | Fixed colors · the parent’s color |
Utilities are Moey’s last layer, so they win over component colors without !important. For whole components, use themes: theme-green colors a button, badge or alert in one go.