Skip to content

Commit

Permalink
Refine storybook theme
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoLaval committed Sep 30, 2023
1 parent 9e8751e commit b48565b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .storybook/customTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ export const darkTheme = create({
"brandImage": antlrLogo,
"brandUrl": "https://github.com/Making-Sense-Info/ANTLR-Editor",

"appBg": "#0A192E",
"appContentBg": "#0A192E",
"appBg": "#323137",
"appContentBg": "#323137",

"barBg": "#0A192E",
"barBg": "#323137",

"colorSecondary": "#FBD616",
"colorSecondary": "#9211ff",

"textColor": "#f1f0eb",
"textInverseColor": "#ffc0cb",
Expand All @@ -27,11 +27,11 @@ export const lightTheme = create({
"brandImage": antlrLogo,
"brandUrl": "https://github.com/Making-Sense-Info/ANTLR-Editor",

"appBg": "#F5F7FA",
"appContentBg": "#F5F7FA",
"barBg": "#F5F7FA",
"appBg": "#f2f2f3",
"appContentBg": "#f2f2f3",
"barBg": "#f2f2f3",

"colorSecondary": "#3A4657",
"colorSecondary": "#9211ff",

"textColor": "#0F417A",
"textInverseColor": "#ffc0cb",
Expand Down
3 changes: 2 additions & 1 deletion src/stories/Editor.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default {
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
export const Sample = {
args: {
label: "I'm the ANTLR Editor :o"
label: "I'm the ANTLR Editor :o",
color: "#9211ff"
}
};
2 changes: 1 addition & 1 deletion src/stories/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ export type EditorProps = {
color: string;
};

const Editor = ({ label, color = "white" }: EditorProps) => <div style={{ color }}>{label}</div>;
const Editor = ({ label, color }: EditorProps) => <div style={{ color }}>{label}</div>;

export default Editor;

0 comments on commit b48565b

Please sign in to comment.