styling · calesthio — Claude Code rule: object styling in ManimGL
Rule for styling mobjects in ManimGL: fill, stroke, opacity, and visual effects. Use it when building animations and want consistent, reusable styling across objects.
AGPL-3.0 ★ 78,316 updated 2026-10-24
.claude/rules/styling.mdWhat styling does
This rule covers all styling approaches for ManimGL objects — from basic fill and stroke to advanced gloss, shadow, and backstroke effects. It shows how to set styles at object creation or afterward, control fill and stroke opacity independently, copy styles between objects via match_style(), and define reusable style functions.
Includes examples of gradient fills across submobjects, neon effects using layered strokes, animated color and opacity transitions, and combining multiple properties. For text, backstroke creates a dark outline behind characters to keep text readable over complex backgrounds.
The rule assumes Python and a working ManimGL installation.
What it helps with
- apply gradient colors across a group of shapes
- create neon effect with layered stroke outlines
- keep text readable over complex backgrounds using backstroke
- copy styling between objects
- animate smooth transitions between colors and opacity values
Example prompts for the agent
- Create three circles: one with solid fill, one semi-transparent, one with outline only
- Apply gradient from blue to yellow across a row of squares
- Style text with a glowing outline and backstroke for clarity on busy backgrounds
How to install styling
Manually: put the files in place
.claude/rules/styling.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/styling.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/styling.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/styling.mdManually: put the files in place
.clinerules/styling.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about styling
How do I install styling in Claude Code?
Copy the rule file to .claude/rules/styling.md in your project root. Claude Code will automatically load and apply it when working with your code.
What does the styling rule cover?
All ManimGL styling tools: fill properties (color and opacity), stroke (color, width, opacity), backstroke for text, combined opacity control, gloss and shadow for 3D objects, gradient fills across submobjects, and effects like neon with layered strokes.
What are the main styling properties this rule describes?
Fill color and opacity, stroke color and width, backstroke for legible text, overall opacity affecting both fill and stroke, gloss and shadow for 3D shapes, gradient transitions, and special effects including glow and neon styling.
Similar IDE rules
All IDE rules for Game dev and 3D: Unity, Unreal, Godot, Blender →styling by other authors comes first.