diff --git a/README.md b/README.md
index 461ef19..c077131 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,10 @@
# AniMathIO website
Marketing site for [AniMathIO](https://github.com/AniMathIO/AniMathIO) 2 (Vite, React, Tailwind CSS 4).
-The look follows the AniMathIO 2 editor: tokens in `src/index.css` mirror `docs/design.md` in the main repository,
-icons are [Lucide](https://lucide.dev), type is Inter and JetBrains Mono.
+The look follows the AniMathIO 2.3 editor: tokens in `src/index.css` mirror `docs/design.md` and
+`apps/animathio/src/style/tokens.rs` in the main repository (neutral dark surfaces, the logo cyan as the only accent,
+radii 8/6/4, sentence case, no violet or gradient accent). Components use the tokens, never colour literals. Icons are
+[Lucide](https://lucide.dev), type is Inter, with JetBrains Mono for code only.
```bash
npm ci
diff --git a/index.html b/index.html
index 89836af..c11083a 100644
--- a/index.html
+++ b/index.html
@@ -6,7 +6,7 @@
-
+
a.replace('x', ':')
export const ShowcaseMedia = ({ video, aspect }: { video: Showcase; aspect: Aspect }) => {
const file = showcaseFile(video.slug, aspect)
return (
-
+
{video.published ? (
void }) => (
-
+
{ASPECTS.map((a) => (
onChange(a)}
- className={`rounded-[6px] px-3 py-1 font-mono text-xs transition-colors ${
- value === a ? 'bg-hover text-fg' : 'text-fg-2 hover:text-fg'
+ className={`rounded-control px-3 py-1 text-xs font-medium tabular-nums transition-colors ${
+ value === a ? 'bg-accent/16 text-fg' : 'text-fg-2 hover:text-fg'
}`}
>
{label(a)}
diff --git a/src/components/ui.tsx b/src/components/ui.tsx
index 0df64a8..2b9fec4 100644
--- a/src/components/ui.tsx
+++ b/src/components/ui.tsx
@@ -6,7 +6,7 @@ export const Container = ({ children, className = '' }: { children: ReactNode; c
)
export const Eyebrow = ({ children }: { children: ReactNode }) => (
- {children}
+ {children}
)
export const SectionHeading = ({
@@ -26,7 +26,7 @@ export const SectionHeading = ({
)
export const IconBadge = ({ icon: Icon }: { icon: LucideIcon }) => (
-
+
)
@@ -47,7 +47,7 @@ export const Shot = ({
priority?: boolean
className?: string
}) => (
-
+
panel > card > control. */
+ --radius-overlay: 10px;
+ --radius-panel: 8px;
--radius-card: 6px;
+ --radius-control: 4px;
}
@layer base {
@@ -47,7 +70,7 @@
-webkit-font-smoothing: antialiased;
}
::selection {
- background: color-mix(in srgb, var(--color-accent) 45%, transparent);
+ background: color-mix(in srgb, var(--color-accent) 32%, transparent);
}
:focus-visible {
outline: 2px solid var(--color-accent);
@@ -67,39 +90,57 @@
}
@layer components {
- /* The primary-action gradient from the editor: Export, Create project. */
+ /* The primary action: solid accent with dark text, like Export in the editor. */
.btn-primary {
- background-image: linear-gradient(135deg, var(--color-accent-from), var(--color-accent-to));
- color: #0b0d12;
+ background-color: var(--color-accent);
+ color: var(--color-on-accent);
font-weight: 600;
- transition: filter 150ms ease-out, transform 150ms ease-out;
+ transition: background-color 120ms ease-out;
}
.btn-primary:hover {
- filter: brightness(1.1);
+ background-color: var(--color-accent-hover);
}
.btn-primary:active {
- transform: translateY(1px);
+ background-color: var(--color-accent-pressed);
}
- .text-gradient {
- background-image: linear-gradient(120deg, var(--color-accent), var(--color-accent-to));
- -webkit-background-clip: text;
- background-clip: text;
- color: transparent;
+ /* The secondary action: raised surface with the strong outline. */
+ .btn-secondary {
+ background-color: var(--color-raised);
+ border: 1px solid var(--color-line-strong);
+ color: var(--color-fg);
+ font-weight: 500;
+ transition: background-color 120ms ease-out;
+ }
+ .btn-secondary:hover {
+ background-color: var(--color-hover);
+ }
+ .btn-secondary:active {
+ background-color: var(--color-pressed);
}
.panel {
background: var(--color-panel);
border: 1px solid var(--color-line);
border-radius: var(--radius-panel);
}
+ /* The one decorative element, from the logo and the launcher: fine graph paper. */
+ .graph-paper {
+ background-image:
+ linear-gradient(to right, var(--color-line) 1px, transparent 1px),
+ linear-gradient(to bottom, var(--color-line) 1px, transparent 1px);
+ background-size: 28px 28px;
+ background-position: center top;
+ mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 0%, transparent 72%);
+ opacity: 0.9;
+ }
.kbd {
- font-family: var(--font-mono);
- font-size: 0.8125rem;
+ font-family: var(--font-sans);
+ font-size: 0.75rem;
+ font-weight: 500;
line-height: 1;
padding: 0.3rem 0.5rem;
- border-radius: 5px;
+ border-radius: var(--radius-control);
background: var(--color-raised);
- border: 1px solid var(--color-line);
- border-bottom-width: 2px;
+ border: 1px solid var(--color-line-strong);
color: var(--color-fg);
}
}
diff --git a/src/pages/Examples.tsx b/src/pages/Examples.tsx
index 49d1521..28081b2 100644
--- a/src/pages/Examples.tsx
+++ b/src/pages/Examples.tsx
@@ -102,7 +102,7 @@ const Examples: React.FC = () => (
{legacyVideos.map((v) => (
-
+
diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx
index 95d925b..8bf6528 100644
--- a/src/pages/Home.tsx
+++ b/src/pages/Home.tsx
@@ -29,20 +29,16 @@ import {
const Hero = () => (
-
+
-
-
+
AniMathIO {VERSION}
A native video editor
- for math animation.
+ for math animation.
AniMathIO 2 is a from-scratch Rust rewrite: a small, fast timeline editor with LaTeX, graphs and shapes
@@ -51,14 +47,14 @@ const Hero = () => (
@@ -122,7 +114,7 @@ const MathObjects = () => (
{mathObjects.map((name) => (
{name}
@@ -131,9 +123,9 @@ const MathObjects = () => (
@@ -155,7 +147,7 @@ const Automation = () => (
{body}
))}
-
+
Same tools from the CLI and MCP
@@ -168,16 +160,16 @@ const Automation = () => (
@@ -233,7 +225,7 @@ const Control = () => (
Script it, or hand it to an agent
Every mutation is a serializable, invertible command, so the editor, the command line and MCP clients all
- edit the project the same way, with undo included. Render frames, export MP4s and run the automation steps
+ edit the project the same way, with undo included. Render frames, export MP4 or WebM and run the automation steps
headlessly.
(
@@ -342,11 +334,11 @@ const Benchmarks = () => {
{benchmarks.length === 0 ? (
-
+
- TODO(benchmarks) : numbers from{' '}
+ TODO(benchmarks) : numbers from{' '}
docs/benchmarks.md go here. This block is development-only.
@@ -367,8 +359,8 @@ const Benchmarks = () => {
{b.metric}
{b.note && {b.note} }
- {b.v1}
- {b.v2}
+ {b.v1}
+ {b.v2}
))}
diff --git a/src/pages/NotFound.tsx b/src/pages/NotFound.tsx
index 97ab43a..d1a3f4e 100644
--- a/src/pages/NotFound.tsx
+++ b/src/pages/NotFound.tsx
@@ -8,7 +8,7 @@ const NotFound: React.FC = () => (
The link may be old, or the page may have moved.
Back to the home page
diff --git a/src/pages/partials/Footer.tsx b/src/pages/partials/Footer.tsx
index 7321e1b..dcbea16 100644
--- a/src/pages/partials/Footer.tsx
+++ b/src/pages/partials/Footer.tsx
@@ -3,14 +3,14 @@ import { DISCORD, DOCS, DOCS_V1, DOCS_V2, RELEASES, REPO } from '../../data/site
const col = 'flex flex-col gap-2 text-sm'
const link = 'text-fg-2 transition-colors hover:text-fg'
-const head = 'mb-1 font-mono text-xs uppercase tracking-[0.14em] text-fg-3'
+const head = 'mb-1 text-sm font-semibold text-fg'
const Footer: React.FC = () => (
-
+
AniMathIO
diff --git a/src/pages/partials/Header.tsx b/src/pages/partials/Header.tsx
index 0c19b50..43bc8dc 100644
--- a/src/pages/partials/Header.tsx
+++ b/src/pages/partials/Header.tsx
@@ -4,7 +4,7 @@ import { BookOpen, Code, Menu, MessageCircle, X } from 'lucide-react'
import { DISCORD, DOCS, DOCS_V2, REPO, VERSION } from '../../data/site'
const linkClass =
- 'rounded-[6px] px-3 py-2 text-sm font-medium text-fg-2 transition-colors hover:bg-hover hover:text-fg'
+ 'rounded-control px-3 py-2 text-sm font-medium text-fg-2 transition-colors hover:bg-hover hover:text-fg aria-[current=page]:bg-accent/16 aria-[current=page]:text-fg'
const Header = () => {
const [open, setOpen] = useState(false)
@@ -31,9 +31,9 @@ const Header = () => {
-
+
AniMathIO
-
+
{VERSION}
@@ -51,7 +51,7 @@ const Header = () => {