# CSS Color Gradient

> This site generates code for you further customize your page's CSS in all areas.

Source: https://tadabase.com/docs/snippets/css-color-gradient  
Status: Not yet re-checked. Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

**This site generates code for you further customize your page's CSS in all areas.**

> **Note:** In most cases, you will be given a small block of code where you will go into the component you wish to customize and find the "Class" you will then swap the text of Class with your text.

```
.Class {
    background-color: #0093E9;
    background-image: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);
}
```

[Video](https://www.screencast.com/users/stellrechtmegan/folders/Snagit/media/ee61c8af-c3c9-4b6a-95f6-290b09087004/embed)

**Here I have an example of a button. Where the following code was generated from the website above.**

**Step 1**

**Add an HTML component to your page.**

![Screenshot for “CSS Color Gradient”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-08/scaled-1680-/2022-08-25_17-49-22.png)

**Step 2**

**Add the following code to the source code to the HTML Component to create a button.**

```
<p><button class="btn-grad">Click me!</button></p>
```

> **Note:** Please notice where I added the class of the button within the source code.

![Screenshot for “CSS Color Gradient”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-08/scaled-1680-/2022-08-25_18-06-27.png)

**Step 3**

**Finally, add the code of the button you customized within the website above to your page's CSS tab.**

```
.btn-grad {
    background - image: linear - gradient(to right, #314755 0%, # 26 a0da 51 %, #314755 100%)
}

.btn-grad {
    margin: 10px;
    padding: 10px 30px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px # eee;
    border - radius: 10 px;
    display: block;
}

.btn-grad: hover {
    background - position: right center;
    /* change the direction of the change here */
    color: #fff;
    text - decoration: none;
}
```

![Screenshot for “CSS Color Gradient”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-08/scaled-1680-/2022-08-25_18-26-04.png)

**Original Community Post:**

[https://community.tadabase.io/t/css-colour-gradient-code-generator/2035/2](https://community.tadabase.io/t/css-colour-gradient-code-generator/2035/2)
