Skip to content

Commit b1d871b

Browse files
dark theme added
1 parent 94f75e5 commit b1d871b

File tree

6 files changed

+112
-125
lines changed

6 files changed

+112
-125
lines changed

packages/grafana-data/src/themes/createColors.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class DarkColors implements ThemeColorsBase<Partial<ThemeRichColor>> {
9191
mode: ThemeColorsMode = 'dark';
9292

9393
// Used to get more white opacity colors
94-
whiteBase = '219, 217, 215';
94+
whiteBase = '209, 209, 209';
9595

9696
border = {
9797
weak: `rgba(${this.whiteBase}, 0.12)`,
@@ -100,16 +100,16 @@ class DarkColors implements ThemeColorsBase<Partial<ThemeRichColor>> {
100100
};
101101

102102
text = {
103-
primary: '#DBD9D7',
104-
secondary: '#F0E4B6',
103+
primary: '#fff',
104+
secondary: '#ffffff90',
105105
disabled: '#9DA7B8',
106106
link: '#F0E4B6',
107107
maxContrast: '#F0E4B6',
108108
};
109109

110110
primary = {
111-
main: '#3F8367',
112-
text: '#F0E4B6',
111+
main: '#ff570ae5',
112+
text: '#e94900',
113113
border: '#ffffff00',
114114
};
115115

@@ -139,8 +139,8 @@ class DarkColors implements ThemeColorsBase<Partial<ThemeRichColor>> {
139139
};
140140

141141
background = {
142-
canvas: '#312D2B', //palette.gray05,
143-
primary: '#3B3835', //palette.gray10,
142+
canvas: '#151619', //palette.gray05,
143+
primary: '#23242a', //palette.gray10,
144144
secondary: '#5E5855', //palette.gray15,
145145
};
146146

packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker/TimePickerFooter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const TimePickerFooter = (props: Props) => {
6464
return null;
6565
}
6666

67-
const fnColor = theme.isDark ? '#8EC4AD' : '#344054';
67+
const fnColor = theme.colors.mode === 'dark' ? '#F06929' : '#344054';
6868

6969
return (
7070
<div>

0 commit comments

Comments
 (0)