[WEB-4725] chore: storybook setup & tailwind config package improvements (#7614)

* chore: global css file added to tailwind config package

* chore: tailwind config updated

* chore: cn utility function added to propel package

* chore: storybook init

* fix: format error

* chore: code refactor

* chore: code refactor

* fix: format error

* fix: build error
This commit is contained in:
Anmol Singh Bhatia 2025-08-26 02:14:00 +05:30 committed by GitHub
parent 34e231230f
commit c2464939fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 1164 additions and 6 deletions

View file

@ -0,0 +1,20 @@
import type { StorybookConfig } from "@storybook/react-vite";
import { join, dirname } from "path";
/*
* This function is used to resolve the absolute path of a package.
* It is needed in projects that use Yarn PnP or are set up within a monorepo.
*/
function getAbsolutePath(value: string) {
return dirname(require.resolve(join(value, "package.json")));
}
const config: StorybookConfig = {
stories: ["../src/**/*.stories.@(ts|tsx)"],
addons: [],
framework: {
name: getAbsolutePath("@storybook/react-vite"),
options: {},
},
};
export default config;

View file

@ -0,0 +1,11 @@
import type { Preview } from "@storybook/react-vite";
import "@plane/tailwind-config/global.css";
const preview: Preview = {
parameters: {
controls: {
matchers: {},
},
},
};
export default preview;