Closed jaohara closed 7 months ago
Created a variables.scss
file in /src/styles/
that holds all of the CSS custom properties, as well as the default light and dark theming. Dark mode is handled by adding a .dark
class name to the root DOM element, and that will cause the variables to switch from the light mode vars to the dark mode vars.
Because I'm using Vite, I can include CSS directly as a module in my JS and it will be bundled in.
Normally, we want to include the
globals.css
file described in #8 via a<style>
tag before other stylesheets are imported in the project's main HTML file. Because I'm intending to use this as a library, I need to import the stylesheet in the project's main entry point as defined invite.config.js
.