https://github.com/arevalolance/design-system-template
🏗️ Turborepo + TailwindCSS + Storybook + shadcn-ui
https://github.com/arevalolance/design-system-template
design design-system nextjs react shadcn-ui storybook tailwindcss template turborepo turborepo-example ui vite
Last synced: 27 minutes ago
JSON representation
🏗️ Turborepo + TailwindCSS + Storybook + shadcn-ui
- Host: GitHub
- URL: https://github.com/arevalolance/design-system-template
- Owner: arevalolance
- Created: 2023-02-04T15:46:22.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-15T10:28:31.000Z (over 1 year ago)
- Last Synced: 2025-03-29T05:34:27.716Z (19 days ago)
- Topics: design, design-system, nextjs, react, shadcn-ui, storybook, tailwindcss, template, turborepo, turborepo-example, ui, vite
- Language: TypeScript
- Homepage:
- Size: 340 KB
- Stars: 174
- Watchers: 1
- Forks: 14
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-shadcn-ui - design-system-template - Turborepo + TailwindCSS + Storybook + shadcn/ui. (Boilerplates)
- awesome-shadcn-ui - design-system-template - Turborepo + TailwindCSS + Storybook + shadcn/ui. (Boilerplates)
- awesome-shadcn-ui - Link - 06-06 | (Boilerplates / Templates)
- awesome-shadcn-ui - design-system-template - Turborepo + TailwindCSS + Storybook + shadcn/ui (Boilerplates / Templates / Portfolios)
- awesome-shadcn-ui - design-system-template - Turborepo + TailwindCSS + Storybook + shadcn/ui (Boilerplates / Templates / Portfolios)
README
# 🌱 Turborepo + TailwindCSS + Storybook
## What's inside?
This Turborepo includes the following packages/apps:
### Apps and Packages
- `workshop`: a Storybook app with the `ui` package imported
- `docs`: a [Next.js](https://nextjs.org/) app with [Tailwind CSS](https://tailwindcss.com/)
- `web`: another [Next.js](https://nextjs.org/) app with [Tailwind CSS](https://tailwindcss.com/)
- `ui`: a stub React component library with [Tailwind CSS](https://tailwindcss.com/) shared by both `web` and `docs` applications with [shadcn-ui](https://github.com/shadcn/ui) already included.
- `ui/eslint-config-custom`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
- `ui/tailwind-config`: reusable tailwind configuration
- `ui/tsconfig`: `tsconfig.json`s used throughout the monorepoEach package/app is 100% [TypeScript](https://www.typescriptlang.org/).
### Building packages/ui
This example is setup to build `packages/ui` and output the transpiled source and compiled styles to `dist/`. This was chosen to make sharing one `tailwind.config.js` as easy as possible, and to ensure only the CSS that is used by the current application and its dependencies is generated.
Another option is to consume `packages/ui` directly from source without building. If using this option, you will need to update your `tailwind.config.js` to be aware of your package locations, so it can find all usages of the `tailwindcss` class names.
For example, in [tailwind.config.js](packages/tailwind-config/tailwind.config.js):
```js
content: [
// app content
`src/**/*.{js,ts,jsx,tsx}`,
// include packages if not transpiling
"../../packages/**/*.{js,ts,jsx,tsx}",
],
```### Utilities
This Turborepo has some additional tools already setup for you:
- [Tailwind CSS](https://tailwindcss.com/) for styles
- [TypeScript](https://www.typescriptlang.org/) for static type checking
- [ESLint](https://eslint.org/) for code linting
- [Prettier](https://prettier.io) for code formatting## Using this example
Run the following command:
```sh
npx degit https://github.com/arevalolance/design-system-template.git design-system-template
cd design-system-template
pnpm install
git init . && git add . && git commit -m "Init"
```