atomico-css-styling

Official

Scoped CSS for Atomico components

Authoratomicojs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Many Atomico developers need a performant, themeable, and component-scoped way to apply CSS inside shadow DOM without injecting style tags or duplicating stylesheet instances across components. This Skill explains how to author, cache, and apply CSSStyleSheet objects using the css tagged template and adoptedStyleSheets so styles are efficient and consistent.

Core Features & Use Cases

  • Scoped, high-performance styles: Use css template literals to produce CSSStyleSheet instances that are reused across components to reduce memory and reflow costs.
  • Theming with custom properties: Define and override CSS custom properties to create themeable components that can be styled from the host page.
  • Composability and multiple stylesheets: Compose arrays of styles for shared base rules, themes, and component-specific overrides, and apply them via shadowRoot.adoptedStyleSheets.
  • Use case: Build a reusable card component with base layout styles and a separate theme stylesheet so multiple card variants share a single cached stylesheet instance.

Quick Start

Add a css template literal to your Atomico component's styles option so the component applies a cached CSSStyleSheet via adoptedStyleSheets.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: atomico-css-styling
Download link: https://github.com/atomicojs/atomico/archive/main.zip#atomico-css-styling

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.