Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

671 B
Raw Blame
// CSS: a composition's CSS imports and CSS modules reach its page (docs/vite-in-raea.md A2; sdk/react/bench/css/check.sh).
// Left half red with a yellow dot (site.css, its @import and nesting), right half blue (card.module.css: composes,
// color-mix()).
import { Composition, registerRoot } from "raea";
import "./site.css";
import card from "./card.module.css";

function Css() {
  return (
    <div className="page">
      <div className="left">
        <div className="dot" />
      </div>
      <div className={card.right} />
    </div>
  );
}

registerRoot(() => <Composition id="edit" component={Css} width={400} height={200} fps={30} durationInFrames={30} />);