--- // .card-gradient + .card-gradient-{preset} come from core/scss/ui/_cards.scss // (bundled in the base tabler.css — no cssPlugins needed here). // Composition: one hero card that carries the gradient as emphasis — the // workspace's plan, with price, what it includes and the upgrade action — and // under it three small KPI cards from the same story, each on a different // preset. The accent colors are picked per card rather than derived from the // preset, so icons and bars stay legible on the tinted surface in dark mode. import ScreenshotLayout from '../layouts/ScreenshotLayout.astro' import Subheader from '@ui/Subheader.astro' import Avatar from '@ui/Avatar.astro' import Progress from '@ui/Progress.astro' import Button from '@ui/Button.astro' import Icon from '@ui/Icon.astro' import Badge from '@ui/Badge.astro' const plan = { name: 'Pro', price: '$29', period: 'per seat / month', includes: ['Unlimited projects', 'Advanced reports', 'Priority support'], } const kpis = [ { preset: 'sun', accent: 'orange', icon: 'users', label: 'Seats', value: '48 / 60', progress: 80 }, { preset: 'snow', accent: 'cyan', icon: 'database', label: 'Storage', value: '1.2 TB', progress: 60 }, { preset: 'gold', accent: 'yellow', icon: 'calendar', label: 'Renews in', value: '12 days', progress: 35 }, ] ---
Current plan
{plan.name}
{plan.price}
{plan.period}
    { plan.includes.map((item) => (
  • {item}
  • )) }
{ kpis.map((kpi) => (
{kpi.label}
{kpi.value}
)) }