Source

A rawng hrang hrang

Color utility class tlemte hmangin color hmangin awmzia sawi rawh. Hover states nena styling links support a awm bawk.

Rawng

.text-a hmasa ber a ni

.text-secondary tih a ni

.text-hlawhtlinna

.text-hlauhawm tak a ni

.text-vaukhânna

.text-info a ni

.text-eng a ni

.text-thim a ni

.text-taksa a ni

.text-muted a ni

.text-a var a ni

.text-black-50 tih a ni

.text-white-50 tih a ni

<p class="text-primary">.text-primary</p>
<p class="text-secondary">.text-secondary</p>
<p class="text-success">.text-success</p>
<p class="text-danger">.text-danger</p>
<p class="text-warning">.text-warning</p>
<p class="text-info">.text-info</p>
<p class="text-light bg-dark">.text-light</p>
<p class="text-dark">.text-dark</p>
<p class="text-body">.text-body</p>
<p class="text-muted">.text-muted</p>
<p class="text-white bg-dark">.text-white</p>
<p class="text-black-50">.text-black-50</p>
<p class="text-white-50 bg-dark">.text-white-50</p>

Contextual text class te pawh hian hover leh focus state pek tawh anchor-ah te hna a thawk tha hle. Hriat tur chu .text-whiteand .text-mutedclass hian underline tih loh chu additional link styling a nei lo.

<p><a href="#" class="text-primary">Primary link</a></p>
<p><a href="#" class="text-secondary">Secondary link</a></p>
<p><a href="#" class="text-success">Success link</a></p>
<p><a href="#" class="text-danger">Danger link</a></p>
<p><a href="#" class="text-warning">Warning link</a></p>
<p><a href="#" class="text-info">Info link</a></p>
<p><a href="#" class="text-light bg-dark">Light link</a></p>
<p><a href="#" class="text-dark">Dark link</a></p>
<p><a href="#" class="text-muted">Muted link</a></p>
<p><a href="#" class="text-white bg-dark">White link</a></p>

Background rawng a ni

Contextual text color class ang bawkin element pakhat background chu contextual class eng pawhah awlsam takin set rawh. Anchor components te chu hover-ah a thim ang a, text class ang bawkin. Background utilities do not setcolor.text-* , chuvangin a then phei chuan utilities hman i duh ang .

.bg-a hmasa ber a ni
.bg-secondary a ni
.bg-hlawhtlinna
.bg-hlauhawm a ni
.bg-vaukhânna
.bg-ah hian a awm
.bg-eng a ni
.bg-thim a ni
.bg-a var a ni
.bg-a langtlang thei
<div class="p-3 mb-2 bg-primary text-white">.bg-primary</div>
<div class="p-3 mb-2 bg-secondary text-white">.bg-secondary</div>
<div class="p-3 mb-2 bg-success text-white">.bg-success</div>
<div class="p-3 mb-2 bg-danger text-white">.bg-danger</div>
<div class="p-3 mb-2 bg-warning text-dark">.bg-warning</div>
<div class="p-3 mb-2 bg-info text-white">.bg-info</div>
<div class="p-3 mb-2 bg-light text-dark">.bg-light</div>
<div class="p-3 mb-2 bg-dark text-white">.bg-dark</div>
<div class="p-3 mb-2 bg-white text-dark">.bg-white</div>
<div class="p-3 mb-2 bg-transparent text-dark">.bg-transparent</div>

Background gradient a awm bawk

True- a set a nih chuan utility class $enable-gradientsi hmang thei ang . By default, chu disable a ni a, a hnuaia entirnan hi tumruh taka tihchhiat a ni. Hei hi Bootstrap i hman tan tirh atanga customization awlsam zawk nan tih a ni. Heng class te hi enable turin kan Sass option te leh thil dang tam tak zir rawh ..bg-gradient-$enable-gradients

.bg-gradient-a hmasa ber a ni
.bg-gradient-a pahnihna a ni
.bg-gradient-hlawhtlinna
.bg-gradient-hlauhawm tak a ni
.bg-gradient-a vaukhânna
.bg-gradient-a hriat tur a awm
.bg-gradient-eng a ni
.bg-gradient-a thim a ni
<div class="p-3 mb-2 bg-gradient-primary text-white">.bg-gradient-primary</div>
<div class="p-3 mb-2 bg-gradient-secondary text-white">.bg-gradient-secondary</div>
<div class="p-3 mb-2 bg-gradient-success text-white">.bg-gradient-success</div>
<div class="p-3 mb-2 bg-gradient-danger text-white">.bg-gradient-danger</div>
<div class="p-3 mb-2 bg-gradient-warning text-dark">.bg-gradient-warning</div>
<div class="p-3 mb-2 bg-gradient-info text-white">.bg-gradient-info</div>
<div class="p-3 mb-2 bg-gradient-light text-dark">.bg-gradient-light</div>
<div class="p-3 mb-2 bg-gradient-dark text-white">.bg-gradient-dark</div>

Specificity chungchang sawiho

A châng chuan selector dang specificity vangin contextual class hman theih a ni lo. A then phei chuan workaround tling tak chu i element content <div>chu class nen a wrap hi a ni.

Assistive technology-te hnena awmzia thlentu

awmzia belhchhah nan color hman hian hmuh theiha hriattirna chauh a pe a, chu chu assistive technology hmangtute hnenah a thlen dawn lo – screen reader ang chi te. Color hmanga tarlan information chu a thupui a\ang ngeia lang (entir nan, hmuh theih thuziak), a nih loh leh kawng dang hmanga telh a nih theih nan enfiah rawh, chu chu .sr-onlyclass nena thup belh thuziak ang chi a ni.