Boilerplate for Basscss with postcss
- Basic
index.htmltemplate with asset links and responsive viewport meta tag - Starter folder structure
- npm run scripts for processing with postcss
- postcss plugins
- import
- custom-media
- custom-properties
- calc
- color-function
- discard-comments
- autoprefixer
You will need
To start fresh, clone Bassplate into a new project and remove its git directory.
git clone https://github.com/basscss/bassplate.git new-project
cd new-project
rm -rf .gitInstall the dependencies.
npm installStart watching files for compilation.
npm startUse index.html as a starting point, and edit src/base.css to customize the CSS.
To add other helpful basscss modules, add the relevant @import to src/base.css and add the dependency to your package.json
So to add the basscss background image utils you'd:
Edit src/base.css
@import 'basscss-background-images';Add the dependency
npm install basscss-background-imagesand then recompile with
npm run cssMIT License