Skip to content

Commit

Permalink
refactor(brand): Remove Bootstrap version check
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Oct 23, 2024
1 parent cbf1759 commit 1c7709d
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions src/core/sass/brand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,24 +262,21 @@ const brandBootstrapBundle = (
bsVariables.push('// quarto-scss-analysis-annotation { "action": "pop" }');

// Bootstrap Colors from color.palette
let bootstrapColorVariables: string[] = [];
if (Number(brandBootstrap?.version ?? 5) === 5) {
// https://getbootstrap.com/docs/5.3/customize/color/#color-sass-maps
bootstrapColorVariables = [
"black",
"white",
"blue",
"indigo",
"purple",
"pink",
"red",
"orange",
"yellow",
"green",
"teal",
"cyan",
]
}
// https://getbootstrap.com/docs/5.3/customize/color/#color-sass-maps
const bootstrapColorVariables = [
"black",
"white",
"blue",
"indigo",
"purple",
"pink",
"red",
"orange",
"yellow",
"green",
"teal",
"cyan",
]

const bsColors: string[] = [
"/* Bootstrap color variables from _brand.yml */",
Expand Down

0 comments on commit 1c7709d

Please sign in to comment.