名称: morfeo-remotion-style
描述: Morfeo Academy 的 Remotion 视频风格指南。在为 Paul/Morfeo Academy 创建 Remotion 视频、故事或动画时使用。触发词包括:"estilo Morfeo"、"mi estilo Remotion"、"video para Morfeo"、"story estilo Morfeo" 或来自 Paul 的任何 Remotion 视频请求。
适用于 Morfeo Academy 品牌的 Remotion 视频风格指南。
export const colors = {
lime: "#cdff3d", // 主强调色 - 非常重要
black: "#050508", // 背景色
darkGray: "#111111", // 次要背景色
white: "#FFFFFF", // 文字色
gray: "#888888", // 弱化文字色
};
import { loadFont as loadDMSans } from "@remotion/google-fonts/DMSans";
import { loadFont as loadInstrumentSerif } from "@remotion/google-fonts/InstrumentSerif";
import { loadFont as loadJetBrainsMono } from "@remotion/google-fonts/JetBrainsMono";
export const fonts = {
heading: `${instrumentSerif}, serif`, // 标题 - 始终使用斜体
body: `${dmSans}, sans-serif`, // 正文
mono: `${jetBrainsMono}, monospace`, // 代码/技术字体
};
规则:
- 标题:Instrument Serif,始终为斜体,字重 400
- 正文:DM Sans,字重 400-600
- 代码/技术内容:JetBrains Mono
通过 CDN 使用 Apple 表情符号(Remotion 无法渲染系统表情符号):
// 完整组件请参考 references/AppleEmoji.tsx
<AppleEmoji emoji="🤖" size={28} />
<InlineEmoji emoji="🎙️" size={38} /> // 用于与文本内联
使用内联 SVG,而非图标库(它们在 Remotion 中无法工作):
// 完整组件请参考 references/BrandIcon.tsx
<BrandIcon brand="whatsapp" size={44} />
<BrandIcon brand="telegram" size={44} />
spring({
frame,
fps,
from: 0,
to: 1,
config: { damping: 15 } // 标准阻尼值
});
const pulse = interpolate(
frame % 60,
[0, 30, 60],
[1, 1.1, 1],
{ extrapolateRight: "clamp" }
);
<div style={{
position: "absolute",
top: 80,
fontSize: 28,
fontWeight: 600,
fontFamily: fonts.body,
color: colors.black,
backgroundColor: colors.lime,
padding: "12px 28px",
borderRadius: 30,
display: "flex",
alignItems: "center",
gap: 8,
}}>
<AppleEmoji emoji="🤖" size={28} /> 此处放置文本
</div>
<AppleEmoji emoji="🗣️" size={140} />
<h1 style={{
fontSize: 68,
fontWeight: 400,
fontFamily: fonts.heading,
fontStyle: "italic", // 始终为斜体
color: colors.white,
textAlign: "center",
lineHeight: 1.15,
}}>
文本内容 <span style={{ color: colors.lime }}>青柠色强调</span>
</h1>
colors.black (#050508)npx create-video@latest --template blank
npm i @remotion/google-fonts
src/
├── styles.ts # 色彩和字体导出
├── AppleEmoji.tsx # 表情符号组件
├── BrandIcon.tsx # 品牌图标组件(WhatsApp、Telegram 等)
├── [StoryName].tsx # 独立的故事文件
└── Root.tsx # 合成设置
references/styles.ts - 完整的样式文件references/AppleEmoji.tsx - Apple 表情符号组件references/BrandIcon.tsx - 品牌图标组件references/MorfeoStory-example.tsx - 完整故事示例