Cut corners
al-corner al-corner-all-16
Futuristic CSS UI toolkit
Alfuix is an open-source CSS and SCSS toolkit for futuristic, sci-fi interfaces. Corner cuts, notches, hexagons, borders that follow every cut, patterns and motion, all from classes driven by CSS variables. It sits on top of Bootstrap or Tailwind and needs no JavaScript.
Corner cut
al-clip al-corner-all-28
01 — The toolkit
Most design systems are built for rounded, minimalist SaaS. Alfuix breaks the mold: every edge can be cut, notched or angled with a class, not a hand-drawn SVG frame.
An open-source CSS UI toolkit with advanced clipping and modern utilities, designed for building futuristic, high-density and tactical user interfaces.
Most modern design systems are built for standard, minimalist SaaS and dashboards. I wanted to break the mold with a high-performance FUI system optimised for advanced CSS clipping, cyber-security dashboards and sci-fi data tracking.
As the sole designer and front-end architect, I built a cohesive ecosystem that matches advanced Figma components 1:1 with lightweight, utility-first SCSS and CSS3, for a seamless developer handoff.
Hover a card to see where its border goes, then click it to flip between plain clip-path and Alfuix and compare the corners.
Hover a card. On a headache the outline is an ordinary border under a plain clip-path, so each ringed corner has a gap. On a fix, al-clip-both redraws the border on the same polygon, so it runs straight through every ring.
The slice itself: two copies of the headache, each clipped to one side of a diagonal, slide apart.
02 — Anatomy of a cut
Every Alfuix shape is the same clip-path polygon. Classes only move its points. Scroll to watch one box become a sci-fi panel.
Every shape starts as one polygon with 24 points, all resting on the edges of the box. Nothing is cut yet, so it looks like a plain rectangle.
class="al-clip"
--al-ts, --al-te, --al-be and --al-bs slide the two points at each corner inward, for a 45° cut. Start and end mean they mirror in right-to-left pages.
al-ts-32 al-be-32 al-te-12 al-bs-12
Four points on every edge make a notch. --al-t sets how deep it bites into the top; --al-extend-t sets half its width.
al-t-24 al-extend-t-64
Notches sit in the middle of their edge. --al-center-t slides one along it, from 0% to 100%, to line it up with a tab or a title.
al-center-t-75
The bottom and both sides have their own notch. al-x-* cuts the start and end edges at once, al-y-* the top and bottom.
al-x-14 al-extend-x-60 al-b-16 al-extend-b-64
Swap al-clip for al-clip-both. Its ::after draws a border and its ::before an inner plate, both on the same 24 points, so the outline follows every cut.
al-clip-both al-border-2 al-inlay-8
03 — Shape library
Every tile below is the real class string, rendered live. Copy one and paste it onto any element.
al-corner al-corner-all-16
al-corner al-ts-32 al-be-32
al-corner al-te-48
al-clip al-corner-all-8 al-t-clip-x
al-clip al-b-clip-x al-extend-b-35 al-b-6
al-clip al-x-12 al-extend-x-25
al-clip al-t-16 al-extend-t-24 al-center-t-25
al-clip al-all-clip al-corner-all-12
al-hexa al-w-110
al-hexa-alt al-w-85
al-triangle-up
al-trapezoid-t-48 al-trapezoid-w-64px
al-clip-border al-corner-all-16 al-t-clip-x al-border-2 al-border-primary-75
al-clip-inlay al-ts-24 al-be-24 al-inlay-6 al-inlay-bg-primary-50
al-clip-both al-corner-all-12 al-b-clip-x al-border-2 al-inlay-6 al-border-warning-75 al-inlay-bg-warning-10
al-hexa al-hexa-inlay al-inlay-5 al-inlay-bg-primary-25 al-hexa-border al-border-2 al-border-primary-75
Twelve patterns in four sizes (sm, md, lg, xl), plus a double grid. Any theme colour, at any strength.
al-pattern-zigzag-md al-pattern-info-25
checkscross-dotsdiagonal-linesdiagonal-stripesdotsgridhorizontal-lineshorizontal-stripestrianglesvertical-linesvertical-stripeszigzag04 — Playground
Every slider steps through the values Alfuix ships, so the code underneath is always real classes. Paste it into any Bootstrap or Tailwind page.
<div class="al-clip-both"></div>
05 — Motion & states
Hover, focus and loop effects that ship with the toolkit. Hover or tap each specimen; the class underneath is all it takes.
al-hover-glass-shineal-hover-glowal-hover-fancy-borderal-fancy-borderal-animate-border-gradiental-hover-rotate-90al-animate-sound-waveal-animate-water-waveal-animate-ripple-circleal-animate-preloader-gridal-text-pattern@keyframes → --al-*Because Alfuix shapes are driven by variables, you can animate them. Register a variable with @property and the browser tweens it like any length, and the polygon follows: no JavaScript, no path morphing.
Every moving shape on this page (the hero panel, the anatomy box, the playground and the specimen beside this text) is an Alfuix class with registered --al-* variables.
/* let the browser interpolate the cut */
@property --al-ts { syntax: "<length-percentage>"; inherits: true; initial-value: 0px; }
@property --al-t { syntax: "<length-percentage>"; inherits: true; initial-value: 0px; }
/* on an element with class="al-clip-both" */
.panel { animation: cut 4s ease-in-out infinite alternate; }
@keyframes cut {
from { --al-ts: 0px; --al-t: 0px; }
to { --al-ts: 32px; --al-t: 18px; }
}
06 — Get Alfuix
Install it from npm, or link the compiled CSS from a CDN. Package installs include only the CSS and SCSS, with no documentation or build tools.
# the toolkit (add Bootstrap or Tailwind as your base)
npm install alfuix
npm install bootstrapyarn add alfuix<!-- jsDelivr (or unpkg.com/alfuix/dist/css/alfuix.min.css) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/alfuix/dist/css/alfuix.min.css">// the whole toolkit, or just one module
@import "alfuix/scss/alfuix";
@import "alfuix/scss/alfuix-clip";alfuix.cssEverything: shapes, utilities, patterns and motion
alfuix-clip.cssJust the clipping shapes
alfuix-animation.cssHover effects and motion
alfuix-utilities.cssSpacing, sizing, filters and other utilities
.min.css07 — The maker
I designed and built Alfuix on my own, from the shapes in Figma to the npm releases. Each corner of this card is one of the four hats I wore: pick a corner and it cuts itself open.
I drew the shape language in Figma first: corner cuts, notched panels, hexagon badges and frames that keep their outline. Each one became a class, matched 1:1.
Figma componentsal-hexaal-clip-both Pick a corner (or use the arrow keys). The cut is just --al-ts and its siblings, eased by the browser.
Four chapters, four blades. Open one, or let them play.
Most design systems are built for standard, minimalist SaaS and dashboards: rounded corners, soft shadows and the same card everywhere.
I wanted interfaces for cyber-security dashboards and sci-fi data tracking, with cut corners and notched panels. In plain CSS that meant writing a new clip-path polygon for every component.
As the sole designer and front-end architect, I matched advanced Figma components 1:1 with lightweight, utility-first SCSS and CSS3, so developers get exactly the shapes the designs use.
Alfuix is MIT-licensed on npm, jsDelivr and GitHub, and it runs this whole site: the Vault Zero, Mizan and Alif pages are cut with the same classes.