Webpack 4-based builder for Storybook that provides framework-agnostic build engine for preview iframe compilation and bundling.
91
Build a theme configuration utility that creates custom Storybook themes with company branding and supports both light and dark variants.
@generates
export interface BrandingOptions {
title: string;
url: string;
image: string;
}
export interface ColorOptions {
primary: string;
secondary: string;
}
export interface TypographyOptions {
baseFont: string;
codeFont: string;
}
export interface ThemeOptions {
branding: BrandingOptions;
colors: ColorOptions;
typography: TypographyOptions;
}
/**
* Creates a custom light theme with the provided options
*/
export function createLightTheme(options: ThemeOptions): object;
/**
* Creates a custom dark theme with the provided options
*/
export function createDarkTheme(options: ThemeOptions): object;Provides theming utilities and base theme creation functionality.
Install with Tessl CLI
npx tessl i tessl/npm-storybook--builder-webpack4evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10