styled-components

Solid

Styled Components theming, variants, SSR support, and patterns.

Web & Frontend 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
40
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Styled Components Skill Expert assistance for CSS-in-JS with styled-components. ## Capabilities - Create styled components - Implement theming - Handle SSR - Create variants - Extend components ## Patterns ```typescript import styled, { css } from 'styled-components'; const Button = styled.button<{ $variant?: 'primary' | 'secondary' }>` padding: 0.5rem 1rem; border-radius: 0.25rem; ${({ $variant }) => $variant === 'primary' && css` background: ${({ theme }) => theme.colors.primary}; color: white; `} `; // Theming const theme = { colors: { primary: '#3b82f6' }, }; <ThemeProvider theme={theme}> <Button $variant="primary">Click me</Button> </ThemeProvider> ``` ## Target Processes - react-application-development - theming-implementation - component-library

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills