-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a26b86f
commit 05d1d92
Showing
15 changed files
with
160 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Development Rules | ||
|
||
This directory contains development standards and best practices for different aspects of the codebase. These rules are used by the AI assistant to help maintain consistency and quality across the project. | ||
|
||
## Available Rules | ||
|
||
### Frontend Development | ||
|
||
- **[nextjs.mdc](./nextjs.mdc)**: Next.js development standards and patterns | ||
- **[react-hooks.mdc](./react-hooks.mdc)**: React hooks patterns and best practices | ||
- **[tailwind.mdc](./tailwind.mdc)**: Tailwind CSS and UI component guidelines | ||
- **[typescript.mdc](./typescript.mdc)**: TypeScript coding standards and best practices | ||
- **[web-vitals-perf.mdc](./web-vitals-perf.mdc)**: Web Vitals and performance optimization guidelines | ||
|
||
### Web3 Integration | ||
|
||
- **[viem.mdc](./viem.mdc)**: Viem v2 integration patterns and best practices | ||
- **[wagmi.mdc](./wagmi.mdc)**: Web3 integration patterns using Wagmi v2 | ||
- **[solidity.mdc](./solidity.mdc)**: Solidity development standards with Foundry | ||
|
||
### Data Layer | ||
|
||
- **[ponder.mdc](./ponder.mdc)**: Ponder indexing standards and best practices | ||
|
||
## Usage | ||
|
||
These rules are automatically applied when: | ||
|
||
1. Files matching the rule's glob pattern are opened | ||
2. The AI assistant is asked to help with code related to a specific technology | ||
3. Code reviews are performed by the AI assistant | ||
|
||
## Rule Format | ||
|
||
Each rule file follows this format: | ||
|
||
```markdown | ||
--- | ||
description: Brief description of the rule's purpose | ||
globs: "**/*.{extension}" # File patterns this rule applies to | ||
--- | ||
|
||
# Title | ||
|
||
## Section 1 | ||
Guidelines and examples... | ||
|
||
## Section 2 | ||
More specific rules... | ||
``` | ||
|
||
## Contributing | ||
|
||
When adding new rule files or updating existing rules: | ||
|
||
1. Follow the established concise format | ||
2. Include clear examples and explanations | ||
3. Define appropriate glob patterns | ||
4. Add the rule file or update the rule entry in this README | ||
5. Ensure consistency with existing rules | ||
6. Review and test the new or updated rules to ensure they work as expected | ||
|
||
## Maintenance | ||
|
||
Rules should be regularly reviewed and updated to: | ||
|
||
- Keep up with latest best practices | ||
- Incorporate team feedback | ||
- Address common issues | ||
- Align with project evolution | ||
|
||
## License | ||
|
||
MIT License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# @repo/core Package | ||
# @repo/core package | ||
|
||
Core package for interacting smart contracts. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# @repo/next Package | ||
# @repo/next package | ||
|
||
This package contains utilities and helpers for Next.js applications. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# @repo/ui package | ||
|
||
A TypeScript package that provides reusable UI components and utilities built with Tailwind CSS and shadcn/ui. | ||
|
||
## Features | ||
|
||
- Modern, accessible UI components | ||
- Built with Tailwind CSS and Radix UI primitives | ||
- Fully customizable with consistent design tokens | ||
- Type-safe component props with TypeScript | ||
- Responsive and mobile-first design | ||
- Dark mode support out of the box | ||
|
||
## Installation | ||
|
||
```bash | ||
pnpm install @repo/ui | ||
``` | ||
|
||
## Usage | ||
|
||
```typescript | ||
import { Button } from '@repo/ui' | ||
|
||
function MyComponent() { | ||
return ( | ||
<Button variant="primary"> | ||
Click me | ||
</Button> | ||
) | ||
} | ||
``` | ||
|
||
## Best Practices | ||
|
||
- Use semantic HTML elements for better accessibility | ||
- Follow mobile-first responsive design principles | ||
- Maintain consistent spacing and typography using design tokens | ||
- Ensure proper ARIA attributes for interactive components | ||
- Test components across different viewports and themes | ||
- Document component props and usage examples | ||
|
||
## Components | ||
|
||
The package hosts the following components: | ||
|
||
- Button variants (primary, secondary, ghost) | ||
- Form controls (input, select, checkbox) | ||
- Layout components (container, grid, stack) | ||
- Navigation elements (menu, tabs, breadcrumbs) | ||
- Feedback indicators (alert, toast, progress) | ||
- Data display (card, table, list) | ||
|
||
## Contributing | ||
|
||
Please refer to the root [CONTRIBUTING.md](../../CONTRIBUTING.md) for development guidelines. | ||
|
||
## License | ||
|
||
MIT License |
Empty file.