css-first

CSS-first expert guidance with live MDN Baseline and feature data. Use when asked about CSS implementations, modern CSS features, browser support, Baseline status, or when listing newly available web platform features.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "css-first" with this command: npx skills add luko248/css-first-skill/luko248-css-first-skill-css-first

CSS First Agent Skill

An intelligent AI agent skill for providing context-aware, modern CSS-first solutions with semantic analysis and framework detection.

Description

This skill transforms any AI agent into a CSS-first expert that enforces zero-JavaScript solutions using cutting-edge CSS features (2021-2026). The agent analyzes user intent, detects project context, and provides intelligently ranked CSS suggestions with implementation guidance.

Core Capabilities:

  • Semantic Intent Recognition: Understands layout, animation, spacing, responsive, visual, interaction, stacking, and typography intents
  • Framework Detection: Automatically detects React, Vue, Angular, Svelte, Tailwind, Bootstrap, etc.
  • Logical-First Approach: Prioritizes writing-mode aware properties for internationalization
  • MDN Integration: Pulls live browser support data and baseline status
  • Intelligent Ranking: Scores suggestions by intent match, browser support, and framework compatibility

When to Use This Skill

Use this skill when:

  • User asks for UI implementation solutions
  • User needs to center elements, create layouts, add animations
  • User wants responsive design patterns
  • User asks about CSS properties or browser support
  • User needs modern CSS alternatives to JavaScript solutions

Live MDN Fetch Workflow

Use the live fetch workflow defined in references/live-mdn-fetch.md whenever Baseline status, newly available features, or current MDN content is requested.

Rules & Guidelines

All behavior rules are documented in references/rules/:

RuleFileSummary
CSS-Only Enforcementreferences/rules/css-only-enforcement.mdAlways prioritize CSS over JavaScript
Logical Properties Firstreferences/rules/logical-properties-first.mdUse inline-size over width, etc.
Modern CSS Featuresreferences/rules/modern-css-features.mdPrioritize 2021-2025 features with baseline
Semantic Intent Analysisreferences/rules/semantic-intent-analysis.mdDetect user intent before suggesting solutions
Framework Awarenessreferences/rules/framework-awareness.mdAuto-detect and adapt to project frameworks
Browser Supportreferences/rules/browser-support-consideration.mdAlways provide baseline status indicators
Progressive Enhancementreferences/rules/progressive-enhancement.mdCore functionality first, enhancements on top
Browser Verificationreferences/rules/browser-verification.mdUse MCP servers / browser hooks to verify CSS

CSS Demos

Production-ready CSS examples organized by category. See css-demos/INDEX.md for the full catalog with MDN links, baseline status, and browser support percentages.

Browser Support Levels

  • 🟢 Widely Available (95%+): Safe for production use
  • 🔵 Newly Available (85-94%): Recently stable, verify target browsers
  • 🟡 Limited Availability (70-84%): Use with progressive enhancement
  • 🟣 Experimental (<70%): Cutting-edge features, use cautiously

Quick Reference

