You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _utilities/layout-grid.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ Breaking it down, here's how it works:
65
65
66
66
{:.usa-content-list}
67
67
-**Containers:**`grid-container` centers the container and gives it a maximum width of `desktop` (1024px). If you would like the grid to span the full width of the page, do not use `grid-container`.
68
-
-`grid-container` can also accept any breakpoint width like `grid-container-tablet-lg` or `grid-container-widescreen`. Set the default max width with `$theme-site-max-width` in `uswds-theme-spacing.scss`.
68
+
-`grid-container` can also accept any breakpoint width like `grid-container-tablet-lg` or `grid-container-widescreen`. Set the default max width with `$theme-grid-container-max-width` in `uswds-theme-spacing.scss`.
69
69
- By default, `grid-container`s have padding-x of [2 units]({{ site.baseurl }}/design-tokens/spacing-units/){:.token}, with a padding-x of [4 units]({{ site.baseurl }}/design-tokens/spacing-units/){:.token} at `desktop` and wider. Control these values with the values of `$theme-site-margins-mobile-width`, `$theme-site-margins-width` and `$theme-site-margins-beakpoint` in `uswds-theme-spacing.scss`.
70
70
-**Rows:** Columns must have a `grid-row` as a parent.
71
71
-**Columns:**`grid-col-[1-12]` indicates the number of columns the item spans out of a possible 12 per row. So, if you want three equal-width columns across, use `grid-col-4` for each item.
Copy file name to clipboardExpand all lines: pages/design-tokens/overview.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ We can't include tokens directly in our Sass, like `max-width: 1`, rather we use
56
56
Tokens can, themselves, be expressed as variables. And this is how most USWDS theme settings work. For instance, the following is an example of theme settings from `_uswds-theme-spacing.scss` showing settings variables assigned spacing unit tokens:
57
57
58
58
```
59
-
$theme-site-max-width: 'desktop';
59
+
$theme-grid-container-max-width: 'desktop';
60
60
$theme-site-margins-breakpoint: 'desktop';
61
61
$theme-site-margins-width: 4;
62
62
$theme-site-margins-mobile-width: 2;
@@ -67,7 +67,7 @@ USWDS component Sass uses those variableized tokens to build component styles:
@@ -109,7 +109,7 @@ In general, USWDS sets variables with tokens, and passes those variables into fu
109
109
110
110
## Using design tokens
111
111
112
-
Use design tokens directly to set the value of settings variables in USWDS theme settings files, like `$theme-site-max-width: 'desktop'`. Otherwise, use functions, mixins, or utility classes as in the examples below. See individual design token section for more details.
112
+
Use design tokens directly to set the value of settings variables in USWDS theme settings files, like `$theme-grid-container-max-width: 'desktop'`. Otherwise, use functions, mixins, or utility classes as in the examples below. See individual design token section for more details.
0 commit comments