Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions redisinsight/ui/src/contexts/themeContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
theme as redisUiOldTheme,
CommonStyles,
themeLight,
themeDark,
} from '@redis-ui/styles'
import 'modern-normalize/modern-normalize.css'
import '@redis-ui/styles/normalized-styles.css'
Expand All @@ -19,6 +18,7 @@ import {
DEFAULT_THEME,
} from '../constants'
import { localStorageService, themeService } from '../services'
import { customDarkTheme } from 'uiSrc/styles/custom/dark_theme'

interface Props {
children: React.ReactNode
Expand Down Expand Up @@ -98,7 +98,7 @@ export class ThemeProvider extends React.Component<Props> {
const { theme, usingSystemTheme }: any = this.state
const uiTheme =
theme === Theme.Dark
? themeDark
? customDarkTheme
: theme === Theme.Light
? themeLight
: redisUiOldTheme
Expand Down
3 changes: 3 additions & 0 deletions redisinsight/ui/src/styles/custom/dark_theme/color.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const color = {
dusk000: '#ffffff',
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { DeepPartial } from '@reduxjs/toolkit'
import { ButtonGroupTheme, themeDark } from '@redis-ui/styles'
import { color } from 'uiSrc/styles/custom/dark_theme/color'

export const buttonGroup: DeepPartial<ButtonGroupTheme> = {
button: {
toggleStates: {
on: {
normal: {
bgColor: themeDark.color.azure600,
textColor: color.dusk000,
},
},
},
},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { buttonGroup } from './ButtonGroup'

export default {
buttonGroup,
}
7 changes: 7 additions & 0 deletions redisinsight/ui/src/styles/custom/dark_theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { merge } from 'lodash'
import { themeDark } from '@redis-ui/styles'
import { color } from 'uiSrc/styles/custom/dark_theme/color'
import components from 'uiSrc/styles/custom/dark_theme/components'

// Create modified dark theme with legacy colors
export const customDarkTheme = merge({}, themeDark, { color }, { components })
Loading