Skip to content

Commit 9e7217f

Browse files
committed
chore(demo): add yfm editor brand
1 parent 43c6635 commit 9e7217f

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.storybook/manager.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import {addons} from '@storybook/addons';
2+
import {themes} from './theme';
3+
4+
addons.setConfig({
5+
theme: themes.light,
6+
});

.storybook/theme.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import {create} from '@storybook/theming';
2+
3+
export const ThemeLight = create({
4+
base: 'light',
5+
6+
colorPrimary: '#027bf3',
7+
colorSecondary: 'rgba(2, 123, 243, 0.6)',
8+
9+
// Typography
10+
fontBase: '"Helvetica Neue", Arial, Helvetica, sans-serif',
11+
fontCode:
12+
'"SF Mono", "Menlo", "Monaco", "Consolas", "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", "Courier", monospace',
13+
14+
// Text colors
15+
textColor: 'black',
16+
textInverseColor: 'black',
17+
18+
// Toolbar default and active colors
19+
barTextColor: 'silver',
20+
barSelectedColor: '#027bf3',
21+
// barBg: '#027bf3',
22+
23+
// Form colors
24+
inputBg: 'white',
25+
inputBorder: 'silver',
26+
inputTextColor: 'black',
27+
inputBorderRadius: 4,
28+
29+
brandUrl: 'https://github.com/yandex-cloud/yfm-editor',
30+
brandTitle: `<div style="font-size: 18px; color: #027bf3; font-weight: 600; margin-top: -6px; margin-bottom: 2px;">YFM Editor</div>
31+
<div style="font-size: 14px;color: #7d7d7d;font-weight: 400;">Wysiwyg editor</div>`,
32+
});
33+
34+
export const ThemeDark = create({
35+
base: 'dark',
36+
});
37+
38+
export const themes = {
39+
light: ThemeLight,
40+
dark: ThemeDark,
41+
};

0 commit comments

Comments
 (0)