agentsclimarketplace

Css scss standards

Skill humanmade/claude-code-standards/skills/css-scss-standards

Human Made CSS and SCSS standards. Apply when writing styles, reviewing CSS/SCSS, or working on theme styling. Covers BEM naming, CSS custom properties, theme.json integration, and Stylelint configuration.From its SKILL.md

Install
npx -y skills add humanmade/claude-code-standards --skill css-scss-standards

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

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.8 KB, as published. Nobody here has run it

Human Made CSS/SCSS Standards

Naming Conventions

Use BEM-like naming:

  • Block: .user-card
  • Element: .user-card__title
  • Modifier: .user-card--featured
.user-card {
    padding: 1rem;

    &__title {
        font-size: 1.25rem;
    }

    &__content {
        margin-top: 0.5rem;
    }

    &--featured {
        border: 2px solid var(--wp--preset--color--primary);
    }
}

CSS Custom Properties

  • Use CSS custom properties via theme.json tokens where possible
  • Reference WordPress preset values: var(--wp--preset--color--primary)
  • Define component-specific properties at the component level
.component {
    --component-spacing: 1rem;
    padding: var(--component-spacing);
}

theme.json Integration

For WordPress themes, prefer theme.json for:

  • Color palettes
  • Typography scales
  • Spacing presets
  • Layout settings

Reference in CSS:

.element {
    color: var(--wp--preset--color--contrast);
    font-size: var(--wp--preset--font-size--medium);
    padding: var(--wp--preset--spacing--40);
}

SCSS Guidelines

  • Use nesting sparingly (max 3 levels deep)
  • Extract repeated values into variables
  • Use mixins for repeated patterns
  • Prefer @use over @import for module loading

Class Naming

  • Use kebab-case: .my-component-name
  • Avoid IDs for styling
  • Avoid overly generic names: prefer .article-card over .card
  • Prefix utility classes if used: .u-visually-hidden

Linting

Projects use Stylelint:

  • Config file: .stylelintrc.js or .stylelintrc.json
  • Run with: npm run lint:css or npx stylelint "**/*.scss"

Keep looking

Skills are one crate of 610,677. 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.