Index of every page on this site: llms.txt
All skills
ccheney avatar

/modern-css

@0eea7b0
Run it yourself

Implement or debug CSS layouts, responsive styles, themes, and motion. Use when choosing native CSS features or replacing legacy styling with browser-compatible CSS; not for unrelated frontend logic.

Use this Skill: https://skilld.dev/gh/ccheney/robust-skills/modern-css

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈53 tokens for metadata: the name and description. ≈798 when used: this file. ≈46k more on demand in 10 files.

Description uses 2.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈212 characters, or 2.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Modern CSS

Choose native CSS features that fit the requested behavior and supported browsers. The user's explicit instructions take precedence over this skill's guidelines. Preserve the project's framework, preprocessor, tokens, and styling conventions unless changing them is part of the request.

Resolve the styling problem

Use the affected markup/styles, desired appearance or interaction, and browser targets as input. Infer targets from project configuration when available. If missing support information changes the implementation, ask for it or state a conservative fallback.

Bundled support tables are dated research snapshots, not a current compatibility guarantee. Check MDN compatibility data or Web Platform Status for the particular feature when support matters.

Need Starting point
Rows and columns, or aligned nested tracks Grid / Subgrid
One-dimensional arrangement Flexbox
Layout based on a component's available space Container queries
Cascading overrides or specificity conflict Layers, scope, selector specificity
Themes and derived colors Custom properties, color functions, color-scheme
Motion, popovers, or scroll effects Feature-specific reference and fallback

Keep the result usable

  • Preserve layout and interaction in supported browsers. Use progressive enhancement or feature detection where a feature is unavailable.
  • Match cascade changes to the existing origin, importance, and layer ordering; adding a layer can change precedence.
  • Respect reduced-motion preferences and preserve focus/keyboard behavior when changing interactive components.
  • Use modern CSS as an option, not a mandate to remove JavaScript or rebuild working controls. Support and equivalent behavior determine whether a replacement fits.
  • Scope resets and stylesheet reorganization to the task; a component edit does not require a global reset.

Deliver the requested style change or explanation and verify affected layout/states when implementing. State unverified browser limitations rather than treating an example as proof of support.

References

Load only the relevant area, using its contents to find specific features.

Task Reference
Layers, scope, nesting, specificity CASCADE.md
Grid, Flexbox, containers, intrinsic sizing LAYOUT.md
Relational selectors, focus, pseudo-elements SELECTORS.md
Color spaces, palettes, dark mode COLOR.md
Custom properties, functions, design tokens TOKENS.md
Transitions, keyframes, entry/exit, view transitions ANIMATION.md
Scroll timelines, sticky states, carousels SCROLL.md
Dialogs, popovers, anchors, selects, field sizing COMPONENTS.md
Rendering performance, typography, writing modes PERFORMANCE.md
Compact syntax or feature-detection lookup CHEATSHEET.md

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo4 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill is a secure and comprehensive educational resource for modern CSS development. It provides guidance on using native browser features for layout, animation, and performance without the need for JavaScript or external libraries. No malicious behaviors, exfiltration attempts, or prompt injections were found.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer9mo

    11/11 files flagged

Signed by skilld at 0eea7b0. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 2 months ago

README badge

README badge for ccheney/robust-skills/modern-css