Download Latest Version v4.0.16 source code.tar.gz (45.5 MB)
Email in envelope

Get an email when there's a new version of Beer CSS

Home / v4.0.1
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-01-27 2.6 kB
v4.0.1 source code.tar.gz 2026-01-27 10.8 MB
v4.0.1 source code.zip 2026-01-27 11.0 MB
Totals: 3 Items   21.8 MB 0

CHANGELOG 4.0.1

minzipped size

🚀 Added

🩹 Fixed

⚠️ Breaking changes

  • None

Updated all elements to be 100% valid HTML

Our homepage are now 100% valid HTML, without errors, warnings or infos:

image

Menu

:::html
// DON'T
<button>
  <span>Button</span>
  <menu>
    <li>Item</li>
    <li>Item</li>
    <li>Item</li>
  </menu>
</button>

:::html
// DO
<div>
  <button>
    <span>Button</span>
  </button>
  <menu>
    <li>Item</li>
    <li>Item</li>
    <li>Item</li>
  </menu>
</div>

Tooltip

:::html
// DON'T
<button>
  <span>Button</span>
  <div class="tooltip"></div>
</button>

:::html
// DO
<button>
  <span>Button</span>
  <span class="tooltip"></span>
</button>

<div>
  <button>
    <span>Button</span>
  </button>
  <div class="tooltip"></div>
</div>

Inline/Block elements

:::html
// DON'T
<span>
  <div>...</div>
</span>

<a>
  <div>...</div>
</a>

:::html
// DO
<span>
  <span>...</span>
</span>

<a>
  <span>...</span>
</a>

<div>
  <span>...</span>
</div>

<div>
  <div>...</div>
</div>

You still can use the "DON'T way" but it's an invalid HTML markup

Updated all elements to get highscores on Google Lighthouse

After update, we got some perfect score on our templates.

image

Source: README.md, updated 2026-01-27