What problem does it solves?
Developing and consuming a React component library often involves complex build steps, transpilation issues, and inconsistent styling. This skill provides the essential architectural knowledge for @lsst-sqre/squared, simplifying component development and integration with its unique "NO BUILD STEP" approach.
Core Features & Use Cases
- NO BUILD STEP Architecture: Explains how the package exports TypeScript source directly, shifting transpilation to consuming applications for flexibility and speed.
- CSS Modules & Design Tokens: Enforces CSS Modules-only styling with full integration of Rubin Observatory design tokens for consistent, performant UI.
- Next.js Integration: Guides on configuring Next.js apps to correctly transpile and consume the
squared package.
- Use Case: When creating a new component for the
squared library, use this skill to ensure it adheres to the NO BUILD STEP rule, uses CSS Modules with design tokens, and is correctly exported for consumption by other applications.
Quick Start
Configure your Next.js application to consume the @lsst-sqre/squared component library.
Add transpilePackages: ['@lsst-sqre/squared'] to your next.config.js file.