SavComponents icon

An open-source library of ready-to-use web components for websites and web apps. Each component is a standard custom element — a plain HTML tag such as <sav-button> or <sav-input> that works in static pages, PHP templates, React, Vue or anything else, with no framework, no build step and no dependencies. Choose one of five visual styles (Soft, Tilt, Sharp, Brutal, Glass), switch between light and dark mode, and fine-tune colours, shapes and sizes through CSS variables or through the live customiser on the site. Form components — inputs, selects, checkboxes, radios, date and time pickers — submit with native forms and support validation out of the box.

Type Library
Components 34
Styles Soft, Tilt, Sharp, Brutal, Glass
Dependencies None
License MIT
Version 1.0.0

The idea

Every project on this site needs buttons, inputs, alerts, dialogs and a dozen other UI pieces. Building them from scratch each time means duplicating CSS, re-solving the same accessibility details and maintaining slightly different versions across projects. After years of copying the same snippets, SavComponents was born: one library that collects all of those pieces into custom elements any page can use with a single <script> tag.

The library is built entirely on standard Web Components — custom elements, shadow DOM and HTML templates. Because the browser does the heavy lifting, there is no framework dependency, no build tool, no virtual DOM and no runtime dependency at all: the script is self-contained. Tags like <sav-button>, <sav-input> or <sav-date-picker> work the moment the script loads, in a plain HTML page just as well as in a PHP template, a React app or a Vue project.

Theming relies on CSS custom properties and the color-mix() function: set one colour per variant and the hover, soft and outline shades are derived automatically. Five built-in styles — Soft, Tilt, Sharp, Brutal and Glass — cover most visual directions, each with light and dark mode. The live customiser on the site lets you tweak every token in real time and export the result as a ready-to-use CSS file.

Form components deserve a special mention: inputs, textareas, selects, checkboxes, radios, date pickers and time pickers all participate in native HTML forms. They submit their values without extra JavaScript and support the standard constraint-validation API, so required fields, patterns and custom messages work out of the box.