Skip to content

pol-cova/gessi

Repository files navigation

gessi

npm license documentation

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/gessi
import "@pol-cova/gessi/css";
import "@pol-cova/gessi/components";

What is included

  • Five visual systems: neo, minimal, retro, old-tech, and classic-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.

Examples

Development

npm run build
npm run check
npm run docs:build
npm run preview

Open http://localhost:4173/docs/.

Source:

src/gessi.css
src/components.js
src/gessi.js

npm 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.

About

CSS and Web Components for expressive HTML and retro desktop interfaces.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors