The Novu Inbox component is designed to be fully themeable and adaptable to your application’s visual language. All theming options are exposed through the appearance prop, which allows you to apply custom styles at different levels of control from predefined themes to component-level overrides.
The appearance prop supports the following keys:
baseTheme: Apply a predefined theme (for example, light or dark).variables: Define global styling properties (for example, colors, fonts).elements: Style individual UI components.icons: Replace default icons with custom ones.animations: Enable or disable UI animations. They’re on by default. See Customize animations.
Check out the Inbox Playground to see how the Inbox looks with common design presets. It showcases pre-styled variants like Notion and Reddit, which is helpful for seeing what’s possible before you start customizing.
Understand style injection#
When rendered, the Inbox component automatically injects its styles into the <head> of the HTML document. If the component is rendered inside a shadow DOM, styles are scoped and injected into the shadow root instead.
This ensures that:
- Styles remain encapsulated and do not leak into global stylesheets
- No additional setup is required to manage scoped styling
Apply base theme#
You can apply a predefined visual style to the entire Inbox UI by passing the baseTheme object inside the appearance prop. This is a quick way to implement a dark mode or any base look and feel without redefining every variable.
Dark mode#
Novu currently provides a built-in dark theme, which you can import from @novu/react/themes.
Define global variables#
You can override the default styles in the Inbox component by passing a variables object inside the appearance prop. This is an efficient way to apply broad visual changes with minimal configuration.

When both baseTheme and variables are provided, variables always take precedence over the base theme.
List of available variables#
| Property | Type | Description |
|---|---|---|
colorBackground | string | The background color of the inbox component. |
colorForeground | string | The primary text color used in the inbox. |
colorPrimary | string | The main accent color for interactive elements. |
colorPrimaryForeground | string | The text color used on primary-colored elements. |
colorSecondary | string | A secondary color for less prominent elements. |
colorSecondaryForeground | string | The text color used on secondary-colored elements. |
colorCounter | string | The background color of notification counters. |
colorCounterForeground | string | The text color used in notification counters. |
colorNeutral | string | A neutral color used for borders or backgrounds. |
colorShadow | string | The color of shadows applied to elements. |
colorRing | string | The color used for focus rings on interactive elements. |
fontSize | string | The base font size for text in the inbox. |
borderRadius | string | The border radius applied to various elements. |
colorStripes | string | The accent color of the striped footer and the Development mode label that the Inbox shows in development and keyless environments. Maps to the --nv-color-stripes CSS variable. |
Development mode footer#
When the Inbox connects to a Development environment or runs in keyless mode, Novu renders an animated striped gradient in the Inbox footer with a Development mode (or Keyless mode) label. Novu doesn’t render this footer for Production environments. In Production, the footer only shows the Novu branding, which you can remove on paid plans.
To change the color of the striped footer, set colorStripes in appearance.variables:
Style the Inbox UI elements#
You can define styles for individual UI components within the Inbox UI by passing the elements object inside the appearance prop. Each key corresponds to a specific component, and the value can be either a style object or a set of CSS classes.

