Skip to content

A local-first personal finance app

[AI] Release custom themes feature (#7775)

Matiss Janis Aboltins0086f805f8ac
diff --git a/packages/desktop-client/src/components/settings/Experimental.tsx b/packages/desktop-client/src/components/settings/Experimental.tsx
index c295983304..0ff4ac4e17 100644
--- a/packages/desktop-client/src/components/settings/Experimental.tsx
+++ b/packages/desktop-client/src/components/settings/Experimental.tsx
@@ -210,12 +210,6 @@ export function ExperimentalFeatures() {
>
<Trans>Age of Money Report</Trans>
</FeatureToggle>
- <FeatureToggle
- flag="customThemes"
- feedbackLink="https://github.com/actualbudget/actual/issues/6607"
- >
- <Trans>Custom themes</Trans>
- </FeatureToggle>
<FeatureToggle
flag="budgetAnalysisReport"
feedbackLink="https://github.com/actualbudget/actual/pull/6742"
diff --git a/packages/desktop-client/src/components/settings/Themes.test.tsx b/packages/desktop-client/src/components/settings/Themes.test.tsx
index 0b78a25f5d..589c2f829a 100644
--- a/packages/desktop-client/src/components/settings/Themes.test.tsx
+++ b/packages/desktop-client/src/components/settings/Themes.test.tsx
@@ -16,14 +16,6 @@ let mockTheme: string = 'light';
let mockInstalledLight: string | undefined = undefined;
let mockInstalledDark: string | undefined = undefined;
let mockCustomCssOverride: string | undefined = undefined;
-let mockCustomThemesEnabled = true;
-
-vi.mock('#hooks/useFeatureFlag', () => ({
- useFeatureFlag: (flag: string) => {
- if (flag === 'customThemes') return mockCustomThemesEnabled;
- return false;
- },
-}));
vi.mock('#hooks/useGlobalPref', () => ({
useGlobalPref: (key: string) => {
@@ -64,7 +56,6 @@ describe('ThemeSettings', () => {
mockInstalledLight = undefined;
mockInstalledDark = undefined;
mockCustomCssOverride = undefined;
- mockCustomThemesEnabled = true;
});
describe('custom CSS override indicator', () => {
@@ -99,15 +90,6 @@ describe('ThemeSettings', () => {
).toBeVisible();
});
- it('is hidden when customThemes feature flag is off', () => {
- mockCustomThemesEnabled = false;
- mockCustomCssOverride = ':root { --color-accent: #ff00aa; }';
- render(<ThemeSettings />);
- expect(
- screen.queryByLabelText('Custom CSS override active — click to edit'),
- ).toBeNull();
- });
-
it('opens the installer when clicked', async () => {
const user = userEvent.setup();
mockCustomCssOverride = ':root { --color-accent: #ff00aa; }';
diff --git a/packages/desktop-client/src/components/settings/Themes.tsx b/packages/desktop-client/src/components/settings/Themes.tsx
index ab021c0498..0178115e27 100644
--- a/packages/desktop-client/src/components/settings/Themes.tsx
+++ b/packages/desktop-client/src/components/settings/Themes.tsx
@@ -13,7 +13,6 @@ import type { DarkTheme, Theme } from '@actual-app/core/types/prefs';
import { css } from '@emotion/css';
import { useSidebar } from '#components/sidebar/SidebarProvider';
-import { useFeatureFlag } from '#hooks/useFeatureFlag';
import { useGlobalPref } from '#hooks/useGlobalPref';
import {
darkThemeOptions,
@@ -49,9 +48,6 @@ export function ThemeSettings() {
const showInstallerRef = useRef<InstallerState>(null);
showInstallerRef.current = showInstaller;
- const customThemesEnabled = useFeatureFlag('customThemes');
-
- // Global prefs for custom themes
const [installedLightThemeJson, setInstalledLightThemeJson] = useGlobalPref(
'installedCustomLightTheme',
);
@@ -66,71 +62,60 @@ export function ThemeSettings() {
);
const installedCustomDarkTheme = parseInstalledTheme(installedDarkThemeJson);
- // Build the options list for the single (non-auto) theme selector
const buildOptions = useCallback(() => {
const options: Array<readonly [string, string] | typeof Menu.line> = [
...themeOptions,
];
- if (customThemesEnabled) {
- if (theme !== 'auto' && installedCustomLightTheme) {
- options.push([
- `custom:${installedCustomLightTheme.id}`,
- installedCustomLightTheme.name,
- ] as const);
- }
- options.push(Menu.line);
- options.push([INSTALL_NEW_VALUE, t('Custom theme')] as const);
+ if (theme !== 'auto' && installedCustomLightTheme) {
+ options.push([
+ `custom:${installedCustomLightTheme.id}`,
+ installedCustomLightTheme.name,
+ ] as const);
}
+ options.push(Menu.line);
+ options.push([INSTALL_NEW_VALUE, t('Custom theme')] as const);
return options;
- }, [installedCustomLightTheme, customThemesEnabled, theme, t]);
+ }, [installedCustomLightTheme, theme, t]);
- // Build options for the auto-mode light theme selector
const buildLightOptions = useCallback(() => {
const options: Array<readonly [string, string] | typeof Menu.line> = [
['light', t('Light')],
];
- if (customThemesEnabled) {
- if (installedCustomLightTheme) {
- options.push([
- `custom-light:${installedCustomLightTheme.id}`,
- installedCustomLightTheme.name,
- ] as const);
- }
- options.push(Menu.line);
- options.push([INSTALL_CUSTOM_LIGHT, t('Custom theme')] as const);
+ if (installedCustomLightTheme) {
+ options.push([
+ `custom-light:${installedCustomLightTheme.id}`,
+ installedCustomLightTheme.name,
+ ] as const);
}
+ options.push(Menu.line);
+ options.push([INSTALL_CUSTOM_LIGHT, t('Custom theme')] as const);
return options;
- }, [installedCustomLightTheme, customThemesEnabled, t]);
+ }, [installedCustomLightTheme, t]);
- // Build options for the auto-mode dark theme selector
const buildDarkOptions = useCallback(() => {
const options: Array<readonly [string, string] | typeof Menu.line> = [
...darkThemeOptions,
];
- if (customThemesEnabled) {
- if (installedCustomDarkTheme) {
- options.push([
- `custom-dark:${installedCustomDarkTheme.id}`,
- installedCustomDarkTheme.name,
- ] as const);
- }
- options.push(Menu.line);
- options.push([INSTALL_CUSTOM_DARK, t('Custom theme')] as const);
+ if (installedCustomDarkTheme) {
+ options.push([
+ `custom-dark:${installedCustomDarkTheme.id}`,
+ installedCustomDarkTheme.name,
+ ] as const);
}
+ options.push(Menu.line);
+ options.push([INSTALL_CUSTOM_DARK, t('Custom theme')] as const);
return options;
- }, [installedCustomDarkTheme, customThemesEnabled, t]);
+ }, [installedCustomDarkTheme, t]);
- // Determine current value for the single theme select
const getCurrentValue = useCallback(() => {
- if (customThemesEnabled && installedCustomLightTheme && theme !== 'auto') {
+ if (installedCustomLightTheme && theme !== 'auto') {
return `custom:${installedCustomLightTheme.id}`;
}
return theme;
- }, [customThemesEnabled, installedCustomLightTheme, theme]);
+ }, [installedCustomLightTheme, theme]);
- // Handle theme selection (non-auto mode)
const handleThemeChange = useCallback(
(value: string) => {
if (value === INSTALL_NEW_VALUE) {
@@ -150,7 +135,6 @@ export function ThemeSettings() {
[theme, setInstalledLightThemeJson, setInstalledDarkThemeJson, switchTheme],
);
- // Handle light theme selection (auto mode)
const handleLightThemeChange = useCallback(
(value: string) => {
if (value === INSTALL_CUSTOM_LIGHT) {
@@ -164,7 +148,6 @@ export function ThemeSettings() {
[setInstalledLightThemeJson],
);
- // Handle dark theme selection (auto mode)
const handleDarkThemeChange = useCallback(
(value: string) => {
if (value === INSTALL_CUSTOM_DARK) {
@@ -197,7 +180,6 @@ export function ThemeSettings() {
[setInstalledLightThemeJson, setInstalledDarkThemeJson, switchTheme],
);
- // Handle installer close
const handleInstallerClose = useCallback(() => {
setShowInstaller(null);
}, []);
@@ -254,7 +236,7 @@ export function ThemeSettings() {
maxWidth: '100%',
})}
/>
- {customThemesEnabled && hasCustomCssOverride && (
+ {hasCustomCssOverride && (
<Button
variant="bare"
aria-label={t(
@@ -278,7 +260,7 @@ export function ThemeSettings() {
<Select<string>
onChange={handleLightThemeChange}
value={
- customThemesEnabled && installedCustomLightTheme
+ installedCustomLightTheme
? `custom-light:${installedCustomLightTheme.id}`
: 'light'
}
@@ -296,7 +278,7 @@ export function ThemeSettings() {
<Select<string>
onChange={handleDarkThemeChange}
value={
- customThemesEnabled && installedCustomDarkTheme
+ installedCustomDarkTheme
? `custom-dark:${installedCustomDarkTheme.id}`
: darkTheme
}
@@ -315,7 +297,7 @@ export function ThemeSettings() {
</View>
)}
- {customThemesEnabled && showInstaller && (
+ {showInstaller && (
<ThemeInstaller
onInstall={handleInstall}
onClose={handleInstallerClose}
diff --git a/packages/desktop-client/src/hooks/useFeatureFlag.ts b/packages/desktop-client/src/hooks/useFeatureFlag.ts
index 57eabc2034..968c59d37d 100644
--- a/packages/desktop-client/src/hooks/useFeatureFlag.ts
+++ b/packages/desktop-client/src/hooks/useFeatureFlag.ts
@@ -10,7 +10,6 @@ const DEFAULT_FEATURE_FLAG_STATE: Record<FeatureFlag, boolean> = {
currency: false,
crossoverReport: false,
ageOfMoneyReport: false,
- customThemes: false,
budgetAnalysisReport: false,
payeeLocations: false,
enableBanking: false,
diff --git a/packages/desktop-client/src/style/theme.tsx b/packages/desktop-client/src/style/theme.tsx
index e924e297f5..895456ab6a 100644
--- a/packages/desktop-client/src/style/theme.tsx
+++ b/packages/desktop-client/src/style/theme.tsx
@@ -2,7 +2,6 @@ import { useEffect, useMemo, useState } from 'react';
import type { DarkTheme, Theme } from '@actual-app/core/types/prefs';
-import { useFeatureFlag } from '#hooks/useFeatureFlag';
import { useGlobalPref } from '#hooks/useGlobalPref';
import {
@@ -47,13 +46,10 @@ export function usePreferredDarkTheme() {
/**
* One-time migration: moves any legacy `overrideCss` field out of the
* installed theme JSON blobs and into the new `customCssOverride` global pref.
- * Gated on the customThemes feature flag — users who never used the feature
- * have nothing to migrate.
*
* TODO: remove this after v26.6.0 is released
*/
function useMigrateLegacyOverride() {
- const customThemesEnabled = useFeatureFlag('customThemes');
const [customCssOverride, setCustomCssOverride] =
useGlobalPref('customCssOverride');
const [installedCustomLightThemeJson, setInstalledCustomLightThemeJson] =
@@ -62,8 +58,6 @@ function useMigrateLegacyOverride() {
useGlobalPref('installedCustomDarkTheme');
useEffect(() => {
- if (!customThemesEnabled) return;
-
const result = migrateLegacyOverride({
existingOverride: customCssOverride,
lightJson: installedCustomLightThemeJson,
@@ -84,7 +78,6 @@ function useMigrateLegacyOverride() {
// idempotent: once customCssOverride is set (or the legacy field is
// stripped), subsequent invocations return null.
}, [
- customThemesEnabled,
customCssOverride,
installedCustomLightThemeJson,
installedCustomDarkThemeJson,
@@ -101,7 +94,6 @@ function getBaseThemeColors(baseTheme: BaseTheme) {
export function ThemeStyle() {
const [activeTheme] = useTheme();
const [darkThemePreference] = usePreferredDarkTheme();
- const customThemesEnabled = useFeatureFlag('customThemes');
const [installedCustomLightThemeJson] = useGlobalPref(
'installedCustomLightTheme',
);
@@ -114,12 +106,8 @@ export function ThemeStyle() {
useEffect(() => {
if (activeTheme === 'auto') {
- const installedLight = customThemesEnabled
- ? parseInstalledTheme(installedCustomLightThemeJson)
- : null;
- const installedDark = customThemesEnabled
- ? parseInstalledTheme(installedCustomDarkThemeJson)
- : null;
+ const installedLight = parseInstalledTheme(installedCustomLightThemeJson);
+ const installedDark = parseInstalledTheme(installedCustomDarkThemeJson);
const lightColors =
(installedLight?.baseTheme &&
@@ -159,9 +147,7 @@ export function ThemeStyle() {
);
};
} else {
- const installedTheme = customThemesEnabled
- ? parseInstalledTheme(installedCustomLightThemeJson)
- : null;
+ const installedTheme = parseInstalledTheme(installedCustomLightThemeJson);
if (installedTheme?.baseTheme) {
setThemeColors(
getBaseThemeColors(installedTheme.baseTheme) ??
@@ -174,7 +160,6 @@ export function ThemeStyle() {
}, [
activeTheme,
darkThemePreference,
- customThemesEnabled,
installedCustomLightThemeJson,
installedCustomDarkThemeJson,
]);
@@ -196,7 +181,6 @@ export function ThemeStyle() {
*/
export function CustomThemeStyle() {
useMigrateLegacyOverride();
- const customThemesEnabled = useFeatureFlag('customThemes');
const [activeTheme] = useTheme();
const [installedCustomLightThemeJson] = useGlobalPref(
'installedCustomLightTheme',
@@ -207,8 +191,6 @@ export function CustomThemeStyle() {
const [customCssOverride] = useGlobalPref('customCssOverride');
const validatedCss = useMemo(() => {
- if (!customThemesEnabled) return null;
-
const safeValidate = (css: string | undefined, errorLabel: string) => {
if (!css?.trim()) return '';
try {
@@ -250,7 +232,6 @@ export function CustomThemeStyle() {
const combined = [baseCss, overrideLayer].filter(Boolean).join('\n');
return combined || null;
}, [
- customThemesEnabled,
activeTheme,
installedCustomLightThemeJson,
installedCustomDarkThemeJson,
diff --git a/packages/docs/docs-sidebar.js b/packages/docs/docs-sidebar.js
index e4ff3366bf..d38c2f1fce 100644
--- a/packages/docs/docs-sidebar.js
+++ b/packages/docs/docs-sidebar.js
@@ -195,6 +195,7 @@ const sidebars = {
items: ['backup-restore/backup', 'backup-restore/restore'],
},
'settings/index',
+ 'custom-themes',
'getting-started/sync',
'getting-started/manage-files',
@@ -212,7 +213,6 @@ const sidebars = {
'experimental/rule-templating',
'experimental/formulas',
'experimental/crossover-point-report',
- 'experimental/custom-themes',
'experimental/budget-analysis-report',
],
},
diff --git a/packages/docs/docs/experimental/custom-themes.md b/packages/docs/docs/custom-themes.md
similarity index 89%
rename from packages/docs/docs/experimental/custom-themes.md
rename to packages/docs/docs/custom-themes.md
index 4dc83eb94d..5b804c2f9a 100644
--- a/packages/docs/docs/experimental/custom-themes.md
+++ b/packages/docs/docs/custom-themes.md
@@ -1,24 +1,9 @@
# Custom Themes
-:::warning
-This is an **experimental feature**. That means we're still working on finishing it. There may be bugs, missing functionality or incomplete documentation, and we may decide to remove the feature in a future release. If you have any feedback, please [post a comment on GitHub](https://github.com/actualbudget/actual/issues/6607) or post a message in the Discord.
-:::
-:::warning
-All functionality described here may not be available in the latest stable release. See [Experimental Features](/docs/experimental/) for instructions to enable experimental features. Use the `edge` images for the latest implementation.
-:::
-
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
-### Enabling the Feature
-
-Before you can use custom themes, you need to enable the experimental feature:
-
-1. Go to **Settings** → **Show advanced settings** → **Experimental features**
-2. Click "I understand the risks, show experimental features"
-3. Enable the **Custom themes** toggle
-
### Installing a Theme from the Catalog
The easiest way to install a custom theme is to choose one from the catalog:
diff --git a/packages/docs/docs/releases.md b/packages/docs/docs/releases.md
index 689c48a2ca..495ba8ea9e 100644
--- a/packages/docs/docs/releases.md
+++ b/packages/docs/docs/releases.md
@@ -475,7 +475,7 @@ Release date: 2026-02-02
This release contains the following notable improvements, along with numerous fixes:
- Allow multiple dashboard pages
-- Experimental feature: Custom themes [docs](https://actualbudget.org/docs/experimental/custom-themes)
+- Experimental feature: Custom themes [docs](https://actualbudget.org/docs/custom-themes)
- Experimental feature: Budget analysis report [docs](https://actualbudget.org/docs/experimental/budget-analysis-report)
**Docker Tag: 26.2.0**
diff --git a/packages/docs/docs/settings/index.md b/packages/docs/docs/settings/index.md
index 401e617126..60aeb4c6f8 100644
--- a/packages/docs/docs/settings/index.md
+++ b/packages/docs/docs/settings/index.md
@@ -10,7 +10,7 @@ There is an option to "Display a notification when updates are available" here.
### Themes
-Themes change the user interface colors
+Themes change the user interface colors. Pick from the built-in **Light**, **Dark**, **Midnight**, or **Auto** themes, or install a community-built theme from the catalog. See [Custom Themes](/docs/custom-themes) for the full guide.
### Formatting
diff --git a/packages/loot-core/src/types/prefs.ts b/packages/loot-core/src/types/prefs.ts
index 2b2d1c3e31..435dd4dc2f 100644
--- a/packages/loot-core/src/types/prefs.ts
+++ b/packages/loot-core/src/types/prefs.ts
@@ -6,7 +6,6 @@ export type FeatureFlag =
| 'currency'
| 'crossoverReport'
| 'ageOfMoneyReport'
- | 'customThemes'
| 'budgetAnalysisReport'
| 'payeeLocations'
| 'enableBanking'
diff --git a/upcoming-release-notes/7775.md b/upcoming-release-notes/7775.md
new file mode 100644
index 0000000000..101b4f3fab
--- /dev/null
+++ b/upcoming-release-notes/7775.md
@@ -0,0 +1,6 @@
+---
+category: Features
+authors: [MatissJanis]
+---
+
+Release custom themes as a stable feature.