<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [mr-excel](./mr-excel.md) &gt; [themeBaseGenerate](./mr-excel.themebasegenerate.md)

## themeBaseGenerate() function

Generates an Excel file with a theme.

**Signature:**

```typescript
export declare function themeBaseGenerate<T extends object = object>(data: ExcelTable<T> | Data<T>[] | Data[][], option?: ThemeOption): ExcelTableReturnType;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

data


</td><td>

ExcelTable&lt;T&gt; \| Data&lt;T&gt;\[\] \| Data\[\]\[\]


</td><td>

The data for the Excel file.


</td></tr>
<tr><td>

option


</td><td>

ThemeOption


</td><td>

_(Optional)_ The theme options.


</td></tr>
</tbody></table>

**Returns:**

ExcelTableReturnType

{<!-- -->ExcelTableReturnType<!-- -->} The generated Excel table.

