@barrys27/ui is a minimalist CSS utility library designed for clarity and order. It doesn't force you into complex frameworks; instead, it provides a set of design rules and atomic components to make your data dashboards or personal portfolios look professional and refined.
The secret to great design is alignment. In this system, every margin, padding, and gap follows the 8-point grid (8, 16, 24, 32...). By sticking to these mathematical increments, your interface will always feel balanced and consistent.
Inspired by iOS, our core containers use a frosted-glass effect. This "material" ensures your content is readable on any background while maintaining a light, modern aesthetic.
We believe motion should be part of the physics of the page, not a heavy script. Using modern CSS, elements automatically fade and scale into view as you scroll—no JavaScript required.
.card: The primary container. It features frosted-glass styling and smooth corners. Add.is-interactivefor spring-loaded hover feedback..row: Built for data density. It perfectly aligns labels to the left and values to the right, creating a clean flow for financial or technical info..badge: A sharp, high-contrast label. It uses "hairline" borders to stay crisp and visible even at small sizes.
Ideal for showcasing projects on sites like barrys27.github.io:
<div class="card fade-in">
<img src="cover.jpg" class="cover">
<div style="padding: 24px;">
<h3>Iris Dataset Analysis</h3>
<p>A study in data visualization and species relationships.</p>
</div>
</div>- Install:
npm install @barrys27/ui - Import: Add the essentials to your Scss entry point:
@use '@barrys27/ui/base';
@use '@barrys27/ui/card';
@use '@barrys27/ui/badge';
@use '@barrys27/ui/row';Inspired by iOS Human Interface Guidelines.