mirror of
https://github.com/n8n-io/n8n.git
synced 2026-09-24 23:22:38 +08:00
feat(editor): Introduce chromatic modes (no-changelog) (#22170)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export const allModes = {
|
||||
dark: {
|
||||
theme: 'dark',
|
||||
},
|
||||
light: {
|
||||
theme: 'light',
|
||||
},
|
||||
} as const;
|
||||
@@ -8,6 +8,7 @@ import lang from 'element-plus/dist/locale/en.mjs';
|
||||
import { N8nPlugin } from '../src/plugin';
|
||||
|
||||
import './storybook.scss';
|
||||
import { allModes } from './modes';
|
||||
// import '../src/css/tailwind/index.css';
|
||||
|
||||
setup((app) => {
|
||||
@@ -47,7 +48,13 @@ export const parameters = {
|
||||
],
|
||||
},
|
||||
themes: {
|
||||
default: 'light',
|
||||
list: [
|
||||
{
|
||||
name: 'light',
|
||||
class: 'theme-light',
|
||||
color: '#fff',
|
||||
},
|
||||
{
|
||||
name: 'dark',
|
||||
class: 'theme-dark-beta',
|
||||
@@ -66,6 +73,13 @@ export const parameters = {
|
||||
],
|
||||
},
|
||||
},
|
||||
chromatic: {
|
||||
modes: {
|
||||
light: allModes['light'],
|
||||
dark: allModes['dark'],
|
||||
},
|
||||
disableSnapshot: false,
|
||||
},
|
||||
};
|
||||
|
||||
export const decorators = [
|
||||
|
||||
Reference in New Issue
Block a user