Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@felixgeelhaar/glossa-ui

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@felixgeelhaar/glossa-ui

Glossa design system — utilitarian Lit primitives + design tokens. Used by the admin SPA and any consumer surface embedding glossa.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

@felixgeelhaar/glossa-ui

Lit primitives + design tokens that power the Glossa admin SPA. Light / dark / system theming via CSS custom properties; form-associated where it matters (works inside native <form>). ~1100 LOC, ~75 KB unpacked.

pnpm add @felixgeelhaar/glossa-ui

Usage

import "@felixgeelhaar/glossa-ui/tokens.css";
import { initTheme } from "@felixgeelhaar/glossa-ui";
import "@felixgeelhaar/glossa-ui";

initTheme(); // applies persisted theme before first paint
<gl-button variant="primary">Save</gl-button>
<gl-input label="Email" type="email" required></gl-input>
<gl-badge variant="approved">approved</gl-badge>

Primitives

TagNotes
gl-buttonvariants: primary / outline / ghost / danger; sizes: sm / md
gl-inputform-associated via ElementInternals.setFormValue
gl-selectform-associated
gl-textareaform-associated
gl-cardoptional header slot, flush attribute for tables
gl-badgevariants: pending / review / approved / danger / accent / neutral
gl-table + glTableStylesshared CSS for hand-rolled tables that want gl-table look
gl-tabsemits gl-tab-change with { id }
gl-toast + toast()one-shot notifications, auto-dismiss
gl-toolbartop-bar with title + center + actions slots, brand mark built in
gl-theme-togglesystem → light → dark cycle

Theming

Switch theme via the data-glossa-theme attribute on <html> or <body>:

<html data-glossa-theme="dark">

initTheme() reads the persisted preference (or prefers-color-scheme if "system") and applies it before first paint to prevent flash. setTheme() and getTheme() are exposed for theme toggles.

Token names follow --gl-<group>-<role>: --gl-bg, --gl-surface, --gl-text, --gl-text-dim, --gl-accent, --gl-danger, etc. See src/tokens.css for the full set.

Inter font

tokens.css references Inter as the UI font. Either load it yourself (<link> to rsms.me) or override --gl-font-ui.

License

MIT

Keywords

lit

FAQs

Package last updated on 25 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts