← 输入框|github.com|刷新
Skip to content
codechemPublic

About

Web Components Modelling codechem's Design System.

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

CodeChem Design System

npm version License: MIT Web Components Built with Lit

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

Preview of CodeChem UI components

Get started

Install the components in an app with a JavaScript bundler, such as Vite:

npm install @codechem/components

Import 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.

Make it yours

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.

Contributing

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.

License

MIT · Made by CodeChem.

About

Web Components Modelling codechem's Design System.

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages