Overview#
Tally is a marketing website template for a SaaS or fintech product: invoicing, expenses and simple
bookkeeping software for freelancers and small studios. The fictional company is Tally Software, Inc., based
on Ionia Avenue in Grand Rapids, Michigan, so prices are in US dollars, exclude sales tax, and the copy uses
American spelling. Times are Eastern (America/Detroit). This is the Astro version: Astro 7 with TypeScript and
Tailwind CSS v4, no UI framework, and a static build that runs on any host, with the same pages, design and
interactions as the HTML version. This guide covers version 1.0.1. See the live demo at
freeframe.dev/templates/tally.
Money and tax copy in the template is deliberately general ("not tax advice", no guaranteed savings). If you use it for a real product, have your own figures and claims checked.
The 6% sales tax in the hero invoice and the pricing toggle is a sample: it is Michigan’s state rate, but what is
taxable varies by state and by item, and many services and hosted software aren’t taxed in Michigan. Set VAT_RATE
and the wording to what applies to you. Some internal names (VAT_RATE, data-vat, data-vat-toggle, the saved
vat value, #gdpr-title) keep their original spelling so they match the HTML version.
The site is a front end only: the forms don't send anything until you connect your own service (see Forms).
Quick start#
Requirements: Node.js 24 or newer and pnpm (npm works too).
pnpm install
pnpm dev # http://localhost:4321With npm: npm install, then npm run dev.
| Command | What it does |
|---|---|
pnpm dev |
Development server at http://localhost:4321 with hot reload |
pnpm build |
Static site in dist/ |
pnpm preview |
Serve dist/ locally after a build |
pnpm check |
astro check: type-checks .astro files and TypeScript |
pnpm typecheck |
Generate Astro's types, then type-check with tsc (TypeScript 7) |
pnpm lint |
ESLint (TypeScript and Astro rules) |
pnpm build:demo |
Build for /demos/astro/tally into demo/ (only used for the demo on freeframe.dev) |
Mona Sans and Azeret Mono load from Google Fonts, so the fonts need a connection.
Pages#
| File | Route | Purpose and features |
|---|---|---|
src/pages/index.astro |
/ |
Live invoice hero (edit quantities, simulate payment), customer wordmarks, three product cards, dark dashboard band with an SVG cash flow chart, set-up steps, testimonials, calculator and pricing teasers, call to action |
src/pages/features.astro |
/features |
Product tour in ARIA tabs (invoicing, expenses, bookkeeping, reports), reminder email writer, grid of smaller features |
src/pages/pricing.astro |
/pricing |
Monthly / annual switch, sales tax toggle, three plan cards, comparison table with a sticky header, billing and sales tax FAQ |
src/pages/calculator.astro |
/calculator |
Late-charge calculator (interest from your terms plus a flat late fee) with an SVG chart, time-saved estimate |
src/pages/integrations.astro |
/integrations |
Category filters, search, result count, empty state, bank feed notes, API code sample |
src/pages/customers.astro |
/customers |
Featured story with before/after bars, six stories filterable by business type |
src/pages/security.astro |
/security |
Key facts, six security practices, privacy notes, sub-processor table, responsible disclosure FAQ |
src/pages/changelog.astro |
/changelog |
Updates filterable by type (new, improved, fixed) |
src/pages/contact.astro |
/contact |
Validated demo request form, live office hours in Eastern time, next steps, address |
src/pages/404.astro |
404.html |
A "reconciliation" card and links to the main pages |
Project structure#
tally/
src/pages/ one .astro file per page (see above)
src/layouts/
Layout.astro <html>, <head> metadata, fonts, skip link, header, <main>, footer, scripts
src/components/
SiteHeader.astro sticky header, phone menu
SiteFooter.astro footer with the sign-up and link columns
Logo.astro the tally mark and wordmark
CheckIcon.astro the check mark in plan lists and the comparison table
src/data/
nav.ts header, phone menu and footer links
invoice.ts hero invoice lines, limits, notes and the sample tax rate
reminders.ts reminder emails per tone and stage
pricing.ts plans, comparison table, billing FAQ
calculator.ts calculator rules, field ranges, lateClaim()
integrations.ts integration categories and the directory
customers.ts customer stories
changelog.ts product updates
office.ts office hours and time zone
src/lib/
site.ts site name, theme color and the url() helper
format.ts money(), num(), plural()
due.ts INVOICE_DUE and the rolling due date
last-test.ts LAST_TEST and the rolling month of the last security test
src/scripts/
main.ts every interaction (menu, invoice, tabs, pricing, calculators, filters, forms)
back-to-top.ts the back-to-top button
src/styles/global.css Tailwind entry: design tokens (@theme) and components
public/img/ favicon.svg, og-image.png (1200×630) and its source og-image.svg
astro.config.mjs site URL, base path, static file output
package.json scripts and dependencies
README.md short introduction
DOCS.md this guide
CHANGELOG.md version history
LICENSE.txt MIT licenseCustomizing#
Brand and colors#
All design tokens are in the @theme block at the top of src/styles/global.css. The ones that matter most:
| Token | Default | Used for |
|---|---|---|
--color-paper |
#f7f6f1 |
Page background |
--color-paper-2 |
#efede5 |
Alternate sections and table group rows |
--color-line / --color-line-strong |
#dcd9ce / #c4c0b2 |
Hairlines, card and input borders |
--color-ink |
#0d1f1b |
Text, primary buttons, dark bands and footer |
--color-ink-soft / --color-ink-faint |
#3c4a45 / #59655f |
Secondary text and captions (AA on paper and white) |
--color-fog |
#a9bab3 |
Secondary text on ink backgrounds |
--color-mint-400 / --color-mint-500 |
#45d99b / #1fc786 |
The accent: fills with ink text on top, chart bars |
--color-mint-700 / --color-mint-800 |
#0a6e4c / #08573d |
Accent text and links on light backgrounds |
--color-amber-*, --color-rose-*, --color-sky-* |
Invoice status chips (due, late, sent) |
To change the accent, edit the mint scale; the dev server picks it up at once:
--color-mint-400: #7cc4ff; /* fills */
--color-mint-700: #1d5f99; /* text on paper */Keep the 700/800 shades dark enough for AA contrast on --color-paper. A few SVGs (the logo in
src/components/Logo.astro, the charts in the pages, public/img/favicon.svg, the social image) and the
calculator chart in src/scripts/main.ts (drawChart) use hex colors directly; search for #45d99b and
#0d1f1b to update them too. The theme-color meta tag is site.themeColor in src/lib/site.ts.
Typography#
Two Google Fonts, loaded with one <link> in the <head> of src/layouts/Layout.astro:
- Mona Sans (variable weight 300–800 and width 75–125%) for everything. Headings use
font-stretch: 112%(set inglobal.cssforh1–h3), and the whole body usesfont-variant-numeric: tabular-numsso figures line up in invoices and tables. - Azeret Mono (weight 400–600) for small labels (
.eyebrow, invoice numbers, chart axes).
To swap a font, change the Google Fonts link in Layout.astro and --font-sans or --font-mono in
global.css. If the new family has no width axis, remove the font-stretch rules or they are simply ignored.
The inline SVG text (integration tiles, wordmarks, the calculator chart) names Mona Sans and Azeret Mono
directly; search for font-family= to change those.
Content#
Page copy lives in the .astro files under src/pages/. Lists and settings live in src/data/ and src/lib/:
| Where | What it holds |
|---|---|
src/lib/format.ts |
LOCALE and CURRENCY ("en-US", "USD"), used by money() to format every amount |
src/data/invoice.ts |
VAT_RATE (0.06, the sample sales tax rate), INVOICE_LINES (name, price, starting quantity) and INVOICE_DEMO (quantity limits 1–9, stage names, the notes under the invoice) |
src/lib/due.ts |
INVOICE_DUE, the due date of the sample invoice INV-0142 ("YYYY-MM-DD"). null (the default) is a rolling demo date: the Friday 7 to 13 days from today, so the demo invoice is never overdue |
src/lib/last-test.ts |
LAST_TEST, the month of the last independent security test on /security ("August 2026"). null (the default) is a rolling demo date: the most recent August that is over, so the yearly test never looks overdue |
src/data/reminders.ts |
REMINDER_SAMPLE and REMINDER_TONES: the reminder emails per tone (friendly, neutral, firm) and stage (before, due, late), with the button labels in REMINDER_TONE_LABELS and REMINDER_STAGE_LABELS |
src/data/pricing.ts |
PLANS (solo, studio, practice: name, monthly and annual prices in US dollars excluding sales tax, summary, feature list), BILLING_PERIODS, DEFAULT_BILLING, COMPARE (the comparison table) and PRICING_FAQ |
src/data/calculator.ts |
LATE_PAYMENT (points added to the rate entered, days in a year, flat late-fee tiers), TIME_ASSUMPTIONS, CALC_FIELDS (default, minimum and maximum of every input) and CALC_URL_PARAMS |
src/data/integrations.ts |
INTEGRATION_CATEGORIES (also the keys accepted from /integrations?category=) and INTEGRATIONS |
src/data/customers.ts |
STORY_TYPES and STORIES |
src/data/changelog.ts |
UPDATE_TYPES and UPDATES |
src/data/office.ts |
OFFICE: timeZone: "America/Detroit", weekdays 1–5, 9 a.m. to 5:30 p.m. |
src/data/nav.ts |
NAV, MOBILE_NAV and FOOTER_NAV |
src/scripts/main.ts |
STORAGE_KEYS (see Saved data) |
Changing a price. Edit PLANS. Annual is ten months for twelve, so keep annual = monthly × 10 if you want
the "2 months free" label and the FAQ to stay true:
export const PLANS: Record<PlanKey, Plan> = {
solo: { name: "Solo", monthly: 12, annual: 120, summary: "For freelancers working on their own.", features: [/* ... */] },
// ...
};The cards and the savings follow PLANS. The plan list in the demo form (#d-plan in contact.astro), the
"from $10 a month" copy on the home page and the figures in the FAQ are plain text; change them to match.
Adding an integration. Add an entry to INTEGRATIONS; the counts on the filter buttons are worked out for you:
{ name: "Kittiwake Pay", category: "payments", initials: "KP", color: "#1f4f86", builtByTally: false, description: "Card payments for clients in Canada." },A new category is a new key in INTEGRATION_CATEGORIES (it becomes a filter button and an accepted
?category= value). Customer stories (STORIES) and changelog entries (UPDATES, newest first, each with its
own date) work the same way.
Hero invoice lines. Edit INVOICE_LINES (unit price excluding sales tax, starting qty); the rows are
built from them and the totals are worked out in the browser. The subtotal, tax and total written in
index.astro are what shows before the script runs, and the "$5,766.40" in the reminder writer
(REMINDER_SAMPLE.amount and the "Pay" button in features.astro) is plain text: update them if you change
the lines.
Images and artwork#
There are no photos. The logo, customer wordmarks, integration tiles, avatars and charts are inline SVG, and
the invoice, dashboard and receipts are HTML. If you replace an avatar with a photo, keep it square (40×40 on
the home page, 56×56 on the contact page) and put the file in public/img/, linked with
url("/img/your-file.jpg"). The social image is public/img/og-image.png (1200×630); its source is
public/img/og-image.svg: edit the SVG and export a new PNG with any SVG editor. The favicon is
public/img/favicon.svg.
Navigation, header and footer#
src/components/SiteHeader.astro and SiteFooter.astro render the links in src/data/nav.ts. To add a page,
create src/pages/<name>.astro (pass title, description and page to <Layout>), and add it to NAV (the
desktop menu, six links), MOBILE_NAV (the phone menu, which adds Changelog) or FOOTER_NAV. A page passes
current="<name>" to <Layout> to mark its own link with aria-current="page". Write every internal link with
url() from src/lib/site.ts (href={url("/pricing#plans")}), without .html or a trailing slash, so it keeps
working when the site is served from a sub-folder.
Features#
All interactions are plain TypeScript in src/scripts/main.ts, imported once by the layout. Each section of the
file starts with a numbered comment; the functions below are in that file unless another one is named.
Hero invoice demo#
initInvoiceDemo(), on the home page (#invoice-demo). The minus and plus buttons change a line's quantity
between INVOICE_DEMO.minQty and maxQty; the subtotal, sales tax (VAT_RATE, rounded to the cent) and total
update and the total briefly flashes. Simulate payment moves the invoice from Viewed to Paid: the chip turns
green, the progress track completes, a "Payment received" card appears and the quantities lock. The button then
reads Reset demo. With the starting quantities the total is $5,766.40 ($5,440.00 + $326.40 sales tax).
Changes are announced in a polite live region; the progress list marks the current stage with
aria-current="step".
The "Due" date is a rolling demo date; see Rolling demo dates.
Product tour tabs#
initTabs(), used on /features ([data-tabs]). Standard ARIA tabs: arrow keys, Home and End move between
tabs. The panel ids are invoicing, expenses, books and reports, and the selected one is kept in the
address, so /features#expenses opens that tab (only ids of the tab panels are accepted). The pill links at the
top of the page (data-tab-link) select a tab and scroll to it. Without JavaScript every panel shows.
Reminder writer#
initReminders(), at /features#reminders. Tone buttons (data-tone, aria-pressed) and stage radios
(name="reminder-stage") choose one of the nine emails in REMINDER_TONES; {invoice}, {amount} and
{client} are filled from REMINDER_SAMPLE, and {due} ("Friday, October 30") and {dueDay} ("Friday") from
the sample invoice's due date, like the "Due" date on the hero invoice. The preview card is a polite live
region.
Pricing switch and sales tax toggle#
initPricing(). The billing buttons (data-billing) show either the monthly price or the annual price divided
by twelve on each [data-plan] card, with "Billed $300 yearly" or "Billed monthly" underneath. The saving is
monthly × 12 − annual per plan: $24, $60 and $120 a year. The checkbox data-vat-toggle multiplies everything
by 1 + VAT_RATE (Studio monthly becomes $31.80) and changes the tax note. Whole dollar amounts drop the cents
(money(n, true)). The choice is saved (see below) and ?billing=monthly or ?billing=annual in the address
overrides it; clicking a billing button updates the address. A status line (data-pricing-status) announces
the change to screen readers. The comparison table header is sticky below the site header.
Late-payment calculator#
initCalculators() with the rules in src/data/calculator.ts (lateClaim()). Inputs: amount ($1 to
$1,000,000), days overdue (1 to 365, a slider) and the annual interest rate in your terms (0 to 36%). The US has
no single late-payment rate for businesses, so the calculator uses what the visitor’s own terms say. The rules:
- annual rate = rate entered +
LATE_PAYMENT.margin(0 points); - interest = amount × annual rate ÷ 100 × days ÷ 365, rounded to the cent;
- flat late fee (an example; set your own in
LATE_PAYMENT.compensation) = $25 under $1,000, $50 from $1,000 to under $10,000, $100 from $10,000.
With the defaults ($2,400, 45 days, 12%) the result is $85.51: 12.00%, $35.51 interest, $0.79 a day, $50
late fee. /calculator?amount=12000&days=1 gives $103.95. The chart is inline SVG drawn by drawChart(): the
late fee as a flat band, interest on top, a marker at the chosen day, over 90 days or the next multiple of 30.
Its text description (data-chart-desc) is rewritten each time. An out-of-range number marks its input
aria-invalid and turns its hint red, and the figures keep using the field's last valid value, so they always
match the slider and each other. When a change to the amount or the days is finished (on leaving the field or
releasing the slider) the address follows, with the value the figures show, so the page can be shared as a link.
Reset to the example restores the defaults, clears the saved values and removes the URL parameters. Change
the default rate in CALC_FIELDS.rate.def (and the value of the field in calculator.astro) to match your
own terms; state limits vary, so check them first.
Time-saved estimate#
renderTime() inside initCalculators(), at /calculator#time-saved. Minutes today = invoices × minutes per
invoice + late invoices × chasing minutes. With Tally = invoices × TIME_ASSUMPTIONS.minutesPerInvoice + late
invoices × chasing × (1 − chaseReduction). The defaults give 6.7 hours today, 1.3 hours with Tally and 5.4
hours saved, worth $322 at $60 an hour. Hours read "1 hour" or "2.5 hours".
Filters and search#
initFilters(), used on /integrations, /customers and /changelog. A [data-directory] section holds
filter buttons (data-filter, aria-pressed, with counts worked out from the data when the page is built),
items (data-integration with data-category), an optional search box (data-search, matches the words on the
card), a live count (data-result-count: "1 story" / "6 stories", with the words in data-noun and
data-nouns) and an empty state (data-empty) with a data-clear-filters button. On the integrations page
data-url-param="category" reads ?category=banking (checked against INTEGRATION_CATEGORIES with an own-key
check) and keeps the address in step with the buttons.
Rolling demo dates#
Two dates are worked out from today so the demo never looks out of date. Set either constant to show a fixed date on a real site:
| Constant | Shown in | Rule while null |
Fixed value |
|---|---|---|---|
INVOICE_DUE in src/lib/due.ts |
The hero invoice (time[data-invoice-due]), {due} and {dueDay} in the reminder writer |
The Friday 7 to 13 days from today | "2026-10-30" |
LAST_TEST in src/lib/last-test.ts |
Every [data-test-month] on /security (key facts and the first FAQ answer) |
The most recent August that is over: August of this year from September on, otherwise last year's | "August 2026" |
export const INVOICE_DUE: string | null = "2026-10-30";The pages are written with the dates the template was made with ("Oct 30, 2026", "August 2026"); initDueDates()
and initTestMonth() replace them in the browser. With a fixed date, change the written text in index.astro,
features.astro and security.astro too, so it is right before the script runs. The copyright year in the
footer (data-year) is always the current year. Changelog entries, customer figures and the survey year are
history and keep their real dates.
Office hours#
initOfficeHours() with officeState() and officeText() in src/data/office.ts. The time is worked out in
OFFICE.timeZone (America/Detroit) whatever the visitor's time zone, and refreshed every minute. Inside
Monday–Friday, 9 a.m. to 5:30 p.m., it reads "It’s 10:42 a.m. in Grand Rapids and we’re in the office"; outside,
it says when the team replies ("after 9 a.m. this morning", "tomorrow" or "on Monday").
Header, menu, reveals and back to top#
The header gains a shadow once you scroll (.is-scrolled). Below 1024px a menu button (aria-expanded,
aria-controls) opens the phone menu; Esc closes it. Elements with .reveal fade in when scrolled into view
(off with reduced motion, and always visible without JavaScript). A number with data-count="4200" counts up
once. The back-to-top button is src/scripts/back-to-top.ts; remove its import from Layout.astro and delete
the .back-to-top styles to drop it.
Forms#
Two forms, both validated by onValidSubmit() in src/scripts/main.ts (section 10): errors show under each
field, linked with aria-describedby and aria-invalid, and focus moves to the first problem. After the first
submit, fields are checked again as they are fixed.
| Form | Where | Validates |
|---|---|---|
Newsletter (data-form="newsletter") |
src/components/SiteFooter.astro, footer of every page |
Email required and well formed |
Demo request (data-form="demo") |
src/pages/contact.astro |
Name, work email, team size (radio group) and consent required; message up to 500 characters with a counter |
A required field needs required and an id; data-label names it in the message ("Your name is required.").
A radio group is a <fieldset data-required-group data-label="Team size" data-error-id="d-size">. The error is a
<p class="field-error"> with the id <field id>-error; a field that shares a row with a button (the footer
sign-up, marked data-field-row) gets its error under the row.
/contact?plan=studio (or solo, practice) preselects the plan; the plan buttons on the pricing page link
there. On success each form is replaced by an in-world confirmation: the newsletter asks the visitor to look
out for a confirmation email, and the demo request thanks them by first name, says Noelle will email times for a
call (within two business hours, as the office-hours note promises) and shows a short reference (TA- and four
characters, made in the browser by makeRef(); use your form service's own reference instead if it returns one).
The forms send nothing until you connect them; if your reply times differ, change the message and the
office-hours note together.
To connect a form service such as Formspree, send the data in initForms() before the
successSwap(...) call and show the confirmation only when the service answers OK. For the newsletter:
$$<HTMLFormElement>('[data-form="newsletter"]').forEach((form) =>
onValidSubmit(form, async () => {
const res = await fetch("https://formspree.io/f/your-id", {
method: "POST",
body: new FormData(form),
headers: { Accept: "application/json" },
});
if (!res.ok) return; // show an error message here
successSwap(form, '<p class="font-semibold text-white">You’re on the list.</p>');
}),
);Every field has a name, so FormData includes it. The demo request works the same way a few lines further
down. The site is static, so a form needs an outside service or your own API to receive the data.
Saved data (localStorage)#
All access goes through safeStorage in src/scripts/main.ts: localStorage when available, an in-memory
stand-in when the browser blocks it (sandboxed iframes, strict privacy settings), so features keep working for
the visit. store in the same file reads and writes JSON on top of it.
| Key | Shape | Validation on read |
|---|---|---|
tally:pricing |
{ "billing": "annual", "vat": false } |
billing must be an own key of BILLING_PERIODS, vat a boolean; anything else falls back to annual without sales tax |
tally:calculator |
{ "amount": 2400, "days": 45, "rate": 12, "invoices": 12, "minutes": 20, "late": 30, "chase": 45, "hourly": 60 } |
Each field must be an own key of CALC_FIELDS and a number within its range; invalid fields keep their defaults |
URL parameters win over saved values: /pricing?billing=, /calculator?amount=&days=. Other URL parameters are
/integrations?category= and /contact?plan=; every one is checked with
Object.prototype.hasOwnProperty.call(...) (hasOwn() in main.ts) or a range check, so values like
?plan=constructor are ignored.
After Back, browsers put form controls back the way the visitor left them, which is not always what the
address and saved data say. afterRestore() in main.ts then sets the reminder stage, the sales tax box and
the calculator fields back to what the page shows, and counts the restored message on the contact page again.
The forms that are sent keep what the browser restores.
To reset, use Reset to the example on the calculator, or run
localStorage.removeItem('tally:pricing') in the browser console. To stop saving, remove the store.set(...)
calls in initPricing() and initCalculators().
SEO and sharing#
Each page passes its title and description to <Layout>, which writes the description, a canonical URL,
the Open Graph tags and twitter:card; lang="en-US" and theme-color are set there too. Canonical, og:url
and og:image are absolute URLs built from site in astro.config.mjs, which reads SITE_URL:
SITE_URL=https://www.tally.example pnpm buildThe 404 page passes noindex, which leaves out the canonical URL and asks search engines not to index it. Add
a sitemap with @astrojs/sitemap and a public/robots.txt if you want them, and set 404.html as your host's
not-found page. There is no structured data; SoftwareApplication with offers is a good fit for a product
like this.
Accessibility#
- Skip link, landmarks (
header,navwith labels,main,footer), one<h1>per page and a logical heading order. - Visible focus outlines in the accent color, AA contrast on every surface,
prefers-reduced-motionrespected (reveals, chart animation, count-up and smooth scrolling are off). - ARIA patterns: tabs, pressed buttons for filters and billing,
aria-currentfor navigation and invoice stage, live regions for totals, counts, calculator results and the pricing status. - Charts have text alternatives (
aria-labelor a<desc>that is updated with the numbers); tables have captions and header scopes. - A sent form is replaced by a
role="status"box that takes focus.
When editing, keep one <h1> per page, give new inputs a <label>, and make sure every aria-controls,
aria-labelledby and aria-describedby points at an id that exists.
Building and deploying#
pnpm build # static site in dist/
pnpm preview # preview dist/ locallydist/ is plain HTML, CSS and JavaScript. Tailwind is compiled by @tailwindcss/vite during the build, so there
is no separate CSS step. Pages are written as pricing.html rather than pricing/index.html
(build.format: "file" in astro.config.mjs), and links point to /pricing without a trailing slash. Netlify,
Cloudflare Pages and GitHub Pages serve /pricing from pricing.html automatically; Vercel does with
cleanUrls (below).
- Netlify / Cloudflare Pages: build command
pnpm build, publish directorydist. - Vercel: import the repository; it detects Astro and static output needs no adapter. Add a
vercel.jsonwith{ "cleanUrls": true }so/pricingservespricing.html. - GitHub Pages: use the official Astro GitHub Action.
For a project site (
username.github.io/repo), build withDEMO_BASE_PATH=/repo. - Any static host: upload the contents of
dist/. If the host doesn't map/pricingtopricing.html, changebuild.formatto"directory"inastro.config.mjs.
To serve the site from a sub-folder, set DEMO_BASE_PATH when building, e.g. DEMO_BASE_PATH=/tally pnpm build.
It becomes Astro's base, and every link written with url() (including the calculator link in the demo
request confirmation, which the script writes) includes it.
demo/ (if present) is the build used for the freeframe.dev demo; you can delete it.
TypeScript 7 setup#
package.json installs two TypeScript packages on purpose. @typescript/native is TypeScript 7 and provides the
tsc that pnpm typecheck runs. typescript is an alias for @typescript/typescript6, the TypeScript 6 API that
astro check and typescript-eslint load. When those tools support TypeScript 7, replace both with a single
typescript@7. tsconfig.json extends Astro's strict preset.
Troubleshooting#
- Prices or the calculator don't remember choices. The browser is blocking storage (private mode or a sandboxed preview), so choices last only for the visit. That's expected.
- A shared pricing link opens on the wrong period.
?billing=overrides the saved choice; remove it from the link. - The office hours text looks wrong. It uses Eastern time (
OFFICE.timeZone); change the time zone and hours insrc/data/office.tsfor another location. - A new class has no effect. Tailwind only sees whole class names in
src/. Write"chip chip-paid", not a class glued together from parts. - A form shows its confirmation but nothing arrives. It sends nothing until you connect it; see Forms.
- Fonts fall back to the system font. Mona Sans and Azeret Mono come from Google Fonts and need a
connection; check the
<link>insrc/layouts/Layout.astro. - Links 404 on the host. The host doesn't map
/pricingtopricing.html. UsecleanUrlson Vercel, or switchbuild.formatto"directory". - Links or the social image break under a sub-folder. Build with
DEMO_BASE_PATHset to that folder, andSITE_URLset to your domain.
License#
MIT. The code and all included artwork (logo, wordmarks, integration tiles, avatars, charts, mock-ups and social image) are free for personal and commercial use; see LICENSE.txt in the download.
Mona Sans and Azeret Mono are provided by Google Fonts under the SIL Open Font License.
Tally, Tally Software, Inc. and every business, person and integration named in the template are fictional placeholders.