Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svelte-add/bootstrap
Add Bootstrap to your Svelte project
https://github.com/svelte-add/bootstrap
bootstrap svelte svelte-add svelte-kit sveltekit vite
Last synced: about 1 month ago
JSON representation
Add Bootstrap to your Svelte project
- Host: GitHub
- URL: https://github.com/svelte-add/bootstrap
- Owner: svelte-add
- License: mit
- Created: 2021-09-18T22:33:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T17:08:14.000Z (about 1 year ago)
- Last Synced: 2024-04-28T04:53:26.332Z (8 months ago)
- Topics: bootstrap, svelte, svelte-add, svelte-kit, sveltekit, vite
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 33
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
👢 Add Bootstrap to Svelte
[![GitHub issues by-label](https://img.shields.io/github/issues/svelte-add/svelte-add/confirmed%20bug?color=%23DC2626)](https://github.com/svelte-add/svelte-add/issues?q=is%3Aopen+is%3Aissue+label%3A%22confirmed+bug%22)
[![GitHub issues by-label](https://img.shields.io/github/issues/svelte-add/svelte-add/support%20question?color=%23FACC15)](https://github.com/svelte-add/svelte-add/issues?q=is%3Aopen+is%3Aissue+label%3A%22support+question%22)This is an adder for `svelte-add`; you should [read its `README`](https://github.com/svelte-add/svelte-add#readme) before continuing here.
## ➕ Adding Bootstrap
This adder's codename is `bootstrap`, and can be used like so:
```sh
npx svelte-add@latest bootstrap
```### 🏞 Supported environments
This adder supports SvelteKit and Vite-powered Svelte apps (all the environments `svelte-add` currently supports).
### ⚙️ Options
This adder doesn't take any options of its own.
## 🛠 Using Bootstrap
After the adder runs,
- You can use Bootstrap classes like `card` or `pt-5` in the markup (components, routes, `app.html`).
- You can [customize your Bootstrap theme with variables](https://getbootstrap.com/docs/5.2/customize/sass/) like `$primary` or `$grid-breakpoints` in `src/variables.scss`.
- The [`@popperjs/core` package](https://www.npmjs.com/package/@popperjs/core) is installed to satisfy `bootstrap`'s peer dependency on it. You can safely ignore it, or uninstall it if you can do so without introducing package manager errors.