Counterfoil
A website theme for charities and food bank networks, in Astro and in Next.js with Sanity: a donate card where every amount says what it buys, a bar for where every £1 goes, a food bank finder, an appeal, volunteer roles, events and stories. 17 pages, 35 sections, light and dark, WCAG 2.2 AA.


Theme for charities and food bank networks, for Astro and Next.js + Sanity
What Counterfoil is for
The site for a charity: give, or get help, on the first screen. The gift is a donate card where every amount says what it buys, and the next section shows where every pound goes, in two editions: Astro, or Next.js with a Sanity Studio. 17 pages, 35 sections and one preset, light and dark, WCAG 2.2 AA.
Home, donate, where the money goes, get help, the appeal, volunteering, a story and about, ready for your charity.
Every page as it ships, with the invented charity Northway: fourteen food banks in Leeds and Bradford. Switch to dark to see the other mode, and click a page to see all of it.
As considered on a phone.
Every page is checked at phone width in both modes. On a phone the donate card is the first thing on the screen with the frequency switch and the button that names the gift, and the help strip with the free helpline stays in reach.



Two editions, one license
Static files or a Studio. Same design.
Both editions render the same pages from the same sections and presets, so you choose by who edits the site, not by how it looks. Your license includes both.
- Framework
- AstroAstro 7, static output
- Next.js + SanityNext.js 16, App Router and React Server Components
- Content
- AstroFood banks, volunteer roles, events, accounts, people and stories (Markdown) in files with a schema; the donate card, the £1 split and page copy in the settings file and one typed file
- Next.js + SanitySanity Studio with documents for food banks, roles, events, accounts, people and stories; the charity, the donate card and the £1 split in the Site document
- Payments
- AstroNone on the site. The donate card sends the amount, frequency, Gift Aid and fund to your payment partner’s donation page
- Next.js + SanityThe same: the card sends people to your partner’s donation page
- Demo content
- AstroIn the repository
- Next.js + SanityA seed script imports every food bank, role, event, story and image into your dataset
- Publishing
- AstroRebuild and deploy
- Next.js + SanityPages generated ahead of time, refreshed within a minute or at once with the publish webhook
- Preview
- Astropnpm dev
- Next.js + SanityDrafts beside the form in the Studio’s Presentation tool
- Forms
- AstroContact, volunteer, fundraising pack and newsletter post to the addresses you set, or to an optional Cloudflare Worker that forwards them and fails closed without a destination
- Next.js + SanityRoute Handlers that forward to your endpoint, fail closed without one and log no field values
- JavaScript
- AstroSmall scripts: the menu on phones, the light/dark switch, the donate card’s button words and Gift Aid line, the food bank and role filters, and the accounts’ year switch
- Next.js + SanityThe same small parts as client components; every page renders on the server
- Lighthouse, mobile
- Astro100
- Next.js + Sanity97–100
- Deploys to
- AstroCloudflare Workers, Netlify, Vercel or any static host
- Next.js + SanityVercel, or Cloudflare Workers through OpenNext
- Repository
- Astrothemesdev/counterfoil-astro
- Next.js + Sanitythemesdev/counterfoil-next
| Aspect | Astro | Next.js + Sanity |
|---|---|---|
| Framework | Astro 7, static output | Next.js 16, App Router and React Server Components |
| Content | Food banks, volunteer roles, events, accounts, people and stories (Markdown) in files with a schema; the donate card, the £1 split and page copy in the settings file and one typed file | Sanity Studio with documents for food banks, roles, events, accounts, people and stories; the charity, the donate card and the £1 split in the Site document |
| Payments | None on the site. The donate card sends the amount, frequency, Gift Aid and fund to your payment partner’s donation page | The same: the card sends people to your partner’s donation page |
| Demo content | In the repository | A seed script imports every food bank, role, event, story and image into your dataset |
| Publishing | Rebuild and deploy | Pages generated ahead of time, refreshed within a minute or at once with the publish webhook |
| Preview | pnpm dev | Drafts beside the form in the Studio’s Presentation tool |
| Forms | Contact, volunteer, fundraising pack and newsletter post to the addresses you set, or to an optional Cloudflare Worker that forwards them and fails closed without a destination | Route Handlers that forward to your endpoint, fail closed without one and log no field values |
| JavaScript | Small scripts: the menu on phones, the light/dark switch, the donate card’s button words and Gift Aid line, the food bank and role filters, and the accounts’ year switch | The same small parts as client components; every page renders on the server |
| Lighthouse, mobile | 100 | 97–100 |
| Deploys to | Cloudflare Workers, Netlify, Vercel or any static host | Vercel, or Cloudflare Workers through OpenNext |
| Repository | themesdev/counterfoil-astro | themesdev/counterfoil-next |
What's inside
17 pages from 35 sections.
Each page is a short list of sections: the donate card, the £1 bar, the figures, the food banks, the appeal, the stories, the roles and the events. Each food bank, role, event and story is one entry, so the same food bank shows in the help filter and in the structured data.
- Home
- The donate card on a colour field, where every £1 goes with the year’s figures, three ways to get help, the appeal, stories, open volunteer roles and events.
- Donate
- The full donate card with a choice of fund, monthly or one-off, and Gift Aid. Every amount says what it buys. Then the steps, other ways to give and the questions people ask.
- Where the money goes
- The £1 as one bar worked out from the accounts, what each gift buys, three years of accounts with a year switch, and three promises.
- Get help
- How a referral works, every food bank with its sessions and a filter for “open today”, and the advice service.
- Appeal
- A winter appeal with the need, the plan and the updates as it runs.
- Volunteer
- Roles by the time you have, with places left, and a form.
- Events and fundraising
- Upcoming events with a featured one, and a fundraising-pack request form.
- Stories
- A page for the stories, and a page per story as an article, with the story also available as Markdown.
- About, contact and the rest
- The aim, the years since the start, trustees with faces, the team, accounts and governance; contact; a sample privacy page, the thank-you page and a 404.
One look, light and dark.
Everything a section draws comes from the preset’s tokens: colours, type, space and corners. Counterfoil is a neutral page with one magenta for giving and Arimo in one family at bold, light and dark. Change the tokens in one file and every page follows. Contrast is checked in both modes.

