API REFERENCE
theme
Sets Grid colors and appearance with a light/dark preset or a token object extending a preset.
What does this API do?
Sets Grid colors and appearance with a light/dark preset or a token object extending a preset.
Exact input and result types
theme: GridTheme| Item | Value |
|---|---|
| JavaScript name | theme |
| HTML attribute | theme |
| Default | 'alpine' |
| Input type | GridTheme |
Usage flow
Set this on a property of the Grid element. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.
Read related types
Feature explanations and examples
- Themes for your app
Grid themes coordinate backgrounds, lines, text, and selection states inside the table. They define the table's reading environment without replacing the page background.