Install
openclaw skills install cssWrite modern CSS with proper stacking contexts, layout patterns, responsive techniques, and performance optimization.
openclaw skills install cssUser needs CSS expertise — from layout challenges to production optimization. Agent handles stacking contexts, flexbox/grid patterns, responsive design, performance, and accessibility.
| Topic | File |
|---|---|
| Layout patterns | layout.md |
| Responsive techniques | responsive.md |
| Selectors and specificity | selectors.md |
| Performance optimization | performance.md |
z-index only works with positioned elements—or flex/grid childrenisolation: isolate creates stacking context—contains z-index chaos without positionopacity < 1, transform, filter create stacking context—unexpected z-index behavioroverflow: hidden on flex container can break—use overflow: clip if you don't need scrollflex: 1 means flex: 1 1 0%—basis is 0, not automin-width: 0 on flex child for text truncation—default min-width is min-contentflex-basis vs width: basis is before grow/shrink—width is after, basis preferredgap works in flex now—no more margin hacks for spacingfr units don't respect min-content alone—use minmax(min-content, 1fr)auto-fit vs auto-fill: fit collapses empty tracks, fill keeps themgrid-template-columns: 1fr 1fr is not 50%—it's equal share of REMAINING spacemin-width media queries, base styles for mobile@container (min-width: 400px)—component-based responsivecontainer-type: inline-size on parent required—for container queries to workclamp(min, preferred, max) for fluid typography—clamp(1rem, 2.5vw, 2rem)min() and max()—width: min(100%, 600px) replaces media queryfit-content sizes to content up to max—width: fit-content or fit-content(300px):is() for grouping—:is(h1, h2, h3) + p less repetition:where() same as :is() but zero specificity—easier to override:has() parent selector—.card:has(img) styles card containing image:focus-visible for keyboard focus only—no outline on mouse clickscroll-behavior: smooth on html—native smooth scroll for anchorsoverscroll-behavior: contain—prevents scroll chaining to parent/bodyscroll-snap-type and scroll-snap-align—native carousel without JSscrollbar-gutter: stable—reserves scrollbar space, prevents layout shiftinset: 0 equals top/right/bottom/left: 0—less repetitionplace-items is align-items + justify-items—place-items: center centers bothmargin-inline, margin-block for logical properties—respects writing directioncontain: layout isolates repaints—use on independent componentscontent-visibility: auto skips offscreen rendering—huge for long pageswill-change sparingly—creates layers, uses memoryprefers-reduced-motion: reduce—disable animations for vestibular disordersprefers-color-scheme—@media (prefers-color-scheme: dark) for dark modeforced-colors: active—adjust for Windows high contrast