Skip to content

Commit 4ad554e

Browse files
committed
Bootstrap 5.3.0
- updated to Bootstrap 5.3.0 - added custom dark mode CSS variables - doc: fixed and added info about other variable files - updated rfs configuration - not longer needed Sass variables init removed (current Sass compiler shows no warnings) - caniuse-lite updated
1 parent dbb1a77 commit 4ad554e

13 files changed

+391
-1099
lines changed

gulpfile.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const sassCompile = () =>
5353
autoprefixer, // automatically adds vendor prefixes if needed
5454
// see browserslist in package.json for included browsers
5555
// Official Bootstrap browser support policy:
56-
// https://getbootstrap.com/docs/5.2/getting-started/browsers-devices/#supported-browsers
56+
// https://getbootstrap.com/docs/5.3/getting-started/browsers-devices/#supported-browsers
5757
])
5858
)
5959
.pipe(csso()) // compresses CSS

package-lock.json

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"main": "index.js",
99
"devDependencies": {
1010
"autoprefixer": "^10.4.14",
11-
"bootstrap": "^5.2.3",
11+
"bootstrap": "^5.3.0",
1212
"browser-sync": "^2.29.3",
1313
"del": "^6.1.1",
1414
"esm": "^3.2.25",

src/data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"bootstrapVersion": "5.2.3",
2+
"bootstrapVersion": "5.3.0",
33
"sampleColors": [
44
{
55
"name": "red",

src/scss/_1-customized-bootstrap-variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
//
2222
// If you want to use Bootstrap’s variables
2323
// to override other variables, please see
24-
// _1-customized-bootstrap-variables.scss.
24+
// _2-customized-bootstrap-variables.scss.
2525

2626
// Working examples (feel free to delete them):
2727
$paragraph-margin-bottom: 1.5rem;

src/scss/_2-customized-bootstrap-variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
%custom-bootstrap-variables {
3434
@import "./node_modules/bootstrap/scss/functions";
3535
@import "./node_modules/bootstrap/scss/variables";
36+
@import "./node_modules/bootstrap/scss/variables-dark";
3637

3738
// Working examples (feel free to delete them):
3839
$paragraph-margin-bottom: 1.5rem !global;

src/scss/_3-customized-bootstrap-variables.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,14 @@
2828
//
2929
// Note: while ugly, this is the only workaround because
3030
// of how variables and variable shadowing works in Sass.
31+
//
32+
// Please see _4-customized-bootstrap-variables.scss.
33+
// for a more practical version of this solution.
3134

3235
%custom-bootstrap-variables {
3336
@import "./node_modules/bootstrap/scss/functions";
3437
@import "./node_modules/bootstrap/scss/variables";
38+
@import "./node_modules/bootstrap/scss/variables-dark";
3539

3640
// Working examples (feel free to delete them):
3741
$paragraph-margin-bottom: 1.5rem; // local variable overridden

0 commit comments

Comments
 (0)