whitespace-se / storybook-addon-html

A Storybook addon that extracts and displays compiled syntax-highlighted HTML
Other
95 stars 43 forks source link

Strorybook dark theme is not respected #114

Open soullivaneuh opened 6 months ago

soullivaneuh commented 6 months ago

Summary

When configuring the dark theme for storybook:

import type {
  Preview,
} from '@storybook/react';
import {
  themes,
} from '@storybook/theming';

const preview: Preview = {
  parameters: {
    // ...
    docs: {
      toc: true,
      theme: themes.dark,
    },
  },
};

export default preview;

The html preview of the plugin is not respected:

image