2.0.8 ā€¢ Published 2 months ago

blouse.css v2.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

šŸ‘š blouse.css

This responsive tiny framework allows you to focus on the content. Don't waste time with design until your app is working. Less than 1Kb compressed* and 4.4Kb for the icons.

CSS size in bytes Icons font size in bytes

Features

  • Semantic HTML āœ…
  • Mobile first āœ…
  • Dark mode āœ…
  • Lightweight, minimal footprint āœ…
  • No JavaScript ** āœ…
  • Icons for social networks āœ…

See it live

* When minified and compressed with the widely supported brotli algorithm.

** The demo menu uses JS to close it when a link is clicked. It is only necessary on anchors, not when they're linked to other pages.

How to use

Copy the following code or download the starter template

<!doctype html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="dist/blouse.css">
</head>
<body>
  <nav><!-- Optional menu --></nav>
  <main>
    <!-- Put your content here! -->
  </main>
  <footer><!-- Optional footer --></footer>
</body>
</html>

Documentation

Use as much semantic HTML as possible, see the demo for reference.

Utilities

We use the class names from Tailwind in case you later want to migrate to it.

<p class="text-center">This text is align in the center.</p>
<p class="text-lg">This text is big.</p>
<p class="mute">This text is muted.</p>
<p class="mt-2">This text has a space on top.</p>
<p class="mt-4">This text has double space on top.</p>

Menu

<nav>
  <input type="checkbox" id="menu-toggle" aria-hidden="true" />
  <a href="/">My brand</a>
	<label for="menu-toggle" aria-hidden="true"></label>
  <ul>
    <li><a href="#">First link</a></li>
    <li><a href="#">Second link</a></li>
    <li><a href="#">Third link</a></li>
  </ul>
</nav>

Footer

<footer>
  <span>Some content</a>
  <span><a href="#">A link</a></span>
  <span>
    <i class="gh" aria-hidden="true" title="GitHub"></i>
  </span>
</footer>

Forms and messages

<a class="btn" href="#">Regular button</a>
<a class="btn main" href="#">Main button</a>
<a class="btn alt" href="#">Alternative button</a>

<input type="submit" value="Regular button" />
<input type="submit" class="main" value="Main button" />
<input type="submit" class="alt" value="Alternative button" />

<button>Regular button</button>
<button class="main">Main button</button>
<button class="alt">Alternative button</button>

<p class="msg ok">Ok message</p>
<p class="msg err">Error message</p>
<p class="msg info">Info message</p>
<p class="msg warn">Warning message</p>

Alerts are popup notification showed at the top (over the menu). The close button needs to be implemented with JavaScript. Use role="alert" when hidden to make it accesible.

<p class="msg alert ok">This is an alert ok.</p>

<p class="msg alert err" hidden role="alert">
  This is an alert error.
  <b title="Close" aria-label="Close the alert." onclick="this.parentElement.hidden=true">āœ•</b>
</p>

Icons

Use emojis for most of the icons you need, like šŸ–Øļø, āš™ļø or šŸ“ž But for social networks we needs icons, here you have the most used:

Twitter: <i class="tw" aria-hidden="true" title="Twitter"></i>
Facebook: <i class="fb" aria-hidden="true" title="Facebook"></i>
GitHub: <i class="gh" aria-hidden="true" title="GitHub"></i>
LinkedIn: <i class="in" aria-hidden="true" title="LinkedIn"></i>
WhatsApp: <i class="wa" aria-hidden="true" title="WhatsApp"></i>
Telegram: <i class="tl" aria-hidden="true" title="Telegram"></i>
Youtube: <i class="yt" aria-hidden="true" title="Youtube"></i>
Instagram: <i class="ig" aria-hidden="true" title="Instagram"></i>
Twitch: <i class="ti" aria-hidden="true" title="Twitch"></i>

Themes

The framework has different themes.

  • Default
  • Warm
  • Cool
  • Sea
  • Balloon
  • Solid
  • Party
  • Idea

CDN

Use jsDelivr to load https://cdn.jsdelivr.net/npm/blouse.css@version/dist/theme.css

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/blouse.css@2.0.8/dist/warm.css" crossorigin="anonymous">

Made with ā¤ļø, by Pragmore

2.0.7

2 months ago

2.0.8

2 months ago

2.0.5

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.4

2 years ago

1.2.0

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.2

3 years ago

1.0.0

3 years ago