You can find my open-source projects on this page. Most projects are also hosted on jfhr.de/source.
Read my blog, if you like: jfhr.me
Reach out: [email protected]
Angular + Bootstrap theme switcher example
License: Creative Commons Zero v1.0 Universal
You can find my open-source projects on this page. Most projects are also hosted on jfhr.de/source.
Read my blog, if you like: jfhr.me
Reach out: [email protected]
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
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
Refused to apply style from 'http://localhost:4200/default.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
not show theme in peview
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.