KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

How to change default bootstrap5 colors #3295

Closed Eugene opened this topic on on May 21 - 8 comments

Eugene commented on May 21

Hi,

How can I add my custom.scss file to override the default bootstrap colors? I wish to add something like this

$white: #ffffff;

$theme-colors: (
    "light":      #1ccccc,
    "dark":       #2ccccc,
    "primary":   #3ccccc,
    "secondary": #4ccccc,
    "info":       #5ccccc,
    "success":    #6ccccc,
    "warning":    #7ccccc,
    "danger":     #8ccccc,
);
Eugene commented on May 21

It looks like you use already compiled css in your dashboard so should be another way to make a custom color theme.

KoolReport commented on May 21

You may use the css prop of Application to set a custom css file or list of custom css files to be added to dashboard.

KoolReport commented on May 21

Oh I see, you mean the original scss

Eugene commented on May 21

yeah... is there any way to change the theme totally. I wish to use branded colors...

Eugene commented on May 21

I have recompiled bootstrap css. So I got the customized bootstrap.css with my colors and used it in the css prop of Application. It works.

But in my opinion, this is not the best way, because if CSS files of the Dashboard override any styles of the original bootstrap.css then these changes will be lost.

I ask you to consider the possibility of overriding the theme colors.

KoolReport commented on May 22

I will talk with dev.team about this.

Eugene commented on May 22

thank you

Eugene commented on May 22

and anyway it does not work as I wish..... some styles are available in theme's files only

could you provide me amazing scss files that I can compile them with my colors?

PS And sorry asking this Why is the amazing theme still based on Bootstrap 4.0.0 year 2018? Bootstrap 5 can make it even more amazing :-)

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

Dashboard