Gradient Text
Designgradient-textGradient Text is an Agent Skill for design published in the nexu-io/motion-anything repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Give one short headline quiet premium emphasis: a slow on-brand gradient drifts through the type. One phrase per view; never body copy (readability). Pure CSS; falls back to a solid brand color under prefers-reduced-motion.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/nexu-io/motion-anything/blob/HEAD/recipes/web/gradient-text/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/gradient-text, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
gradient-text
A gradient that drifts through a headline. Part of
motion-anything; obeys MOTION-SPEC.md. Technique
popularized by Magic UI, reimplemented dependency-free (pure CSS).
When to use it
- One hero word / short headline / brand name / key metric you want to feel premium.
When NOT to use it (restraint)
- Body copy or long text — it hurts readability and contrast. One short phrase per view.
- When guaranteed color contrast is required for accessibility.
How to apply
- Copy
gradient-text.cssinto the project and link it. - Wrap the phrase:
<h1><span class="gradient-text">motion, anything</span></h1> - Set brand colors via
--g1/--g2/--g3; tune the duration (default 6s).
Accessibility & performance
- Under
prefers-reduced-motionthe drift stops and the text renders in a solid--g1color. - Animates
background-positionof a text-clipped gradient — GPU-safe.
Framework notes
- Pure CSS; works in any framework. Keep the base
--g1readable as the reduced-motion fallback.