UI components built with Lit, styled with shared design tokens, and delivered as standard web components. Use them in your existing app without adopting another UI framework.
Website · Storybook · npm · Report an issue
Install the components in an app with a JavaScript bundler, such as Vite:
npm install @codechem/componentsImport the components you need in your app's JavaScript entry point:
import '@codechem/components/text-input.js';
import '@codechem/components/button.js';Then use their tags in your markup:
<cc-text-input label="Project name" placeholder="My project"></cc-text-input>
<cc-button variant="filled">Create project</cc-button>Prefer to register everything? Use import '@codechem/components' instead.
Component imports load the design tokens and bundled Kumbh Sans and Material Icons Round fonts automatically—no separate stylesheet or font setup needed.
For framework setup, forms, events and component APIs, see the getting started guide and Storybook.
Components use --cc-* CSS custom properties for styling. Override tokens in your app's CSS to change the theme:
:root {
--cc-accent-main: #7753cd;
}Defaults are loaded inside @layer cc-tokens, so your overrides work without !important. See the theming guide for more.
Only need the design tokens? Install @codechem/tokens and import @codechem/tokens/tokens.css independently of the components.
Bug reports, component improvements and documentation fixes are welcome. Open an issue or read the contribution guide for local setup, Storybook and tests.
Release and deployment instructions are in the maintainer guide.
