For the complete documentation index, see llms.txt. This page is also available as Markdown.

Theming

Themes are used to custom the colours and default fonts of the Spreadsheet. You can also have customise colours of charts, embeds using a theme

Theme type

Themes have the following properties. You can inject a theme to SheetGrid component using the theme prop.

export type SpreadsheetTheme = {
  name: string;
  primaryFontFamily: string;
  themeColors: Record<ThemeColors, string>;
};

export type ThemeColors =
  | "text"
  | "background"
  | "accent1"
  | "accent2"
  | "accent3"
  | "accent4"
  | "accent5"
  | "accent6"
  | "hyperlink";

Dark/Light mode

Theme also automatically support light or dark mode if used with useSpreadsheetTheme hook.

Dark mode

Customising dark and light modes using CSS Variables

Spreadsheet 2 uses Tailwind for CSS styling of DOM components. The following are the CSS variables support by Spreadsheet 2.

.rnc-dark class is used for dark mode.

Last updated