Alter startup styles
Change the styles during instantiation.
import canvasDatagrid from 'canvas-datagrid'; import data from '/data.json'; const app = document.getElementById('app'); const gridElement = document.createElement('div'); const grid = canvasDatagrid({ parentNode: gridElement, data, style: { cellBackgroundColor: 'navy', cellColor: 'wheat', }, }); app.append(gridElement);