Backgrounds

Background Gradient Presets

Utilities for sets the gradient preset diagonally to an element.


Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
bg-gradient-{value}background-image: linear-gradient({modifier});
valuemodifier
preset-145deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%
preset-2to top, #a18cd1 0%, #fbc2eb 100%
preset-3to top, #fad0c4 0%, #fad0c4 1%, #ffd1ff 100%
preset-4to right, #ffecd2 0%, #fcb69f 100%
preset-5to right, #ff8177 0%, #ff867a 0%, #ff8c7f 21%,
#f99185 52%, #cf556c 78%, #b12a5b 100%
preset-6to top, #ff9a9e 0%, #fecfef 99%, #fecfef 100%
preset-7120deg, #f6d365 0%, #fda085 100%
preset-8to top, #fbc2eb 0%, #a6c1ee 100%
preset-9to top, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%
preset-10120deg, #a1c4fd 0%, #c2e9fb 100%
preset-11120deg, #d4fc79 0%, #96e6a1 100%
preset-12120deg, #84fab0 0%, #8fd3f4 100%
preset-13to top, #cfd9df 0%, #e2ebf0 100%
preset-14120deg, #a6c0fe 0%, #f68084 100%
preset-15120deg, #fccb90 0%, #d57eeb 100%
preset-16120deg, #e0c3fc 0%, #8ec5fc 100%
preset-17120deg, #f093fb 0%, #f5576c 100%
preset-18120deg, #fdfbfb 0%, #ebedee 100%
preset-19to right, #4facfe 0%, #00f2fe 100%
preset-20to right, #43e97b 0%, #38f9d7 100%
preset-21to right, #fa709a 0%, #fee140 100%
preset-22to top, #30cfd0 0%, #330867 100%
preset-23to top, #a8edea 0%, #fed6e3 100%
preset-24to top, #5ee7df 0%, #b490ca 100%
preset-25to top, #d299c2 0%, #fef9d7 100%
preset-26135deg, #f5f7fa 0%, #c3cfe2 100%
preset-27135deg, #667eea 0%, #764ba2 100%
preset-28135deg, #fdfcfb 0%, #e2d1c3 100%
preset-29120deg, #89f7fe 0%, #66a6ff 100%
preset-30to top, #fddb92 0%, #d1fdff 100%
preset-31to top, #9890e3 0%, #b1f4cf 100%
preset-32to top, #ebc0fd 0%, #d9ded8 100%
preset-33to top, #96fbc4 0%, #f9f586 100%
preset-34180deg, #2af598 0%, #009efd 100%
preset-35to top, #cd9cf2 0%, #f6f3ff 100%
preset-36to right, #e4afcb 0%, #b8cbb8 0%, #b8cbb8 0%,
#e2c58b 30%, #c2ce9c 64%, #7edbdc 100%
preset-37to right, #b8cbb8 0%, #b8cbb8 0%, #b465da 0%,
#cf6cc9 33%, #ee609c 66%, #ee609c 100%
preset-38to right, #6a11cb 0%, #2575fc 100%
preset-39to top, #37ecba 0%, #72afd3 100%
preset-40to top, #ebbba7 0%, #cfc7f8 100%
preset-41to top, #fff1eb 0%, #ace0f9 100%
preset-42to right, #eea2a2 0%, #bbc1bf 19%, #57c6e1 42%,
#b49fda 79%, #7ac5d8 100%
preset-43to top, #c471f5 0%, #fa71cd 100%
preset-44to top, #48c6ef 0%, #6f86d6 100%
preset-45to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%,
#fe9a8b 100%
preset-46to top, #feada6 0%, #f5efef 100%
preset-47to top, #e6e9f0 0%, #eef1f5 100%
preset-48to top, #accbee 0%, #e7f0fd 100%
preset-49-20deg, #e9defa 0%, #fbfcdb 100%
preset-50to top, #c1dfc4 0%, #deecdd 100%
preset-51to top, #0ba360 0%, #3cba92 100%
preset-52to top, #00c6fb 0%, #005bea 100%
preset-53to right, #74ebd5 0%, #9face6 100%
preset-54to top, #6a85b6 0%, #bac8e0 100%
preset-55to top, #a3bded 0%, #6991c7 100%
preset-56to top, #9795f0 0%, #fbc8d4 100%
preset-57to top, #a7a6cb 0%, #8989ba 52%, #8989ba 100%
preset-58to top, #3f51b1 0%, #5a55ae 13%, #7b5fac 25%,
#8f6aae 38%, #a86aa4 50%, #cc6b8e 62%,
#f18271 75%, #f3a469 87%, #f7c978 100%
preset-59to top, #fcc5e4 0%, #fda34b 15%, #ff7882 35%,
#c8699e 52%, #7046aa 71%, #0c1db8 87%, #020f75 100%
preset-60to top, #dbdcd7 0%, #dddcd7 24%, #e2c9cc 30%,
#e7627d 46%, #b8235a 59%, #801357 71%,
#3d1635 84%, #1c1a27 100%
preset-61to top, #f43b47 0%, #453a94 100%
preset-62to top, #4fb576 0%, #44c489 30%, #28a9ae 46%,
#28a2b7 59%, #4c7788 71%, #6c4f63 86%,
#432c39 100%
preset-63to top, #0250c5 0%, #d43f8d 100%
preset-64to top, #88d3ce 0%, #6e45e2 100%
preset-65to top, #d9afd9 0%, #97d9e1 100%
preset-66to top, #7028e4 0%, #e5b2ca 100%
preset-6715deg, #13547a 0%, #80d0c7 100%
preset-68to top, #505285 0%, #585e92 12%, #65689f 25%,
#7474b0 37%, #7e7ebb 50%, #8389c7 62%,
#9795d4 75%, #a2a1dc 87%, #b5aee4 100%
preset-69to top, #ff0844 0%, #ffb199 100%
preset-7045deg, #93a5cf 0%, #e4efe9 100%
preset-71to right, #434343 0%, black 100%
preset-72to top, #0c3483 0%, #a2b6df 100%, #6b8cce 100%,
#a2b6df 100%
preset-7345deg, #93a5cf 0%, #e4efe9 100%
preset-74to right, #92fe9d 0%, #00c9ff 100%
preset-75to right, #ff758c 0%, #ff7eb3 100%
preset-76to right, #868f96 0%, #596164 100%
preset-77to top, #c79081 0%, #dfa579 100%
preset-7845deg, #8baaaa 0%, #ae8b9c 100%
preset-79to right, #f83600 0%, #f9d423 100%
preset-80-20deg, #b721ff 0%, #21d4fd 100%
preset-81-20deg, #6e45e2 0%, #88d3ce 100%
preset-82-20deg, #d558c8 0%, #24d292 100%
preset-8360deg, #abecd6 0%, #fbed96 100%
preset-84to top, #d5d4d0 0%, #d5d4d0 1%, #eeeeec 31%,
#efeeec 75%, #e9e9e7 100%
preset-85to top, #5f72bd 0%, #9b23ea 100%
preset-86to top, #09203f 0%, #537895 100%
preset-87-20deg, #ddd6f3 0%, #faaca8 100%, #faaca8 100%
preset-88-20deg, #dcb0ed 0%, #99c99c 100%
preset-89to top, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%
preset-90to top, #c71d6f 0%, #d09693 100%
preset-9160deg, #96deda 0%, #50c9c3 100%
preset-92to top, #f77062 0%, #fe5196 100%
preset-93to top, #c4c5c7 0%, #dcdddf 52%, #ebebeb 100%
preset-94to right, #a8caba 0%, #5d4157 100%
preset-9560deg, #29323c 0%, #485563 100%
preset-96-60deg, #16a085 0%, #f4d03f 100%
preset-97-60deg, #ff5858 0%, #f09819 100%
preset-98-20deg, #2b5876 0%, #4e4376 100%
preset-99-20deg, #00cdac 0%, #8ddad5 100%
preset-100to top, #4481eb 0%, #04befe 100%
preset-101to top, #dad4ec 0%, #dad4ec 1%, #f3e7e9 100%
preset-10245deg, #874da2 0%, #c43a30 100%
preset-103to top, #4481eb 0%, #04befe 100%
preset-104to top, #e8198b 0%, #c7eafd 100%
preset-105-20deg, #f794a4 0%, #fdd6bd 100%
preset-10660deg, #64b3f4 0%, #c2e59c 100%
preset-107to top, #3b41c5 0%, #a981bb 49%, #ffc8a9 100%
preset-108to top, #0fd850 0%, #f9f047 100%
preset-109to top, lightgrey 0%, lightgrey 1%, #e0e0e0 26%,
#efefef 48%, #d9d9d9 75%, #bcbcbc 100%
preset-11045deg, #ee9ca7 0%, #ffdde1 100%
preset-111to right, #3ab5b0 0%, #3d99be 31%, #56317a 100%
preset-112to top, #209cff 0%, #68e0cf 100%
preset-113to top, #bdc2e8 0%, #bdc2e8 1%, #e6dee9 100%
preset-114to top, #e6b980 0%, #eacda3 100%
preset-115to top, #1e3c72 0%, #1e3c72 1%, #2a5298 100%
preset-116to top, #d5dee7 0%, #ffafbd 0%, #c9ffbf 100%
preset-117to top, #9be15d 0%, #00e3ae 100%
preset-118to right, #ed6ea0 0%, #ec8c69 100%
preset-119to right, #ffc3a0 0%, #ffafbd 100%
preset-120to top, #cc208e 0%, #6713d2 100%
preset-121to top, #b3ffab 0%, #12fff7 100%
preset-122to top, #65bd60 0%, #5ac1a8 25%, #3ec6ed 50%,
#b7ddb7 75%, #fef381 100%
preset-123to right, #243949 0%, #517fa4 100%
preset-124-20deg, #fc6076 0%, #ff9a44 100%
preset-125to top, #dfe9f3 0%, white 100%
preset-126to right, #00dbde 0%, #fc00ff 100%
preset-127to right, #f9d423 0%, #ff4e50 100%
preset-128to top, #50cc7f 0%, #f5d100 100%
preset-129to right, #0acffe 0%, #495aff 100%
preset-130-20deg, #616161 0%, #9bc5c3 100%
preset-13160deg, #3d3393 0%, #2b76b9 37%, #2cacd1 65%,
#35eb93 100%
preset-132to top, #df89b5 0%, #bfd9fe 100%
preset-133to right, #ed6ea0 0%, #ec8c69 100%
preset-134to right, #d7d2cc 0%, #304352 100%
preset-135to top, #e14fad 0%, #f9d423 100%
preset-136to top, #b224ef 0%, #7579ff 100%
preset-137to right, #c1c161 0%, #c1c161 0%, #d4d4b1 100%
preset-138to right, #ec77ab 0%, #7873f5 100%
preset-139to top, #007adf 0%, #00ecbc 100%
preset-140-225deg, #20E2D7 0%, #F9FEA5 100%
preset-141-225deg, #2CD8D5 0%, #C5C1FF 56%, #FFBAC3 100%
preset-142-225deg, #2CD8D5 0%, #6B8DD6 48%, #8E37D7 100%
preset-143-225deg, #DFFFCD 0%, #90F9C4 48%, #39F3BB 100%
preset-144-225deg, #5D9FFF 0%, #B8DCFF 48%, #6BBBFF 100%
preset-145-225deg, #A8BFFF 0%, #884D80 100%
preset-146-225deg, #5271C4 0%, #B19FFF 48%, #ECA1FE 100%
preset-147-225deg, #FFE29F 0%, #FFA99F 48%, #FF719A 100%
preset-148-225deg, #22E1FF 0%, #1D8FE1 48%, #625EB1 100%
preset-149-225deg, #B6CEE8 0%, #F578DC 100%
preset-150-225deg, #FFFEFF 0%, #D7FFFE 100%
preset-151-225deg, #E3FDF5 0%, #FFE6FA 100%
preset-152-225deg, #7DE2FC 0%, #B9B6E5 100%
preset-153-225deg, #CBBACC 0%, #2580B3 100%
preset-154-225deg, #B7F8DB 0%, #50A7C2 100%
preset-155-225deg, #7085B6 0%, #87A7D9 50%, #DEF3F8 100%
preset-156-225deg, #77FFD2 0%, #6297DB 48%, #1EECFF 100%
preset-157-225deg, #AC32E4 0%, #7918F2 48%, #4801FF 100%
preset-158-225deg, #D4FFEC 0%, #57F2CC 48%, #4596FB 100%
preset-159-225deg, #9EFBD3 0%, #57E9F2 48%, #45D4FB 100%
preset-160-225deg, #473B7B 0%, #3584A7 51%, #30D2BE 100%
preset-161-225deg, #65379B 0%, #886AEA 53%, #6457C6 100%
preset-162-225deg, #A445B2 0%, #D41872 52%, #FF0066 100%
preset-163-225deg, #7742B2 0%, #F180FF 52%, #FD8BD9 100%
preset-164-225deg, #FF3CAC 0%, #562B7C 52%, #2B86C5 100%
preset-165-225deg, #FF057C 0%, #8D0B93 50%, #321575 100%
preset-166-225deg, #FF057C 0%, #7C64D5 48%, #4CC3FF 100%
preset-167-225deg, #69EACB 0%, #EACCF8 48%, #6654F1 100%
preset-168-225deg, #231557 0%, #44107A 29%, #FF1361 67%, #FFF800 100%
preset-169-225deg, #3D4E81 0%, #5753C9 48%, #6E7FF3 100%)

Usage

Set background gradient to an element.

<div class="bg-gradient-preset-4 ... width-64 height-32">
...
</div>
HTML
.dummy {
@extend
.bg-gradient-preset-4,
.width-64,
.height-32;
}
SCSS

Set default background gradient to <body> tag.

<body class="bg-gradient-preset-4">
...
</body>
HTML
body {
@extend
.bg-gradient-preset-4;
}
SCSS

Set background gradient clipping as text color by adding clip-text.

TEXT
<div class="bg-gradient-preset-4 clip-text ... inline-block">
...
</div>
HTML
.dummy {
@extend
.bg-gradient-preset-4,
.clip-text,
.inline-block;
}
SCSS

Set auto dark theme enabled to an element with added (dark) prefix.

<div class="bg-gradient-preset-4 ... (dark)bg-gradient-preset-5 ... width-64 height-32">
...
</div>
HTML
.dummy {
@extend
.bg-gradient-preset-4,
.\(dark\)bg-gradient-preset-5,
.width-64,
.height-32;
}
SCSS