GithubHelp home page GithubHelp logo

jfhr / ngb-theme-switcher-example Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 5.0 265 KB

Angular + Bootstrap theme switcher example

License: Creative Commons Zero v1.0 Universal

JavaScript 6.02% HTML 7.18% TypeScript 35.93% Sass 26.48% SCSS 24.39%

ngb-theme-switcher-example's Introduction

ngb-theme-switcher-example's People

Contributors

jfhr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ngb-theme-switcher-example's Issues

Themed component sass

Could you please one or more components to this sample with own sass files where we can use themed colors like:

color: theme-color-level("warn", 3)

color: theme-color("primary")

So that will be applied on theme switch as well.

Thanks

Not able to update variable in custom css

Hello
I have used this theme switcher and it's working. But the issue is when I have to write a custom CSS class and want to use Bootstrap variable its not reflecting.
ex:
In custom.scss
body{
background: $primary;
}

dark.scss
$primary: #000000;

light.scss
$primary: #ff0000;

CSS after compilation:
For Both Theme:
custom.css
body{
background:#007bff; // Bootstrap default Variable
}

If Dark Theme
bootstrap.css
body{
background:#00000;
}

If light theme:
body{
background:#ff0000;
}

Can you please help me to solve this issue?
Thanks

Get theme variables in to component styles

Hello.

Thank you for your work. I also want to change the styles of the components in my project, but I want it to be with variables from the based on theme. How can I achieve this. Any ideas?

Thank you.

Flickering problem on reload

Hello, i use your example for my website, but when i reload the page, the screen flickers white for a split-second. Do you have an idea how to fix this issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.