Contributing
ARC UI is MIT-licensed. Bug reports and pull requests go to the GitHub repository.
Getting started
Prerequisites:
- Node.js 24+ (LTS)
- pnpm 10+
- Git
git clone https://github.com/Arclight-Digital/arc-ui.git
cd arc-ui
pnpm install
The packageManager field pins the pnpm version. Usepnpm for every command in the repo.
Development
Work on components in the docs site. Start it with:
pnpm dev
After editing Web Component source in packages/web-components/src/ or tokens inshared/tokens.js, regenerate everything (framework wrappers, HTML examples, and CSS):
pnpm generate
packages/react/,
vue/, svelte/, angular/, solid/,
preact/), packages/html/css/, or
shared/base.css. pnpm generate writes them and overwrites
your edits.
Bump versions with this script, which updates every package at once. Don't editpackage.json versions by hand.
pnpm bump-versions <version>
Architecture
ARC UI is a monorepo. The Lit Web Components are the source, and Prism, a custom code generator, reads them and writes a wrapper package for each framework.
Components are organized into seven tiers:
- Layout: Page scaffolding (AppShell, Container, PageLayout)
- Navigation: Menus, links, tabs, breadcrumbs
- Content: Cards, avatars, icons, carousels
- Data: Tables, lists, badges, meters, stats, timelines
- Typography: Code blocks, markdown, text, kbd
- Input: Buttons, forms, selects, sliders
- Feedback: Dialogs, toasts, tooltips
Design tokens are defined in shared/tokens.js, andpnpm generate writes shared/base.css from it. Compound tokens must use var() references so consumers can override just the base tokens.
Pull requests
- Fork the repository and create a feature branch from
main - Make your changes to the Web Component source
- Run
pnpm generateto regenerate wrappers and CSS - Run
pnpm test,pnpm lintandpnpm format:check - Test your changes in the docs site (
pnpm dev) - Open a pull request describing the change
Reporting issues
Open an issue onGitHubwith:
- Steps to reproduce (for bugs)
- Expected and actual behavior
- Browser and OS version
- A minimal reproduction if possible
Code style
- Web Components are plain JavaScript (no TypeScript build step)
- Use
static propertiesinstead of decorators - Follow existing naming:
arc-component-namefor tags,ArcComponentNamefor classes - Components import
tokenStylesfrom../shared-styles.js. A few elements with no transitions of their own, mostly children such asarc-tabandarc-radio, leave it out. - Use
var(--token-name)for all colors, spacing, and typography - Clean up event listeners in
disconnectedCallback() - Make interactive components work from the keyboard
- Run
pnpm formatbefore committing
See also
- Getting started: installation and setup
- Accessibility: what the components handle and how they're audited
- Tokens: design token reference