Files
main/rules-v0/react-styled-components-cursorrules-prompt-file/styled-components-best-practices---general.mdc
2025-02-27 00:04:07 +05:30

9 lines
356 B
Plaintext

---
description: Applies best practices for Styled Components within React components.
globs: src/components/styled/**/*.js
---
- Use the styled-components/macro for better debugging.
- Implement a global theme using ThemeProvider.
- Create reusable styled components.
- Use props for dynamic styling.
- Utilize CSS helper functions like css`` when needed.