Skip to content

pragmore/blouse.css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

118 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘š 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.9/dist/warm.css" crossorigin="anonymous">

Made with ❀️, by Pragmore

About

πŸ‘š Dress up your semantic HTML with blouse.css, a responsive tiny framework for the modern browsers. Made with ❀️ by Pragmore.

Topics

Resources

License

Stars

Watchers

Forks

Contributors