Skip to content

Commit

Permalink
chore: color palette changes (#30385)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti authored and MartinSchoeler committed Sep 26, 2023
1 parent 9e091b5 commit d2c02ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions ee/packages/ui-theming/src/PaletteStyleTag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { createPortal } from 'react-dom';

import { codeBlock } from './codeBlockStyles';
import { convertToCss } from './helpers/convertToCss';
import { filterOnlyChangedColors } from './helpers/filterOnlyChangedColors';
import { useCreateStyleContainer } from './hooks/useCreateStyleContainer';
import { useThemeMode } from './hooks/useThemeMode';
import { defaultPalette } from './palette';
Expand All @@ -20,9 +19,9 @@ export const PaletteStyleTag = memo(function PaletteStyleTag() {
if (theme === 'high-contrast') {
return paletteHighContrast;
}
return {};
return defaultPalette;
};
const palette = convertToCss(filterOnlyChangedColors(defaultPalette, getPalette()), '.rcx-content--main');
const palette = convertToCss(getPalette(), '.rcx-content--main, .rcx-tile');

return createPortal(theme === 'dark' ? palette + codeBlock : palette, useCreateStyleContainer('main-palette'));
});
2 changes: 1 addition & 1 deletion ee/packages/ui-theming/src/paletteDark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const palette = [
{ name: 'font-default', token: 'N400', color: '#E4E7EA' },
{ name: 'font-titles-labels', token: '', color: '#F2F3F5' },
{ name: 'font-info', token: '', color: '#739EDE' },
{ name: 'font-danger', token: '', color: '#CF6E7A' },
{ name: 'font-danger', token: '', color: '#D88892' },
{ name: 'font-pure-black', token: '', color: '#2F343D' },
{ name: 'font-pure-white', token: '', color: '#FFFFFF' },
],
Expand Down

0 comments on commit d2c02ec

Please sign in to comment.