diff --git a/src/docs/styles/tokens/intro.stories.mdx b/src/docs/styles/tokens/intro.stories.mdx index 8a536794..e28108a7 100644 --- a/src/docs/styles/tokens/intro.stories.mdx +++ b/src/docs/styles/tokens/intro.stories.mdx @@ -14,13 +14,13 @@ import color from '$lib/scss/tokens/text/\_color.scss?inline'; # Style tokens -The heart of the design system used to style all the components in this library is our style token system. Style tokens give us an extremely flexible set of designs that can be easily customised or overwritten and make for the most concise, smallest CSS stylesheets possible. +All of the components in this library have been styled using a system of tokens. The style tokens give us a lot of flexibility to easily customise components' look, overwrite with more specific styles easily and ultimately make for the most concise CSS definitions possible. -While the token system is designed for our pre-made components, you can also use them to help shortcut the time you spend writing CSS. +You can also use our style tokens to help shortcut the time you spend writing CSS and reinventing solid design conventions. ## What's a "token"? -A token represents the value for an individual style rule, like `font-size` or `color`. Each token sets just one style rule, and multiple tokens are combined together to style an element, like a `
` below: +A token represents the value for an individual style rule, like `font-size` or `color`. Each token sets just one style rule, and multiple tokens are combined together to style an element, like a ``.Lorem ipsum...
+``` + +For SCSS includes, the concept is the same, but you need to escape the `!` by adding an extra `\` to make it valid syntax: + +```scss +p { + @include \!font-bold; +} +``` diff --git a/src/docs/styles/tokens/styles.scss b/src/docs/styles/tokens/styles.scss index 03f26242..8bb22cc4 100644 --- a/src/docs/styles/tokens/styles.scss +++ b/src/docs/styles/tokens/styles.scss @@ -3,4 +3,7 @@ div.storybook-mermaid-graph { span { font-size: 14px; } + p { + margin: 0; + } }