@codeforamerica/marcomms-design-system 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/package.json +2 -1
  2. package/src/components/accordion.js +141 -0
  3. package/src/components/accordion.stories.js +56 -0
  4. package/src/components/avatar.js +62 -0
  5. package/src/components/avatar.stories.js +27 -0
  6. package/src/components/banner.js +152 -0
  7. package/src/components/banner.stories.js +115 -0
  8. package/src/components/bar.js +102 -0
  9. package/src/components/bar.stories.js +22 -0
  10. package/src/components/blob.js +119 -0
  11. package/src/components/blob.stories.js +64 -0
  12. package/src/components/box.js +55 -0
  13. package/src/components/box.stories.js +24 -0
  14. package/src/components/breadcrumbs.js +80 -0
  15. package/src/components/breadcrumbs.stories.js +27 -0
  16. package/src/components/button.js +167 -0
  17. package/src/components/button.scss +162 -0
  18. package/src/components/button.stories.js +49 -0
  19. package/src/components/callout.js +62 -0
  20. package/src/components/callout.stories.js +20 -0
  21. package/src/components/card.js +403 -0
  22. package/src/components/card.stories.js +170 -0
  23. package/src/components/carousel.js +182 -0
  24. package/src/components/carousel.stories.js +61 -0
  25. package/src/components/cta.js +99 -0
  26. package/src/components/cta.stories.js +22 -0
  27. package/src/components/details.scss +71 -0
  28. package/src/components/details.stories.js +27 -0
  29. package/src/components/flexible-layout.js +126 -0
  30. package/src/components/flexible-layout.stories.js +48 -0
  31. package/src/components/form-elements.scss +305 -0
  32. package/src/components/form-elements.stories.js +134 -0
  33. package/src/components/icon.js +41 -0
  34. package/src/components/icon.scss +31 -0
  35. package/src/components/icon.stories.js +16 -0
  36. package/src/components/label.js +63 -0
  37. package/src/components/label.stories.js +29 -0
  38. package/src/components/link-list.scss +80 -0
  39. package/src/components/link-list.stories.js +52 -0
  40. package/src/components/loader.scss +24 -0
  41. package/src/components/loader.stories.js +12 -0
  42. package/src/components/logo-card.js +93 -0
  43. package/src/components/logo-card.stories.js +48 -0
  44. package/src/components/nav.js +99 -0
  45. package/src/components/nav.stories.js +40 -0
  46. package/src/components/page-nav.js +171 -0
  47. package/src/components/page-nav.stories.js +112 -0
  48. package/src/components/pager.js +98 -0
  49. package/src/components/pager.stories.js +30 -0
  50. package/src/components/pagination.js +116 -0
  51. package/src/components/pagination.stories.js +30 -0
  52. package/src/components/person-card.js +240 -0
  53. package/src/components/person-card.stories.js +58 -0
  54. package/src/components/pill.js +33 -0
  55. package/src/components/pill.stories.js +23 -0
  56. package/src/components/promo.js +83 -0
  57. package/src/components/promo.stories.js +37 -0
  58. package/src/components/pullquote.js +42 -0
  59. package/src/components/pullquote.stories.js +16 -0
  60. package/src/components/quote.js +84 -0
  61. package/src/components/quote.stories.js +23 -0
  62. package/src/components/reveal.js +83 -0
  63. package/src/components/reveal.stories.js +40 -0
  64. package/src/components/slide.js +121 -0
  65. package/src/components/slide.stories.js +53 -0
  66. package/src/components/social-icon.js +233 -0
  67. package/src/components/social-icon.stories.js +36 -0
  68. package/src/components/stat.js +92 -0
  69. package/src/components/stat.stories.js +28 -0
  70. package/src/components/tab-list.js +114 -0
  71. package/src/components/tab-list.stories.js +18 -0
  72. package/src/components/tab.js +95 -0
  73. package/src/components/tab.stories.js +29 -0
  74. package/src/components/tile.js +150 -0
  75. package/src/components/tile.stories.js +41 -0
  76. package/src/components/transcript.js +44 -0
  77. package/src/components/transcript.stories.js +167 -0
  78. package/src/core/_base.scss +86 -0
  79. package/src/core/_grid.scss +295 -0
  80. package/src/core/_helpers.scss +111 -0
  81. package/src/core/_layout.scss +79 -0
  82. package/src/core/_reset.scss +53 -0
  83. package/src/core/_tokens.scss +251 -0
  84. package/src/core/_typography.scss +426 -0
  85. package/src/core/_wordpress.scss +27 -0
  86. package/src/core/colors.mdx +100 -0
  87. package/src/core/typography.mdx +66 -0
  88. package/src/shared/common.js +15 -0
  89. package/src/shared/layout.js +14 -0
  90. package/src/shared/typography.js +111 -0
  91. package/src/styles.scss +16 -0
