What problem does it solve?
Inconsistent UI styling and hardcoded design values lead to a fragmented user experience and slow development. This skill provides a complete reference to the Rubin Observatory design system's CSS variables and design tokens, ensuring consistent, maintainable, and themeable styling across all components.
Core Features & Use Cases
- Comprehensive Token Reference: Details all available CSS variables for colors (primary, semantic, scales), spacing, border radius, elevations, transitions, and asset paths.
- Two-Tiered Token System: Explains the distinction and usage of
@lsst-sqre/rubin-style-dictionary (foundation tokens) and @lsst-sqre/global-css (application-specific tokens).
- Dark Mode & Theming: Guides on implementing dark mode and other themes using CSS variable overrides.
- Use Case: When styling a new button component, use this skill to select the correct primary color from the
--rsd-color-primary-* scale, apply appropriate padding with --sqo-space-* tokens, and add a shadow using --sqo-elevation-*.
Quick Start
Apply the primary background color and medium spacing to a component using design tokens.
background-color: var(--rsd-color-primary-600); padding: var(--sqo-space-md);