Theme-matched xlsx export
Live in demo 56-export-theme-matched.
Open the live example: Export - Theme-matched (Data Export & Import)
When
Excel file colours follow the same --sg-* tokens the grid renders with.
How
Key API surface:
api.exportData({ format: 'xlsx', styles: { ... } })
See the demo source for the full implementation; this recipe pins the pattern + the surface so you can copy-paste it confidently. The doc page that explains the underlying feature in depth is linked from the recipes index.
See also
- Demo 56-export-theme-matched source
- Demo 56-export-theme-matched prompt sidecar - drop into an LLM context window
- Recipes index
Related articles
- CSV vs XLSX vs TSV - Which Export Format? - A practical breakdown of CSV, XLSX, and TSV for data grid exports - when each format earns its keep, what each one silently loses, and how to wire all three in SvGrid.
- What's New in SvGrid Enterprise - Export, Pivot, Import, Print, and AI - A practical look at @svgrid/enterprise - pivot tables, Excel and PDF export, data import, printing, and an AI assistant. Covers when each feature earns its place and what to watch out for in production.
- Export a Svelte Data Grid to Excel, CSV, and PDF - Wire up XLSX, CSV, and PDF export in SvGrid with @svgrid/enterprise - respecting active filters, sort order, and row selection.