Giter Site home page Giter Site logo

jeroen-45 / bootstrap-css-generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

A script to easily generate modified versions of bootstrap using just a simple scss file containing your changes as the input.

Shell 100.00%
autoprefixer bootstrap bootstrap-generator bootstrap-scss bootstrap-theme minify-css sass

bootstrap-css-generator's Introduction

Bootstrap CSS Generator

A script to easily generate modified versions of bootstrap using just a simple scss file containing your changes as the input.

Installation

Simply clone or download this repo. Further dependencies are:

  • npm and the packages sass, postcss, postcss-cli, autoprefixer and clean-css-cli
    npm install sass postcss postcss-cli autoprefixer clean-css-cli
    
  • curl
  • wget
  • unzip

Alternatively, you can use the docker script to avoid having to install NPM and these packages on your system. In that case the only dependency is docker itself.

Usage

Create your .scss file to change/override the default bootstrap values. An example file has been provided. In this file, the color of Bootstrap purple is changed, and the primary color is set to this purple color instead of the default blue. Once you have your .scss file, you can run either of the following commands, depending on whether you want to use docker or have installed the packages on your system yourself. For more information on how to change things using this file, you can consult the Bootstrap documentation on this.

Regular command (npm and packages installed on your system)

./create_css.sh your-file.scss

Docker command

./create_css_docker.sh your-file.scss

By default, the most recent release (so not the "latest" release) of Bootstrap is automatically downloaded and used to generate the css. If you want to use a different version, you can download its source code from the Bootstrap releases and put it in a folder called bootstrap within the same folder as the scripts.

After running the command, three files are created:

  • your-file.css: The raw CSS output from Sass,
  • your-file-prefixed.css: CSS that has been processed by autoprefixer, which is used to add vendor prefixes to the CSS,
  • your-file-prefixed.min.css: A minified version of the previous file. This is the end result you'll want to use for your website.

bootstrap-css-generator's People

Contributors

jeroen-45 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.