[{"data":1,"prerenderedAt":357},["ShallowReactive",2],{"panda-series":3,"blog-\u002Fblog\u002Fnew-engine-new-origin":90},[4,9,12,15,20,24,27,31,34,38,41,45,48,50,53,57,60,64,67,70,73,76,79,82,86],{"path":5,"series":6,"part":6,"draft":7,"date":8},"\u002Fblog\u002Fa-year-a-verse-and-an-ecosystem",null,false,"2026-08-31",{"path":10,"series":6,"part":6,"draft":7,"date":11},"\u002Fblog\u002Falmost-got-got","2026-08-23",{"path":13,"series":6,"part":6,"draft":7,"date":14},"\u002Fblog\u002Fbeing-heard","2025-05-26",{"path":16,"series":17,"part":18,"draft":7,"date":19},"\u002Fblog\u002Fbuild-once-at-build-time","Panda internals",1,"2026-10-16",{"path":21,"series":17,"part":22,"draft":7,"date":23},"\u002Fblog\u002Fcold-vs-warm",7,"2026-11-24",{"path":25,"series":6,"part":6,"draft":7,"date":26},"\u002Fblog\u002Fcontext-is-everything","2026-07-18",{"path":28,"series":17,"part":29,"draft":7,"date":30},"\u002Fblog\u002Fevery-style-is-an-atom",2,"2026-10-17",{"path":32,"series":6,"part":6,"draft":7,"date":33},"\u002Fblog\u002Fhey-elvon","2026-09-10",{"path":35,"series":17,"part":36,"draft":7,"date":37},"\u002Fblog\u002Fhow-panda-makes-cva-fast",6,"2026-11-12",{"path":39,"series":17,"part":40,"draft":7,"date":37},"\u002Fblog\u002Fknow-what-your-css-actually-uses",6.5,{"path":42,"series":17,"part":43,"draft":7,"date":44},"\u002Fblog\u002Flook-it-up-once",3,"2026-10-20",{"path":46,"series":6,"part":6,"draft":7,"date":47},"\u002Fblog\u002Fmy-pastor-once-said","2026-08-09",{"path":49,"series":6,"part":6,"draft":7,"date":23},"\u002Fblog\u002Fnew-engine-new-origin",{"path":51,"series":6,"part":6,"draft":7,"date":52},"\u002Fblog\u002Fnuqs-because-urls-should-do-more","2025-02-17",{"path":54,"series":55,"part":18,"draft":7,"date":56},"\u002Fblog\u002Focx-africa-day-1","OCX Africa","2026-11-22",{"path":58,"series":55,"part":29,"draft":7,"date":59},"\u002Fblog\u002Focx-africa-day-2","2026-11-25",{"path":61,"series":17,"part":62,"draft":7,"date":63},"\u002Fblog\u002Fpanda-never-runs-your-code",4,"2026-10-24",{"path":65,"series":6,"part":6,"draft":7,"date":66},"\u002Fblog\u002Fpractice-what-you-maintain","2026-10-26",{"path":68,"series":6,"part":6,"draft":7,"date":69},"\u002Fblog\u002Fpredictable-codebase","2026-09-26",{"path":71,"series":6,"part":6,"draft":7,"date":72},"\u002Fblog\u002Fquietest-bug","2026-07-16",{"path":74,"series":6,"part":6,"draft":7,"date":75},"\u002Fblog\u002Fstop-yapping-lock-in","2025-04-25",{"path":77,"series":6,"part":6,"draft":7,"date":78},"\u002Fblog\u002Fthe-button-that-did-nothing","2026-08-07",{"path":80,"series":17,"part":81,"draft":7,"date":23},"\u002Fblog\u002Fthe-dumb-code-thats-faster",8,{"path":83,"series":17,"part":84,"draft":7,"date":85},"\u002Fblog\u002Fthe-ir-behind-your-ternary",5,"2026-11-04",{"path":87,"series":17,"part":88,"draft":7,"date":89},"\u002Fblog\u002Fwhat-runtime-means-in-panda",4.5,"2026-10-28",{"id":91,"title":92,"body":93,"canonical":6,"date":23,"description":349,"draft":7,"duration":6,"extension":350,"lang":6,"meta":351,"navigation":352,"part":6,"path":49,"place":6,"placeLink":6,"readingTime":353,"seo":354,"seoTitle":6,"series":6,"stem":355,"updated":6,"__hash__":356},"blog\u002Fblog\u002Fnew-engine-new-origin.md","New engine, new origin",{"type":94,"value":95,"toc":344},"minimark",[96,103,114,135,138,141,144,153,160,166,171,180,189,192,195,198,206,209,254,257,261,275,318,321,325,340],[97,98,99],"subtitle",{},[100,101,102],"p",{},"This started as a Chakra v4 question and ended with us rewriting Panda in Rust.",[100,104,105],{},[106,107],"img",{"alt":108,"src":109,"fetchPriority":110,"loading":111,"width":112,"height":113},"New engine, new origin. Panda CSS v2, with the install size down from 111 MB to 37 MB.","\u002Fimages\u002Fblog\u002Fnew-engine-new-origin\u002Fcover.svg","high","eager",1200,630,[100,115,116,117,121,122,127,128,134],{},"Between January and March 2026, after I finished ",[118,119,120],"a",{"href":5},"the codemod for Chakra v3",", ",[123,124],"mention",{"handle":125,"name":126},"segunadebayo","Sage (Segun Adebayo)"," and I started talking about Chakra v4. The idea came up of moving Chakra to ",[118,129,133],{"href":130,"rel":131},"https:\u002F\u002Fpanda-css.com",[132],"nofollow","Panda CSS"," and swapping out the Emotion layer.",[100,136,137],{},"I came back to Sage with a long list of questions, and Sage answered every single one. Then I built a small POC that turned style props into static classes. It worked, but the test theme alone came out to roughly 3.8MB of CSS 😅.",[100,139,140],{},"I invited Sage to the repo, then disappeared for a week, because I was still in final year and had exams. Sage's first comment was to drop my custom script and use the Panda package directly, so users could choose what gets generated.",[100,142,143],{},"Then Sage raised the question that ended up mattering most: if Chakra ships its own styled-system and the user runs codegen, how does their output override ours? My answer was tsconfig paths. That worked for a POC, but it was a workaround for something Panda didn't really support: shipping a design system that other apps build on.",[100,145,146,147,152],{},"That's why we decided to work our way up the chain to Chakra v4, the same chain Sage laid out in ",[118,148,151],{"href":149,"rel":150},"https:\u002F\u002Fwww.adebayosegun.com\u002Fblog\u002Fthe-future-of-chakra-ui",[132],"The future of Chakra UI",", and right at the bottom of that chain was Panda.",[100,154,155],{},[106,156],{"alt":157,"src":158,"width":112,"height":159},"Panda v2, then Zag v2, then Ark v6, then Chakra UI v4.","\u002Fimages\u002Fblog\u002Fnew-engine-new-origin\u002Fup-the-chain.svg",300,[100,161,162],{},[163,164,165],"em",{},"Up the chain: Panda v2, Zag v2, Ark v6, then Chakra UI v4. The ones on top can't really move till the ones under them do.",[167,168,170],"h2",{"id":169},"rust-it","\"Rust it\"",[100,172,173,174,179],{},"We ",[118,175,178],{"href":176,"rel":177},"https:\u002F\u002Fgithub.com\u002Fchakra-ui\u002Fpanda\u002Fdiscussions\u002F3522",[132],"asked people what they wanted from v2"," and started building it in JS. My design system PR grew to over 42k lines. It worked, but every feature was getting bolted onto an engine that was already the slow part.",[100,181,182,183,188],{},"So we decided to tear down what we knew of Panda v1 (Sage tells ",[118,184,187],{"href":185,"rel":186},"https:\u002F\u002Fwww.adebayosegun.com\u002Fblog\u002Fpanda-css-the-origin-story",[132],"how v1 started","), and said:",[100,190,191],{},"\"Rust it.\"",[100,193,194],{},"I closed my design system PR. 🙂‍↔️",[100,196,197],{},"Honestly, I was okay with closing it, since I'd be the one rebuilding that work on the new engine anyway.",[100,199,200,201,205],{},"Sage started the Rust foundation while I kept working on the design system features. On 15 May 2026 the first Rust workspace landed on the ",[202,203,204],"code",{},"v2"," branch, and by June the old v1 pipeline was gone completely, over 226k lines deleted in one PR.",[100,207,208],{},"Then I rebuilt the design system work on the new engine. In v2, an app points at a design system with one field:",[210,211,216],"pre",{"className":212,"code":213,"language":214,"meta":215,"style":215},"language-ts shiki shiki-themes github-light github-dark","export default defineConfig({\n  designSystem: '@acme\u002Fds',\n})\n","ts","",[202,217,218,237,249],{"__ignoreMap":215},[219,220,222,226,229,233],"span",{"class":221,"line":18},"line",[219,223,225],{"class":224},"szBVR","export",[219,227,228],{"class":224}," default",[219,230,232],{"class":231},"sScJk"," defineConfig",[219,234,236],{"class":235},"sVt8B","({\n",[219,238,239,242,246],{"class":221,"line":29},[219,240,241],{"class":235},"  designSystem: ",[219,243,245],{"class":244},"sZZnC","'@acme\u002Fds'",[219,247,248],{"class":235},",\n",[219,250,251],{"class":221,"line":43},[219,252,253],{"class":235},"})\n",[100,255,256],{},"That's exactly what Chakra v4 needs.",[167,258,260],{"id":259},"the-rest-is-in-the-talk","The rest is in the talk",[100,262,263,264,269,270,274],{},"I talked through most of what changed in my SailsConf talk, ",[118,265,268],{"href":266,"rel":267},"https:\u002F\u002Fsailsconf.com\u002F2026\u002Ftalks\u002F17347112-5f4c-4086-bd0d-013eb2d2ff77",[132],"Rebuilding Panda's Engine",", and the ",[118,271,273],{"href":272},"\u002Fslides\u002Frebuilding-pandas-engine.pdf","slides"," are up too. For the rest:",[276,277,278,294,308],"ul",{},[279,280,281,282,287,288,293],"li",{},"The ",[118,283,286],{"href":284,"rel":285},"https:\u002F\u002Fpanda-css.com\u002Fblog\u002Fpanda-css-v2",[132],"Panda 2.0 release post",", from 29 September 2026, and the ",[118,289,292],{"href":290,"rel":291},"https:\u002F\u002Fpanda-css.com\u002Fdocs\u002Fget-started\u002Fupgrading-to-v2",[132],"upgrade guide"," cover what shipped and what changed.",[279,295,296,297,301,302,307],{},"Sage, ",[123,298],{"handle":299,"name":300},"estheragbaje","Esther"," and I talked about v2 on a ",[118,303,306],{"href":304,"rel":305},"https:\u002F\u002Fwww.youtube.com\u002Flive\u002F5VcTX2I6Xk8",[132],"livestream",".",[279,309,310,311,314,315,307],{},"My ",[118,312,17],{"href":313},"\u002Fblog\u002Fseries\u002Fpanda-internals"," series goes into how the engine works, starting with ",[118,316,317],{"href":16},"Build once, at build time",[100,319,320],{},"Thank you to Sage, and to everyone who tested the betas and sent repros.",[167,322,324],{"id":323},"step-one","Step one",[100,326,327,328,333,334,339],{},"For me this was always step one. Panda v2 is the engine, ",[118,329,332],{"href":330,"rel":331},"https:\u002F\u002Fgithub.com\u002Fchakra-ui\u002Fchakra-ui\u002Fdiscussions\u002F10959",[132],"and now we get to build Chakra v4 on top of it",". Sage's ",[118,335,338],{"href":336,"rel":337},"https:\u002F\u002Fwww.adebayosegun.com\u002Fblog\u002Fchakra-panda-and-ark-whats-the-plan",[132],"Chakra, Panda and Ark: what's the plan?"," is where that plan first took shape.",[341,342,343],"style",{},"html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":215,"searchDepth":29,"depth":29,"links":345},[346,347,348],{"id":169,"depth":29,"text":170},{"id":259,"depth":29,"text":260},{"id":323,"depth":29,"text":324},"How a Chakra v4 conversation turned into Panda CSS v2, and the day we said \"Rust it\".","md",{},true,"4min",{"title":92,"description":349},"blog\u002Fnew-engine-new-origin","T9rRX8e2X62UROMnUJtZ_IK3rnvv3pGr0nKZR3ds8cs",1795498556379]