
在嘗試使用 @tailwindcss 並發現優先使用工具程式碼的 CSS 並不適合我之後,Bulma 就像一股清新的空氣。
#網頁開發 #CSS
Bulma 是免費的開源框架,提供可立即使用的前端元件,您可以輕鬆地將它們組合起來,以建構回應式網頁介面。
不需要 CSS 知識!<div data-theme="dark">
<h1 class="title">Bulma</h1>
<p class="subtitle">
Modern CSS framework based on <a href="https://bulma.dev.org.tw">Flexbox</a>
</p>
<div class="message is-success">
<div class="message-body">
Changes successfully saved
</div>
</div>
<div class="field">
<input class="input" type="text" placeholder="Your Name">
</div>
<div class="field">
<div class="select">
<select><option>Select dropdown</option></select>
</div>
</div>
<div class="buttons">
<a class="button is-link is-soft">Save Changes</a>
<a class="button is-danger is-soft">Cancel</a>
</div>
</div>
1
2
3
4
5
<div class="columns">
<div class="column">1</div>
<div class="column">2</div>
<div class="column">3</div>
<div class="column">4</div>
<div class="column">5</div>
</div>
@use "sass:color";
// Set your brand colors
$purple: #8a4d76;
$pink: #fa7c91;
$brown: #757763;
$beige-light: #d0d1cd;
$beige-lighter: #eff0eb;
// Path to Bulma's sass folder
@use "path/to/bulma/sass" with (
$family-primary: '"Nunito", sans-serif',
$grey-dark: $brown,
$grey-light: $beige-light,
$primary: $purple,
$link: $pink,
$control-border-width: 2px,
$input-h: color.hue($beige-lighter),
$input-s: color.saturation($beige-lighter),
$input-background-l: color.lightness($beige-lighter),
$input-border-l: color.lightness($beige-lighter),
$input-shadow: none
);
// Import the Google Font
@import url("https://fonts.googleapis.com/css?family=Nunito:400,700");