Files
main/rules-v0-deprecated/react-styled-components-cursorrules-prompt-file/styled-components-best-practices---general.mdc
2025-03-03 23:40:27 +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.