There are {{ sizes | size }} sizes to choose from:
@@ -62,14 +69,13 @@ {% for size in sizes %}is-size-{{ forloop.index }}
+ is-{{ size.name }}
{{ initial_vars[key].value }}
+ {{ size.value }}
diff --git a/docs/_data/sizes-list.json b/docs/_data/sizes-list.json
new file mode 100644
index 000000000..e28dea247
--- /dev/null
+++ b/docs/_data/sizes-list.json
@@ -0,0 +1,30 @@
+[
+ {
+ "name": "size-1",
+ "value": "3rem"
+ },
+ {
+ "name": "size-2",
+ "value": "2.5rem"
+ },
+ {
+ "name": "size-3",
+ "value": "2rem"
+ },
+ {
+ "name": "size-4",
+ "value": "1.5rem"
+ },
+ {
+ "name": "size-5",
+ "value": "1.25rem"
+ },
+ {
+ "name": "size-6",
+ "value": "1rem"
+ },
+ {
+ "name": "size-7",
+ "value": "0.75rem"
+ }
+]
diff --git a/docs/documentation/helpers/typography-helpers.html b/docs/documentation/helpers/typography-helpers.html
index c8a0aca57..e4beffb73 100644
--- a/docs/documentation/helpers/typography-helpers.html
+++ b/docs/documentation/helpers/typography-helpers.html
@@ -11,41 +11,48 @@
- helpers-typography
---
-{% assign initial_vars =
-site.data.variables.utilities['initial-variables'].by_name %} {% assign sizes =
-site.data.variables.utilities['derived-variables'].by_name['$sizes'].value |
-split: ' ' %} {% capture thead %}
+{% assign sizes = site.data['sizes-list'] %}
+
+{% capture thead %}
-{% endcapture %} {% capture size1 %}
+{% endcapture %}
+
+{% capture size1 %}
Class
- {% for breakpoint_hash in site.data.breakpoints %} {% assign breakpoint =
- breakpoint_hash[1] %}
-
- {{ breakpoint.name }}
+ {% for breakpoint_hash in site.data.breakpoints %}
+ {% assign breakpoint = breakpoint_hash[1] %}
+
- {% if breakpoint.id == 'mobile' %} Up to
- {{ breakpoint.to }}px
- {% elsif breakpoint.id == 'fullhd' %}
- {{ breakpoint.from }}px
and above {% else %} Between
- {{ breakpoint.from }}px
and
- {{ breakpoint.to }}px
- {% endif %}
-
+ {{ breakpoint.name }}
{% endfor %}
+ {% if breakpoint.id == 'mobile' %} Up to
+ {{ breakpoint.to }}px
+ {% elsif breakpoint.id == 'fullhd' %}
+ {{ breakpoint.from }}px
and above {% else %} Between
+ {{ breakpoint.from }}px
and
+ {{ breakpoint.to }}px
+ {% endif %}
+
{{ initial_vars['$size-1'].value }}
There are {{ sizes | size }} sizes to choose from:
@@ -62,14 +69,13 @@ {% for size in sizes %}is-size-{{ forloop.index }}
+ is-{{ size.name }}
{{ initial_vars[key].value }}
+ {{ size.value }}