Skip to content

Commit

Permalink
fix: adjust to Bootstrap v5.3.1 (#967)
Browse files Browse the repository at this point in the history
Fix the palette background colors
  • Loading branch information
razonyang authored Jul 28, 2023
1 parent 2aacdc2 commit faaf181
Show file tree
Hide file tree
Showing 4 changed files with 2,522 additions and 1,483 deletions.
17 changes: 16 additions & 1 deletion assets/main/scss/_palettes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,23 @@ $palettes: (
);
$theme-colors: map-remove($theme-colors, 'primary');
$theme-colors: map-merge($theme-colors, $palettes);
$palettes-rgb: (
'blue': to-rgb($palette-blue),
'blue-gray': to-rgb($palette-blue-gray),
'brown': to-rgb($palette-brown),
'cyan': to-rgb($palette-cyan),
'green': to-rgb($palette-green),
'indigo': to-rgb($palette-indigo),
'orange': to-rgb($palette-orange),
'pink': to-rgb($palette-pink),
'purple': to-rgb($palette-purple),
'red': to-rgb($palette-red),
'teal': to-rgb($palette-teal),
'yellow': to-rgb($palette-yellow),
);
$theme-colors-rgb: map-remove($theme-colors-rgb, 'primary');
$theme-colors-rgb: map-merge($theme-colors-rgb, $palettes-rgb);
$palette-classes: 'btn', 'btn-outline';

@each $name, $color in $palettes {
@if validate-palette($name) {
$on-primary: color-contrast($color);
Expand Down
Loading

0 comments on commit faaf181

Please sign in to comment.