A living, breathing style guide web application that serves as a starter boilerplate template for new projects with frontend UI components within the Sirius project ecosystem.
This project is designed to be a "create-react-app" style starter boilerplate for new projects. The architectural decisions made here are automatically opted into by users, making this less of a style guide website and more of a comprehensive starter template.
style-guide/
├── docs/ # Documentation system
│ ├── ABOUT.documentation.md
│ ├── templates/ # Document templates
│ └── development/ # Development documentation
├── projects/ # Project directories
│ ├── template-project/ # Example project templates
│ │ ├── plans/ # Example project plans
│ │ ├── resources/ # Example resources
│ │ └── tasks/ # Example task files
│ └── init/ # Init project (boilerplate)
│ ├── app/ # Next.js App Router
│ ├── components/ # React components
│ ├── lib/ # Utilities and configurations
│ └── tasks/ # Task management files
├── scripts/ # Utility scripts
│ └── validate-tasks.js # Task validation script
├── .github/ # GitHub Actions workflows
│ └── workflows/ # CI/CD workflows
├── AGENTS.md # AI agent guidance
└── README.md # This file
- Self-updating: Connected to CI workflows with AI agent runners
- LLM-optimized: Structured for maximum AI context and understanding
- Template-based: Consistent structure across all documentation
- Machine-readable: YAML front matter for automated processing
See docs/ABOUT.documentation.md for complete documentation standards.
- JSON Schema compliant: Industry-standard task format
- Structured tracking: Status, dependencies, priorities, metadata
- AI-friendly: Designed for AI agent interaction
- Validation: Automated validation of task files
See docs/development/README.task-management.md for complete task management guide.
This repository itself is a complete Next.js full-stack boilerplate:
- Next.js 16 with App Router and TypeScript
- tRPC for type-safe API communication
- Drizzle ORM with multi-provider support (SQLite, PostgreSQL, MySQL)
- ShadCN UI component library foundation
- Tailwind CSS for styling
- CI/CD workflows for automated testing and deployment
- Pre-commit hooks for code quality
The application code is in the root directory (app/, components/, lib/, etc.).
New to this boilerplate? Start here! ⭐
Option A: GitHub Template (Recommended)
Click the "Use this template" button at the top of this page to create your own repository.
Option B: Degit (Fast)
npx degit your-org/style-guide my-new-app
cd my-new-appOption C: Clone
git clone https://github.com/your-org/style-guide.git my-new-app
cd my-new-app
rm -rf .git && git init # Start freshnpm install
npm run setup # Interactive setup wizardnpm run dev # http://localhost:3000That's it! You're ready to build. 🎉
See QUICKSTART.md for detailed instructions or use the @use-template command in OpenCode.
Already have your app running? Want to organize multiple projects/features within it?
See projects/README.md or use @create-subproject command.
- Review documentation standards: Read docs/ABOUT.documentation.md
- Use templates: Copy templates from
docs/templates/ - Follow structure: Maintain consistent documentation structure
- Update automatically: CI workflows will help keep docs current
- Create task file: Use
projects/template-project/tasks/example-tasks.jsonas template - Define tasks: Follow JSON Schema format
- Track progress: Update task status as work progresses
- Validate: Use
scripts/validate-tasks.jsto validate task files
- ABOUT.documentation.md: Documentation system standards
- README.task-management.md: Task management guide
- README.ui-style-guide.md: UI style guide template
- AGENTS.md: AI agent guidance and workflows
- Creating Pages: How to create new pages in Next.js
- Component Usage: Layout and UI component patterns
- Styling Conventions: Tailwind CSS and styling patterns
- tRPC API Development: Building type-safe APIs
- Database Development: Drizzle ORM patterns
- Code Organization: File structure and naming conventions
- Component Patterns: Mandatory component patterns
- TypeScript Patterns: TypeScript conventions
- Migration Guide: Step-by-step guide to use this boilerplate
- Template Project Examples: Example PRD, tasks, plans
- AI Documentation Update: Automatically updates documentation when code changes
- Build and Lint: Validates code before merging
- Deploy to Vercel: Automated deployment to Vercel
See .github/workflows/ for workflow configurations.
- Check tasks: Review task files in
projects/[project-name]/tasks/ - Start work: Update task status to
in_progress - Make changes: Follow project standards and best practices
- Test: Run validation and tests
- Update tasks: Mark tasks as
completedwhen finished - Commit: Pre-commit hooks validate code automatically
See AGENTS.md for detailed development workflow guidance.
The component library structure is ready for integration:
- Location:
components/ui/ - Foundation: ShadCN UI
- Integration: Components will be added by separate development team
- Documentation: Components will be showcased on overview page
- Frontend: Next.js 16, React 19, TypeScript
- Backend: Next.js API Routes, tRPC
- Database: Drizzle ORM (SQLite, PostgreSQL, MySQL)
- UI: ShadCN UI, Tailwind CSS
- State: TanStack Query
- Validation: Zod
See AGENTS.md for complete guidance on:
- Reading and updating tasks
- Following documentation standards
- Using CI/CD workflows
- Development best practices
- Follow documentation standards
- Use task management system
- Maintain code quality (linting, type checking)
- Update documentation as code changes
- Follow project structure conventions
This is a boilerplate template. Customize as needed for your project.
This style guide boilerplate provides a comprehensive foundation for new projects with modern tooling, best practices, and AI-friendly workflows.