@histoire/shared 0.13.1 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,6 +107,18 @@ export interface HistoireConfig {
107
107
  * Add a link to the main logo
108
108
  */
109
109
  logoHref?: string;
110
+ /**
111
+ * Default color scheme for the app.
112
+ */
113
+ defaultColorScheme?: 'light' | 'dark' | 'auto';
114
+ /**
115
+ * Hides the dark mode button in the toolbar.
116
+ */
117
+ hideColorSchemeSwitch?: boolean;
118
+ /**
119
+ * Enable persistence of the color scheme in the browser.
120
+ */
121
+ storeColorScheme?: boolean;
110
122
  };
111
123
  /**
112
124
  * Setup file exporting a default function executed when setting up each story preview.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@histoire/shared",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "Shared utilities for Histoire",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -116,6 +116,18 @@ export interface HistoireConfig {
116
116
  * Add a link to the main logo
117
117
  */
118
118
  logoHref?: string
119
+ /**
120
+ * Default color scheme for the app.
121
+ */
122
+ defaultColorScheme?: 'light' | 'dark' | 'auto'
123
+ /**
124
+ * Hides the dark mode button in the toolbar.
125
+ */
126
+ hideColorSchemeSwitch?: boolean
127
+ /**
128
+ * Enable persistence of the color scheme in the browser.
129
+ */
130
+ storeColorScheme?: boolean
119
131
  }
120
132
  /**
121
133
  * Setup file exporting a default function executed when setting up each story preview.