Checked, not promised
Accessible and fast, page by page.
These checks ran on every page of both editions, in light and dark, at desktop and phone widths.
- WCAG 2.2 AA
- Zero axe violations on all 17 pages, in light and dark, at desktop and phone widths, in both editions.
- Fast on a phone
- Lighthouse performance on mobile: 100 for the Astro edition, 97–100 for Next.js, on the home page, donate and a story. Every photo is served at twice its drawn size for sharp screens and at its own size for the rest.
- Checked at 17 widths
- The main pages measured from 320 to 5120 pixels in both modes, and looked over by reviewers in four rounds: no sideways scrolling, no clipped text.
- A donate card that works without JavaScript
- The card is a plain form, and the monthly and one-off switch works with CSS alone. With scripts on, the button’s words and the Gift Aid line follow the choice. The site never sees a card or bank detail.
- Structured data for charities
- The charity as an NGO with its charity number and a DonateAction, the food banks as Places with their opening hours, events, stories as articles, questions and breadcrumbs. A sitemap, llms.txt, and every story as Markdown.
- Design rules, checked
- Colours only from the preset, images with alt text and a size: pnpm lint holds every page to it, yours included.
Delivery
A zip, or straight from GitHub.
Download both editions from your account, or connect GitHub and get read access to the private repositories. Each release is one tagged commit, so updating is a pull.
$ git clone git@github.com:themesdev/counterfoil-next.git
$ cd counterfoil-next && pnpm install
$ pnpm dev # the demo content, until you connect Sanity
$ pnpm seed # then import it into your own dataset- 01Buy a licensePay once. The license belongs to your organisation; owners and admins hand out the seats.
- 02Connect GitHubIn your account, sign in with GitHub once. We learn only your username, and invite it read-only to both repositories.
- 03Pull updatesUpdates are free for life. Access follows your license, and the zip stays in your account next to it.
Pay once. Both editions.
Unlimited projects, private, commercial and for clients, with every future update of both editions. Prices exclude VAT; we sell to businesses. License details
A small studio building sites for charities: everyone gets their own seat.
Choose Team
A registered Dutch company, KvK 01129853. Questions before you buy? Ask me.
Paying
Through Mollie: card, Apple Pay, iDEAL, Bancontact or PayPal. A proper invoice for every order, with EU reverse charge.
Updates
Galley 2.0.0 came out on . 27 releases across our themes in the last 30 days, all free for buyers.
Track record
400+ teams and developers have bought from themes.dev since 2020. Their licenses now live in their accounts here.
What's new
Updates for both editions, free.
v1.0.0
Not released yet
The first release of Counterfoil, for charities and nonprofits.
Astro
- Home: the donate card on a colour field (monthly or one-off, every amount with what it buys, another amount, Gift Aid with what it adds, one button that names the gift), where every £1 goes as one bar with the year's figures, three ways to get help, the appeal on an ink band, stories, open volunteer roles with places left, and events.
- Donate, with a choice of fund and the payment handed to your payment partner's page; where the money goes, with three years of accounts; get help, with every food bank's sessions and an "open today" filter; a winter appeal; volunteer roles by time with a form; events and a fundraising-pack form; stories; about with trustees and governance; contact; privacy, thanks and 404.
- Light and dark, with a toggle that remembers your choice.
NGOwith the charity number and aDonateAction, food banks asPlaces with opening hours,Events,BlogPosting, FAQ and breadcrumbs, a sitemap, robots.txt,llms.txtand every story as Markdown.
Next.js + Sanity
- Home: the donate card on a colour field (monthly or one-off, every amount with what it buys, another amount, Gift Aid with what it adds, one button that names the gift), where every £1 goes as one bar with the year's figures, three ways to get help, the appeal on an ink band, stories, open volunteer roles with places left, and events.
- Donate, with a choice of fund and the payment handed to your payment partner's page; where the money goes, with three years of accounts; get help, with every food bank's sessions and an "open today" filter; a winter appeal; volunteer roles by time with a form; events and a fundraising-pack form; stories; about with trustees and governance; contact; privacy, thanks and 404.
- Sanity Studio: the Site with the donate card, accounts by year, food banks, volunteer roles, events, people and stories; Presentation with draft mode; a publish webhook; the demo content as a seed (
pnpm seed). - Light and dark, with a toggle that remembers your choice.
NGOwith the charity number and aDonateAction, food banks asPlaces with opening hours,Events,BlogPosting, FAQ and breadcrumbs, a sitemap, robots.txt,llms.txt, Open Graph images and every story as Markdown.
Questions
Do I get both editions?
Yes. Counterfoil is one product: every license includes the Astro theme and the Next.js + Sanity edition, as a zip and as two private GitHub repositories. Use either or both in any project your license covers.
Which edition should I use?
The Astro edition if a developer keeps the site: the food banks, roles and events are data files and the stories are Markdown, with plain static HTML on any host. The Next.js + Sanity edition if the charity’s staff or volunteers update the site themselves: opening hours, roles and stories in the Studio, with a live preview, and nobody touches code.
Does it take payments?
No, on purpose. The donate card is a form that sends the amount, the frequency, the Gift Aid choice and the fund to your payment partner’s donation page as parameters. You set the address and the parameter names for Stripe Payment Links, GoCardless, Enthuse, JustGiving, Donorbox or your CRM’s form. The site never sees card or bank details.
We are a different kind of charity, not a food bank. Does it fit?
Yes, if giving and getting help are the two things people come for. The food banks become your locations or services, with sessions or opening hours; the £1 bar, the accounts, the appeal, the roles and the events are generic. A hospice, an animal charity or an aid organisation needs new words and photos, not new layouts.
Is Gift Aid handled?
The card has the Gift Aid choice, works out the extra a gift would add at the rate you set (25p to every £1 in the demo) and passes the choice to your payment partner. Collecting and claiming Gift Aid, and the declaration wording, stay with your partner and your own legal advice. The fine print on the card is yours to edit.
What happens to the forms?
Contact, volunteer, the fundraising pack and the newsletter are plain forms that work without JavaScript, with a hidden field that catches bots. In the Astro edition they post to the addresses you set: a form service, your CRM, or the optional Cloudflare Worker that forwards them. In the Next.js edition they post to the site, which forwards the fields to the address you set; without one it accepts nothing. Neither edition stores what people send.
Do I need a paid Sanity plan?
No. Sanity’s free plan is enough for this theme. The README walks you through the project, tokens and the seed script.
How does the GitHub access work?
In your themes.dev account, connect your GitHub account once by signing in with GitHub. You then get a read-only invitation to themesdev/counterfoil-astro and themesdev/counterfoil-next. Every release is a tagged commit there. Access follows your license: a seat you lose or a refund ends it. The zip stays in your account either way.
Can I build sites for clients with it?
Yes, in unlimited projects. A site you build with Counterfoil for a charity is theirs: they may own, host, edit and keep running it without a license of their own. They may not take Counterfoil out of that site to build other sites.
Can I see it before buying?
Yes. The live demo is the Astro edition with every page, and the screenshots on this page show them in light and dark. Northway and everything in it is invented: the charity, the figures, the food banks, addresses, charity number and stories. The photos are generated and show fictional people.
Do you charge VAT?
We sell to businesses. Dutch businesses pay 21% VAT; businesses elsewhere in the EU with a valid VAT number pay none (reverse charge); outside the EU there is no Dutch VAT. You get a proper invoice by email.
Is Counterfoil an official Astro, Next.js or Sanity product?
No. Counterfoil is made by themes.dev and builds on the open-source Astro, Next.js, Tailwind CSS and Sanity projects; it is not affiliated with them.
Put your cause on Counterfoil.
From €49 for one person to €349 for your whole company. Both editions, pay once, lifetime updates.





















