optics-context

Installation
SKILL.md

Optics Design Framework

Apply the Optics design system for consistent, token-based styling in Rails applications.

Core Principles

  1. Use tokens, not hard-coded values - All colors, spacing, typography from assets/tokens.json
  2. Follow BEM structure - Block, Element, Modifier naming conventions
  3. Check existing components first - Reuse before creating new
  4. Progressive enhancement - Start with semantic HTML, layer styles

Finding Optics Classes

Search for components in this order:

  1. Check Optics components - skills/optics-context/assets/components.json
    • Find appropriate component, modifiers, and attributes
    • Modify using BEM if needed
  2. Search project styles - Look in app/assets/stylesheets for existing classes
Related skills

More from rolemodel/rolemodel-skills

Installs
39
GitHub Stars
5
First Seen
Feb 19, 2026