Style
ColorHex value, for example #00ddb3

Files & folderscode-file

Code file

Code is written into the file. Light: the brackets spring apart and a slash slides out of the left bracket into the gap, so the sheet reads </> for a beat; then the slash tucks back and the brackets snap shut, quicker than they opened. Strong: the brackets fly wider with the slash, overshoot and settle on </>, hold, snap shut and rebound once.

Add the "Code file" animated icon (id: code-file) from Generative Icons by LottieFiles to this project.

1. Look at the project first: framework, package manager, and where static assets are served. In a monorepo, target the app that needs the icon.
2. Install the runtime: `npm install @lottiefiles/generative-icons-runtime`. For React or Next.js, also install `@lottiefiles/generative-icons-react`. Use the project's package manager.
3. Run `npx generative-icons init`, then `npx generative-icons add code-file`. Follow the agent skill that init writes to `.agents/skills/generative-icons/` (and `.claude/skills/generative-icons/`). Commit `generative-icons.json`, the copied files and `.generative-icons/lock.json`.
4. Render the icon with these settings: color #ffffff, style outline, weight 2, motion light, theme dark. In React, use `<AnimatedIcon icon={icon} src={src} size={24} color="#ffffff" variant="outline" weight={2} motion="light" theme="dark" />` inside a `'use client'` component. Otherwise use `createIcon(canvas, { icon, src, ... })` from `@lottiefiles/generative-icons-runtime` and call `destroy()` when the element is removed.
5. Play it on the interaction it belongs to (click, hover or confirmation). The icon is decorative, so the parent control needs an accessible label. Reduced motion is handled by the runtime.
6. If this is a native iOS or Android app instead, download https://generativeicons.com/assets/code-file.lottie and play it with the dotLottie player for that platform.

Guide: https://generativeicons.com/docs-md/using-packages.md
Library overview for agents: https://generativeicons.com/llms.txt
Download .lottieInstallation guide

Install copies the native file and a typed descriptor into your project. Color, style, weight and motion are runtime options; the downloaded file keeps its authored defaults. Download .svg and Copy SVG give an animated SVG (SMIL) with the motion, style and weight chosen here. It plays without a player wherever it's inlined: on hover, on click for two-state icons, and loaders loop. Its color follows CSS unless you picked one.