One year of Drupal Canvas

Canvas turns one today, and next week we're releasing exposed slots, the feature I've been waiting for since before we started writing any code.

A year ago today we tagged Canvas 1.0. At the time it felt like the finish line. Turns out it was more like the end of the first leg of a triathlon. We were done with the slow swim of exploring and laying out the foundation, and this year we got on the bike.

Since then we've shipped thirteen minor releases, counting today's, with more than a thousand commits from close to 190 people. Canvas is now used on 22,786 sites. That's what we set out to do, but I don't take it for granted.

What we shipped

A few highlights from the year:

  • The experience feels a lot more polished overall; the drag and drop has improved significantly from what it was a year ago, and you can navigate between pages without a full page reload.
  • Canvas now supports headless. You can build your frontend in React, Next.js, Nuxt, Astro, TanStack Start, or Angular, and still edit and preview it in Canvas.
  • Brand kit gives your site's colors and fonts one place to live.
  • Page templates replaced global regions, so a site can have more than one layout, and the header and footer no longer depend on your theme.
  • Pages and content templates can be translated, including through TMGMT.
  • Components got more capable. Props can take multiple values, and a component can reference entities.
  • Code components can load third party dependencies and they can now be rendered on the server, so their HTML is there on first paint instead of waiting for JavaScript. Components that don't need the browser ship no JavaScript at all, and the ones that do mark themselves with 'use client' and hydrate.
  • The Canvas CLI and Workbench let you build code components on your own machine and push and pull pages. It also turns out to be a good way for AI agents to work with Canvas.

Coming next week: exposed slots

There's also something to look forward to. Canvas 1.14 comes out next week, and it includes exposed slots. Until now, a content template gave every article the exact same layout. That's great for consistency, but sometimes one article needs a video, or a call to action that the others don't.

Exposed slots let a template mark the areas each piece of content can fill in on its own. The template keeps the structure, and editors get a place to build something specific to that one page.

When I was doing the research for this project, before we'd written any code, this was the holy grail. Almost every conversation came back to it in some form. So for me, this release feels almost as big of a milestone as 1.0 itself, and I'm glad we took the time to get it right.

Thank you

First, thank you to Acquia. I work at Acquia's product management team, where I lead the Canvas program, so I'm not exactly neutral here. Still, Acquia has been driving Canvas from the start, and Canvas wouldn't be where it is today without that. Thank you to the engineering, quality engineering, design, and marketing teams at Acquia who work on Canvas every day. I'm lucky to get to work with you.

It hasn't only been Acquia, though. Thank you to everyone who wrote code, reviewed merge requests, designed, tested, wrote documentation, or filed an issue when something broke. Thank you to the agencies and site builders who trusted a brand new 1.0 with real projects and told us what was missing. And thank you to everyone who showed up in Slack, at DrupalCon, and on calls to tell us what worked and what didn't. A lot of what's in the list above started as one of those conversations.

I don't take any of this for granted. The momentum we've had this year and the support behind it won't continue on their own just because they happened once. If Canvas matters to you, keep building with it, and keep opening issues and merge requests.

It's been a good year. I'd like the next one to be even better, and that depends on all of us.

If you haven't tried Canvas yet, this is a good time. Ivan Zugec released recently a great summary of what Canvas can do which is a good place to start from. If you've already tried it, the issue queue is where you can tell us what we should do next.