diff --git a/web/.storybook/preview.js b/web/.storybook/preview.js
index e01aef8bc..c70e71aea 100644
--- a/web/.storybook/preview.js
+++ b/web/.storybook/preview.js
@@ -13,6 +13,8 @@ export const parameters = {
docs: {
container: DocsContainer,
},
+ actions: { argTypesRegex: '^on[A-Z].*' },
+ viewMode: 'docs',
controls: {
matchers: {
color: /(background|color)$/i,
diff --git a/web/.storybook/stories-category-doc-pages/Colors.stories.mdx b/web/.storybook/stories-category-doc-pages/Colors.stories.mdx
deleted file mode 100644
index 95a4ba162..000000000
--- a/web/.storybook/stories-category-doc-pages/Colors.stories.mdx
+++ /dev/null
@@ -1,132 +0,0 @@
-import { Canvas, Meta, Story } from '@storybook/addon-docs';
-import { ColorRow } from './Color';
-
-
-
-# Default theme colors
-
-These colors are assigned in our [color token](https://github.com/owncast/owncast/tree/develop/web/style-definitions/tokens/color) files
-and get reflected here as they change. run `npm run build-styles` to regenerate.
-
-
-
-## Default Theme
-
-These color names are assigned to specific component variables. They can be overwritten via CSS.
-
-
-
-
-
-## Component Colors
-
-
-
-
-
-## Default Palette
-
-These are the core colors for the default, out of the box, Owncast web application theme.
-They should not be overwritten, instead the theme variables should be overwritten.
-
-
-
-
-
-## User Colors
-
-
-
diff --git a/web/.storybook/stories-category-doc-pages/Typography.stories.mdx b/web/.storybook/stories-category-doc-pages/Typography.stories.mdx
index 990de5ee1..d9cbab28f 100644
--- a/web/.storybook/stories-category-doc-pages/Typography.stories.mdx
+++ b/web/.storybook/stories-category-doc-pages/Typography.stories.mdx
@@ -1,6 +1,12 @@
import { Canvas, Meta, Story, Typeset, Source } from '@storybook/addon-docs';
-
+
export const SampleText = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';
diff --git a/web/.storybook/stories-category-doc-pages/Color.tsx b/web/.storybook/stories-category-doc-pages/colors/Color.tsx
similarity index 89%
rename from web/.storybook/stories-category-doc-pages/Color.tsx
rename to web/.storybook/stories-category-doc-pages/colors/Color.tsx
index 0924bb84c..e0c259520 100644
--- a/web/.storybook/stories-category-doc-pages/Color.tsx
+++ b/web/.storybook/stories-category-doc-pages/colors/Color.tsx
@@ -81,3 +81,9 @@ export const ColorRow = props => {
ColorRow.propTypes = {
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
};
+
+export const getColor = color => {
+ const colorValue = getComputedStyle(document.documentElement).getPropertyValue(`--${color}`);
+ return { [color]: colorValue };
+ // return { [color]: colorValue };
+};
diff --git a/web/.storybook/stories-category-doc-pages/colors/ComponentColors.stories.mdx b/web/.storybook/stories-category-doc-pages/colors/ComponentColors.stories.mdx
new file mode 100644
index 000000000..5ef40e736
--- /dev/null
+++ b/web/.storybook/stories-category-doc-pages/colors/ComponentColors.stories.mdx
@@ -0,0 +1,110 @@
+import { Canvas, Meta, Story, ColorPalette, ColorItem, Description } from '@storybook/addon-docs';
+import { ColorRow, getColor } from './Color';
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/web/.storybook/stories-category-doc-pages/colors/OwncastColorPalette.stories.mdx b/web/.storybook/stories-category-doc-pages/colors/OwncastColorPalette.stories.mdx
new file mode 100644
index 000000000..ffde7464c
--- /dev/null
+++ b/web/.storybook/stories-category-doc-pages/colors/OwncastColorPalette.stories.mdx
@@ -0,0 +1,64 @@
+import { Canvas, Meta, Story, ColorPalette, ColorItem, Description } from '@storybook/addon-docs';
+import { ColorRow, getColor } from './Color';
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/web/.storybook/stories-category-doc-pages/colors/UserColors.stories.mdx b/web/.storybook/stories-category-doc-pages/colors/UserColors.stories.mdx
new file mode 100644
index 000000000..120f17ab0
--- /dev/null
+++ b/web/.storybook/stories-category-doc-pages/colors/UserColors.stories.mdx
@@ -0,0 +1,64 @@
+import { Canvas, Meta, Story, ColorPalette, ColorItem, Description } from '@storybook/addon-docs';
+import { ColorRow, getColor } from './Color';
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+