Skip to content
Statix Design System

Patterns · Marketing

Tariff card

One plan with its price, who it is for, what it includes and a button to choose it. Place two or three side by side to compare plans.

import { TariffCard } from '@statix/ui/tariff-card';

Playground

€37.99

per month, plus VAT

Managed Professional

For businesses whose website brings in customers.

  • Weekly updates, tested on a copy
  • Daily backups, 30 versions
  • Patchstack vulnerability protection
Controls
<TariffCard
	name="Professional"
	prefix="Managed"
	price="€37.99"
	description="For businesses whose website brings in customers."
	features={['Weekly updates, tested on a copy', 'Daily backups, 30 versions', 'Patchstack vulnerability protection']}
	ctaLabel="Choose Professional"
/>

Examples

Basic

The button sits at the bottom of the card, so cards in a row line up.

€22.99

per month, plus VAT

Managed Core

For freelancers and small websites.

  • Weekly updates, tested on a copy
  • Weekly backups, 4 versions
  • 1 domain included (.de or .com)
  • SSL certificate and monitoring
<script lang="ts">
	import { TariffCard } from '@statix/ui/tariff-card';
</script>

<TariffCard
	prefix="Managed"
	name="Core"
	price="€22.99"
	description="For freelancers and small websites."
	features={[
		'Weekly updates, tested on a copy',
		'Weekly backups, 4 versions',
		'1 domain included (.de or .com)',
		'SSL certificate and monitoring'
	]}
	ctaLabel="Choose Core"
	href="#contact"
	class="max-w-[400px] bg-secondary"
/>

Compact summary

variant="compact" is the plan card in the customer area: what the customer pays, what is included and where the invoices are.

What you pay

Professional

€37.99

per month, Professional plan

  • Hosting in Germany, your data stays here
  • Backup every night, kept for 30 days
  • Updates, tested on a copy first
  • Malware scan every night
  • Domain yoga-berger.de included
  • 30 minutes of engineer time per month

Next invoice on 1 December, by direct debit. Cancel monthly.

<script lang="ts">
	import { TariffCard } from '@statix/ui/tariff-card';
	import ArrowRightIcon from '@lucide/svelte/icons/arrow-right';
	import { Button } from '@statix/ui/button';
</script>

<TariffCard
	variant="compact"
	name="Professional"
	eyebrow="What you pay"
	price="€37.99"
	period="per month, Professional plan"
	features={[
		'Hosting in Germany, your data stays here',
		'Backup every night, kept for 30 days',
		'Updates, tested on a copy first',
		'Malware scan every night',
		'Domain yoga-berger.de included',
		'30 minutes of engineer time per month'
	]}
	note="Next invoice on 1 December, by direct debit. Cancel monthly."
	class="w-full max-w-[360px]"
