Skip to content

Commit 4326a8e

Browse files
committed
docs: add gradients
1 parent 97b1812 commit 4326a8e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/content/4.0/utilities/colors.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,12 @@ Similar to the contextual text color classes, easily set the background of an el
4949

5050
## Background gradient
5151

52-
By adding a `.bg-gradient` class, a linear gradient is added as background image to the backgrounds. This gradient starts with a semi-transparent white which fades out to the bottom.
53-
54-
Do you need a gradient in your custom CSS? Just add `background-image: var(--coreui-gradient);`.
52+
By adding a `.bg-{color}-gradient` class, a linear gradient is added as background image to the backgrounds.
5553

5654
{{< markdown >}}
5755
{{< colors.inline >}}
5856
{{- range (index $.Site.Data "theme-colors") }}
59-
<div class="p-3 mb-2 bg-{{ .name }} bg-gradient{{ with .contrast_color }} text-{{ . }}{{ else }} text-white{{ end }}">.bg-{{ .name }}.bg-gradient</div>
57+
<div class="p-3 mb-2 bg-{{ .name }}-gradient{{ with .contrast_color }} text-{{ . }}{{ else }} text-white{{ end }}">.bg-{{ .name }}-gradient</div>
6058
{{- end -}}
6159
{{< /colors.inline >}}
6260
{{< /markdown >}}

0 commit comments

Comments
 (0)