diff --git a/docs/visual-language/grid-and-layout/non-web-environment.mdx b/docs/visual-language/grid-and-layout/non-web-environment.mdx index df6af9c..f947635 100644 --- a/docs/visual-language/grid-and-layout/non-web-environment.mdx +++ b/docs/visual-language/grid-and-layout/non-web-environment.mdx @@ -12,8 +12,6 @@ The typestack for these grids is also based in multiples of 20px, line height ad ### Logos State Podcast -# Gallery - 2 column 20px and 4 column 20px diff --git a/docs/visual-language/typography/web-environment.md b/docs/visual-language/typography/web-environment.mdx similarity index 86% rename from docs/visual-language/typography/web-environment.md rename to docs/visual-language/typography/web-environment.mdx index 5bb8fbb..5aeb04a 100644 --- a/docs/visual-language/typography/web-environment.md +++ b/docs/visual-language/typography/web-environment.mdx @@ -2,6 +2,8 @@ title: Web Environments --- +import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo'; + # Web Environments In our web environments, we lean toward a concept inspired by the decentralized mental model. Instead of imposing a singular font choice, we rely on the default web fonts present on users' browsers and systems. Our strategy offers key advantages: @@ -37,4 +39,4 @@ font-family: Serif ### [LSD](https://logos-brand-guidelines.vercel.app/category/lsd---ui-library) type stack -![Untitled](/TypographyWebEnvironment.png) \ No newline at end of file + diff --git a/sidebars.js b/sidebars.js index aa17da0..b2d8fbc 100644 --- a/sidebars.js +++ b/sidebars.js @@ -52,7 +52,6 @@ const sidebars = { // label: 'Illustration', // id: 'visual-language/illustration', // }, - { type: 'category', label: 'Typography', @@ -75,6 +74,11 @@ const sidebars = { }, ], }, + { + type: 'doc', + label: 'Color', + id: 'visual-language/color', + }, { type: 'category', label: 'Grid and Layout', @@ -97,6 +101,17 @@ const sidebars = { }, ], }, + + { + type: 'doc', + label: 'Photography', + id: 'visual-language/photography', + }, + { + type: 'doc', + label: 'Illustration', + id: 'visual-language/illustration', + }, ], }, { diff --git a/src/components/mdx/CardWithIcon/CardWithIcon.tsx b/src/components/mdx/CardWithIcon/CardWithIcon.tsx index a9baceb..b37deb0 100644 --- a/src/components/mdx/CardWithIcon/CardWithIcon.tsx +++ b/src/components/mdx/CardWithIcon/CardWithIcon.tsx @@ -29,18 +29,14 @@ export const CardWithIcon: React.FC = ({ {!!icon &&
{icon}
} - + {title} {!!subtitle && ( {subtitle} diff --git a/src/components/mdx/StorybookDemo/StorybookDemo.tsx b/src/components/mdx/StorybookDemo/StorybookDemo.tsx index c1fe46f..24e2d9b 100644 --- a/src/components/mdx/StorybookDemo/StorybookDemo.tsx +++ b/src/components/mdx/StorybookDemo/StorybookDemo.tsx @@ -67,6 +67,7 @@ export type StorybookDemoProps = { storybookUrl: string globalTypes: Record componentProperties: ComponentProperty[] + globalControls?: ('themeFont' | 'themeColor')[] } export const StorybookDemo: React.FC = ({ @@ -75,6 +76,7 @@ export const StorybookDemo: React.FC = ({ storyId, storybookUrl, globalTypes, + globalControls, componentProperties = [], }) => { const colorMode = useColorMode() @@ -115,10 +117,15 @@ export const StorybookDemo: React.FC = ({ 'title,subtitle,toolbar' + (storyId ? ',description,canvas-border,code' : ''), ) - url.searchParams.set('globalControls', 'true') + url.searchParams.set( + 'globalControls', + globalControls && globalControls.length + ? globalControls.join(',') + : 'false', + ) return url.toString() - }, [docId, storyId, globalProps, props]) + }, [docId, storyId, globalProps, globalControls, props]) return (
diff --git a/static/TypographyWebEnvironment.png b/static/TypographyWebEnvironment.png deleted file mode 100644 index b8cb3e9..0000000 Binary files a/static/TypographyWebEnvironment.png and /dev/null differ