下载

Customize with CSS Variables


使用CSS变量实现简单的个性化配置

Bulma makes wide use of CSS Variables (also called CSS custom properties). Read more about them on the dedicated page.

Customizing in the browser #

You can change the current Bulma simply by opening your developer console and changing a CSS variable’s value.

If you set your CSS variables under the :root scope, you are overwriting Bulma’s default theme. This can be done by with Sass or CSS.

To test out this CSS method, simply follow these steps:

Open your browser inspector

Step

Select the html element

Step

Insert a new value for the --bulma-link-h variable (the hue of the link color)

Step

Notice how the CSS Helpers section in the side menu changes color

Step

赞助

#native_company# #native_desc#
#native_cta#