agentsclimarketplace

Styled components

Skill a5c-ai/babysitter/library/specializations/web-development/skills/styled-components

Styled Components theming, variants, SSR support, and patterns.From its SKILL.md

Install
npx -y skills add a5c-ai/babysitter --skill styled-components

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.2 KB, 202 tokens by cl100k_base, as published. Nobody here has run it

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

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

What ships with it: 1 file

331 B alongside SKILL.md

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.