diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 8f5b9b07c3..bbeedefd87 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -75,6 +75,7 @@ export default defineConfig({ }, "contributing/standard-library", "contributing/library-modules", + "contributing/style-guide", ], }, { diff --git a/docs/src/components/ColorTable.astro b/docs/src/components/ColorTable.astro new file mode 100644 index 0000000000..fb9b3039f7 --- /dev/null +++ b/docs/src/components/ColorTable.astro @@ -0,0 +1,43 @@ +--- +const { data } = Astro.props; + +const flavors = ['latte', 'frappe', 'macchiato', 'mocha']; +--- + + + + + + + {data.map((row) => ( + + + + + + ))} +
FunctionColors
{row.function}{row.colors.map((color) => {color}
)}
+ {row.colors.map((color) => ( +
+ {flavors.map((flavor) => + {`${flavor.charAt(0).toUpperCase() + )} +
+ ))} +
+ + diff --git a/docs/src/content/docs/contributing/style-guide.mdx b/docs/src/content/docs/contributing/style-guide.mdx new file mode 100644 index 0000000000..d237ab10a1 --- /dev/null +++ b/docs/src/content/docs/contributing/style-guide.mdx @@ -0,0 +1,27 @@ +--- +title: Style Guide +description: Userstyles web elements style guide. +--- + +import ColorTable from '../../../components/ColorTable.astro'; + +## Inputs + + + + +## Links + +