把 GPT-6 Astra 当前端开发的提示词思路
主张别给模型「感觉」而是给数据模型:4 个配色状态对象、切换 CSS 变量、预加载图片,布局保持不变。
THIS ONE PROMPT TURNS GPT-6 ASTRA INTO A FRONT END DEV the difference between a site that works and one that falls apart is the prompt underneath it most people ask the model for a pretty spray paint site where you can switch colors that gives you chaos, everything shifts around and nothing lines up so here is the fix you hand the model a data model instead of a vibe build a hero with 4 color states, each state is an object with a name, background art, accent hex, headline and subline clicking a swatch swaps the CSS variables on root and crossfades the art layer at 400ms ease out preload all 4 images so nothing flickers the layout stays identical between states, only the color moves now the model has a schema to follow, so it only changes the one thing you told it to this is the whole game with GPT-6 Astra, you ship the state machine not the mood board tomorrow i post the full prompt that took hours of building and breaking sites to land on
这条是引用着另一条写的:x.com/awp_akira/status/2083515342698016969