Skip to content

Commit

Permalink
docs: add sass and bootstrap setup in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
GHEMID-Mohamed authored and MartinWeb committed May 31, 2024
1 parent 4b1cae6 commit e5c4954
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ You can easily build a new app from scratch or integrate some components into an

## Getting Started

Make you sure that [sass](https://www.npmjs.com/package/sass) and [bootstrap](https://www.npmjs.com/package/bootstrap) modules are installed :

```sh
npm install -D sass
npm install [email protected]
```

After installing bootstrap, add these css imports in the root file of your components tree :

```js
import 'bootstrap/scss/bootstrap-grid.scss';
import 'bootstrap/scss/bootstrap-reboot.scss';
```

You can either install everything and use only what you need. If you do that you will be able to use tree shaking to have a smaller bundle.
However, you will need to import all the styles and not only the style related to your component.

Expand Down

0 comments on commit e5c4954

Please sign in to comment.