12

https://blog.getbootstrap.com/ says

And when you use $enable-gradients, you’ll enable the new .bg-gradient- utilities (disabled by default) for use in navbars and more.

Q: How do I use $enable-gradients? Up until now I've just downloaded the bootstrap.css and .js files. But now apparently I have to compile them?

Phillip Senn
  • 46,771
  • 90
  • 257
  • 373

1 Answers1

5

Yes. You have to generate a custom CSS using Sass.

After setting up the build tools, you'll have to insert $enable-gradients: true; in your Sass file before the imports.

Then you can generate the custom CSS, and gradients should work!

Klooven
  • 3,858
  • 1
  • 23
  • 41