orange-opensource/orange-boosted-bootstrap/component-patterns

Claude Code and agent skill by orange-opensource/orange-boosted-bootstrap

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

SCSS and JS structural patterns for OUDS Web components. Use this skill when creating, editing, or reviewing component SCSS files (scss/_*.scss, scss/forms/_*.scss) or JS component files (js/src/*.js). Covers CSS custom property declarations at top of class, state overrides via variable overrides (not property overrides), scss-docs-start/end markers, border-width compensation with calc(), mask-image icon pattern, responsive breakpoint overrides, and the OUDS mod comment convention.

Install

npx vskill@latest install orange-opensource/orange-boosted-bootstrap/component-patterns

SKILL.md

Component Patterns

Core principle

Every component declares CSS custom properties at the top of its main selector, then consumes them via var(). State changes (hover, disabled, variants) override the variable, never the property. This creates one source of truth and enables runtime theming.


SCSS structure template

scss
#{$ouds-root-selector} {
--#{$prefix}my-comp-border-radius: #{$ouds-border-radius-default};
}
.my-component {
// scss-docs-start my-component-css-vars
--#{$prefix}my-comp-padding: #{$ouds-my-comp-space-padding-block};
--#{$prefix}my-comp-color: #{$ouds-color-content-default};
--#{$prefix}my-comp-bg: #{$ouds-color-bg-primary};
// scss-docs-end my-component-css-vars
padding: var(--#{$prefix}my-comp-padding);
color: var(--#{$prefix}my-comp-color);
background-color: var(--#{$prefix}my-comp-bg);
@include border-radius(var(--#{$prefix}my-comp-border-radius));
@include transition($transition-base);
&:hover {
--#{$prefix}my-comp-bg: #{$ouds-color-bg-secondary}; // Override var, not property
}
&:focus-visible {
@include focus-visible();
}
&:disabled, &[aria-disabled="true"] {
--#{$prefix}my-comp-color: #{$ouds-color-content-disabled};
pointer-events: none;
}
}
.my-component-variant {
--#{$prefix}my-comp-bg: #{$ouds-color-surface-brand};
}

Key patterns

Documentation markers

The Astro docs site extracts CSS variable tables from these markers. Every component needs them:

scss
// scss-docs-start badge-css-vars
// scss-docs-end badge-css-vars
Border-width compensation

Prevent layout shift when borders change on interaction:

scss
padding: calc(var(--#{$prefix}btn-padding-y) - var(--#{$prefix}btn-border-width))
calc(var(--#{$prefix}btn-padding-x) - var(--#{$prefix}btn-border-width));
Icon pattern (mask-image)

Icons inherit color from currentcolor:

scss
&::before {
content: "";
background-color: currentcolor;
mask-image: escape-svg(var(--#{$prefix}icon));
mask-size: 100%;
mask-repeat: no-repeat;
}
Responsive overrides

Override the variable at breakpoints, don't duplicate rulesets:

scss
.component {
--#{$prefix}comp-width: #{$mobile};
@include media-breakpoint-up(xl) {
--#{$prefix}comp-width: #{$desktop};
}
}

OUDS mod markers

Every deviation from Bootstrap upstream must be marked:

scss
display: flex; // OUDS mod: instead of `inline-block`
// OUDS mod: loading buttons
.btn.loading-indeterminate { ... }
// End mod

Security

  • Security scanPassed, 93 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
219
Repository forks
61
7-day trend score
27

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/orange-opensource/orange-boosted-bootstrap/component-patterns/badge)](https://verified-skill.com/skills/orange-opensource/orange-boosted-bootstrap/component-patterns)

Something wrong with this skill or its page? Tell us.