Use Mdb colors in my own SCSS


Topic: Use Mdb colors in my own SCSS

jouvrard pro asked 5 years 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 pro premium answered 5 years ago

Hi,

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

Best, Marta


jouvrard pro answered 5 years 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 pro premium answered 5 years ago

Hi,

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

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

Best, Marta


jouvrard pro answered 5 years ago

Ok, thank you very much.

Jerome


Marta Szymanska staff pro premium answered 5 years ago

Hi,

you're welcome.

Best, Marta


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

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