After creating a SASS sub theme it gives an error when compiling styles

Created on 1 August 2023, over 1 year ago
Updated 10 August 2023, over 1 year ago

Problem/Motivation

After creating a SASS sub theme following the documentation in https://www.drupal.org/docs/contributed-themes/bootstrap-45-barrio-sass-... when trying to compile styles you receive this error:
Error in plugin "sass"
Message:
../../contrib/bootstrap_barrio/scss/components/table.scss
Error: Undefined operation "2 * var(--bs-border-width)".

8 │ border-bottom: (2 * $table-border-width) solid $table-border-color;
│ ^^^^^^^^^^^^^^^^^^^^^^^

../../contrib/bootstrap_barrio/scss/components/table.scss 8:21 @import
../../contrib/bootstrap_barrio/scss/barrio.scss 34:9 @import
scss/import.scss 15:9 @import
scss/style.scss 7:9 root stylesheet

Steps to reproduce

- Using the script provided by the Bootstrap 4/5 - Barrio SASS Starter Kit, create a new theme.

- Follow the steps to finish configuring the theme.

- Switch to the theme folder and run npm install.

- In the theme folder run gulp styles.

-This will produce the error.

Proposed resolution

Add "$table-border-width: 1px;" to the bottom of the variables.scss file in the new theme.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

5.5

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024