Thanks for your interest in contributing to nyxbui.design. We're happy to have you here.
Please take a moment to review this document before submitting your first pull request. We also strongly recommend that you check for open issues and pull requests to see if someone else is working on something similar.
If you need any help, feel free to reach out to @nyxb.
This repository is a monorepo.
- We use pnpm and
workspaces
for development. - We use Turborepo as our build system.
- We use bumping for managing releases.
This repository is structured as follows:
apps
└── www
├── app
├── components
├── content
└── registry
├── default
│ ├── example
│ └── ui
└── miami
├── example
└── ui
packages
└── cli
Path | Description |
---|---|
apps/web/app |
The Next.js application for the website. |
apps/web/components |
The React components for the website. |
apps/web/content |
The content for the website. |
apps/web/registry |
The registry for the components. |
packages/cli |
The nyxbui package. |
You can fork this repo by clicking the fork button in the top right corner of this page.
git clone https://github.com/your-username/ui.git
cd ui
git checkout -b my-new-branch
pnpm install
You can use the pnpm --filter=[WORKSPACE]
command to start the development process for a workspace.
- To run the
nyxbui.design
website:
pnpm --filter=web dev
- To run the
nyxbui
package:
pnpm --filter=nyxbui dev
The documentation for this project is located in the web
workspace. You can run the documentation locally by running the following command:
pnpm --filter=web dev
Documentation is written using MDX. You can find the documentation files in the apps/web/content/docs
directory.
We use a registry system for developing components. You can find the source code for the components under apps/web/registry
. The components are organized by styles.
apps
└── web
└── registry
├── default
│ ├── example
│ └── ui
└── miami
├── example
└── ui
When adding or modifying components, please ensure that:
- You make the changes for every style.
- You update the documentation.
- You run
pnpm build:registry
to update the registry.
Before you create a Pull Request, please check whether your commits comply with the commit conventions used in this repository.
When you create a commit, we kindly ask you to follow the convention :emoji: category(scope or module): message
in your commit message. The available emojis and categories can be found at conventional-emoji-commits.
Examples of commit messages:
:sparkles: feat(components): add new prop to the avatar component
:bug: fix(button): correct button alignment issue
:memo: docs(readme): update installation instructions
For a detailed specification, you can visit the conventional-emoji-commits page.
If you have a request for a new component, please open a discussion on GitHub. We'll be happy to help you out.
Create your showcase in content/showcase/website-name.mdx
---
title: website-name.com
description: Website description
image: /showcase/website-name.png
href: https://website-name.com
featured: true
affiliation: YC S25, raised $10M
---
Upload an image of your site to public/showcase/website-name.png
The nyxbui
package is a CLI for adding components to your project. You can find the documentation for the CLI here.
Any changes to the CLI should be made in the packages/cli
directory. If you can, it would be great if you could add tests for your changes.
Tests are written using Vitest. You can run all the tests from the root of the repository.
pnpm test
Please ensure that the tests are passing when submitting a pull request. If you're adding new features, please include tests.