Chart

Beautiful charts built with LayerChart. Copy and paste into your apps.

Area Chart

Showing total visitors for the last 6 months

Trending up by 5.2% this month
January - June 2026

Charts are built with LayerChart — lily only ships the themed Chart.Container and Chart.Tooltip wrappers plus a 5-color palette, so any LayerChart chart works.

Installation

npx lily-svelte@latest add chart

Colors

Charts use the --chart-1--chart-5 CSS variables — the one sanctioned color surface in lily's otherwise monochrome system. Override them in your stylesheet to theme every chart at once:

:root {
	--chart-1: #3182f6;
	--chart-2: #10b981;
	--chart-3: #f59e0b;
	--chart-4: #8b5cf6;
	--chart-5: #f43f5e;
}

Reference them in your chart config with var(--chart-N):

<script lang="ts">
	import * as Chart from '$lib/components/ui/chart';
 
	const chartConfig = {
		desktop: { label: 'Desktop', color: 'var(--chart-1)' },
		mobile: { label: 'Mobile', color: 'var(--chart-2)' }
	} satisfies Chart.ChartConfig;
</script>

Bar Chart

Bar Chart

January - June 2026

Pie Chart

Pie Chart

January - June 2026

Built by levish. The source code is available on GitHub.

Quiet by design.