Provide theme style using different CSS
See original GitHub issueDescription
Aside of the default CSS style, providing different look based on theme style
will be useful.
Just changing the load of these files can make chart to render to have different style.
<!-- default css -->
<link rel="stylesheet" href="$YOUR_PATH/billboard.css">
<!-- ex: replace the default to use other theme css file -->
<link rel="stylesheet" href="$YOUR_PATH/theme/lighter.css">
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Developing Websites with Multiple Themes using CSS Variables
Learn how to develop a website with dark mode feature or multiple themes using CSS variables. CSS variables is the easiest way to...
Read more >Defining and Applying UI Themes Using the Mimcss CSS-in ...
The general idea is that a base class declares CSS rules used by the themes while derived classes provide different style property values ......
Read more >Working with multiple CSS themes. CodeShare - Medium
In this article, we will put this into practice creating some simple themes and seeing how to change between them. Creating the Default...
Read more >Styling themes
Entire collections of themes could be built by mostly writing new CSS files for standardized components. Advantages. Small learning curve; Wealth of ...
Read more >A guide to theming in CSS - LogRocket Blog
Theming is the ability to style various aspects of our website ... we'll cover how to develop apps that are theme-aware using CSS...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Btw… IE 11 is dead, after there’s now Edge for Win7.
So maybe it’s now time to support CSS Custom Properties 😉
@netil I would suggest that you add CSS custom properties to the default theme, additional to the option for a custom theme.css file path as you described above.
In my example you see how to add css custom properties with fallback values for IE11.
If a user of billboard.js don’t need IE11 theming he could use the original theme.css with the custom properties. If he need IE11 theme support he just use the theme path.
Adding CSS custom properties is not much work and brings a lot of value without any disadvantages.