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

Provide a light CSS bundle without some Bootstrap features #2429

Open
julien-deramond opened this issue Dec 20, 2023 · 0 comments
Open

Provide a light CSS bundle without some Bootstrap features #2429

julien-deramond opened this issue Dec 20, 2023 · 0 comments

Comments

@julien-deramond
Copy link
Member

Description

Our current CSS bundle (boosted.css + boosted.min.css) contains everything that a developer needs to develop an Orange website.

The approach so far is that if you use a Bootstrap-based library or tool and apply boosted.css, it should work perfectly. This is possible because everything in Bootstrap also has a style in Boosted.

As you can see in https://deploy-preview-2223--boosted.netlify.app/docs/5.3/components/buttons/, we have for instance buttons that can be used and buttons coming from Bootstrap that can't be used because incompatible with the rules defined by ODS:

Screenshot 2023-12-20 at 07 20 09

But if you're not using them because you know the context, one could lighten the project's CSS bundle.

This issue aims to study if it would be possible and smart to provide something like a boosted.light.css file generated when a global Sass variable such as $enable-bootstrap-specificities: false (or built directly by the project with this same Sass variable).

In our code, we could extract some Bootstrap-specific code with code like @if enable-bootstrap-specificities.

In our documentation, we could refer to this optional embedding in the <details><summary> section we already have by saying with a tag or anything else: this is a Bootstrap-specific component or variant, you can avoid embedding it by using $enable-bootstrap-specificities: false, etc.

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

No branches or pull requests

1 participant