Skip to main content

Custom Themes

Custom themes allow you to personalize the appearance of Actual by installing custom color schemes. You can choose from a catalog of community-created themes or create your own by defining CSS variables that override the default theme colors.

Using Custom Themes​

Installing a Theme from the Catalog​

The easiest way to install a custom theme is to choose one from the catalog:

  1. Go to Settings → Themes
  2. Select Custom theme from the theme dropdown
  3. The theme installer will open showing available themes from the catalog
  4. Click on any theme to install it immediately

Themes in the catalog are hosted on GitHub and are automatically fetched when you select them. Each theme shows a color palette preview (6 colors in a 3x2 grid) and includes a link to its source repository.

Applying Custom CSS Overrides​

You can also customize your colors by pasting CSS directly:

  1. Go to Settings → Themes → Custom theme
  2. Scroll down to the Additional CSS overrides section
  3. Paste your theme CSS into the text area
  4. Click Apply

The CSS will be validated before it is applied. If there are any errors, they will be displayed below the text area.

These overrides apply on top of every theme, including Light, Dark, Midnight, and both modes of System default. Switching themes does not clear your overrides.

The Custom CSS is active button below the theme selectors opens the editor with your saved CSS. To remove the overrides, clear the text area and click Apply.

Publishing Custom Themes​

If you want to create your own custom theme and publish it for the community to use, you'll need to understand how Actual's theming system works.

Theme Format​

Custom themes must be written as CSS using the :root selector with CSS custom properties (variables). The format is:

:root {
--color-pageBackground: #1a1a1a;
--color-pageText: #ffffff;
--color-buttonPrimaryBackground: #007bff;
/* ... more variables ... */
}

Important requirements:

  • The CSS must contain exactly :root { ... } and nothing else
  • Only custom properties starting with -- are allowed; Actual uses --color-* variables for theming
  • Values may use var(--custom-property-name) to reference other variables (e.g. to reuse existing theme variables). Only this form is allowed; fallbacks like var(--name, value) are not supported.
  • No other selectors, at-rules (import, media, etc.), or nested blocks are allowed
  • Comments are allowed and will be stripped during validation

Example using variables:

:root {
--color-pageBackground: #1a1a1a;
--color-pageText: #ffffff;
/* Reuse another variable */
--color-buttonPrimaryBackground: var(--color-pageTextLink);
}

Changing the Accent Color​

The accent is the color of primary buttons, links, checkboxes, the outline of a focused input, selected rows and the selected item in the sidebar. You can change all of them by setting one variable:

:root {
--color-accent: #0a7d5a;
}

Actual works out the related colors from the accent and from your theme's table and page backgrounds, so text and buttons stay readable on them:

  • --color-accentContrast - Text and icons on an accent fill
  • --color-accentHover - Hovered accent fill
  • --color-accentText - The accent used as text, such as links
  • --color-accentBorder - Selected outlines and focus rings
  • --color-accentSubtle - Tinted background for selected rows and pills
  • --color-accentSubtleText - Accent text on the tinted background

You can set any of these yourself. Actual keeps your value and only works out the ones you leave out. The tinted background and its text are a pair, so if you set --color-accentSubtle, also set --color-accentSubtleText to a color that is readable on it. A more specific variable, such as --color-buttonPrimaryBackground, still takes priority over the accent for the thing it styles.

Accent text that sits on its own background, such as the selected sidebar item on --color-sidebarBackground, is worked out against that background. The text on the selected day in the date picker, --color-calendarSelectedText, is white when white is readable on --color-calendarSelectedBackground and black when it is not. A partly transparent --color-calendarSelectedBackground is measured as it appears over --color-calendarBackground.

Changing the Status Colors​

Success, warning, error and information messages each take their colors from one variable:

:root {
--color-success: #2e9e6b;
--color-warning: #d99a1c;
--color-error: #c6283b;
--color-info: #2f7fd6;
}

Actual works out the fill and the text for each kind of message from that color and from your theme's table and page backgrounds, so messages stay readable. The border uses the color as it is. A mid-tone works best, because the same color has to make a pale or deep fill and readable text.

You can still set any of the individual variables, such as --color-errorText, --color-noticeBackground or --color-infoBackground. Actual keeps your value and only works out the ones you leave out.

Available CSS Variables​

Custom themes can override any of the CSS variables in Actual's built-in themes. The Theme Variable Reference lists every one, with its color in each built-in theme and the variable it follows.

Start with the accent and base colors at the top of that page. Many other variables follow them, so setting a few of them restyles most of the app. Others keep their own colors, including the sidebar, the date picker, status messages and some buttons, so a theme needs to set those itself.

Do not point a base color at a variable that follows it, such as --color-background: var(--color-tableBackground). The two would refer to each other and neither would work.

Validation Rules​

When you paste CSS or install from a catalog, the theme is validated to ensure it meets the requirements:

  1. Must contain exactly :root { ... }
  2. Only custom properties starting with -- are allowed; Actual uses --color-* variables for theming
  3. Values may be literals (colors, lengths, etc.) or var(--name) references (no fallbacks)
  4. No at-rules (import, media, keyframes, etc.)
  5. No nested selectors or blocks
  6. No content outside the :root block

If validation fails, you'll see an error message explaining what's wrong.

Creating a GitHub-Hosted Theme​

To share your theme with others or add it to the catalog, you can host it on GitHub:

  1. Create a new GitHub repository
  2. Create a file named actual.css in the root directory (on the main branch)
  3. Add your theme CSS to this file

Example repository structure:

your-theme-repo/
└── actual.css # Your theme CSS

Example actual.css:

:root {
--color-pageBackground: #0d1117;
--color-pageText: #c9d1d9;
--color-pageTextSubdued: #8b949e;
--color-buttonPrimaryBackground: #238636;
--color-buttonPrimaryText: #ffffff;
/* Add all other variables you want to customize */
}

The theme can then be referenced in the catalog using the format owner/repo (e.g., actualbudget/demo-theme).

When your theme is added to the catalog, it will display a color palette preview. The palette is defined in the catalog JSON file and should include 6 representative colors from your theme (typically background colors, accent colors, and text colors).

Example Theme​

For a complete example of a custom theme, check out the demo theme repository. This repository contains multiple theme variations and demonstrates the proper structure and format.

The demo theme includes examples of:

  • Proper CSS variable naming
  • Complete theme definitions

You can use this as a template for creating your own themes.

Tips for Theme Development​

  1. Start with a base theme: Copy the CSS variables from one of Actual's built-in themes (light, dark, or midnight) and modify the colors you want to change
  2. Test incrementally: Make small changes and test them in the app to see the results
  3. Use the paste CSS feature: During development, use the paste CSS feature to quickly test your theme without needing to host it on GitHub
  4. Check variable names: Make sure variable names match exactly (case-sensitive) - they should start with --color- followed by the theme key name
  5. Consider accessibility: Ensure sufficient contrast between text and background colors for readability

Getting Your Theme in the Catalog​

To have your theme added to the official catalog, you'll need to:

  1. Host your theme on GitHub following the structure above
  2. Open an issue or pull request on the Actual repository requesting your theme be added to the catalog
  3. Provide the repository name in owner/repo format
  4. Include 6 representative colors for the color palette preview (as an array of hex color values)

The catalog is maintained in packages/desktop-client/src/data/customThemeCatalog.json. Each theme entry includes:

  • name: The theme name
  • repo: The GitHub repository in owner/repo format
  • colors: An array of 6 hex color values for the palette preview (e.g., ["#1a1a2e", "#16213e", "#0f3460", "#e94560", "#533483", "#f1f1f1"])