Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reload Bootstrap customization

On http://getbootstrap.com/customize/ it is possible to create and download a custom Bootstrap configuration. Included in the download is a file called config.json

Is it possible to use that file somehow to refill the values and tweak your custom bootstrap configuration?

If not, does someone know why that file is included?

like image 273
Matthieu Avatar asked Dec 04 '13 19:12

Matthieu


People also ask

How to add custom CSS to a bootstrap website?

Let’s begin. Create a new file in your Bootstrap CSS folder and call it custom.css. Now in the <head> portion of your website, load your new custom CSS file after the default bootstrap stylesheet. It should look like this. To modify or apply additional styling to your web page, simply add the proper code to your custom.css file.

How do I override bootstrap styles in CSS?

How to Override Bootstrap CSS You can override the default styles of Bootstrap elements using two possible methods. The first way — using CSS overrides— applies to sites using BootstrapCDN or the pre-compiled versions of Bootstrap. The second — using Sass variables — applies to sites using the source code version of Bootstrap.

How do I create a bootstrap rollup file?

We call this a rollup file, because it's going to referencing a ton of other files into it. Inside the base/ folder, you'll want to create a bootstrap_variables file, which you need to pull from the source code. This is where we'll do all of our customizations to bootsrap. After that, in the main.scss file, add the imports from node_modules

How do Sass customizations work with bootstrap?

Once the SASS is compiled to CSS (this is done using a server-side SASS compiler/processor), the resulting CSS is the customized Bootstrap. In summary, here’s how the SASS customizations work: First, when the custom.scss file is processed using SASS, the !default values defined in the Bootstrap variables.scss.


3 Answers

It's possible to reload and edit your configuration:

  • download your custom bootstrap archive
  • go to https://gist.github.com
  • put content from your config.json file
  • name the new gist config.json
  • publish the gist (anonymously or under your name)
  • save the gist number - the number in the gist url
  • open bootstrap customizer (http://getbootstrap.com/customize) or your local one
  • add the gist number to the url "?id=your_gist_number"

Voila! Configuration is reloaded.

like image 189
Eduard Avatar answered Nov 13 '22 10:11

Eduard


As of Bootstrap v3.2.1, you'll be able to load your existing config.json settings into the Bootstrap Customizer using drag-and-drop or a filepicker.

like image 32
cvrebert Avatar answered Nov 13 '22 08:11

cvrebert


Scroll down to the end of the config.json file, the latest entry is "customizeUrl" along with the customization url on bootsrtap website. Eg:

"collapse.js",
"scrollspy.js",
"transition.js"
],
"customizerUrl": "http://getbootstrap.com/customize/?id=eaaea96b66287112b6c7"
}
like image 24
Grégoire Welraeds Avatar answered Nov 13 '22 10:11

Grégoire Welraeds