Stylesheet and scripts for implementing dark mode with Bootstrap 4
BSD-3-CLAUSE License
Bot releases are visible (Hide)
Published by Clashsoft almost 3 years ago
Also see the Alpha Release notes.
When used with Angular, it may throw some weird errors like this:
Error: Module build failed (from ./node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
╷
11 │ @import "~bootstrap-darkmode/scss/darktheme";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src/styles.scss 11:9 root stylesheet
Workaround: Use @import "node_modules/bootstrap-darkmode/scss/darktheme";
instead.
Published by Clashsoft almost 3 years ago
form-check
.form-select
.form-range
.text-muted
(same color as in light mode, but now customisable).Published by Clashsoft almost 3 years ago
Published by Clashsoft almost 3 years ago
link-*
color classes.Published by Clashsoft almost 3 years ago
esm2020
, fesm2015
and fesm2020
.bg-body
class.Published by Clashsoft about 3 years ago
sideEffects
in package.json
to prevent problems with Vue. #24Published by Clashsoft about 3 years ago
dark-theme
mixin.mixins
directory.Published by Clashsoft about 3 years ago
Published by Clashsoft over 3 years ago
Published by Clashsoft about 4 years ago
.bg-darkmode-black
as an opposite for .bg-white
.data-theme="auto"
, which will automatically apply dark mode dependending on user agent preference.<hr>
) color.package.json
.Published by Clashsoft about 4 years ago
dist/theme.js
is no longer a module.Published by Clashsoft about 4 years ago
ThemeConfig.detectTheme
method.ThemeConfig.loadTheme
and .saveTheme
are now regular methods.ThemeConfig.loadTheme
and .saveTheme
methods can now accept/return null
.darktheme.css
to dist/
..gitignore
from the NPM package.Published by Clashsoft about 4 years ago
Published by Clashsoft about 4 years ago
ThemeConfig
.Published by Clashsoft about 4 years ago
initTheme
to theme.d.ts
.Published by Clashsoft about 4 years ago
ThemeConfig
class.Published by Clashsoft about 4 years ago
theme.d.ts
.Published by Clashsoft about 4 years ago