Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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 Wierzbicka staff answered 5 years ago


Hi,

you're welcome.

Best, Marta


jouvrard pro answered 5 years ago


Ok, thank you very much.

Jerome


Marta Wierzbicka staff 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


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 Wierzbicka staff answered 5 years ago


Hi,

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

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

  • ForumUser: 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