如何使用 sass 在 Bulma 1.0 中获取默认灯光模式?

问题描述 投票:0回答:1

我更新到 Bulma v1.0 并且只想使用灯光模式。

我对 bulma/sass 目录使用了 @use 和 @import,但这会产生相同的结果。该网站根据我的系统模式更改主题。当我手动仅包含 light.scss 时,当我的系统设置为深色模式时,没有样式。

sass bulma
1个回答
0
投票

像这样更改你的 html 元素:

<!DOCTYPE html>
<html lang="en" data-theme="light" >
<head>
  <title>my page</title>
</head>
<body>
 
</body>
</html>
© www.soinside.com 2019 - 2024. All rights reserved.