Search code examples
csstwitter-bootstrap-3npmbootswatch

Bootswatch through package manager?


I've started a small asp.net core website. For now all JS/CSS that I'm importing are coming from NPM and webpack is here to to pack them together.

I wanted to de deviate from the standard bootstrap template and use bootswatch paper, but I didn't found any package I could import to replace default template.

They say we should just replace the bootstrap.css, but since mine is coming from the package, and will not be in my git repository, they basically advise me to have a second boostrap.css and reference it? But what happens when bootstrap is updated(so is the plugin) do I have to update manually?

I can't imagine this is the best solution. Any idea how I should install bootswatch then? (My website has been generated through JavascriptServices.


Solution

  • You can install Bootswatch from their github

    Using the following command

    The number at the end is the commit hash.

    npm install git+https://[email protected]/thomaspark/bootswatch.git#95a134434fd0955182e9a938b5e50624e8e143c6
    

    Once installed, you will find Paper in /node_modules/bootswatch/paper/

    npmjs.com explains more about downloading from other sources in their docs