// Load Bulma's base styles and themes (including the minireset)
@use "bulma/sass/base";
@use "bulma/sass/themes";
// Load other Bulma components
@use "bulma/sass/elements/button";
@use "bulma/sass/components/message";
{% endcapture %}
<divclass="content">
<p>
Bulma consists of elements and components defined in dozens of <code>.scss</code> files, that you can <ahref="https://sass-lang.com/documentation/at-rules/use/">load individually with the <code>@use</code> keyword</a>.
While this will correctly load the target file's styles, most Bulma components rely on <strong>base styles</strong> and <strong>CSS variables</strong> defined by the default themes.
</p>
<p>
That is why it's preferable to <em>also</em> load the <code>sass/base</code> folder and the <code>sass/themes</code> folder:
{% include docs/elements/anchor.html name="Importing columns" %}
<divclass="content">
<p>
Layout features like Bulma's columns don't rely on CSS variables defined by Bulma themes. As a result, you can load them directly without requiring any additional file.
</p>
<p>
For example, importing Bulma <strong>columns</strong> only requires to load the file located in the <code>bulma/sass/grid</code> folder.
</p>
<p>
Simply <strong>load</strong> the <code>columns.scss</code> file with the <code>@use</code> keyword
Now you can use the classes <code>.columns</code> (for the container) and
<code>.column</code> directly:
</p>
{% highlight html %}{{ columns }}{% endhighlight %}
</div>
{% include docs/elements/anchor.html name="Importing Bulma elements and components" %}
<divclass="content">
<p>
To load Bulma elements like the <code>.button</code> and components like the <code>.message</code>, it's preferable to also load the base styles and default themes.
{% highlight html %}{{ buttons }}{% endhighlight %}
</div>
{% capture configuration %}
$section-padding: 3rem 1.5rem !default;
$section-padding-desktop: 3rem 3rem !default;
$section-padding-medium: 9rem 4.5rem !default;
$section-padding-large: 18rem 6rem !default;
{% endcapture %}
{% capture custom_section %}
// Load the section component with custom variables
@use "bulma/sass/layout/section" with (
$section-padding: 3rem,
$section-padding-desktop: 4.5rem
);
{% endcapture %}
{% include docs/elements/anchor.html name="Importing with custom Sass variables" %}
<divclass="content">
<p>
Most Bulma components are configured with Sass variables. For example, the <code>.section</code> layout component uses 4 variables to define its padding: