Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gwjun/gwjun-ui

A headless design system that uses the emotion css library
https://github.com/gwjun/gwjun-ui

component design-system ui vanilla-extract

Last synced: about 1 month ago
JSON representation

A headless design system that uses the emotion css library

Awesome Lists containing this project

README

        

GWjun UI

**A headless design system that uses the [emotion](https://github.com/emotion-js/emotion) css library.**




You can inject each component codes into your project, like [shadcn-ui](https://github.com/shadcn-ui/ui)

## Installation

Add baseUrl and alias in your `tsconfig.json` to correctly configure the import paths for utility functions.




If you configured differently, you must input the alias according to the corresponding path when running `init`.

```json
/** tsconfig.json */
{
"compilerOptions": {
// ...
"baseUrl": ".",
"paths": {
"#*": ["./src/*"]
}
}
}
```

> **Note**

> If you are using other frameworks or build tool such as `Vite`, additional steps may be required to configure `alias`.

## Usage

### init

Use the `init` command to initialize dependencies for a new project.

The `init` command sets up the component-config.json file, which makes configuration settings.

```bash
npx gwjun-ui init
```

### add

Use the `add` command to add components to your project.

The `add` command adds a component to your project and installs all required dependencies.

```bash
npx gwjun-ui add [component]
```

#### Example

```bash
npx gwjun-ui add button
```

## Components

- [Button](https://github.com/GWjun/gwjun-ui/tree/main/src/components/Button)
- [Input](https://github.com/GWjun/gwjun-ui/tree/main/src/components/Input)
- [Label](https://github.com/GWjun/gwjun-ui/tree/main/src/components/Label)