Skip to content

🎧 Your Personal Streaming Service

Adds a Monokai theme (#1669)

Matt Doylee7cf74d86356
diff --git a/ui/src/themes/index.js b/ui/src/themes/index.js
index 5f119694e..6c647fae6 100644
--- a/ui/src/themes/index.js
+++ b/ui/src/themes/index.js
@@ -4,6 +4,7 @@ import ExtraDarkTheme from './extradark'
import GreenTheme from './green'
import SpotifyTheme from './spotify'
import LigeraTheme from './ligera'
+import MonokaiTheme from './monokai'
export default {
// Classic default themes
@@ -14,5 +15,6 @@ export default {
ExtraDarkTheme,
GreenTheme,
LigeraTheme,
+ MonokaiTheme,
SpotifyTheme,
}
diff --git a/ui/src/themes/monokai.css.js b/ui/src/themes/monokai.css.js
new file mode 100644
index 000000000..5aac9a016
--- /dev/null
+++ b/ui/src/themes/monokai.css.js
@@ -0,0 +1,50 @@
+module.exports = `
+
+.react-jinke-music-player-main svg:active, .react-jinke-music-player-main svg:hover {
+ color: #fd971f
+}
+
+.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle, .react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-track {
+ background-color: #fd971f
+}
+
+.react-jinke-music-player-main ::-webkit-scrollbar-thumb {
+ background-color: #fd971f;
+}
+
+.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle:active {
+ box-shadow: 0 0 2px #fd971f
+}
+
+.react-jinke-music-player-main .audio-item.playing svg {
+ color: #fd971f
+}
+
+.react-jinke-music-player-main .audio-item.playing .player-singer {
+ color: #fd971f !important
+}
+
+.react-jinke-music-player-main .lyric-btn {
+ color: #f8f8f2 !important
+}
+
+.react-jinke-music-player-main .lyric-btn-active svg {
+ color: #fd971f !important
+}
+
+.music-player-lyric {
+ color: #fd971f !important
+}
+
+.audio-lists-panel-content .audio-item.playing, .audio-lists-panel-content .audio-item.playing svg {
+ color: #fd971f
+}
+.audio-lists-panel-content .audio-item:active .group:not([class=".player-delete"]) svg, .audio-lists-panel-content .audio-item:hover .group:not([class=".player-delete"]) svg {
+ color: #fd971f
+}
+
+.progress-bar-content .audio-title a {
+ color: #f8f8f2
+}
+
+`
diff --git a/ui/src/themes/monokai.js b/ui/src/themes/monokai.js
new file mode 100644
index 000000000..f19a2d73b
--- /dev/null
+++ b/ui/src/themes/monokai.js
@@ -0,0 +1,100 @@
+export default {
+ themeName: 'Monokai',
+ palette: {
+ primary: {
+ main: '#66d9ef',
+ },
+ secondary: {
+ main: '#49483e',
+ contrastText: '#f8f8f2',
+ },
+ type: 'dark',
+ background: {
+ default: '#272822',
+ },
+ },
+ overrides: {
+ MuiPaper: {
+ root: {
+ color: '#f8f8f2',
+ backgroundColor: '#3b3a32',
+ },
+ },
+ MuiButton: {
+ textPrimary: {
+ color: '#66d9ef',
+ },
+ textSecondary: {
+ color: '#f8f8f2',
+ },
+ },
+ MuiChip: {
+ clickable: {
+ background: '#49483e',
+ },
+ },
+ MuiFormGroup: {
+ root: {
+ color: '#f8f8f2',
+ },
+ },
+ MuiFormHelperText: {
+ root: {
+ Mui: {
+ error: {
+ color: '#f92672',
+ },
+ },
+ },
+ },
+ MuiTableHead: {
+ root: {
+ color: '#f8f8f2',
+ background: '#3b3a32 !important',
+ },
+ },
+ MuiTableCell: {
+ root: {
+ color: '#f8f8f2',
+ background: '#3b3a32 !important',
+ },
+ head: {
+ color: '#f8f8f2',
+ background: '#3b3a32 !important',
+ },
+ },
+ MuiSnackbarContent: {
+ message: {
+ color: '#f8f8f2',
+ backgroundColor: '#f92672',
+ },
+ },
+ NDLogin: {
+ systemNameLink: {
+ color: '#66d9ef',
+ },
+ icon: {},
+ welcome: {
+ color: '#f8f8f2',
+ },
+ card: {
+ minWidth: 300,
+ background: '#3b3a32',
+ },
+ avatar: {},
+ button: {
+ boxShadow: '3px 3px 5px #272822',
+ },
+ },
+ NDMobileArtistDetails: {
+ bgContainer: {
+ background:
+ 'linear-gradient(to bottom, rgba(52 52 52 / 72%), rgb(48 48 48))!important',
+ },
+ },
+ },
+ player: {
+ theme: 'monokai',
+ stylesheet: require('./monokai.css.js'),
+ },
+}