@@ -0,0 +1,251 @@
1
+ @use 'grid';
2
+
3
+ :root {
4
+
5
+ // Color
6
+
7
+ --black: #000;
8
+ --white: #fff;
9
+
10
+ --black-10: rgba(0,0,0,0.1);
11
+ --black-20: rgba(0,0,0,0.2);
12
+ --black-40: rgba(0,0,0,0.4);
13
+ --black-60: rgba(0,0,0,0.6);
14
+ --black-80: rgba(0,0,0,0.8);
15
+
16
+ --white-20: rgba(255,255,255,0.2);
17
+ --white-40: rgba(255,255,255,0.4);
18
+ --white-60: rgba(255,255,255,0.6);
19
+ --white-80: rgba(255,255,255,0.8);
20
+
21
+ --gray-20: #ececec;
22
+ --gray-40: #b4b4b4;
23
+ --gray-60: #555555;
24
+ --gray-80: #292929;
25
+
26
+ --purple-10: #f4f4fb;
27
+ --purple-20: #DBDAF1;
28
+ --purple-40: #ADA9FF;
29
+ --purple-60: #4B49B2;
30
+ --purple-80: #2B1A78;
31
+
32
+ --red-20: #FBDADC;
33
+ --red-40: #FF999F;
34
+ --red-60: #AF121D;
35
+ --red-80: #5C0A0F;
36
+
37
+ --blue-20: #E6EBF9;
38
+ --blue-40: #B3C7FF;
39
+ --blue-60: #7595F0;
40
+ --blue-80: #172C68;
41
+
42
+ --yellow-20: #FFEBCC;
43
+ --yellow-40: #FFD699;
44
+ --yellow-60: #F2AA40;
45
+ --yellow-80: #663D00;
46
+
47
+ --green-20: #D6F5ED;
48
+ --green-40: #ADF0E0;
49
+ --green-60: #39AA8E;
50
+ --green-80: #004239;
51
+
52
+ --sand-20: #F5F0ED;
53
+ --sand-40: #F8D5BF;
54
+ --sand-60: #C19F8B;
55
+ --sand-80: #3D3129;
56
+
57
+ --brand-purple: var(--purple-80);
58
+ --brand-red: var(--red-60);
59
+
60
+ --accent-color: var(--purple-60);
61
+
62
+ --text-color: var(--black);
63
+
64
+ --base-link-color: var(--purple-80);
65
+ --base-link-hover-color: var(--red-60);
66
+
67
+ --link-color: var(--base-link-color);
68
+ --link-hover-color: var(--base-link-hover-color);
69
+
70
+ // =====
71
+
72
+ // Spacing
73
+
74
+ /* Layout spacing (based on REM) */
75
+
76
+ --spacing-layout-0: 0;
77
+ --spacing-layout-half: 0.75rem;
78
+ --spacing-layout-1: 1.5rem;
79
+ --spacing-layout-2: 3rem;
80
+ --spacing-layout-3: 4.5rem;
81
+ --spacing-layout-4: 6rem;
82
+ --spacing-layout-5: 7.5rem;
83
+ --spacing-layout-6: 9rem;
84
+ --spacing-layout-7: 10.5rem;
85
+ --spacing-layout-8: 12rem;
86
+ --spacing-layout-9: 13.5rem;
87
+
88
+ /* Component spacing (based on PX) */
89
+
90
+ --spacing-component-0: 0;
91
+ --spacing-component-1: 4px;
92
+ --spacing-component-2: 8px;
93
+ --spacing-component-3: 16px;
94
+ --spacing-component-4: 32px;
95
+ --spacing-component-5: 64px;
96
+ --spacing-component-6: 128px;
97
+ --spacing-component-7: 256px;
98
+ --spacing-component-8: 512px;
99
+ --spacing-component-9: 1024px;
100
+
101
+ // =====
102
+
103
+ // Layout and grid
104
+
105
+ /* Breakpoints */
106
+
107
+ --breakpoint-mobile: 480px;
108
+ --breakpoint-tablet: 768px;
109
+ --breakpoint-desktop: 1024px;
110
+ --breakpoint-widescreen: 1600px;
111
+
112
+ /* Layout */
113
+
114
+ --gutter-width: var(--spacing-layout-1);
115
+ --outer-margin: var(--spacing-layout-1);
116
+ --grid-max-width: 1200px;
117
+ --grid-max-width-wp: calc(var(--grid-max-width) - var(--outer-margin) * 2);
118
+
119
+ /* Column sizes */
120
+
121
+ @for $i from 1 through 12 {
122
+ --column-span-#{$i}: #{grid.column-span($i)};
123
+ }
124
+
125
+ // =====
126
+
127
+ // Typography
128
+
129
+ --font-family-serif: 'Source Serif 4', serif;
130
+ --font-family-sans-serif: 'Source Sans 3', sans-serif;
131
+
132
+ --font-family-base: var(--font-family-sans-serif);
133
+ --font-family-heading: var(--font-family-serif);
134
+ --font-family-display-1: var(--font-family-heading);
135
+ --font-family-display-2: var(--font-family-heading);
136
+ --font-family-h1: var(--font-family-heading);
137
+ --font-family-h2: var(--font-family-heading);
138
+ --font-family-h3: var(--font-family-heading);
139
+ --font-family-h4: var(--font-family-heading);
140
+ --font-family-eyebrow: var(--base-font-family);
141
+
142
+ --font-size-base: 20px;
143
+ --font-size-display-1: 3.052rem; // 61.04px
144
+ --font-size-display-2: 2.441rem; // 48.83px
145
+ --font-size-h1: 1.953rem; // 39.06px
146
+ --font-size-h2: 1.563rem; // 31.25px
147
+ --font-size-h3: 1.25rem; // 25px
148
+ --font-size-h4: 1rem; // 20px
149
+ --font-size-eyebrow: 0.7rem; // 16px
150
+ --font-size-extra-large: var(--font-size-h2);
151
+ --font-size-large: var(--font-size-h3);
152
+ --font-size-small: 0.8rem;
153
+
154
+ // Font size aliases
155
+ --font-size-sm: var(--font-size-small);
156
+ --font-size-md: var(--font-size-base);
157
+ --font-size-lg: var(--font-size-large);
158
+ --font-size-xl: var(--font-size-extra-large);
159
+ --font-size-xxl: var(--font-size-display-2);
160
+ --font-size-xxxl: var(--font-size-display-1);
161
+
162
+ --font-weight-regular: 400;
163
+ --font-weight-bold: 700;
164
+ --font-weight-display-1: var(--font-weight-bold);
165
+ --font-weight-display-2: var(--font-weight-bold);
166
+ --font-weight-h1: var(--font-weight-bold);
167
+ --font-weight-h2: var(--font-weight-bold);
168
+ --font-weight-h3: var(--font-weight-bold);
169
+ --font-weight-h4: var(--font-weight-bold);
170
+ --font-weight-eyebrow: var(--font-weight-bold);
171
+
172
+ --line-height-base: calc(1.5 * var(--font-size-base, 20px));
173
+ --line-height-display-1: 1.2em;
174
+ --line-height-display-2: 1.2em;
175
+ --line-height-h1: 1.2em;
176
+ --line-height-h2: 1.2em;
177
+ --line-height-h3: 1.3em;
178
+ --line-height-h4: 1.3em;
179
+ --line-height-eyebrow: 1em;
180
+ --line-height-extra-large: var(--line-height-h2);
181
+ --line-height-large: var(--line-height-h3);
182
+ --line-height-small: 1.6em;
183
+
184
+ // Line height aliases
185
+ --line-height-sm: var(--line-height-small);
186
+ --line-height-md: var(--line-height-base);
187
+ --line-height-lg: var(--line-height-large);
188
+ --line-height-xl: var(--line-height-extra-large);
189
+ --line-height-xxl: var(--line-height-display-2);
190
+ --line-height-xxxl: var(--line-height-display-1);
191
+
192
+ --letter-spacing-base: normal;
193
+ --letter-spacing-display-1: normal;
194
+ --letter-spacing-display-2: normal;
195
+ --letter-spacing-h1: normal;
196
+ --letter-spacing-h2: normal;
197
+ --letter-spacing-h3: normal;
198
+ --letter-spacing-h4: normal;
199
+ --letter-spacing-eyebrow: 0.1em;
200
+ --letter-spacing-small: normal;
201
+
202
+ // Letter spacing aliases
203
+ --letter-spacing-sm: var(--letter-spacing-small);
204
+ --letter-spacing-md: var(--letter-spacing-base);
205
+ --letter-spacing-lg: var(--letter-spacing-large);
206
+ --letter-spacing-xl: var(--letter-spacing-extra-large);
207
+ --letter-spacing-xxl: var(--letter-spacing-display-2);
208
+ --letter-spacing-xxxl: var(--letter-spacing-display-1);
209
+
210
+ --text-underline-offset: 0.3em;
211
+
212
+ // =====
213
+
214
+ // Borner thicknesses
215
+
216
+ --hairline: 1px;
217
+ --thin: 2px;
218
+ --medium: 4px;
219
+ --thick: 8px;
220
+
221
+ // Focus Outline
222
+ --focus-color: var(--blue-40);
223
+ --focus-outline: var(--medium) solid var(--focus-color);
224
+
225
+ // =====
226
+
227
+ // Border radius
228
+
229
+ --rounded-corners: var(--spacing-component-2);
230
+
231
+ // =====
232
+
233
+ // Shadows
234
+
235
+ --shadow-color: rgba(0,0,0,0.1);
236
+
237
+ --shadow-small:
238
+ 0.2px 0.7px 0.8px var(--shadow-color),
239
+ 0.9px 3px 3.5px -2.5px var(--shadow-color),
240
+ -2px -2px 2px -2px var(--shadow-color);
241
+ --shadow-medium:
242
+ 0.2px 0.7px 0.8px var(--shadow-color),
243
+ 1.1px 3.8px 4.5px -1.2px var(--shadow-color),
244
+ 4.3px 14.8px 17.3px -2.5px var(--shadow-color),
245
+ -2px -2px 2px -2px var(--shadow-color);
246
+ --shadow-large:
247
+ 0.2px 0.7px 0.8px var(--shadow-color),
248
+ 2.9px 10px 11.7px -0.8px var(--shadow-color),
249
+ 8.6px 30px 35.1px -1.7px var(--shadow-color),
250
+ 22.4px 77.8px 91.1px -2.5px var(--shadow-color);
251
+ }
@@ -0,0 +1,426 @@
1
+ @use '../components/icon';
2
+
3
+ // =====
4
+
5
+ // Typography spacing
6
+
7
+ // Add a single space around paragraphs, blockquotes, and lists
8
+ p, ul, ol, blockquote {
9
+ & + * {
10
+ margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));
11
+ }
12
+ * + & {
13
+ margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));
14
+ }
15
+ }
16
+
17
+ h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-1, .display-2 {
18
+ // Add a single line space after headings
19
+ & + * {
20
+ margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));
21
+ }
22
+
23
+ // Add three line spaces before headings
24
+ * + & {
25
+ --spacing: var(--spacing-layout-3);
26
+
27
+ margin-block-start: --spacing;
28
+ }
29
+
30
+ // Only add a single space between headings and other headings
31
+ & + & {
32
+ --spacing: var(--spacing-layout-1);
33
+ }
34
+
35
+ // Reduce space after breadcrumbs and eyebrows
36
+ cfa-breadcrumbs + &,
37
+ .eyebrow + & {
38
+ margin-block-start: var(--spacing-layout-half) !important;
39
+ }
40
+ }
41
+
42
+ h1, .h1, .display-1, .display-2 {
43
+ text-wrap: balance;
44
+ }
45
+
46
+ // =====
47
+
48
+ // Font styles
49
+
50
+ .regular {
51
+ font-family: var(--font-family-base);
52
+ font-size: var(--font-size-base);
53
+ line-height: var(--line-height-base);
54
+ }
55
+
56
+ .display-1 {
57
+ font-family: var(--font-family-heading);
58
+ font-size: var(--font-size-display-1);
59
+ font-weight: bold;
60
+ line-height: var(--line-height-display-1);
61
+ letter-spacing: var(--letter-spacing-display-1);
62
+ }
63
+
64
+ .display-2 {
65
+ font-family: var(--font-family-heading);
66
+ font-size: var(--font-size-display-2);
67
+ font-weight: bold;
68
+ line-height: var(--line-height-display-2);
69
+ letter-spacing: var(--letter-spacing-display-2);
70
+ }
71
+
72
+ h1,
73
+ .h1 {
74
+ font-family: var(--font-family-heading);
75
+ font-size: var(--font-size-h1);
76
+ font-weight: bold;
77
+ line-height: var(--line-height-h1);
78
+ letter-spacing: var(--letter-spacing-h1);
79
+ }
80
+
81
+ h2,
82
+ .h2 {
83
+ font-family: var(--font-family-heading);
84
+ font-size: var(--font-size-h2);
85
+ font-weight: bold;
86
+ line-height: var(--line-height-h2);
87
+ letter-spacing: var(--letter-spacing-h2);
88
+ }
89
+
90
+ h3,
91
+ .h3 {
92
+ font-family: var(--font-family-heading);
93
+ font-size: var(--font-size-h3);
94
+ font-weight: bold;
95
+ line-height: var(--line-height-h3);
96
+ letter-spacing: var(--letter-spacing-h3);
97
+ }
98
+
99
+ h4,
100
+ .h4 {
101
+ font-family: var(--font-family-heading);
102
+ font-size: var(--font-size-h4);
103
+ font-weight: bold;
104
+ line-height: var(--line-height-h4);
105
+ letter-spacing: var(--letter-spacing-h4);
106
+ }
107
+
108
+ .extra-large {
109
+ font-size: var(--font-size-extra-large);
110
+ line-height: var(--line-height-extra-large);
111
+ letter-spacing: var(--letter-spacing-extra-large);
112
+ }
113
+
114
+ .large {
115
+ font-size: var(--font-size-large);
116
+ line-height: var(--line-height-large);
117
+ letter-spacing: var(--letter-spacing-large);
118
+ }
119
+
120
+ .small {
121
+ font-size: var(--font-size-small);
122
+ line-height: var(--line-height-small);
123
+ letter-spacing: var(--letter-spacing-small);
124
+ }
125
+
126
+ .eyebrow,
127
+ .is-style-eyebrow /* WordPress support */ {
128
+ font-family: var(--font-family-sans-serif);
129
+ font-size: var(--font-size-eyebrow);
130
+ font-weight: var(--font-weight-eyebrow);
131
+ letter-spacing: var(--letter-spacing-eyebrow);
132
+ line-height: var(--line-height-eyebrow);
133
+ text-transform: uppercase;
134
+ }
135
+
136
+ .eyebrow-with-line,
137
+ .is-style-eyebrow-with-line /* WordPress support */ {
138
+ align-items: center;
139
+ color: var(--text-color);
140
+ display: flex;
141
+ font-family: var(--font-family-eyebrow);
142
+ font-size: var(--font-size-eyebrow);
143
+ font-weight: var(--font-weight-eyebrow);
144
+ letter-spacing: var(--letter-spacing-eyebrow);
145
+ line-height: var(--line-height-eyebrow);
146
+ margin-block-end: var(--spacing-layout-half);
147
+ position: relative;
148
+ text-transform: uppercase;
149
+
150
+ &::after {
151
+ border-block-end: var(--hairline) solid currentColor;
152
+ content: "";
153
+ flex-grow: 1;
154
+ margin-left: var(--spacing-component-3);
155
+ }
156
+ }
157
+
158
+ .subtle {
159
+ opacity: 0.6;
160
+ }
161
+
162
+ .serif {
163
+ font-family: var(--font-family-serif);
164
+ }
165
+
166
+ .sans-serif {
167
+ font-family: var(--font-family-sans-serif);
168
+ }
169
+
170
+ i,
171
+ em,
172
+ .italic {
173
+ font-style: italic;
174
+ }
175
+
176
+ b,
177
+ strong,
178
+ .strong {
179
+ font-weight: bold;
180
+ }
181
+
182
+ .normal {
183
+ font-weight: normal;
184
+ }
185
+
186
+ .prominent-link,
187
+ a.prominent-link {
188
+ --accent-color: var(--purple-60);
189
+
190
+ font-weight: bold;
191
+ text-decoration: underline;
192
+ text-decoration-color: var(--accent-color);
193
+ text-decoration-thickness: var(--medium);
194
+ text-underline-offset: 0.4em;
195
+ transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
196
+
197
+ &:hover {
198
+ --accent-color: var(--red-60);
199
+ }
200
+
201
+ &:not(:has(cfa-icon))::after {
202
+ @include icon.icon;
203
+
204
+ content: "arrow_right_alt";
205
+ display: inline-block;
206
+ padding-inline-start: 0.1em;
207
+ text-decoration: none;
208
+ transition: padding 0.2s ease-in-out;
209
+ width: 1em;
210
+ }
211
+
212
+ &:not(:has(cfa-icon)):hover::after {
213
+ padding-inline-start: 0.3em;
214
+ }
215
+
216
+ cfa-icon {
217
+ text-decoration: none;
218
+ }
219
+ }
220
+
221
+ .white-text,
222
+ .text-light /* fallback */ {
223
+ -moz-osx-font-smoothing: grayscale; // Sharper antialising for white text on a dark background
224
+ -webkit-font-smoothing: antialiased; // Sharper antialising for white text on a dark background
225
+ color: var(--white);
226
+ --link-color: var(--white);
227
+ --link-hover-color: var(--white);
228
+ }
229
+
230
+ // =====
231
+
232
+ // Highlights
233
+
234
+ .highlight {
235
+ text-decoration: underline;
236
+ text-decoration-color: var(--highlight-color, var(--yellow-20));
237
+ text-decoration-thickness: 0.4em;
238
+ text-decoration-skip-ink: none;
239
+ text-underline-offset: -0.2em;
240
+ word-wrap: break-word;
241
+ }
242
+
243
+ .highlight--yellow {
244
+ --highlight-color: var(--yellow-20);
245
+ }
246
+
247
+ .highlight--blue {
248
+ --highlight-color: var(--blue-20);
249
+ }
250
+
251
+ .highlight--green {
252
+ --highlight-color: var(--green-40);
253
+ }
254
+
255
+ .highlight--white {
256
+ --highlight-color: var(--white-20);
257
+ }
258
+
259
+ .highlight--purple {
260
+ --highlight-color: var(--purple-20);
261
+ }
262
+
263
+ // ======
264
+
265
+ // Lists
266
+
267
+ .ul,
268
+ .content ul {
269
+ list-style-type: disc;
270
+ padding-left: var(--spacing-layout-1);
271
+
272
+ & + *,
273
+ * + & {
274
+ margin-block-start: var(--spacing, var(--spacing-layout-1));
275
+ }
276
+
277
+ & > li {
278
+ margin-inline-start: 0;
279
+ padding-left: var(--spacing-component-2);
280
+ }
281
+
282
+ & > li + li {
283
+ margin-block-start: var(--spacing-layout-half);
284
+ }
285
+
286
+ & > li > ul {
287
+ margin-block-start: var(--spacing-layout-half);
288
+ }
289
+ }
290
+
291
+ .ol,
292
+ .content ol {
293
+ list-style-type: decimal;
294
+ padding-left: var(--spacing-layout-1);
295
+
296
+ & + *,
297
+ * + & {
298
+ margin-block-start: var(--spacing, var(--spacing-layout-1));
299
+ }
300
+
301
+ & > li {
302
+ margin-inline-start: 0;
303
+ padding-inline-start: var(--spacing-component-2);
304
+ }
305
+
306
+ & > li + li {
307
+ margin-block-start: var(--spacing-layout-half);
308
+ }
309
+
310
+ & > li > ul {
311
+ margin-block-start: var(--spacing-layout-half);
312
+ }
313
+ }
314
+
315
+ .ul--unstyled {
316
+ list-style: none;
317
+ padding: 0;
318
+
319
+ & > li {
320
+ margin-inline: 0;
321
+ padding: 0;
322
+ }
323
+ }
324
+
325
+ .ul--line-separators {
326
+ & > li + li::before {
327
+ border-block-start: 1px solid var(--gray-20);
328
+ width: 100%;
329
+ content: "";
330
+ display: block;
331
+ margin-block: var(--spacing-layout-half);
332
+ }
333
+ }
334
+
335
+ .ul--inline {
336
+ display: inline;
337
+ list-style: none;
338
+ padding-inline: 0 !important;
339
+
340
+ & > li {
341
+ display: inline-block;
342
+ margin-inline-end: var(--spacing-component-3);
343
+ padding: 0 !important;
344
+ }
345
+
346
+ li:last-child {
347
+ margin-inline-end: 0;
348
+ }
349
+
350
+ & > li + li {
351
+ margin-block-start: 0;
352
+ }
353
+ }
354
+
355
+ .ul--inline-with-separators {
356
+ @extend .ul--inline;
357
+
358
+ li {
359
+ margin-inline-end: 0;
360
+ }
361
+
362
+ & > li::after {
363
+ content: '•';
364
+ margin-inline: var(--spacing-component-2);
365
+ opacity: 0.5;
366
+ }
367
+
368
+ & > li:last-child::after {
369
+ content: '';
370
+ }
371
+ }
372
+
373
+ .ul--inline-with-line-separators {
374
+ @extend .ul--inline;
375
+
376
+ li {
377
+ margin-inline-end: 0;
378
+ }
379
+
380
+ & > li::after {
381
+ content: '|';
382
+ margin-inline: var(--spacing-component-2);
383
+ opacity: 0.5;
384
+ }
385
+
386
+ & > li:last-child::after {
387
+ content: '';
388
+ }
389
+ }
390
+
391
+ // ===
392
+
393
+ // Horizontal rule
394
+
395
+ hr {
396
+ --color: currentColor;
397
+
398
+ background-color: var(--color);
399
+ border: 0;
400
+ color: var(--color);
401
+ display: block;
402
+ font-size: 0;
403
+ height: var(--hairline);
404
+ margin-block: var(--spacing-layout-2);
405
+ opacity: 0.4;
406
+ }
407
+
408
+ // ===
409
+
410
+ // Icons
411
+
412
+ .icon {
413
+ -webkit-font-feature-settings: 'liga';
414
+ direction: ltr;
415
+ display: inline-block;
416
+ font-family: 'Material Symbols Rounded';
417
+ font-feature-settings: 'liga';
418
+ font-size: 1.4em;
419
+ font-style: normal;
420
+ font-weight: normal;
421
+ letter-spacing: normal;
422
+ text-transform: none;
423
+ vertical-align: middle;
424
+ white-space: nowrap;
425
+ word-wrap: normal;
426
+ }
@@ -0,0 +1,27 @@
1
+ // Adjustments to integrate the pattern library with WordPress
2
+
3
+ // Typography
4
+
5
+ .has-sm-font-size {
6
+ line-height: var(--line-height-sm);
7
+ }
8
+
9
+ .has-md-font-size {
10
+ line-height: var(--line-height-md);
11
+ }
12
+
13
+ .has-lg-font-size {
14
+ line-height: var(--line-height-lg);
15
+ }
16
+
17
+ .has-xl-font-size {
18
+ line-height: var(--line-height-xl);
19
+ }
20
+
21
+ .has-xxl-font-size {
22
+ line-height: var(--line-height-xxl);
23
+ }
24
+
25
+ .has-xxxl-font-size {
26
+ line-height: var(--line-height-xxxl);
27
+ }