Style guide
Code style
Maintaining consistent code style across the project helps make our codebase more readable and maintainable. We follow modern JavaScript and TypeScript conventions while prioritizing accessibility and performance.
TypeScript
We use TypeScript to ensure type safety and better developer experience. Here are our TypeScript conventions:
Components
Our components follow a consistent structure to make them easy to understand and maintain:
CSS
We prioritize modern CSS practices with a focus on accessibility and maintainability:
Documentation style
Clear and consistent documentation helps both new contributors and users understand our project better. Here are our documentation guidelines:
Headers
- Use sentence case for headers
- Only capitalize proper nouns
- No period at the end
Code examples
- Include language identifier
- Keep examples concise
- Add comments for clarity
- Use meaningful variable names
Lists
- Use hyphen (-) for unordered lists
- Use numbers for ordered lists
- Capitalize first word
- End with period if full sentence
Links
- Use descriptive link text
- Avoid “click here” or “read more”
- Include relevant context
Git commits
Commit messages
- Use conventional commits
- Start with type:
feat:
,fix:
,docs:
, etc. - Keep messages concise but descriptive
- Reference issues when relevant
Branch names
- Use kebab-case
- Include type prefix
- Be descriptive