---
title: "Theme Builder Import and Export"
framework: vue
version: "36.1.0"
---

# Theme Builder Import and Export

The [Theme Builder](https://www.ag-grid.com/theme-builder/) provides a visual interface for creating and customising AG Grid themes. You can export themes to use in your application, and import existing theme code back into the Theme Builder for further modification.

## Exporting Themes

![Theme Builder export panel showing JavaScript code](https://www.ag-grid.com/_astro/theme-builder-export.BzGsZXbo.png)

To export your theme from Theme Builder:

1. Click the "Import / Export" button at the bottom left of the Theme Builder
2. The "Export" tab shows JavaScript code that creates your theme
3. Click "Download" to save as a file, or "Copy" to copy to your clipboard

The exported code defines a theme using [Theme Parts](https://www.ag-grid.com/vue-data-grid/theming-parts/) and [Theme Parameters](https://www.ag-grid.com/vue-data-grid/theming-parameters/):

```js
import { themeQuartz, iconSetQuartzLight } from 'ag-grid-community';

export const myTheme = themeQuartz
    .withPart(iconSetQuartzLight)
    .withParams({
        accentColor: "#5A9F7D",
        borderRadius: 8,
        headerTextColor: "#2E4A3F"
    });
```

To use the exported theme, pass the theme object to the `theme` grid option. See [Built-in Themes](https://www.ag-grid.com/vue-data-grid/themes/) for framework-specific examples.

## Importing Themes

![Theme Builder import panel](https://www.ag-grid.com/_astro/theme-builder-import.WxnbWIZZ.png)

Theme Builder can import existing theme code. Select the "Import" tab and drag or upload a code file, or paste in code.

> **Note**
>
> The import feature is designed to handle code generated by the Theme Builder, and will still work if the code is lightly edited such as adding, removing, and changing values, or reformatting.
>
> If you plan to re-import your themes, preserve the essential format of the file where values are `parameterName: literal-value` pairs. For example, avoid refactoring it to use variable references like `accentColor: ourDesignSystem.brandColor`