User IntentCSS SolutionDemo File
Center elementFlexbox / Gridcss-demos/layout/centering-logical.css
SpacingLogical Propertiescss-demos/layout/logical-spacing.css
Aligned nested gridsSubgridcss-demos/layout/subgrid.css
Parent selection:has()css-demos/layout/has-selector.css
Component stylesCSS Nestingcss-demos/layout/css-nesting.css
Masonry layoutGrid Lanescss-demos/layout/grid-lanes-masonry.css
z-index issuesisolation: isolatecss-demos/layout/isolation-stacking.css
Fill width with marginsstretchcss-demos/layout/stretch-keyword.css
Responsive layoutMedia queries (range syntax)css-demos/responsive/media-queries.css
Feature detection@supportscss-demos/responsive/supports-rule.css
Full-height sectionsDynamic viewport unitscss-demos/responsive/viewport-units.css
Container responsiveContainer size queriescss-demos/container/size-queries.css
Component themingContainer style queriescss-demos/container/style-queries.css
Sticky detectionScroll state queriescss-demos/container/scroll-state-queries.css
Tooltip arrow flipAnchored container queriescss-demos/container/anchored-queries.css
Page transitionsView Transitions (+ nested)css-demos/animation/view-transitions.css
Scroll effectsScroll-driven animationscss-demos/animation/scroll-driven.css
Scroll revealsScroll-triggered animationscss-demos/animation/scroll-triggered.css
Entry/exit animation@starting-stylecss-demos/animation/starting-style.css
Dark modelight-dark()css-demos/theming/light-dark-function.css
TooltipsAnchor Positioningcss-demos/positioning/anchor-positioning.css
Carousel / SliderCSS Carouselcss-demos/interaction/css-carousel.css
Tabs / Scroll spyCSS Carouselcss-demos/interaction/css-carousel.css
Flip card / 3D tilebackface-visibilitycss-demos/interaction/flip-card.css
3D scenes / Cubesperspective + preserve-3dcss-demos/interaction/perspective-3d.css
Popovers / DropdownsPopover APIcss-demos/interaction/popover.css
Hover tooltips (no JS)Interest Invokerscss-demos/interaction/interest-invokers.css
Touch vs pointerHover media queriescss-demos/interaction/hover-media-queries.css
Scroll chainingoverscroll-behaviorcss-demos/interaction/overscroll-behavior.css
Fixed nav anchor offsetscroll-margin / scroll-paddingcss-demos/interaction/scroll-margin-padding.css
Highlight anchor target:target / :focus-withincss-demos/interaction/target-focus-within.css
Form validation:user-valid/:user-invalidcss-demos/visual/form-validation.css
Color variationscolor-mix()css-demos/visual/color-mix.css
Color conversionRelative color syntaxcss-demos/visual/relative-colors.css
Glassmorphismbackdrop-filtercss-demos/visual/backdrop-filter.css
Adaptive text on bgmix-blend-modecss-demos/visual/mix-blend-mode.css
Modern shapescorner-shapecss-demos/visual/corner-shape.css
Responsive clippingclip-path: shape()css-demos/visual/clip-path-shape.css
Gap separatorscolumn-rule / row-rulecss-demos/visual/gap-decorations.css
Optical text centeringtext-box-trimcss-demos/visual/text-box-trim.css
Focus outlines clippedoverflow: clip + clip-margincss-demos/visual/overflow-clip-margin.css
Conditional valuesif()css-demos/functions/css-if-function.css
Reusable CSS logic@functioncss-demos/functions/custom-functions.css
Data-driven stylesAdvanced attr()css-demos/functions/advanced-attr.css
Auto contrast textcontrast-color()css-demos/functions/contrast-color.css
Circular layoutsin() / cos()css-demos/functions/trigonometric-functions.css
Staggered animationssibling-index() / sibling-count()css-demos/functions/sibling-functions.css
Cascade control@layercss-demos/specificity/cascade-layers.css
Scoped styles@scopecss-demos/specificity/scope-rule.css
Custom select stylingappearance: base-selectcss-demos/native-customization/customizable-select.css
Reduced motionprefers-reduced-motioncss-demos/accessibility/prefers-reduced-motion.css
High contrastprefers-contrastcss-demos/accessibility/prefers-reduced-motion.css
Forced colors (Win HC)forced-colorscss-demos/accessibility/prefers-reduced-motion.css

See Also

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Hippo Video

Hippo Video integration. Manage Persons, Organizations, Deals, Leads, Activities, Notes and more. Use when the user wants to interact with Hippo Video data.

Registry SourceRecently Updated
General

币安资金费率监控

币安资金费率套利监控工具 - 查看账户、持仓、盈亏统计,SkillPay收费版

Registry SourceRecently Updated
General

apix

Use `apix` to search, browse, and execute API endpoints from local markdown vaults. Use this skill to discover REST API endpoints, inspect request/response s...

Registry SourceRecently Updated
0160
dngpng