Gessi is a dependency-free CSS and Web Component library for expressive HTML, retro interfaces, and browser-based desktop environments.
It works directly in plain HTML from a CDN and also supports npm, static-site generators, server-rendered templates, and JavaScript frameworks.
Documentation · Examples · npm
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@pol-cova/gessi/dist/gessi.js"
></script>
<gessi-desktop menu="◆ My OS,File,View,Help" clock="09:41">
<gessi-window title="hello.html" width="38rem" active draggable>
<h1>One script, plain HTML</h1>
<p>No package manager, bundler, or framework required.</p>
</gessi-window>
</gessi-desktop>The script registers the components and loads the stylesheet. For the earliest styled paint, include the CSS separately:
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@pol-cova/gessi/dist/gessi.css"
data-gessi-styles
>npm install @pol-cova/gessiimport "@pol-cova/gessi/css";
import "@pol-cova/gessi/components";- Five visual systems:
neo,minimal,retro,old-tech, andclassic-os. - Desktop environments, draggable windows, nested windows, and dialogs.
- Menus, toolbars, docks, breadcrumbs, tabs, trees, icons, and notifications.
- Maps, markers, carousels, and composable image effects.
- Responsive behavior that converts desktop layouts into readable mobile flow.
- Light DOM, progressive enhancement, SSR-safe imports, and zero dependencies.
- CSS primitives for cards, buttons, forms, layouts, badges, and content pages.
The complete component API, attributes, keyboard controls, effects, and copy-ready recipes are available in the interactive documentation.
npm run build
npm run check
npm run docs:build
npm run previewOpen http://localhost:4173/docs/.
Source:
src/gessi.css
src/components.js
src/gessi.jsnpm run build copies the public assets into dist. Pushes to main verify
the package and deploy the documentation site to GitHub Pages.
Issues and pull requests are welcome. Read CONTRIBUTING.md before proposing public API changes.
MIT. Departure Mono is included under its own MIT license.