Appearance
Project Setup
Learn how to set up a new project using Studs Design System.
Creating a New Project
Initialize your project
bashpnpm create next-app my-studs-app cd my-studs-app
Install Studs dependencies
bashpnpm add @studs/core @studs/react
Configure TypeScript Create or update your
tsconfig.json
:json{ "compilerOptions": { "target": "ES2020", "lib": ["DOM", "DOM.Iterable", "ESNext"], "module": "ESNext", "skipLibCheck": true, "moduleResolution": "bundler", "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, "jsx": "react-jsx", "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, "include": ["src"], "references": [{ "path": "./tsconfig.node.json" }] }
Project Structure
my-studs-app/
├── src/
│ ├── components/
│ ├── pages/
│ ├── styles/
│ └── app.tsx
├── package.json
├── tsconfig.json
└── README.md
Configuration
Configure Tailwind CSS
js// tailwind.config.js module.exports = { content: ['./src/**/*.{js,jsx,ts,tsx}'], theme: { extend: { // Your custom theme extensions }, }, plugins: [], }
Setup ESLint and Prettier
bashpnpm add -D eslint prettier
Next Steps
- Proceed to Turborepo Setup if you're building a monorepo
- Check out our Components documentation to start building your UI