Skip to content

Commit

Permalink
remove theme hack added in jupyterlab#192
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq committed Jan 11, 2024
1 parent eb6a5ce commit 831b07b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/jupyter-ai/src/theme-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export async function pollUntilReady(): Promise<void> {
export async function getJupyterLabTheme(): Promise<Theme> {
await pollUntilReady();
const light = document.body.getAttribute('data-jp-theme-light');
const primaryFontColor = getCSSVariable('--jp-ui-font-color1');
return createTheme({
spacing: 4,
components: {
Expand Down Expand Up @@ -113,7 +112,7 @@ export async function getJupyterLabTheme(): Promise<Theme> {
dark: getCSSVariable('--jp-success-color0')
},
text: {
primary: primaryFontColor,
primary: getCSSVariable('--jp-ui-font-color1'),
secondary: getCSSVariable('--jp-ui-font-color2'),
disabled: getCSSVariable('--jp-ui-font-color3')
}
Expand All @@ -127,11 +126,6 @@ export async function getJupyterLabTheme(): Promise<Theme> {
htmlFontSize: 16,
button: {
textTransform: 'capitalize'
},
// this is undocumented as of the time of writing.
// https://stackoverflow.com/a/62950304/12548458
allVariants: {
color: primaryFontColor
}
}
});
Expand Down

0 comments on commit 831b07b

Please sign in to comment.