Deprecated Storybook addon that throws migration errors directing users to the new package structure in Storybook 9.0
86
A utility that creates and configures custom themes for Storybook UI with support for both light and dark color schemes.
Create a custom theme configuration that can be applied to Storybook's UI.
Apply custom branding to the Storybook interface.
@generates
/**
* Creates a custom Storybook theme with the specified configuration.
*
* @param {Object} config - The theme configuration object
* @param {string} [config.base='light'] - The base theme to extend ('light' or 'dark')
* @param {string} [config.brandTitle] - The title to display in the Storybook UI
* @param {string} [config.brandUrl] - The URL to navigate to when clicking the brand
* @param {string} [config.colorPrimary] - The primary brand color
* @param {string} [config.colorSecondary] - The secondary brand color
* @returns {Object} A theme object that can be used in Storybook configuration
*/
export function createCustomTheme(config) {
// IMPLEMENTATION HERE
}
/**
* Checks if a theme is using a dark color scheme.
*
* @param {Object} theme - The theme object to check
* @returns {boolean} True if the theme uses a dark base, false otherwise
*/
export function isDarkTheme(theme) {
// IMPLEMENTATION HERE
}Provides theme creation and styling utilities for Storybook UI.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-storybook--addon-backgroundsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10