Skip to content
UI Kits Bootstrap 4 jquerypopper.jsnouislidermaterial icons

Bootstrap 4 UI Kit with Custom Components and Templates - Shards

A Bootstrap 4 UI kit with 11 custom components and two page templates, suitable for developers building responsive web interfaces.

By DesignRevision designrevision/shards-ui 1,709 stars

Introduction

Shards is a free UI kit built on top of Bootstrap 4. It provides a collection of custom components and two ready‑made page templates. The kit is responsive and works in modern browsers. It is released under the MIT license.

What this project offers

  • 11 custom UI components that extend Bootstrap’s base styles.
  • Two page templates (Agency Landing and App Promo) that demonstrate how to use the components.
  • Additional demo page (shards-demo.html) showing component usage.
  • Pre‑compiled CSS and JavaScript files ready for inclusion in a web page.

Main features

  • Built on Bootstrap 4.1.3 (compatible with Bootstrap 4).
  • Includes a date‑picker component (via bootstrap‑datepicker).
  • Includes a slider component (via noUiSlider).
  • Fully responsive layout.
  • Minified CSS and JS files for production use.

Technology stack

  • Framework: Bootstrap 4
  • Languages: HTML, SCSS, JavaScript
  • Build tools (included for developers): node‑sass, webpack, postcss, clean‑css, uglify‑js
  • Dependencies: jQuery, Popper.js, bootstrap-datepicker, noUiSlider, Material Icons, Font Awesome

Requirements

  • A web browser that supports HTML5 and CSS3.
  • Bootstrap 4.1.3 (the kit’s CSS expects this version).
  • jQuery and Popper.js if you want to use the JavaScript components.

Installation

These steps assume you have downloaded the ZIP file shards-ui.zip from the project’s release page.

  1. Extract the archive
unzip shards-ui.zip -d shards-ui
  1. Navigate to the extracted folder
cd shards-ui
  1. Open a demo page in the browser (any of the HTML files in dist/ can be used)
# On macOS
open dist/shards-demo.html

# On Linux
xdg-open dist/shards-demo.html

# On Windows (PowerShell)
start dist\shards-demo.html

The page will display the UI kit’s components and templates.

  1. Optional – serve the files locally (useful for testing relative URLs)
# If you have Python 3 installed
python -m http.server 8000 --directory dist

Then open http://localhost:8000/shards-demo.html in your browser.

  1. Deploy to a web host
    • Upload the entire dist/ folder to the root (or a sub‑folder) of your web server.
    • Reference the CSS and JS files from your HTML pages, for example:

No additional build step is required for using the pre‑compiled files; the dist/ directory already contains ready‑to‑use assets.

Configuration

The kit does not require configuration to work. If you need to change the Bootstrap version or customize the SCSS, you would have to rebuild the assets (see the “Customizing the project” section). For normal use, just include the CSS and JS files from dist/.

Customizing the project

Developers who want to modify the appearance or add new components can edit the SCSS source files located in src/scss/. After making changes, run the following npm scripts to rebuild the assets:

npm install            # install development dependencies
npm run css            # compile and minify SCSS to dist/css/
npm run js             # bundle JavaScript to dist/js/

The compiled files will replace the existing ones in dist/. The project uses node-sass for SCSS compilation, postcss with Autoprefixer for vendor prefixes, and uglify-js for JavaScript minification.

Project structure

ATTRIB.md
CHANGELOG.md
CONTRIBUTING.md
ISSUE_TEMPLATE.md
LICENSE
README.md
build/
  postcss.config.js
  webpack.config.js
dist/
  agency-landing.html
  app-promo.html
  shards-demo.html
  css/
    shards.css
    shards.min.css
    shards-demo.css
    shards-demo.min.css
    shards-extras.css
    shards-extras.min.css
  images/
    (image assets)
  js/
    shards.js
    shards.min.js
    demo.js
    demo.min.js
src/
  extras/
    agency-landing.html
    app-promo.html
    shards-demo.html
    images/
    js/
    scss/
  js/
    index.js
    sliderPlugin.js
  scss/
    (individual component SCSS files)
    shards.scss
package.json
package-lock.json
logo.jpg

Tips

  • Use the minified files (shards.min.css and shards.min.js) in production for better performance.
  • Keep the original dist/ files unchanged; place any custom CSS after the Shards stylesheet to override defaults.
  • When adding new pages, copy one of the existing HTML files from dist/ as a starting point and adjust the content as needed.
  • If you need RTL support or dark mode, you will have to implement those styles manually, as the kit does not provide them.

License and attribution

Shards is released under the MIT License. See the full license file at LICENSE.

Original repository: https://github.com/designrevision/shards-ui

When redistributing Shards, keep the LICENSE file intact and credit the original author (DesignRevision).