Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customisable version of bootstrap is required #1

Closed
radicleart opened this issue Jul 10, 2022 · 1 comment
Closed

Customisable version of bootstrap is required #1

radicleart opened this issue Jul 10, 2022 · 1 comment

Comments

@radicleart
Copy link
Contributor

radicleart commented Jul 10, 2022

Simple Bootstrap

Bootstrap is currently integrated by linking to bootstrap 5 libraries from a CDN. This isn't ideal because the variables/theme cannot be customised.

Three option for improving this;

  1. Use get-bootstrap to customise and download a new bundle
  2. Add SCSS/SASS compiler to the project to customise bootstrap 5
  3. Use SvelteStrap - Bootstrap for Svelte - see below for the problem encountered when trying this.

Get Bootstrap

Not the most flexible but very simple option. A small downside is that we'd need to maintain and host the customised bundle/files somewhere or package them with the app which may increase time to render the app. This could be mitigated by using a CDN.

Add SASS/SCSS

Download the scss version of bootstrap and add sass compilation to the build.

Flexible solution but may also create complexity, esp having to use node-sass or dart-sass and also figuring out the correct vite/rollup config for packaging everything up.

SvelteStrap

Attempt to integrate sveltestrap, a community svelte + bootstrap integration in to the project, was unsuccessful because of a known issue in the framework. It will be worth checking on the status of this before starting work here.

see

Ran into known issues with sveltestrap + vite + popperjs (required by bootstrap)

Flagging here in case a fix is released.

@radicleart radicleart changed the title Issues with Svelte Strap SASS/SCSS enabled version of bootstrap is needed Jul 13, 2022
@radicleart radicleart changed the title SASS/SCSS enabled version of bootstrap is needed Customisable version of bootstrap is required Jul 13, 2022
@radicleart
Copy link
Contributor Author

Bootstrap integrated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant