It's not a framework and it has a very limited number of components. But it is still very cool π and helps
building visually attractive UIs with peace of mind.
It does ship a small 12 column
grid, enough to lay out a page without a framework.
Dark-mode ready
Yes! It supports dark mode out of the box! π You just need to add data-mode="dark" in the
<html /> tag.
Try it here π
Components
Badge
BadgeBadgeBadgeBadgeBadge
Use:
<span class="badge">Badge</span>
Available modifiers:
badge--success
badge--warning
badge--danger
badge--dark
Box
This is a box block.
A box is a container for any kind of content.
Use:
<div class="box">This is a box</div>
Grid
A 12 column grid. Every column stacks full width on small screens and only takes its share from
768px up. Use col-4 for a quarter, col-6 for a half, and so on up to
col-12.
col-4
col-4
col-4
col-8
col-4
Suffix a size with -sm, -md or -lg to pin it from that
breakpoint up. col-6-sm is always a half, even on a phone.
col-6 col-6-sm
col-6 col-6-sm
To hide something on small screens, add hide-mobile. Also available:
hide-tablet and hide-desktop.
<div class="notification">
This is a notification block.
</div>
Available modifiers:
notification--success
notification--warning
notification--error
notification--info
Code
This is how the content of a <code /> tag looks like.
Pre
<pre>
<!-- Code here -->
</pre>
Code windows are highlighted when you add
Prism
and mark the content with a language-* class, as above. The colors come from the library,
so no Prism theme is needed.
Progress
1%
50%
75%
Use:
<div class="progress progress--75">75%</div>
Available modifiers for progress:
progress--<number>
E.g. progress--5
E.g. progress--75
E.g. progress--100
E.g. progress--infinite
Available modifiers for colors:
progress--warning
progress--danger
progress--info
progress--dark
Tooltip
Hover over the texts below to see the tooltips in action!
The tooltip may show on the opposite site, if the trigger is too close to the edge of the screen.
Although you are not required to use Javascript with
Boring CSS at all, you might want to use it to enhance the user experience (UX) of your website or web
apps, for example, to give users the ability to change the color theme, or open/close a modal, etc.
Light-Dark mode switcher
The simple Javascript code bellow toggles the
data-mode attribute of the <html /> tag on a button (or trigger) click. Use
it freely.