Skip to content

Commit 4b1cd0d

Browse files
Change Bootstrap Sass directives from @use to @import (#92)
Updated documentation to reflect the use of @import instead of @use for Bootstrap Sass.
1 parent 3472f20 commit 4b1cd0d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

doc/index.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ Using Bootstrap Sass
124124
~~~~~~~~~~~~~~~~~~~~
125125

126126
`Bootstrap <https://getbootstrap.com/>`_ is available as Sass, allowing you to customize
127-
the look and feel of your app. An easy way to get the source Sass files is via a Composer package:
127+
the look and feel of your app.
128+
129+
.. note:: The ``@use`` directive will be supported in Bootstrap version 6. Until then, use the deprecated ``@import`` directive to ensure overrides are applied.
130+
131+
An easy way to get the source Sass files is via a Composer package:
128132

129133
.. code-block:: terminal
130134
@@ -137,7 +141,7 @@ Now, import the core ``bootstrap.scss`` from your ``app.scss`` file:
137141
/* Override some Bootstrap variables */
138142
$red: #FB4040;
139143
140-
@use '../../vendor/twbs/bootstrap/scss/bootstrap';
144+
@import '../../vendor/twbs/bootstrap/scss/bootstrap';
141145
142146
Using Bootswatch Sass
143147
~~~~~~~~~~~~~~~~~~~~~
@@ -155,9 +159,9 @@ Now, import the core Sass theme files along with ``bootstrap.scss`` from your
155159

156160
.. code-block:: scss
157161
158-
@use '../../vendor/thomaspark/bootswatch/dist/[theme]/variables';
159-
@use '../../vendor/twbs/bootstrap/scss/bootstrap';
160-
@use '../../vendor/thomaspark/bootswatch/dist/[theme]/bootswatch';
162+
@import '../../vendor/thomaspark/bootswatch/dist/[theme]/variables';
163+
@import '../../vendor/twbs/bootstrap/scss/bootstrap';
164+
@import '../../vendor/thomaspark/bootswatch/dist/[theme]/bootswatch';
161165
162166
Don't forget to install the ``twbs/bootstrap`` main package as well because
163167
Bootswatch needed it. See the previous section for more details.
@@ -311,4 +315,4 @@ And then import bootstrap from ``app.scss`` with:
311315

312316
.. code-block:: scss
313317
314-
@use 'bootstrap';
318+
@import 'bootstrap';

0 commit comments

Comments
 (0)