>
	{#snippet cta()}
		<Button href="#contract" variant="outline" size="sm">
			Contract and invoices
			<ArrowRightIcon data-icon="inline-end" />
		</Button>
	{/snippet}
</TariffCard>

featured adds the badge and makes the button primary. Feature one plan at most.

€37.99

per month, plus VAT

Recommended

Managed Professional

For businesses whose website brings in customers.

  • Weekly updates, tested on a copy
  • Daily backups, 30 versions
  • Patchstack vulnerability protection
  • Advice on PHP upgrades
  • 1 domain included (.de or .com)
<script lang="ts">
	import { TariffCard } from '@statix/ui/tariff-card';
</script>

<TariffCard
	featured
	prefix="Managed"
	name="Professional"
	price="€37.99"
	description="For businesses whose website brings in customers."
	features={[
		'Weekly updates, tested on a copy',
		'Daily backups, 30 versions',
		'Patchstack vulnerability protection',
		'Advice on PHP upgrades',
		'1 domain included (.de or .com)'
	]}
	ctaLabel="Choose Professional"
	href="#contact"
	class="max-w-[400px]"
/>

Plan comparison

Three cards in a grid on bg-secondary, with a monthly or yearly switch. Pay yearly and three months are free.

€22.99

per month, plus VAT

Managed Core

For freelancers and small websites.

  • Weekly updates, tested on a copy
  • Weekly backups, 4 versions
  • 1 domain included

€37.99

per month, plus VAT

Recommended

Managed Professional

For businesses whose website brings in customers.

  • Weekly updates, tested on a copy
  • Daily backups, 30 versions
  • Patchstack vulnerability protection
  • 1 domain included

€89.99

per month, plus VAT

Managed Enterprise

For business-critical websites and shops.

  • Daily updates, tested on a copy
  • Daily backups plus 12 monthly versions
  • Dedicated IP address
  • 30 minutes of engineer time per month
<script lang="ts">
	import { TariffCard } from '@statix/ui/tariff-card';

	type Plan = {
		id: string;
		name: string;
		monthly: number;
		description: string;
		featured?: boolean;
		features: string[];
	};

	const plans: Plan[] = [
		{
			id: 'core',
			name: 'Core',
			monthly: 22.99,
			description: 'For freelancers and small websites.',
			features: [
				'Weekly updates, tested on a copy',
				'Weekly backups, 4 versions',
				'1 domain included'
			]
		},
		{
			id: 'professional',
			name: 'Professional',
			monthly: 37.99,
			description: 'For businesses whose website brings in customers.',
			featured: true,
			features: [
				'Weekly updates, tested on a copy',
				'Daily backups, 30 versions',
				'Patchstack vulnerability protection',
				'1 domain included'
			]
		},
		{
			id: 'enterprise',
			name: 'Enterprise',
			monthly: 89.99,
			description: 'For business-critical websites and shops.',
			features: [
				'Daily updates, tested on a copy',
				'Daily backups plus 12 monthly versions',
				'Dedicated IP address',
				'30 minutes of engineer time per month'
			]
		}
	];

	let yearly = $state(false);
	const euro = new Intl.NumberFormat('en-IE', { style: 'currency', currency: 'EUR' });
	// Yearly: twelve months for the price of nine.
	const perMonth = (p: Plan) => euro.format(yearly ? (p.monthly * 9) / 12 : p.monthly);
	const perYear = (p: Plan) => euro.format(p.monthly * 9);
</script>

<div class="bg-secondary px-6 py-10 tablet:px-10">
	<div class="mb-8 inline-flex rounded-full bg-ink p-1.5" role="group" aria-label="Billing period">
		<button
			type="button"
			class={[
				'h-10 rounded-full px-5 text-body font-medium',
				!yearly ? 'bg-white text-ink' : 'text-white/75'
			]}
			aria-pressed={!yearly}
			onclick={() => (yearly = false)}
		>
			Monthly
		</button>
		<button
			type="button"
			class={[
				'h-10 rounded-full px-5 text-body font-medium',
				yearly ? 'bg-white text-ink' : 'text-white/75'
			]}
			aria-pressed={yearly}
			onclick={() => (yearly = true)}
		>
			Yearly <span class="ml-1 text-small font-normal opacity-70">3 months free</span>
		</button>
	</div>
	<div class="grid gap-4 tablet:grid-cols-3">
		{#each plans as plan (plan.id)}
			<TariffCard
				prefix="Managed"
				name={plan.name}
				price={perMonth(plan)}
				note={yearly ? `${perYear(plan)} billed yearly` : undefined}
				description={plan.description}
				features={plan.features}
				featured={plan.featured}
				ctaLabel="Choose {plan.name}"
				href="#contact?plan={plan.id}"
			/>
		{/each}
	</div>
</div>

Custom action

Pass a cta snippet when the plan needs a different action, such as a call instead of a checkout.

On request

For 10 websites or more

Agency

One contract and one contact for all your client websites.

  • Volume pricing per website
  • Shared dashboard for your team
  • Priority support line
<script lang="ts">
	import { TariffCard } from '@statix/ui/tariff-card';
	import { Button } from '@statix/ui/button';
	import PhoneIcon from '@lucide/svelte/icons/phone';
</script>

<TariffCard
	name="Agency"
	price="On request"
	period="For 10 websites or more"
	description="One contract and one contact for all your client websites."
	features={[
		'Volume pricing per website',
		'Shared dashboard for your team',
		'Priority support line'
	]}
	class="max-w-[400px]"
>
	{#snippet cta()}
		<div class="flex flex-wrap gap-2">
			<Button href="tel:+4940468970790" variant="dark">
				<PhoneIcon data-icon="inline-start" />
				040 468 970 790
			</Button>
			<Button href="#contact" variant="outline">Write to us</Button>
		</div>
	{/snippet}
</TariffCard>

Guidelines

Do

  • Write features as short facts: "Daily backups, 30 versions".
  • List shared features in the same order on every card so people can compare line by line.
  • Say what the price includes under it: per month, plus VAT, or the yearly total.

Don't

  • Don’t feature more than one plan.
  • Don’t put more than six features on a card. Link to a full comparison instead.

Accessibility

  • Renders an <article> with the plan name as a heading (h3 by default, change it with level).
  • The compact card uses success-green checks, the marketing card ink checks. Both are aria-hidden.
  • Features are a real list, so screen readers announce how many items there are. The check icons are aria-hidden.
  • The badge is plain text inside the card. Screen readers read it before the plan name.

API reference

TariffCard

renders <article> and accepts its attributes
PropTypeDefault
variant 'default' | 'compact'

default: marketing pricing card. compact: plan summary in the customer area.

'default'
name string

Plan name. The compact card renders it as a visually hidden heading.

–
eyebrow string

Small muted label at the top, for example "What you pay".

–
prefix string

Line above the name, for example "Managed".

–
price * string

Formatted price, for example "€37.99".

–
period string

Text under the price, or next to it on the compact card.

'per month, plus VAT'
note string

Muted line: the yearly total (default) or billing details under the features (compact).

–
description string

One sentence on who the plan is for.

–
features string[]

Included features, one check each.

[]
featured boolean

Shows the badge and makes the default button primary. Not used by compact.

false
badge string

Badge text for a featured plan.

'Recommended'
level 2 | 3 | 4

Heading level of the name.

3
ctaLabel string

Label of the default button.

–
href string

Turns the default button into a link.

–
onCta (event: MouseEvent) => void

Click handler of the default button.

–
cta Snippet

Replaces the default button.

–
children Snippet

Extra content between the features and the button.

–
ref bindHTMLElement | null

The <article> element.

–
class ClassValue

Merged with the card classes; yours win.

–
Data attributeMeaning
data-slot="tariff-card"The card.
data-featuredPresent on a featured card.
data-variantdefault or compact.

tariffCardVariants

The tailwind-variants function behind TariffCard (one slot per part).