# Background Color

{% hint style="info" %}
Since `1.5.0`
{% endhint %}

## Class

```css
.bg--{colorName}
```

```css
.bg--{dark | light}
```

```css
.bg--{info | success | warning | danger}
```

```css
.bg--black--{10 | 20 | 30 | 40 | 50}
```

## Code Sample

#### .bg--{colorName}

```markup
<div class="bg--navy rounded--5 pa--2 txt--white">.bg--navy</div>
<div class="bg--orchid rounded--5 pa--2">.bg--orchid</div>
<div class="bg--aqua rounded--5 pa--2">.bg--aqua</div>
```

#### .bg--{dark | light}

```markup
<div class="bg--dark rounded--5 pa--2">.bg--dark</div>
<div class="bg--dark--gradient rounded--5 pa--2">.bg--dark--gradient</div>
<div class="bg--light rounded--5 pa--2">.bg--light</div>
```

#### .bg--{info | success | warning | danger}

```markup
<div class="bg--info rounded--5 pa--2">.bg--info</div>
<div class="bg--info--gradient rounded--5 pa--2">.bg--info--gradient</div>
<div class="bg--success rounded--5 pa--2">.bg--success</div>
<div class="bg--success--gradient rounded--5 pa--2">.bg--success--gradient</div>
<div class="bg--warning rounded--5 pa--2">.bg--warning</div>
<div class="bg--warning--gradient rounded--5 pa--2">.bg--warning--gradient</div>
<div class="bg--danger rounded--5 pa--2">.bg--danger</div>
<div class="bg--danger--gradient rounded--5 pa--2">.bg--danger--gradient</div>
```

#### .bg--black--{10 | 20 | 30 | 40 | 50}

```markup
<div class="bg--black rounded--5 pa--2 txt--white">.bg--black</div>
<div class="bg--black--10 rounded--5 pa--2 txt--white">.bg--black--10</div>
<div class="bg--black--20 rounded--5 pa--2 txt--white">.bg--black--20</div>
<div class="bg--black--30 rounded--5 pa--2 txt--white">.bg--black--30</div>
<div class="bg--black--40 rounded--5 pa--2 txt--white">.bg--black--40</div>
<div class="bg--black--50 rounded--5 pa--2 txt--white">.bg--black--50</div>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gorangocss.kawanua.id/utilities/background-color.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
