- TypeScript 74.6%
- CSS 22.8%
- JavaScript 2.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| .husky | ||
| assets | ||
| demo | ||
| packages/glim | ||
| .gitignore | ||
| bun.lock | ||
| commitlint.config.ts | ||
| glim.code-workspace | ||
| LICENSE | ||
| oxfmt.config.ts | ||
| oxlint.config.ts | ||
| package.json | ||
| README.md | ||
| regime.config.json | ||
| release.config.cjs | ||
Glim
A SolidJS component library and the demo that consumes it.
packages/glim/src: components, types, theme helpers, component CSS.demo/src: component pages, gallery, token editor, dense workspace, demo CSS.tests: interaction and demo integration checks.dist: generated site output, ignored by Git.
npm ci
npm run dev
npm run typecheck
npm test
bun run --filter @sigitex/glim test:package
npm run build
Build generates the browser library, declarations, an installable sigitex-glim-0.11.0.tgz, and the static demo. The demo uses the same source exports consumers compile through the Solid condition. Solid and demo code are independently organized; no legacy string templates or DOM binders are used.
Generated output is not committed: dist/, packages/glim/lib/, package tarballs, and demo/src/component-api.ts. The API reference is regenerated before development, type checking, tests, and the production build. Sites deploys the built archive independently of the tracked source files.
Components import their plain CSS and shared foundations automatically. Each component lives in a folder such as packages/glim/src/components/Button, with Button.tsx, Button.css, and an index.ts exporting the component. Shared tokens, palette formulas, focus, scrollbars, and selection styles live in src/shared/styles. Component modules remain separate in compiled ESM so consumer bundlers can remove unused components and styles. test:package checks packed source and compiled exports, declarations, CSS, and tree-shaking in isolated consumers.
Every public component has a deep-linked page at #component/ComponentName. Each page provides a live preview, editable options, emitted events, expandable Solid TSX, and an API reference. component-catalog.ts owns the examples; ComponentPage.tsx owns the workbench. npm run docs:generate derives prop types, signatures, and related data types directly from the public TypeScript API; build runs it automatically. Tests verify component coverage, routing, option changes, preview rendering, and compilation of all generated examples.
See packages/glim/README.md for package usage. Sites publication remains attached to the existing Glim project. Forgejo access is a separate remote setup and has not been verified.