Skip to content
Effect-TSPublic

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

7 stars

Watchers

0 watching

Forks

Repository files navigation

effectcn

Every @effect/ui-kit component as a styled file you copy into your project. Each component is one Tailwind CSS file in src/ui/, with a page of live examples, the code they run, and manual installation steps. No backend.

pnpm install
pnpm dev          # http://localhost:5173
pnpm typecheck
pnpm test         # server-renders every example
pnpm build
  • src/ui/<slug>.ts: the components. This is the product.
  • src/showcase/<slug>/: each component's page and examples.
  • src/styles/: theme tokens (16 themes, light and dark) and the Tailwind mapping.
  • AGENTS.md: how to add a component.

Search engines and language models

pnpm build (any vite build) ends with a prerender step, prerender/plugin.ts, which writes into dist:

  • every route as static HTML (components/select/index.html, 404.html, ...), with its own title, description, canonical URL, social tags and JSON-LD. These come from src/lib/site.ts through the root component's head, so a client navigation sets the same tags;
  • a Markdown twin of every component and docs page (/components/select.md), llms.txt and llms-full.txt, written from the Showcases by src/lib/markdown.ts;
  • sitemap.xml and robots.txt.

The canonical host is site.origin in src/lib/site.ts. public/og.png and the icons are drawn from scripts/images/*.html by sh scripts/images/make.sh. pnpm preview serves the result as a static host does, with a real 404.

Effect UI is in public preview and installs from snapshot builds, so expect the kit's APIs to move.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages