# HTML Templates Guide ## πΈ Preset Templates ReelForge provides the following preset templates: | Template | Style | Preview | |----------|-------|---------| | `classic` | Classic black & white, minimalist professional | Clean white background with elegant typography | | `modern` | Modern gradient with glassmorphism effects | Purple-blue gradient with frosted glass style | | `minimal` | Minimalist with ample whitespace | Light gray background with refined design | ### Usage ```python from reelforge.service import reelforge await reelforge.initialize() # Use preset template result = await reelforge.generate_video( topic="δΈΊδ»δΉι θ―»ζΉεε½θΏ", frame_template="classic" # or "modern", "minimal" ) ``` --- ## π¨ Creating Custom Templates ### Method 1: Generate with LLM (Recommended β, Zero Code) **For users who want unique styles but don't want to write code** #### Step 1: Open Prompt File Open [`prompts/generate_html_template.txt`](../prompts/generate_html_template.txt) in the project root directory. Or view online: [View Prompt File](https://github.com/xxx/ReelForge/blob/main/prompts/generate_html_template.txt) #### Step 2: Copy Prompt, Modify Style Description Find this section in the prompt: ``` ## Visual Style [π Replace this section with your desired style] ``` Replace with your desired style, for example: ``` ## Visual Style Cyberpunk style with neon lights, dark background, purple and blue gradients ``` #### Step 3: Paste to LLM Platform Copy the entire prompt and paste it into any of these platforms: - π¬ ChatGPT: https://chat.openai.com - π¬ Claude: https://claude.ai - π¬ Tongyi Qianwen: https://tongyi.aliyun.com - π¬ DeepSeek: https://chat.deepseek.com - π¬ Doubao: https://www.doubao.com - π¬ Or any LLM you prefer #### Step 4: Save HTML Copy the HTML code returned by the LLM. β οΈ **Note:** If the LLM returns HTML wrapped in \`\`\`html\`\`\`, only copy the HTML inside (excluding \`\`\`html and \`\`\`) Save as: ``` templates/my-cyberpunk.html ``` #### Step 5: Use Template ```python await reelforge.generate_video( topic="...", frame_template="my-cyberpunk" # Use your template ) ``` **π Done! Your video now uses your custom style!** --- ### Example Style Descriptions Here are some style descriptions you can use or adapt: - "Cyberpunk style with neon lights, dark background, purple gradient" - "Fresh and clean style, light blue background, rounded cards, soft shadows" - "Professional business style, dark blue with gold accents, serious and dignified" - "Cute cartoon style, pink theme, rounded fonts, rainbow gradient" - "Vintage retro style, sepia tones, aged paper texture, rounded borders" - "Tech minimalist style, pure white background, thin borders, subtle animations" - "Warm reading style, beige background, book texture, soft lighting" --- ### Method 2: Write HTML Manually (Full Control) **For users familiar with HTML/CSS** Create an HTML file directly: ```html