thomaspark / bootswatch

Themes for Bootstrap
https://bootswatch.com
MIT License
14.58k stars 3.67k forks source link

BS4 Cosmo Variables not overriding #1122

Closed tamb closed 3 years ago

tamb commented 3 years ago

I made a custom bundle using .scss It's called theme.scss and it looks like this:

$btn-border-radius: .21rem;
$btn-border-radius-lg: .42rem;
$btn-border-radius-sm: .21rem;

$dropdown-border-radius: .42rem;

$blue: #2f86dd;

@import "~bootswatch/dist/cosmo/variables";
@import "~bootstrap/scss/bootstrap";
@import "~bootswatch/dist/cosmo/bootswatch";

but the .btn border radius is not changing...

If I exclude the bootswatch variables then the style is applied...

thomaspark commented 3 years ago

Hey @tamb, you should set:

$enable-rounded: true;
tamb commented 3 years ago

Worked perfectly! Thank you!