diff --git a/src/pages/styleguide.njk b/src/pages/styleguide.njk new file mode 100644 index 0000000..15ce721 --- /dev/null +++ b/src/pages/styleguide.njk @@ -0,0 +1,160 @@ +--- +title: Style Guide +permalink: /styleguide/index.html +layout: base +eleventyExcludeFromCollections: true +customColors: + - property: '--color-text-accent' + - property: '--color-bg-accent' + - property: '--color-bg-accent-2' + - property: '--color-primary' + - property: '--color-secondary' + - property: '--color-tertiary' +customGradients: + - property: '--gradient-rainbow' + - property: '--gradient-conic' + - property: '--gradient-stripes' +--- + + + +
+
+
+

{{ title }}

+ +

+ All design tokens can be found in src/_data/designTokens.
+ This includes all baseline fonts, colors, sizes, and spacing. +

+
+ +
+

Colors

+ +

{{ designTokens.colors.description }}

+ +
    + {%- for color in designTokens.colors.items %} +
  • +
    + +

    + var(--color-{{ color.name | slugify }}) +

    +
  • + {%- endfor %} +
+ +

Custom created colors

+

in variables.css. Some only change for dark theme.

+ +
    + {%- for color in customColors %} +
  • +
    +

    + {{ color.property }} +

    +
  • + {%- endfor %} +
+ +

Gradients

+ +
    + {%- for gradient in customGradients %} +
  • +
    + +

    + {{ gradient.property }} +
    + +

    +
  • + {%- endfor %} +
+
+ +
+

Fonts

+ +
    + {%- for font in designTokens.fonts.items %} +
  • +

    + {{ font.name }} +

    +

    {{ font.description }}

    +

    Font Families: {{ font.value | join(', ')}}

    + var(--font-{{ font.name | slugify }}) +
  • + {%- endfor %} +
+
+ +
+

Sizes

+ +

+ {{ designTokens.sizes.description }}. Fluid type and space scales were + generated with Utopia. +

+ + + {%- for size in designTokens.sizes.items %} + + + + + + {%- endfor %} +
+

{{ size.name }}

+
+ +

{{ size.min }}px to {{ size.max }}px

+ var(--size-{{ size.name | slugify }}) +
+
+

{{ size.name }}

+
+
+ +
+

Spacing

+ +

+ {{ designTokens.spacing.description }}
+ Fluid type and space scales were + generated with Utopia. +

+ + + {%- for space in designTokens.spacing.items %} + + + + + + {%- endfor %} +
+

{{ space.name }}

+
+ +

{{ space.min }}px to {{ space.max }}px

+ var(--space-{{ space.name | slugify }}) +
+
+
+
+
+
+