Use Mdb colors in my own SCSS


Topic: Use Mdb colors in my own SCSS

jouvrard pro asked 3 months ago

Hello,

I would like to use some of the colors in this page: https://mdbootstrap.com/docs/jquery/css/colors/ in my own scss files.

I have imported the "_colors.scss" file but I Don't know how to use it, for example to use the "blue lighten-4" color?

Thanks,

Jerome


Marta Szymanska staff answered 3 months ago

Hi,

would you specify what you want to do with this color in your scss?

Best, Marta


jouvrard pro answered 3 months ago

Sorry it wasn't clear.

I would like to use it in my own scss files, to use it in some other tags. For example:

.test { color: blue lighten-4; }


Marta Szymanska staff answered 3 months ago

Hi,

use variables from scss/core/_colors.scss, for example:

.test { color: $red-lighten-5 }

Best, Marta


jouvrard pro answered 3 months ago

Ok, thank you very much.

Jerome


Marta Szymanska staff answered 3 months ago

Hi,

you're welcome.

Best, Marta


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: jQuery
  • MDB Version: 4.8.3
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: Yes
Tags