Here’s a list of some available elements that can be styled using the elements object in your appearance configuration:
| Element | Key in appearance.elements |
|---|---|
| Primary action button | notificationPrimaryAction__button |
| Secondary action button | notificationSecondaryAction__button |
| Notification container | notification |
| Subject text | notificationSubject |
| Body text | notificationBody |
| Notification icon/image | notificationImage |
| Preferences button | preferences__button |
| Date display | notificationDate |
| Archive button | notificationArchive__button |
| Snooze button | notificationSnooze__button |
| Unread/read indicator button | notificationUnread__button |
| Notification list container | notificationList |
| Schedule container | scheduleContainer |
| Schedule header | scheduleHeader |
| Schedule body | scheduleBody |
| Schedule table | scheduleTable |
| Day schedule copy title | dayScheduleCopyTitle |
| Day schedule copy menu | dayScheduleCopy__dropdownContent |
| Time select drop-down list | timeSelect__dropdownTrigger |
| Time select list | timeSelect__dropdownContent |
| Inbox popover content | inbox__popoverContent |
| Inbox page (notifications or preferences) | inboxPage |
How to find other elements?
Any selector that appears before the 🔔 emoji in the Devtools can be targeted via the elements property in the appearance prop (stripping the nv- prefix). You can also use TypeScript autocomplete to find the available elements. For the complete list of Inbox element keys, see the React SDK appearance reference.
You can pass inline styles to individual elements using the elements object in the appearance prop. Each element accepts a style object.
You can pass Tailwind CSS classes to specific elements using the elements object within the appearance prop.
You can style the Inbox components using CSS Modules. First, define the styles in a .module.css file:
Then, import the CSS module into your component and apply the classes using the elements object in the appearance prop:
Apply styles dynamically using contextual callbacks#
You can customize specific parts of the Inbox UI by providing callback functions for certain keys. This function receives contextual information such as unread counts, notification data, or preference details and lets you apply styles dynamically based on runtime values from your application.
List of elements that can be customized using a callback function
| Key | Context signature |
|---|---|
| Bell | |
bellDot | (context: { unreadCount: { total: number; severity: Record<string, number> } }) => string |
bellIcon | (context: { unreadCount: { total: number; severity: Record<string, number> } }) => string |
bellContainer | (context: { unreadCount: { total: number; severity: Record<string, number> } }) => string |
severityHigh__bellContainer | (context: { unreadCount: { total: number; severity: Record<string, number> } }) => string |
severityMedium__bellContainer | (context: { unreadCount: { total: number; severity: Record<string, number> } }) => string |
severityLow__bellContainer | (context: { unreadCount: { total: number; severity: Record<string, number> } }) => string |
bellSeverityGlow | (context: { unreadCount: { total: number; severity: Record<string, number> } }) => string |
severityGlowHigh__bellSeverityGlow | (context: { unreadCount: { total: number; severity: Record<string, number> } }) => string |
severityGlowMedium__bellSeverityGlow | (context: { unreadCount: { total: number; severity: Record<string, number> } }) => string |
severityGlowLow__bellSeverityGlow | (context: { unreadCount: { total: number; severity: Record<string, number> } }) => string |
| Preferences list (shared) | |
preferencesContainer | (context: { preferences?: Preference[]; groups: Array<{ name: string; preferences: Preference[] }> }) => string |
| Preference | |
workflowContainer | (context: { preference: Preference }) => string |
workflowLabelContainer | (context: { preference: Preference }) => string |
workflowLabelHeader | (context: { preference: Preference }) => string |
workflowLabelHeaderContainer | (context: { preference: Preference }) => string |
workflowLabelIcon | (context: { preference: Preference }) => string |
workflowLabel | (context: { preference: Preference }) => string |
workflowArrow__icon | (context: { preference: Preference }) => string |
workflowContainerRight__icon | (context: { preference: Preference }) => string |
| Channel | |
channelsContainer | (context: { preference: Preference }) => string |
channelName | (context: { preference: Preference }) => string |
| Channel Row (shared) | |
channelContainer | (context: { preference?: Preference; preferenceGroup?: { name: string; preferences: Preference[] } }) => string |
channelLabelContainer | (context: { preference?: Preference; preferenceGroup?: { name: string; preferences: Preference[] } }) => string |
channelIconContainer | (context: { preference?: Preference; preferenceGroup?: { name: string; preferences: Preference[] } }) => string |
channelLabel | (context: { preference?: Preference; preferenceGroup?: { name: string; preferences: Preference[] } }) => string |
channelSwitchContainer | (context: { preference?: Preference; preferenceGroup?: { name: string; preferences: Preference[] } }) => string |
channel__icon | (context: { preference?: Preference; preferenceGroup?: { name: string; preferences: Preference[] } }) => string |
| Preferences Group | |
preferencesGroupContainer | (context: { preferenceGroup: { name: string; preferences: Preference[] } }) => string |
preferencesGroupHeader | (context: { preferenceGroup: { name: string; preferences: Preference[] } }) => string |
preferencesGroupLabelContainer | (context: { preferenceGroup: { name: string; preferences: Preference[] } }) => string |
preferencesGroupLabelIcon | (context: { preferenceGroup: { name: string; preferences: Preference[] } }) => string |
preferencesGroupLabel | (context: { preferenceGroup: { name: string; preferences: Preference[] } }) => string |
preferencesGroupActionsContainer | (context: { preferenceGroup: { name: string; preferences: Preference[] } }) => string |
preferencesGroupActionsContainerRight__icon | (context: { preferenceGroup: { name: string; preferences: Preference[] } }) => string |
preferencesGroupBody | (context: { preferenceGroup: { name: string; preferences: Preference[] } }) => string |
preferencesGroupChannels | (context: { preferenceGroup: { name: string; preferences: Preference[] } }) => string |
preferencesGroupInfo | (context: { preferenceGroup: { name: string; preferences: Preference[] } }) => string |
preferencesGroupInfoIcon | (context: { preferenceGroup: { name: string; preferences: Preference[] } }) => string |
preferencesGroupWorkflows | (context: { preferenceGroup: { name: string; preferences: Preference[] } }) => string |
| Notification list | |
notificationList | (context: { notifications: Notification[] }) => string |
notificationListContainer | (context: { notifications: Notification[] }) => string |
| Notification | |
notification | (context: { notification: Notification }) => string |
severityHigh__notification | (context: { notification: Notification }) => string |
severityMedium__notification | (context: { notification: Notification }) => string |
severityLow__notification | (context: { notification: Notification }) => string |
notificationBar | (context: { notification: Notification }) => string |
severityHigh__notificationBar | (context: { notification: Notification }) => string |
severityMedium__notificationBar | (context: { notification: Notification }) => string |
severityLow__notificationBar | (context: { notification: Notification }) => string |
notificationImageLoadingFallback | (context: { notification: Notification }) => string |
notificationImage | (context: { notification: Notification }) => string |
notificationContent | (context: { notification: Notification }) => string |
notificationTextContainer | (context: { notification: Notification }) => string |
notificationSubject | (context: { notification: Notification }) => string |
notificationBody | (context: { notification: Notification }) => string |
notificationDefaultActions | (context: { notification: Notification }) => string |
notificationCustomActions | (context: { notification: Notification }) => string |
notificationPrimaryAction__button | (context: { notification: Notification }) => string |
notificationSecondaryAction__button | (context: { notification: Notification }) => string |
notificationDate | (context: { notification: Notification }) => string |
notificationDeliveredAt__badge | (context: { notification: Notification }) => string |
notificationDeliveredAt__icon | (context: { notification: Notification }) => string |
notificationSnoozedUntil__icon | (context: { notification: Notification }) => string |
notificationDot | (context: { notification: Notification }) => string |
| Schedule | |
scheduleContainer | (context: { schedule?: Schedule }) => string |
scheduleHeader | (context: { schedule?: Schedule }) => string |
scheduleLabelContainer | (context: { schedule?: Schedule }) => string |
scheduleLabelScheduleIcon | (context: { schedule?: Schedule }) => string |
scheduleLabelInfoIcon | (context: { schedule?: Schedule }) => string |
scheduleLabel | (context: { schedule?: Schedule }) => string |
scheduleActionsContainer | (context: { schedule?: Schedule }) => string |
scheduleActionsContainerRight | (context: { schedule?: Schedule }) => string |
scheduleBody | (context: { schedule?: Schedule }) => string |
scheduleDescription | (context: { schedule?: Schedule }) => string |
scheduleTable | (context: { schedule?: Schedule }) => string |
scheduleTableHeader | (context: { schedule?: Schedule }) => string |
scheduleHeaderColumn | (context: { schedule?: Schedule }) => string |
scheduleTableBody | (context: { schedule?: Schedule }) => string |
scheduleBodyRow | (context: { schedule?: Schedule }) => string |
scheduleBodyColumn | (context: { schedule?: Schedule }) => string |
scheduleInfoContainer | (context: { schedule?: Schedule }) => string |
scheduleInfoIcon | (context: { schedule?: Schedule }) => string |
scheduleInfo | (context: { schedule?: Schedule }) => string |
| Day Schedule Copy | |
dayScheduleCopyTitle | (context: { schedule?: Schedule }) => string |
dayScheduleCopyIcon | (context: { schedule?: Schedule }) => string |
dayScheduleCopySelectAll | (context: { schedule?: Schedule }) => string |
dayScheduleCopyDay | (context: { schedule?: Schedule }) => string |
dayScheduleCopyFooterContainer | (context: { schedule?: Schedule }) => string |
Here are some examples:
Style the bell icon based on unread count#
You can change the bell icon color gradient based on the total number of unread notifications. The callback receives an unreadCount object, which is then used in the conditional logic.
Style notifications based on payload data#
You can style individual notifications based on custom data in their payload. In the example below, the notification’s background color is changed if a specific field (foo) exists in the notification’s data object.
Style notifications by severity#
Notification severity comes with default visual styles, but you can fully customize how notifications look for each severity level using the appearance prop.

By default, the bell icon takes the color of the highest severity unread notification.
Each severity level exposes selectors you can target through the variables and elements objects to apply custom styling.
Customizing severity colors#
You can override the default severity colors by setting new CSS custom properties in the appearance.variables object. Updating these variables automatically changes both the notification color and the bell icon color.
| Prop | Description |
|---|---|
colorSeverityHigh | Color for high severity |
colorSeverityMedium | Color for medium severity |
colorSeverityLow | Color for low severity |
Customizing severity elements#
You can apply specific styles to individual components using keys in the appearance.elements object. This lets you target components conditionally based on their severity state.
This table lists severity element keys:
| Elements key | Description |
|---|---|
severityHigh__bellContainer | Styles the bell container for high severity |
severityMedium__bellContainer | Styles the bell container for medium severity |
severityLow__bellContainer | Styles the bell container for low severity |
bellSeverityGlow | Base style for the severity glow around the bell |
severityGlowHigh__bellSeverityGlow | Glow style for high severity |
severityGlowMedium__bellSeverityGlow | Glow style for medium severity |
severityGlowLow__bellSeverityGlow | Glow style for low severity |
severityHigh__notification | Styles individual high severity notifications |
severityMedium__notification | Styles individual medium severity notifications |
severityLow__notification | Styles individual low severity notifications |
notificationBar | Base style for the vertical notification bar on the left of a notification |
severityHigh__notificationBar | Styles the notification bar for high severity |
severityMedium__notificationBar | Styles the notification bar for medium severity |
severityLow__notificationBar | Styles the notification bar for low severity |
Customize animations#
The Inbox animates its state changes. Menus and the Inbox popover grow out of the button that opened them and shrink back into it. When you switch between the notifications and preferences pages, or between tabs, the old view fades out and the new one fades in from the side it came from. The tab underline moves over to the selected tab. A notification you archive or snooze collapses out of the list instead of disappearing, and actions such as Archive all sweep the notifications out one after another. When the status filter changes, the list fades out and the new one fades in. Unread counts roll to their new value.
Set animations to false to turn every transition off:
When a subscriber’s operating system asks for reduced motion, the Inbox keeps only short fades and skips slides, scaling, and collapsing. Setting animations to true doesn’t override that preference.
To retune the motion, override its CSS variables on the .novu root in a global stylesheet:
Animated elements carry data-state="open" while they enter and data-state="closed" while they leave. Tab panels use active and inactive instead. Your styles take precedence over the built-in motion, so to remove the animation from a single element, set animation: 'none' for its key in appearance.elements:
Notifications that leave or join the list, the list fade on a status change, and the tab underline animate from code rather than CSS; turn those off with animations: false.
Responsive Inbox using CSS media queries#
On mobile and smaller devices, use the inbox__popoverContent element and apply a custom CSS class to it. Specify CSS media queries on this class and add the class in a global CSS file so that it takes effect. In the example below, media queries are applied to the novu-inbox-popover-content class in a global CSS file.