Skip to content

Commit

Permalink
Fix param override when importing bootstrap via @use
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Jan 27, 2025
1 parent b6590aa commit de2529a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,12 @@ Make sure you import stylesheets in the order documented here for everything to

```scss
// src/index.scss
@import 'node_modules/@shlinkio/shlink-frontend-kit/dist/base'; // Before bootstrap stylesheet. Includes SASS var overrides
@import 'node_modules/bootstrap/scss/bootstrap.scss';
@import 'node_modules/@shlinkio/shlink-frontend-kit/dist/index'; // After bootstrap. Includes CSS overrides
@import 'node_modules/@shlinkio/shlink-web-component/dist/index';
@use 'node_modules/@shlinkio/shlink-frontend-kit/dist/base'; // Before bootstrap stylesheet
@use 'node_modules/bootstrap/scss/bootstrap.scss' with (
$primary: base.$mainColor // Override bootstrap's primary color
);
@use 'node_modules/@shlinkio/shlink-frontend-kit/dist/index'; // After bootstrap. Includes CSS overrides
@use 'node_modules/@shlinkio/shlink-web-component/dist/index' as c-index;
```

```tsx
Expand Down
4 changes: 3 additions & 1 deletion dev/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@use '../node_modules/@shlinkio/shlink-frontend-kit/dist/base';
@use '../node_modules/bootstrap/scss/bootstrap.scss';
@use '../node_modules/bootstrap/scss/bootstrap.scss' with (
$primary: base.$mainColor
);
@use '../node_modules/@shlinkio/shlink-frontend-kit/dist/index';
@use '../src/index.scss' as dev-index;

Expand Down

0 comments on commit de2529a

Please sign in to comment.