@pol-cova/gessi
v0.5.0
Published
CSS and Web Components for expressive HTML and retro desktop interfaces.
Maintainers
Readme
gessi
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
Quick start
<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
>Install
npm install @pol-cova/gessiimport "@pol-cova/gessi/css";
import "@pol-cova/gessi/components";What is included
- Five visual systems:
neo,minimal,retro,old-tech, andclassic-os. - A public
customtheme token API for project-specific visual systems. - Desktop environments, draggable windows, nested windows, and dialogs.
- Optional desktop layout persistence with
storage-key. - Menus, toolbars, docks, breadcrumbs, tabs, trees, icons, and notifications.
- Timelines, entries, progressively enhanced forms, and load-more controls for server-rendered content.
- Maps, markers, carousels, and composable image effects.
- Markdown and MDX document styling with
gessi-documentand.gs-prose. - 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.
Examples
Development
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.
Contributing
Issues and pull requests are welcome. Read CONTRIBUTING.md before proposing public API changes.
License
MIT. Departure Mono is included under its own MIT license.
