Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/belguinan/bootstrap-sass
Bootstrap 5 starting point.
https://github.com/belguinan/bootstrap-sass
Last synced: about 1 month ago
JSON representation
Bootstrap 5 starting point.
- Host: GitHub
- URL: https://github.com/belguinan/bootstrap-sass
- Owner: belguinan
- License: mit
- Created: 2021-12-08T20:34:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-20T14:51:11.000Z (about 3 years ago)
- Last Synced: 2024-07-20T18:29:18.740Z (6 months ago)
- Language: SCSS
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Boost your Bootstrap 5 development workflow!
We can achieve the same result as [tailwindCSS](https://tailwindcss.com/) using **bootstrap theming** [Read more.](https://getbootstrap.com/docs/4.0/getting-started/theming/).
This method is great for **fast frontend development**. No need to write your own css.
## Use case:
Your PSD/figma design has form labels **{font-size: 16px, color: #fff}**.
We need to find the variables responsive for form labels.
found in **bootstrap/scss/forms/_labels.scss**.```scss
.form-label {
margin-bottom: $form-label-margin-bottom;
@include font-size($form-label-font-size);
font-style: $form-label-font-style;
font-weight: $form-label-font-weight;
color: $form-label-color;
}
```open **_variables.scss** and override the defaults.
```scss
$form-label-color: #fff;
$form-label-font-size: 16px;
```### CSS classes included.
All added variables are declared inside **_variables.scss**.
#### Font size
Example of 0.9rem.
```scss
$custom-font-sizes: (
'0.9rem'
)
```css classes generated:
```scss
.font-size-0-9rem
.font-size-{breakpoint}-0-9rem
.font-size-md-0-9rem
.font-size-lg-0-9rem
.font-size-xl-0-9rem.line-height-...
....
```
#### Custom height/width
Example of 100px.
```scss
$custom-width-sizes: (
'100px'
)
```css classes generated:
```scss
.h-100px
.min-h-100px
.max-h-100px
.max-h-md-100px
.max-h-lg-100px
....w-100px
...
```