diff --git a/src/assets/css/blocks/styleguide.css b/src/assets/css/blocks/styleguide.css index 8bdf14d..6243ee8 100644 --- a/src/assets/css/blocks/styleguide.css +++ b/src/assets/css/blocks/styleguide.css @@ -1,3 +1,13 @@ +.styleguide { + --region-space-top: var(--space-xl-2xl); + --spot-color: color-mix(in oklab, var(--color-bg) 97%, var(--color-text)); +} + +.styleguide section { + --region-space-bottom: var(--space-l-xl); + --region-space-top: var(--space-l-xl); +} + .styleguide :is(h2, h3) { font-size: var(--size-step-0); font-family: var(--font-base); @@ -8,12 +18,6 @@ letter-spacing: var(--tracking-wide); } -.styleguide section { - padding: var(--space-l-xl); - outline: 2px solid var(--color-bg-accent); /* Increase the outline thickness for better visibility */ - outline-offset: -1px; /* Negative value to make outlines overlap */ -} - .styleguide .colors { --cluster-vertical-alignment: flex-start; } diff --git a/src/pages/styleguide.njk b/src/pages/styleguide.njk index 15ce721..e0b08c4 100644 --- a/src/pages/styleguide.njk +++ b/src/pages/styleguide.njk @@ -4,7 +4,9 @@ permalink: /styleguide/index.html layout: base eleventyExcludeFromCollections: true customColors: + - property: '--color-text' - property: '--color-text-accent' + - property: '--color-bg' - property: '--color-bg-accent' - property: '--color-bg-accent-2' - property: '--color-primary' @@ -18,19 +20,19 @@ customGradients: -
-
-
-

{{ title }}

+
+
+

{{ title }}

-

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

-
+

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

+ -
-

Colors

+
+
+

Colors

{{ designTokens.colors.description }}

@@ -46,7 +48,7 @@ customGradients: {%- endfor %} -

Custom created colors

+

Custom created colors

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

    @@ -60,7 +62,7 @@ customGradients: {%- endfor %}
-

Gradients

+

Gradients

    {%- for gradient in customGradients %} @@ -76,26 +78,28 @@ customGradients: {%- endfor %}
+
-
-

Fonts

+
+

Fonts

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

    - {{ font.name }} -

    -

    {{ font.description }}

    -

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

    - var(--font-{{ font.name | slugify }}) -
  • - {%- endfor %} -
-
+
    + {%- for font in designTokens.fonts.items %} +
  • +

    + {{ font.name }} +

    +

    {{ font.description }}

    +

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

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

Sizes

+
+
+

Sizes

{{ designTokens.sizes.description }}. Fluid type and space scales were @@ -121,40 +125,39 @@ customGradients: {%- endfor %}

+
-
-

Spacing

+
+

Spacing

-

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

+

+ {{ 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 }}) -
-
-
-
-
-
-
+ + {%- for space in designTokens.spacing.items %} + + + + + + {%- endfor %} +
+

{{ space.name }}

+
+ +

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

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