> For the complete documentation index, see [llms.txt](https://docs.gorangocss.kawanua.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gorangocss.kawanua.id/utilities/background-color.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
