Skip to content

Instantly share code, notes, and snippets.

@donbrae
Last active July 8, 2022 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donbrae/bfbda44e3bb5c2883a25acc5a759c8fc to your computer and use it in GitHub Desktop.
Save donbrae/bfbda44e3bb5c2883a25acc5a759c8fc to your computer and use it in GitHub Desktop.
Cool background gradient from https://getbootstrap.com.
.foo {
--color0: 214, 51, 132; /* --bd-pink-rgb */
--color1: 255, 255, 255; /* --bs-white-rgb */
--color2: 13, 110, 253; /* --bs-primary-rgb */
--color3: 255, 228, 132; /* --bd-accent-rgb */
--color4: 112.520718, 44.062154, 249.437846; /* --bd-violet-rgb */
background-image: linear-gradient(
180deg,
rgba(var(--color1), 0.01),
rgba(var(--color1), 1) 85%
),
radial-gradient(
ellipse at top left,
rgba(var(--color2), 0.5),
transparent 50%
),
radial-gradient(
ellipse at top right,
rgba(var(--color3), 0.5),
transparent 50%
),
radial-gradient(
ellipse at center right,
rgba(var(--color4), 0.5),
transparent 50%
),
radial-gradient(
ellipse at center left,
rgba(var(--color0), 0.5),
transparent 50%
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment