Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootstrap-dark-5

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap-dark-5

The Ancillary Guide to Dark Mode and Bootstrap 5 - A continuation of the v4 Dark Mode POC

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
554
increased by5.52%
Maintainers
1
Weekly downloads
 
Created
Source

The Ancillary Guide to Dark Mode and Bootstrap 5

A continuation of the v4 Dark Mode POC, but this time for v5

This is a follow up to The Definitive Guide to Dark Mode and Bootstrap 4 body of work, and pertains to Bootstrap 5 (Github repo.).

If you're after the same work for Bootstrap 4 please visit the vinorodrigues/bootstrap-dark repo.

NOTE: This is a 'Work In Progress' and is specifically based on Bootstrap 5 - Beta 1 - https://github.com/twbs/bootstrap/tree/v5.0.0-beta1

NOTE: The recomendation is to not use this in a production environment.

About

This code will make little sense if you don't read The Definitive Guide to Dark Mode and Bootstrap 4 first.

What do you get?

The code only compiles the Method 1, Method 3 and Method 4 variants (for BS5) of the topics discussed in the original body of work.

i.e.:

  • bootstrap-night,
  • bootstrap-nightshade,
  • bootstrap-dark.

The Proof Is in the Pudding

Test pages have been set up at vinorodrigues.github.io/bootstrap-dark-5

Can you use this?

Yes.

Licence is MIT. i.e. use as you whish as long as you credit the original authors and leave the copyright in situ.

If you're a theme builder or want to use its principles in your own project you'll need to have Git and Node installed.

  1. Fork or download the repository: git clone https://github.com/vinorodrigues/bootstrap-dark-5.git
  2. Install Node dependencies: npm install (See note below.)
  3. Modify _variables.scss and _variables-alt.scss in the scss sub-folder.
  4. Run npm run build to build your theme.
  5. The compiled code will be in the dist folder.

NOTE: The build system is based on NPM Scripts. Most of the build tools (NPM modules) will need to be installed as "global" to ensure the scripts are executable from the command line.

npm i -g  autoprefixer  documentation browser-sync  clean-css-cli  cross-env  eslint  eslint-config-xo  eslint-plugin-import  eslint-plugin-unicorn  find-unused-sass-variables  imagemin-cli  nodemon  npm-run-all  postcss-cli  rtlcss  sass  stylelint  stylelint-config-twbs-bootstrap  svgo  terser typescript

NPM

Developers can include the scss and dist folders into your own project with:

npm install bootstrap-dark-5

CDN

You can also hotlink the theme via CDN with jsdelivr.com.

You can access the theme CSS file from the GitHub release:

Further Reading

Must reads for all developers wanting to write for dark mode:

Feedback

If you have useful feedback drop me an "Issue" on the GitHub Issues page.


© 2021

Keywords

FAQs

Package last updated on 03 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc