@plainconceptsplatform/ui-components

Shared React components for Platform frontend apps (Plain logo and more).


License
MIT
Install
npm install @plainconceptsplatform/ui-components@1.3.1

Documentation

Platform Foundations

Platform Foundations is the shared foundation for PlainConcepts Platform apps. It keeps many independent apps consistent and easy for developers and AI agents to work in, without becoming a heavy in-house framework.

It covers the frontend (a shared theme, conventions, docs, and a themed showcase) and backend/.NET conventions (recommended skills and a reference architecture in ai/ARCHITECTURE.md).

It is not a component library, an app framework, or a design system to be maintained by hand.

What's here

ai/               ARCHITECTURE (incl. Stack) + DESIGN + AGENTS
skills/           reusable agent skills, including platform-onboard for brownfield migrations
apps/docs         Fumadocs (Next.js), docs + live themed component previews
packages/theme    @plainconceptsplatform/ui-theme, design tokens (CSS only)
packages/ui-components  @plainconceptsplatform/ui-components, shared React components (Plain logo, ...)

Core principles

  1. Prefer established open-source libraries over custom code.
  2. Use shadcn/ui components directly; don't wrap them or build a proprietary library.
  3. App-specific components live in the app. Share a component only after the same need appears in multiple apps.
  4. The foundation owns the theme, conventions, docs, and showcase, nothing more.
  5. Keep the scope small. Add a directory/package only when it has a clear job today.

Stack

Next.js (App Router) + React + TypeScript, shadcn/ui on Radix + Tailwind v4, themed by @plainconceptsplatform/ui-theme, icons from Lucide. DI via inversify-hooks (mandatory). Biome, Vitest + Playwright, pnpm. See ai/ARCHITECTURE.md.

Getting started (this repo)

pnpm install
pnpm dev          # run the docs/showcase site (Fumadocs)
pnpm lint         # Biome
pnpm test         # Vitest

Using Platform packages in your app

The Platform theme and shared components are public npm packages. No registry configuration or token is required.

1. Install everything

pnpm add @plainconceptsplatform/ui-theme @plainconceptsplatform/ui-components tailwindcss

2. Initialize

npx @plainconceptsplatform/ui-theme@latest init

This copies components.json, adds the theme import to your global stylesheet, and shows you how to wire the Outfit font in your root layout.

3. Add shadcn components

npx shadcn@latest add button card dialog ...

Full details in packages/theme/README.md.

For AI agents

Start with AGENTS.md. It points to the ai/ folder, which has conventions, architecture, design rules, and agent definitions. For an existing application that needs the full Platform stack, use platform-onboard. It assesses six domains in dependency order: agentic infrastructure, architecture docs, OpenSpec, frontend stack, loop automation, and .NET guardrails.

Agentic Workflow migration

Reusable GitHub Agentic Workflow skills and copyable loops now live in PlainConceptsPlatform/agentic-workflows. Use its self-contained workflow-author and workflow-consumer skills when creating or adopting workflows.

Documentation