Skip to content

Commit 9c27355

Browse files
committed
New custom styles example
1 parent 5e6dace commit 9c27355

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ export type UrlParameters = {
3636
* Theme of the editor
3737
*/
3838
ui?: 'min' | 'atlas' | 'kennedy' | 'dark' | 'sketch' | 'simple';
39+
/**
40+
* Turn dark mode on/off
41+
*/
42+
dark?: boolean;
3943
/**
4044
* Shows a Loading… spinner while waiting for the diagram data to load in embed mode.
4145
*

stories/DiagramsEmbed.stories.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,3 +359,17 @@ export const NoSaveAndExit: Story = {
359359
}
360360
}
361361
};
362+
363+
export const CustomStyles: Story = {
364+
args: {
365+
xml: WithData.args?.xml,
366+
configuration: {
367+
css: `
368+
:root { --panel-color: #DCEBE5 !important; --border-color: #b9d6cb !important; }
369+
html .gePrimaryBtn { background: #528a79 !important; }
370+
.geMenubarContainer { background: #3b665a !important; }
371+
.geMenubarContainer a { color: #fff !important; }
372+
`
373+
}
374+
}
375+
};

0 commit comments

Comments
 (0)