feat: add code block to backstage theme

This commit is contained in:
Jesko Steinberg
2020-10-30 12:08:12 +01:00
parent 7b37d65fd8
commit ef8e3c20ac
2 changed files with 12 additions and 0 deletions
+8
View File
@@ -48,6 +48,10 @@ export const lightTheme = createTheme({
text: '#FFFFFF',
link: '#000000',
},
code: {
background: '#333333',
text: '#FFFFFF',
},
border: '#E6E6E6',
textContrast: '#000000',
textVerySubtle: '#DDD',
@@ -110,6 +114,10 @@ export const darkTheme = createTheme({
text: '#FFFFFF',
link: '#000000',
},
code: {
background: '#F8F8F8',
text: '#333333',
},
border: '#E6E6E6',
textContrast: '#FFFFFF',
textVerySubtle: '#727272',
+4
View File
@@ -69,6 +69,10 @@ type PaletteAdditions = {
text: string;
link: string;
};
code: {
background: string;
text: string;
};
};
export type BackstagePalette = Palette & PaletteAdditions;