Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: remove icons sidebar, update docs

dev_wandry45801a141144
diff --git a/app/docs/[[...slug]]/page.tsx b/app/docs/[[...slug]]/page.tsx
index dc49a6dc..5a180693 100644
--- a/app/docs/[[...slug]]/page.tsx
+++ b/app/docs/[[...slug]]/page.tsx
@@ -18,13 +18,15 @@ export default async function Page(props: {
const data = page.data;
const MDX = data.body;
+ const isIcons = params.slug?.[0] === "icons";
return (
<DocsPage
breadcrumb={{ enabled: false }}
tableOfContent={{ enabled: true, component: <DocsAdRail /> }}
tableOfContentPopover={{ enabled: false }}
- footer={{ enabled: true }}
+ footer={{ enabled: !isIcons }}
+ className={isIcons ? "max-w-none" : undefined}
>
<DocsTitle
style={{ fontFamily: "var(--font-display)" }}
diff --git a/components/docs/docs-shell.tsx b/components/docs/docs-shell.tsx
index b31d9f8d..e96eac54 100644
--- a/components/docs/docs-shell.tsx
+++ b/components/docs/docs-shell.tsx
@@ -46,12 +46,13 @@ export function DocsShell({
}) {
const pathname = usePathname();
const activeTab = getActiveDocsTab(pathname);
+ const isIcons = activeTab === "icons";
const tree =
activeTab === "primitives"
? primitivesTree
: activeTab === "shaders"
? shadersTree
- : activeTab === "icons"
+ : isIcons
? iconsTree
: componentsTree;
@@ -62,7 +63,7 @@ export function DocsShell({
nav={{ enabled: false }}
searchToggle={{ enabled: true }}
themeSwitch={{ enabled: false }}
- sidebar={{ collapsible: false }}
+ sidebar={{ collapsible: false, enabled: !isIcons }}
containerProps={{ className: "[--fd-banner-height:2.75rem]" }}
>
<div
diff --git a/config/site.ts b/config/site.ts
index 9fd666e5..360c931f 100644
--- a/config/site.ts
+++ b/config/site.ts
@@ -43,7 +43,7 @@ export type NavLink = {
export const NAV_LINKS: NavLink[] = [
{ href: "/docs/typography", label: "Components" },
{ href: "/docs/shaders/getting-started/introduction", label: "Shaders" },
- { href: "/docs/icons/getting-started/introduction", label: "Icons" },
+ { href: "/docs/icons/gallery", label: "Icons" },
{ href: "/sponsors", label: "Sponsors" },
{ href: "/docs/getting-started/introduction", label: "Docs" },
];
diff --git a/content/docs/icons/gallery.mdx b/content/docs/icons/gallery.mdx
index 30992142..46348c9f 100644
--- a/content/docs/icons/gallery.mdx
+++ b/content/docs/icons/gallery.mdx
@@ -3,6 +3,10 @@ title: Gallery
description: Browse every remocn icon, hover to play its motion, and copy the install command
---
-Hover or focus a tile to play its animation, then click to copy the install command.
+
+Icon paths are derived from [Lucide](https://lucide.dev), licensed under the [ISC License](https://github.com/lucide-icons/lucide/blob/main/LICENSE), and re-authored from scratch for deterministic Remotion video.
+
+
+Hover or focus a tile to play its animation, then click to copy the install command
<IconsGallery />
diff --git a/content/docs/icons/getting-started/introduction.mdx b/content/docs/icons/getting-started/introduction.mdx
deleted file mode 100644
index 5c6510db..00000000
--- a/content/docs/icons/getting-started/introduction.mdx
+++ /dev/null
@@ -1,67 +0,0 @@
----
-title: Introduction
-description: Line-drawn Lucide icons re-authored for Remotion with a two-phase draw and action motion system
----
-
-remocn icons are animated line icons built for video. Each one is a [Lucide](https://lucide.dev) glyph re-authored on the Remotion API, so it draws itself on and then performs a small action — a checkmark strikes, a bell rings, a heart beats — as a pure function of the timeline. Same input frame, same pixels, every render.
-
-Every icon shares one animation contract and one motion system, so switching icons never changes the surrounding scene. Install a single icon with:
-
-```bash
-npx shadcn@latest add @remocn/icon-check
-```
-
-## The two-phase motion system
-
-An icon runs in two phases:
-
-- **Draw** — the strokes trace themselves on, staggered by path, then a spring settles the whole glyph into place.
-- **Action** — a short, icon-specific gesture that reads the meaning at a glance. The action can play once or loop.
-
-The `animation` prop selects which phases run: `draw` stops after the strokes are on, `action` skips the draw and starts mid-gesture, and `both` (the default) draws and then acts.
-
-Compose an icon like any other remocn primitive — offset it in time with `<Sequence>` and place it next to a text animation:
-
-```tsx
-import { AbsoluteFill, Sequence } from "remotion";
-import { CheckIcon } from "@/components/remocn/icon-check";
-import { SoftBlurIn } from "@/components/remocn/soft-blur-in";
-
-export const Scene = () => (
- <AbsoluteFill className="items-center justify-center gap-6">
- <Sequence from={0}>
- <CheckIcon size={64} color="#22c55e" />
- </Sequence>
- <Sequence from={12}>
- <SoftBlurIn text="Done" />
- </Sequence>
- </AbsoluteFill>
-);
-```
-
-## Shared props
-
-Every icon accepts the same `IconAnimationProps`. This is the single reference — individual icons only add their own defaults, never new controls.
-
-| Prop | Type | Default | Description |
-| --- | --- | --- | --- |
-| `animation` | `draw` / `action` / `both` | `both` | Which phases run. |
-| `loop` | `boolean` | `false` | Repeat the action phase forever. |
-| `speed` | `number` | `1` | Timeline multiplier applied before the animation math. |
-| `size` | `number` | `48` | Icon width and height in pixels. |
-| `color` | `string` | `currentColor` | Stroke color. |
-| `strokeWidth` | `number` | `2` | Stroke width in SVG units. |
-| `className` | `string` | — | Passed to the root SVG. |
-
-## Loops by default
-
-A few icons express motion that never resolves, so they loop out of the box. Pass `loop={false}` to play them once:
-
-- `loader`
-- `refresh-cw`
-- `sparkles`
-- `flame`
-
-## Attribution
-
-Icon paths are derived from [Lucide](https://lucide.dev), licensed under the [ISC License](https://github.com/lucide-icons/lucide/blob/main/LICENSE). The motion is inspired by [lucide-animated](https://github.com/lucide-icons/lucide), re-authored from scratch for deterministic Remotion video.
diff --git a/content/docs/icons/getting-started/meta.json b/content/docs/icons/getting-started/meta.json
deleted file mode 100644
index 89d653a4..00000000
--- a/content/docs/icons/getting-started/meta.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "title": "Getting Started",
- "collapsible": false,
- "pages": ["introduction"]
-}
diff --git a/content/docs/icons/meta.json b/content/docs/icons/meta.json
index 1e7eb571..975b78c8 100644
--- a/content/docs/icons/meta.json
+++ b/content/docs/icons/meta.json
@@ -1,5 +1,5 @@
{
"title": "Icons",
"collapsible": false,
- "pages": ["getting-started", "gallery"]
+ "pages": ["gallery"]
}
diff --git a/lib/docs-tabs.test.ts b/lib/docs-tabs.test.ts
index a5613d01..1e8366f3 100644
--- a/lib/docs-tabs.test.ts
+++ b/lib/docs-tabs.test.ts
@@ -35,17 +35,6 @@ const tree: Root = {
type: "folder",
name: "Icons",
children: [
- {
- type: "folder",
- name: "Getting Started",
- children: [
- {
- type: "page",
- name: "Introduction",
- url: "/docs/icons/getting-started/introduction",
- },
- ],
- },
{ type: "page", name: "Gallery", url: "/docs/icons/gallery" },
],
},
@@ -68,7 +57,6 @@ describe("splitDocsTree", () => {
it("routes icons pages only into the icons branch", () => {
const { icons } = splitDocsTree(tree);
const urls = collectUrls(icons.children);
- expect(urls).toContain("/docs/icons/getting-started/introduction");
expect(urls).toContain("/docs/icons/gallery");
expect(urls.every((url) => url.startsWith("/docs/icons"))).toBe(true);
});
@@ -124,9 +112,6 @@ describe("getActiveDocsTab", () => {
it("selects the icons tab for icons paths", () => {
expect(getActiveDocsTab("/docs/icons")).toBe("icons");
expect(getActiveDocsTab("/docs/icons/gallery")).toBe("icons");
- expect(
- getActiveDocsTab("/docs/icons/getting-started/introduction"),
- ).toBe("icons");
});
it("does not misroute other tabs", () => {
diff --git a/lib/docs-tabs.ts b/lib/docs-tabs.ts
index 7c60a850..024c28af 100644
--- a/lib/docs-tabs.ts
+++ b/lib/docs-tabs.ts
@@ -31,7 +31,7 @@ export const DOCS_TABS: DocsTab[] = [
{
id: "icons",
label: "Icons",
- href: "/docs/icons/getting-started/introduction",
+ href: "/docs/icons/gallery",
},
];