Learn how to customize the look and feel of Flatfile to match your brand.
The DevXP engineering team hosts office hours every Thursday at 11 a.m.
Pacific Time where we answer your questions live and help you get up and
running with Flatfile. Join
us!
Flatfile supports modifying most UI elements including colors, fonts, borders, padding, and
more via the endpoint.
Start by simply updating theme.root.primaryColor and theme.sidebar.logo when calling spaces.update().
If needed, you can customize the theme further with additional css variables.
Learn how to create a Space with a theme, and update a theme from an Event listener.
Copy
Ask AI
import api from "@flatfile/api";export default function flatfileEventListener(listener) { //listen for space:configure job and build out space listener.filter({ job: "space:configure" }, (configure) => {}); //theme during creation or update your space after it is created listener.on("space:created", async ({ context: { spaceId } }) => { const updateSpace = await api.spaces.update(spaceId, { metadata: { theme: { root: { primaryColor: "red", }, sidebar: { logo: "https://image.png", }, // See reference for all possible variables }, }, }); });}// See full code example (https://github.com/FlatFilers/flatfile-docs-kitchen-sink/blob/main/javascript/theming/index.js)
You can override the default colors and values for different elements in the
table below. If these are not set they will inherit from your root values.
The border of the table filters. By default there is no border.
When nested objects share the same border radius, small gaps may appear. To
resolve this, adjust the inner and outer border radius on the filters to
seamlessly fill any gaps.
You can theme the guest invite emails as well as guest email verification emails via the properties below. These are sent to a guest when they are invited to a Space via the guest management page in your Space.
Email theming is only available on the pro and enterprise plans.