- ${token?.name} |
- --diamond-${token?.group}-${token?.name} |
- ${token?.value} |
+ ${token?.name || token?.group} |
+
+ --diamond-${token?.group}${token?.name
+ ? `-${token?.name}`
+ : ''}
+ |
+
+ ${token?.value?.replace(/(\(\s|\s\))/g, '')}
+
+ |
`,
)}
diff --git a/docs/recipes/Typography.stories.ts b/docs/foundations/Typography.stories.ts
similarity index 73%
rename from docs/recipes/Typography.stories.ts
rename to docs/foundations/Typography.stories.ts
index e34c59b..a6c3d0d 100644
--- a/docs/recipes/Typography.stories.ts
+++ b/docs/foundations/Typography.stories.ts
@@ -1,8 +1,23 @@
import { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
+const description = `
+Diamond comes with a set of base typography styles that can be used to style
+the typographic HTML elements, such as h1-4 and paragraphs.
+
+There are also a wide range of [text modifier classes](?path=/docs/content-text--docs) that can be used to
+update font sizes, weights, colours, etc on the fly.
+`;
+
export default {
- title: 'Recipes/Typography',
+ title: 'Foundations/Typography',
+ parameters: {
+ docs: {
+ description: {
+ component: description,
+ },
+ },
+ },
};
export const Headings: StoryObj = {
diff --git a/docs/tokens/Border.mdx b/docs/foundations/tokens/Border.mdx
similarity index 56%
rename from docs/tokens/Border.mdx
rename to docs/foundations/tokens/Border.mdx
index 2e8da75..4853a70 100644
--- a/docs/tokens/Border.mdx
+++ b/docs/foundations/tokens/Border.mdx
@@ -1,8 +1,8 @@
import { Meta, Source, Canvas } from '@storybook/blocks';
-import code from '../../styles/tokens/border.css?inline';
-import * as ThemingStories from '../recipes/Theming.stories.ts'
+import code from '../../../styles/tokens/border.css?inline';
+import * as ThemingStories from '../../recipes/Theming.stories.ts'
-