Last active
August 18, 2024 14:58
-
-
Save faizbyp/f18c40f497cb6e309094ff88435563bd to your computer and use it in GitHub Desktop.
Custom Bootstrap 5 Starter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Importing fonts | |
@import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap'); | |
// Include functions first (so you can manipulate colors, SVGs, calc, etc) | |
@import "../node_modules/bootstrap/scss/functions"; | |
// Include any default variable overrides here | |
$primary: #2789d8; | |
$theme-colors: ( | |
// Override theme (removing the original theme) | |
); | |
// Use this to just add some colors | |
// $theme-colors: map-merge($theme-colors, $custom-colors); | |
// Changing font base | |
$font-family-base: 'Ubuntu', sans-serif; | |
@import "../node_modules/bootstrap/scss/variables"; | |
// Include any default map overrides here | |
@import "../node_modules/bootstrap/scss/bootstrap"; |
Minimal CSS Var Customize
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");
:root {
/* Font */
--bs-font-sans-serif: "Plus Jakarta Sans", Arial, sans-serif;
/* Color (R, G, B) Format */
--custom-primary: 39, 137, 216;
--bs-blue: rgb(var(--custom-primary));
--bs-primary: rgb(var(--custom-primary));
--bs-primary-rgb: var(--custom-primary);
--custom-secondary: 216, 118, 39;
--bs-secondary: rgb(var(--custom-secondary));
--bs-secondary-rgb: var(--custom-secondary);
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Custom Bootstrap 5 Starter
Installation
/bootstrap
directory in root folder/bootstrap
directoryDevelopment
bootstrap/bs-custom.scss
(make sure to edit the sass.scss
file, not the compiled.css
).sass
file, run:or insert this snippet below to
package.json
then run