// React + Styled Components .cursorrules
Add this skill
npx mdskills install PatrickJS/cursor-react-styled-componentsProvides basic styled-components conventions but lacks actionable agent instructions
1// React + Styled Components .cursorrules23// Prefer functional components with hooks45const preferFunctionalComponents = true;67// Styled Components best practices89const styledComponentsBestPractices = [10 "Use the styled-components/macro for better debugging",11 "Implement a global theme using ThemeProvider",12 "Create reusable styled components",13 "Use props for dynamic styling",14 "Utilize CSS helper functions like css`` when needed",15];1617// Folder structure1819const folderStructure = `20src/21 components/22 styled/23 styles/24 theme.js25 globalStyles.js26 pages/27 utils/28`;2930// Additional instructions3132const additionalInstructions = `331. Use proper naming conventions for styled components (e.g., StyledButton)342. Implement a consistent theming system353. Use CSS-in-JS for all styling needs364. Utilize styled-components' attrs method for frequently used props375. Implement proper TypeScript support for styled-components386. Use the css prop for conditional styling when appropriate397. Follow the styled-components documentation for best practices40`;4142
Full transparency — inspect the skill content before installing.