You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow separate background colors for Bookmark panel and Terminal workspace
#4552
Hi,
I am using Electerm with a custom theme.
I want to use different background colors for:
the left Bookmark / Site list panel
the right Terminal workspace
For example:
Bookmark panel: red
Terminal background: light blue
Currently this does not seem possible with the existing theme variables.
Electerm supports separate UI and terminal theme configuration. For example, the synced/default theme structure contains both:
"themeConfig": {
"background": "#141314"
},
"uiThemeConfig": {
"main": "#141314"
}
So terminal colors and UI colors are already conceptually separated. Gist
However, when I change:
main=#8F1D1D
both the Bookmark area and the large Terminal workspace/container become red.
Changing:
terminal:background=#D9ECFF
does not make the full terminal workspace light blue.
The result looks like this:
+----------------------+----------------------------------+
| Bookmark panel | Terminal workspace |
| | |
| RED | RED |
| | |
| | xterm content may have its own |
| | terminal background internally |
+----------------------+----------------------------------+
What I would expect is:
+----------------------+----------------------------------+
| Bookmark panel | Terminal workspace |
| | |
| RED | LIGHT BLUE |
| | |
| | |
+----------------------+----------------------------------+
Electerm officially supports both UI themes and terminal themes, so I think the missing part is a dedicated UI color for the Bookmark/sidebar panel or for the terminal workspace container. GitHub
Why this happens
It looks like the same UI theme value:
uiThemeConfig.main
is being used as the background color for more than one layout area.
Something similar to:
...
...
appears to ultimately receive the same main background.
So changing:
main=#8F1D1D
changes both sections.
At the same time, the actual xterm terminal theme has its own background value:
themeConfig.background
This is already used by xterm itself. Electerm/Xterm discussions also show that themeConfig.background controls the terminal viewport background. GitHub
The issue is therefore not the xterm foreground/background palette itself.
The issue is the parent UI containers.
Suggested fix
A simple solution would be to add separate UI theme properties.
For example:
uiThemeConfig: {
main: '#141314',
Then the Bookmark/sidebar component could use:
style={{
backgroundColor:
uiThemeConfig.bookmarkBackground || uiThemeConfig.main
}}
and the terminal workspace/container could use:
style={{
backgroundColor:
uiThemeConfig.terminalWorkspaceBackground ||
themeConfig.background ||
uiThemeConfig.main
}}
The fallback is important so existing themes do not break.
For example:
const bookmarkBackground =
uiThemeConfig.bookmarkBackground ||
uiThemeConfig.main
Even simpler implementation
It may not even be necessary to introduce both properties.
The minimum change could be:
bookmarkBackground
and leave the terminal workspace tied to:
themeConfig.background
For example:
const bookmarkBackground =
uiThemeConfig.bookmarkBackground ||
uiThemeConfig.main
Then:
while the right side could use:
This would make the theme structure much clearer:
main -> general Electerm UI
bookmarkBackground -> bookmark/site manager panel
themeConfig.background -> terminal area
Theme editor
The theme editor should also expose the new value.
Currently I can use values similar to:
main=#121214
main-dark=#000
main-light=#2E3338
Backward compatibility
Existing themes should continue working without any changes.
For example:
bookmarkBackground =
uiThemeConfig.bookmarkBackground ||
uiThemeConfig.main
Therefore an old theme:
{
"uiThemeConfig": {
"main": "#141314"
}
}
would behave exactly as it does today.
Only users who explicitly define:
{
"bookmarkBackground": "#8F1D1D"
}
would get a different sidebar color.
Expected result
I would like to be able to configure something similar to:
Left icon sidebar : #0B0D10
Bookmark panel : #8F1D1D
Terminal workspace : #D9ECFF
Terminal foreground : #1F2937
without changing the Bookmark color also changing the terminal workspace.
Current behavior
main=#8F1D1D
results in:
Bookmark panel -> red
Terminal workspace -> red
Expected behavior
With a dedicated option:
bookmarkBackground=#8F1D1D
terminal:background=#D9ECFF
it should result in:
Bookmark panel -> red
Terminal workspace -> light blue
Thanks.
Bir de issue'ya ekran görüntülerini eklemeni öneririm. Özellikle şu iki görsel çok açıklayıcı olur:
Current:
Bookmark = red
Terminal area = red
Expected:
Bookmark = red
Terminal area = light blue
Bir noktayı da özellikle böyle yazdım: “şu dosyanın şu satırına ekleyin” demedim, çünkü GitHub aramasıyla güncel repodaki exact component path/class adını güvenilir biçimde doğrulayamadım. Yanlış dosya adı vermektense geliştiriciye doğru çözüm modelini (bookmarkBackground + fallback) vermek daha sağlıklı. Güncel repo 21 Eylül 2026 itibarıyla v5.5.25 sürümünü yayınlamış durumda; issue'yu açarken kullandığın Electerm sürümünü de eklersen faydalı olur. GitHub Open an issue in Electerm GitHub repository
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am using Electerm with a custom theme.
I want to use different background colors for:
For example:
Bookmark panel: red
Terminal background: light blue
Currently this does not seem possible with the existing theme variables.
Electerm supports separate UI and terminal theme configuration. For example, the synced/default theme structure contains both:
"themeConfig": {
"background": "#141314"
},
"uiThemeConfig": {
"main": "#141314"
}
So terminal colors and UI colors are already conceptually separated. Gist
However, when I change:
main=#8F1D1D
both the Bookmark area and the large Terminal workspace/container become red.
Changing:
terminal:background=#D9ECFF
does not make the full terminal workspace light blue.
The result looks like this:
+----------------------+----------------------------------+
| Bookmark panel | Terminal workspace |
| | |
| RED | RED |
| | |
| | xterm content may have its own |
| | terminal background internally |
+----------------------+----------------------------------+
What I would expect is:
+----------------------+----------------------------------+
| Bookmark panel | Terminal workspace |
| | |
| RED | LIGHT BLUE |
| | |
| | |
+----------------------+----------------------------------+
Electerm officially supports both UI themes and terminal themes, so I think the missing part is a dedicated UI color for the Bookmark/sidebar panel or for the terminal workspace container. GitHub
Why this happens
It looks like the same UI theme value:
uiThemeConfig.main
is being used as the background color for more than one layout area.
Something similar to:
appears to ultimately receive the same main background.
So changing:
main=#8F1D1D
changes both sections.
At the same time, the actual xterm terminal theme has its own background value:
themeConfig.background
This is already used by xterm itself. Electerm/Xterm discussions also show that themeConfig.background controls the terminal viewport background. GitHub
The issue is therefore not the xterm foreground/background palette itself.
The issue is the parent UI containers.
Suggested fix
A simple solution would be to add separate UI theme properties.
For example:
uiThemeConfig: {
main: '#141314',
bookmarkBackground: '#8F1D1D',
terminalWorkspaceBackground: '#D9ECFF',
'main-dark': '#000',
'main-light': '#2E3338',
text: '#ddd',
'text-light': '#fff',
'text-dark': '#888',
'text-disabled': '#777',
primary: '#08c',
info: '#FFD166',
success: '#06D6A0',
error: '#EF476F',
warn: '#E55934'
}
Then the Bookmark/sidebar component could use:
style={{
backgroundColor:
uiThemeConfig.bookmarkBackground || uiThemeConfig.main
}}
and the terminal workspace/container could use:
style={{
backgroundColor:
uiThemeConfig.terminalWorkspaceBackground ||
themeConfig.background ||
uiThemeConfig.main
}}
The fallback is important so existing themes do not break.
For example:
const bookmarkBackground =
uiThemeConfig.bookmarkBackground ||
uiThemeConfig.main
const terminalWorkspaceBackground =
uiThemeConfig.terminalWorkspaceBackground ||
themeConfig.background ||
uiThemeConfig.main
Then:
and:
Even simpler implementation
It may not even be necessary to introduce both properties.
The minimum change could be:
bookmarkBackground
and leave the terminal workspace tied to:
themeConfig.background
For example:
const bookmarkBackground =
uiThemeConfig.bookmarkBackground ||
uiThemeConfig.main
Then:
while the right side could use:
This would make the theme structure much clearer:
main -> general Electerm UI
bookmarkBackground -> bookmark/site manager panel
themeConfig.background -> terminal area
Theme editor
The theme editor should also expose the new value.
Currently I can use values similar to:
main=#121214
main-dark=#000
main-light=#2E3338
terminal:foreground=#bbbbbb
terminal:background=#20111b
A new option could simply be:
bookmark-background=#8F1D1D
or:
bookmarkBackground=#8F1D1D
Then a custom theme could be:
main=#121214
bookmarkBackground=#8F1D1D
terminal:foreground=#1F2937
terminal:background=#D9ECFF
Result:
Bookmark panel = #8F1D1D
Terminal workspace = #D9ECFF
Backward compatibility
Existing themes should continue working without any changes.
For example:
bookmarkBackground =
uiThemeConfig.bookmarkBackground ||
uiThemeConfig.main
Therefore an old theme:
{
"uiThemeConfig": {
"main": "#141314"
}
}
would behave exactly as it does today.
Only users who explicitly define:
{
"bookmarkBackground": "#8F1D1D"
}
would get a different sidebar color.
Expected result
I would like to be able to configure something similar to:
Left icon sidebar : #0B0D10
Bookmark panel : #8F1D1D
Terminal workspace : #D9ECFF
Terminal foreground : #1F2937
without changing the Bookmark color also changing the terminal workspace.
Current behavior
main=#8F1D1D
results in:
Bookmark panel -> red
Terminal workspace -> red
Expected behavior
With a dedicated option:
bookmarkBackground=#8F1D1D
terminal:background=#D9ECFF
it should result in:
Bookmark panel -> red
Terminal workspace -> light blue
Thanks.
Bir de issue'ya ekran görüntülerini eklemeni öneririm. Özellikle şu iki görsel çok açıklayıcı olur:
Current:
Bookmark = red
Terminal area = red
Expected:
Bookmark = red
Terminal area = light blue
Bir noktayı da özellikle böyle yazdım: “şu dosyanın şu satırına ekleyin” demedim, çünkü GitHub aramasıyla güncel repodaki exact component path/class adını güvenilir biçimde doğrulayamadım. Yanlış dosya adı vermektense geliştiriciye doğru çözüm modelini (bookmarkBackground + fallback) vermek daha sağlıklı. Güncel repo 21 Eylül 2026 itibarıyla v5.5.25 sürümünü yayınlamış durumda; issue'yu açarken kullandığın Electerm sürümünü de eklersen faydalı olur. GitHub
Open an issue in Electerm GitHub repository
All reactions