Skip to content

Commit cf6e719

Browse files
committed
chore: formatting in control panel.
1 parent c814a45 commit cf6e719

File tree

4 files changed

+55
-61
lines changed

4 files changed

+55
-61
lines changed
Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
import type { StorybookConfig } from '@storybook/sveltekit';
22

3-
import { join, dirname } from "path"
3+
import { join, dirname } from 'path';
44

55
/**
6-
* This function is used to resolve the absolute path of a package.
7-
* It is needed in projects that use Yarn PnP or are set up within a monorepo.
8-
*/
6+
* This function is used to resolve the absolute path of a package.
7+
* It is needed in projects that use Yarn PnP or are set up within a monorepo.
8+
*/
99
function getAbsolutePath(value: string): any {
10-
return dirname(require.resolve(join(value, 'package.json')))
10+
return dirname(require.resolve(join(value, 'package.json')));
1111
}
1212
const config: StorybookConfig = {
13-
"stories": [
14-
"../src/**/*.mdx",
15-
"../src/**/*.stories.@(js|ts|svelte)"
16-
],
17-
"addons": [
18-
getAbsolutePath('@storybook/addon-svelte-csf')
19-
],
20-
"framework": {
21-
"name": getAbsolutePath('@storybook/sveltekit'),
22-
"options": {}
23-
}
13+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|ts|svelte)'],
14+
addons: [getAbsolutePath('@storybook/addon-svelte-csf')],
15+
framework: {
16+
name: getAbsolutePath('@storybook/sveltekit'),
17+
options: {}
18+
}
2419
};
25-
export default config;
20+
export default config;
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import type { Preview } from '@storybook/sveltekit'
2-
import "../src/app.css";
1+
import type { Preview } from '@storybook/sveltekit';
2+
import '../src/app.css';
33

44
const preview: Preview = {
5-
parameters: {
6-
controls: {
7-
matchers: {
8-
color: /(background|color)$/i,
9-
date: /Date$/i,
10-
},
11-
},
12-
},
5+
parameters: {
6+
controls: {
7+
matchers: {
8+
color: /(background|color)$/i,
9+
date: /Date$/i
10+
}
11+
}
12+
}
1313
};
1414

15-
export default preview;
15+
export default preview;
Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11
@import 'tailwindcss';
22

3-
43
@theme {
5-
/* Custom theme */
6-
--color-primary: #8e52ff;
7-
--color-primary-100: #e8dcff;
8-
--color-primary-200: #d2baff;
9-
--color-primary-300: #bb97ff;
10-
--color-primary-400: #a575ff;
11-
--color-primary-500: #8e52ff;
4+
/* Custom theme */
5+
--color-primary: #8e52ff;
6+
--color-primary-100: #e8dcff;
7+
--color-primary-200: #d2baff;
8+
--color-primary-300: #bb97ff;
9+
--color-primary-400: #a575ff;
10+
--color-primary-500: #8e52ff;
1211

13-
--color-secondary: #73efd5;
14-
--color-secondary-100: #e3fcf7;
15-
--color-secondary-200: #c7f9ee;
16-
--color-secondary-300: #abf6e6;
17-
--color-secondary-400: #8ff2dd;
18-
--color-secondary-500: #73efd5;
12+
--color-secondary: #73efd5;
13+
--color-secondary-100: #e3fcf7;
14+
--color-secondary-200: #c7f9ee;
15+
--color-secondary-300: #abf6e6;
16+
--color-secondary-400: #8ff2dd;
17+
--color-secondary-500: #73efd5;
1918

20-
--color-white: #ffffff;
21-
--color-gray: #f5f5f5;
19+
--color-white: #ffffff;
20+
--color-gray: #f5f5f5;
2221

23-
--color-black: #1f1f1f;
24-
--color-black-100: #d2d2d2;
25-
--color-black-300: #a5a5a5;
26-
--color-black-500: #797979;
27-
--color-black-700: #4c4c4c;
28-
--color-black-900: #1f1f1f;
22+
--color-black: #1f1f1f;
23+
--color-black-100: #d2d2d2;
24+
--color-black-300: #a5a5a5;
25+
--color-black-500: #797979;
26+
--color-black-700: #4c4c4c;
27+
--color-black-900: #1f1f1f;
2928

30-
--color-danger: #ff5255;
31-
--color-danger-100: #ffdcdd;
32-
--color-danger-200: #ffb1a7;
33-
--color-danger-300: #ff968e;
34-
--color-danger-400: #ff7b77;
35-
--color-danger-500: #ff5255;
36-
}
29+
--color-danger: #ff5255;
30+
--color-danger-100: #ffdcdd;
31+
--color-danger-200: #ffb1a7;
32+
--color-danger-300: #ff968e;
33+
--color-danger-400: #ff7b77;
34+
--color-danger-500: #ff5255;
35+
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { sveltekit } from "@sveltejs/kit/vite";
2-
import tailwindcss from "@tailwindcss/vite";
3-
import { defineConfig } from "vite";
1+
import { sveltekit } from '@sveltejs/kit/vite';
2+
import tailwindcss from '@tailwindcss/vite';
3+
import { defineConfig } from 'vite';
44

55
export default defineConfig({
6-
plugins: [tailwindcss(), sveltekit()],
6+
plugins: [tailwindcss(), sveltekit()]
77
});

0 commit comments

Comments
 (0)