@reuters-graphics/graphics-components 3.10.0 → 4.0.0
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.
- package/dist/components/Analytics/GTM.svelte.d.ts +3 -3
- package/dist/components/BlogPost/BlogPost.svelte +6 -5
- package/dist/components/BlogPost/BlogPost.svelte.d.ts +3 -2
- package/dist/components/BlogPost/CopyLink.svelte +7 -4
- package/dist/components/BlogPost/CopyLink.svelte.d.ts +5 -2
- package/dist/components/BlogPost/PostHeadline.svelte +7 -4
- package/dist/components/BlogPost/PostHeadline.svelte.d.ts +5 -2
- package/dist/components/BlogPost/utils.d.ts +2 -1
- package/dist/components/BlogPost/utils.js +8 -2
- package/dist/components/BlogTOC/BlogTOC.svelte +7 -4
- package/dist/components/BlogTOC/BlogTOC.svelte.d.ts +8 -5
- package/dist/components/BlogTOC/TOCList.svelte.d.ts +3 -3
- package/dist/components/Headpile/Headpile.svelte +2 -2
- package/dist/components/Headpile/Headpile.svelte.d.ts +2 -2
- package/dist/components/LanguageButton/LanguageButton.svelte +10 -7
- package/dist/components/LanguageButton/LanguageButton.svelte.d.ts +5 -2
- package/dist/components/SEO/SEO.svelte.d.ts +3 -3
- package/dist/components/Video/Video.svelte +2 -2
- package/dist/llm-docs/components/AdSlot.md +11 -0
- package/dist/llm-docs/components/Analytics.md +89 -0
- package/dist/llm-docs/components/Article.md +183 -0
- package/dist/llm-docs/components/BeforeAfter.md +170 -0
- package/dist/llm-docs/components/BioBox.md +74 -0
- package/dist/llm-docs/components/Block.md +211 -0
- package/dist/llm-docs/components/BlogPost.md +66 -0
- package/dist/llm-docs/components/BlogTOC.md +89 -0
- package/dist/llm-docs/components/BodyText.md +143 -0
- package/dist/llm-docs/components/Byline.md +242 -0
- package/dist/llm-docs/components/ClockWall.md +48 -0
- package/dist/llm-docs/components/DatawrapperChart.md +87 -0
- package/dist/llm-docs/components/DocumentCloud.md +47 -0
- package/dist/llm-docs/components/EmbedPreviewerLink.md +35 -0
- package/dist/llm-docs/components/EndNotes.md +79 -0
- package/dist/llm-docs/components/FeaturePhoto.md +102 -0
- package/dist/llm-docs/components/Framer.md +44 -0
- package/dist/llm-docs/components/Geocoder.md +49 -0
- package/dist/llm-docs/components/GraphicBlock.md +319 -0
- package/dist/llm-docs/components/Headline.md +248 -0
- package/dist/llm-docs/components/Headpile.md +55 -0
- package/dist/llm-docs/components/HeroHeadline.md +515 -0
- package/dist/llm-docs/components/HorizontalScroller.md +523 -0
- package/dist/llm-docs/components/InfoBox.md +196 -0
- package/dist/llm-docs/components/KinesisLogo.md +34 -0
- package/dist/llm-docs/components/LanguageButton.md +170 -0
- package/dist/llm-docs/components/Legend.md +251 -0
- package/dist/llm-docs/components/Lottie.md +464 -0
- package/dist/llm-docs/components/PaddingReset.md +78 -0
- package/dist/llm-docs/components/PhotoPack.md +238 -0
- package/dist/llm-docs/components/PymChild.md +49 -0
- package/dist/llm-docs/components/ReferralBlock.md +119 -0
- package/dist/llm-docs/components/ReutersGraphicsLogo.md +37 -0
- package/dist/llm-docs/components/ReutersLogo.md +35 -0
- package/dist/llm-docs/components/SEO.md +113 -0
- package/dist/llm-docs/components/Scroller.md +350 -0
- package/dist/llm-docs/components/ScrollerBase.md +104 -0
- package/dist/llm-docs/components/ScrollerVideo.md +576 -0
- package/dist/llm-docs/components/SearchInput.md +44 -0
- package/dist/llm-docs/components/ShareBar.md +78 -0
- package/dist/llm-docs/components/SimpleTimeline.md +141 -0
- package/dist/llm-docs/components/SiteFooter.md +77 -0
- package/dist/llm-docs/components/SiteHeader.md +55 -0
- package/dist/llm-docs/components/SiteHeadline.md +111 -0
- package/dist/llm-docs/components/Spinner.md +43 -0
- package/dist/llm-docs/components/Table.md +298 -0
- package/dist/llm-docs/components/Theme.md +266 -0
- package/dist/llm-docs/components/TileMap.md +477 -0
- package/dist/llm-docs/components/ToolsHeader.md +46 -0
- package/dist/llm-docs/components/Video.md +254 -0
- package/dist/llm-docs/components/Visible.md +54 -0
- package/dist/llm-docs/components/cssVariables.md +40 -0
- package/dist/llm-docs/components/index.md +59 -0
- package/dist/llm-docs/components/resizeObserver.md +21 -0
- package/dist/llm-docs/guides/archieml.md +406 -0
- package/dist/llm-docs/guides/colours.md +443 -0
- package/dist/llm-docs/guides/customising-with-scss.md +61 -0
- package/dist/llm-docs/guides/graphics-kit.md +25 -0
- package/dist/llm-docs/guides/index.md +16 -0
- package/dist/llm-docs/guides/intro.md +21 -0
- package/dist/llm-docs/guides/layout.md +13 -0
- package/dist/llm-docs/guides/llm-docs.md +71 -0
- package/dist/llm-docs/guides/styles.md +16 -0
- package/dist/llm-docs/guides/theming.md +100 -0
- package/dist/llm-docs/guides/tokens.md +150 -0
- package/dist/llm-docs/index.md +36 -0
- package/package.json +18 -24
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
# Colour Palettes
|
|
2
|
+
|
|
3
|
+
CSS custom properties set on `:root`. Import a palette to use its variables:
|
|
4
|
+
|
|
5
|
+
```scss
|
|
6
|
+
// Example: import the blue palette
|
|
7
|
+
@use '@reuters-graphics/graphics-components/scss/colours/primary/blue';
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Then reference variables with `var(--blue-500)` etc.
|
|
11
|
+
|
|
12
|
+
## Primary palettes
|
|
13
|
+
|
|
14
|
+
### Amber
|
|
15
|
+
|
|
16
|
+
| Variable | Value |
|
|
17
|
+
|----------|-------|
|
|
18
|
+
| `--amber-50` | `#fffbeb` |
|
|
19
|
+
| `--amber-100` | `#fef3c7` |
|
|
20
|
+
| `--amber-200` | `#fde68a` |
|
|
21
|
+
| `--amber-300` | `#fcd34d` |
|
|
22
|
+
| `--amber-400` | `#fbbf24` |
|
|
23
|
+
| `--amber-500` | `#f59e0b` |
|
|
24
|
+
| `--amber-600` | `#d97706` |
|
|
25
|
+
| `--amber-700` | `#b45309` |
|
|
26
|
+
| `--amber-800` | `#92400e` |
|
|
27
|
+
| `--amber-900` | `#78350f` |
|
|
28
|
+
| `--amber-950` | `#451a03` |
|
|
29
|
+
|
|
30
|
+
### Blue
|
|
31
|
+
|
|
32
|
+
| Variable | Value |
|
|
33
|
+
|----------|-------|
|
|
34
|
+
| `--blue-50` | `#eff6ff` |
|
|
35
|
+
| `--blue-100` | `#dbeafe` |
|
|
36
|
+
| `--blue-200` | `#bfdbfe` |
|
|
37
|
+
| `--blue-300` | `#93c5fd` |
|
|
38
|
+
| `--blue-400` | `#60a5fa` |
|
|
39
|
+
| `--blue-500` | `#3b82f6` |
|
|
40
|
+
| `--blue-600` | `#2563eb` |
|
|
41
|
+
| `--blue-700` | `#1d4ed8` |
|
|
42
|
+
| `--blue-800` | `#1e40af` |
|
|
43
|
+
| `--blue-900` | `#1e3a8a` |
|
|
44
|
+
| `--blue-950` | `#172554` |
|
|
45
|
+
|
|
46
|
+
### Cyan
|
|
47
|
+
|
|
48
|
+
| Variable | Value |
|
|
49
|
+
|----------|-------|
|
|
50
|
+
| `--cyan-50` | `#ecfeff` |
|
|
51
|
+
| `--cyan-100` | `#cffafe` |
|
|
52
|
+
| `--cyan-200` | `#a5f3fc` |
|
|
53
|
+
| `--cyan-300` | `#67e8f9` |
|
|
54
|
+
| `--cyan-400` | `#22d3ee` |
|
|
55
|
+
| `--cyan-500` | `#06b6d4` |
|
|
56
|
+
| `--cyan-600` | `#0891b2` |
|
|
57
|
+
| `--cyan-700` | `#0e7490` |
|
|
58
|
+
| `--cyan-800` | `#155e75` |
|
|
59
|
+
| `--cyan-900` | `#164e63` |
|
|
60
|
+
| `--cyan-950` | `#083344` |
|
|
61
|
+
|
|
62
|
+
### Emerald
|
|
63
|
+
|
|
64
|
+
| Variable | Value |
|
|
65
|
+
|----------|-------|
|
|
66
|
+
| `--emerald-50` | `#ecfdf5` |
|
|
67
|
+
| `--emerald-100` | `#d1fae5` |
|
|
68
|
+
| `--emerald-200` | `#a7f3d0` |
|
|
69
|
+
| `--emerald-300` | `#6ee7b7` |
|
|
70
|
+
| `--emerald-400` | `#34d399` |
|
|
71
|
+
| `--emerald-500` | `#10b981` |
|
|
72
|
+
| `--emerald-600` | `#059669` |
|
|
73
|
+
| `--emerald-700` | `#047857` |
|
|
74
|
+
| `--emerald-800` | `#065f46` |
|
|
75
|
+
| `--emerald-900` | `#064e3b` |
|
|
76
|
+
| `--emerald-950` | `#022c22` |
|
|
77
|
+
|
|
78
|
+
### Fuchsia
|
|
79
|
+
|
|
80
|
+
| Variable | Value |
|
|
81
|
+
|----------|-------|
|
|
82
|
+
| `--fuchsia-50` | `#fdf4ff` |
|
|
83
|
+
| `--fuchsia-100` | `#fae8ff` |
|
|
84
|
+
| `--fuchsia-200` | `#f5d0fe` |
|
|
85
|
+
| `--fuchsia-300` | `#f0abfc` |
|
|
86
|
+
| `--fuchsia-400` | `#e879f9` |
|
|
87
|
+
| `--fuchsia-500` | `#d946ef` |
|
|
88
|
+
| `--fuchsia-600` | `#c026d3` |
|
|
89
|
+
| `--fuchsia-700` | `#a21caf` |
|
|
90
|
+
| `--fuchsia-800` | `#86198f` |
|
|
91
|
+
| `--fuchsia-900` | `#701a75` |
|
|
92
|
+
| `--fuchsia-950` | `#4a044e` |
|
|
93
|
+
|
|
94
|
+
### Green
|
|
95
|
+
|
|
96
|
+
| Variable | Value |
|
|
97
|
+
|----------|-------|
|
|
98
|
+
| `--green-50` | `#f0fdf4` |
|
|
99
|
+
| `--green-100` | `#dcfce7` |
|
|
100
|
+
| `--green-200` | `#bbf7d0` |
|
|
101
|
+
| `--green-300` | `#86efac` |
|
|
102
|
+
| `--green-400` | `#4ade80` |
|
|
103
|
+
| `--green-500` | `#22c55e` |
|
|
104
|
+
| `--green-600` | `#16a34a` |
|
|
105
|
+
| `--green-700` | `#15803d` |
|
|
106
|
+
| `--green-800` | `#166534` |
|
|
107
|
+
| `--green-900` | `#14532d` |
|
|
108
|
+
| `--green-950` | `#052e16` |
|
|
109
|
+
|
|
110
|
+
### Grey
|
|
111
|
+
|
|
112
|
+
| Variable | Value |
|
|
113
|
+
|----------|-------|
|
|
114
|
+
| `--grey-50` | `#f9fafb` |
|
|
115
|
+
| `--grey-100` | `#f3f4f6` |
|
|
116
|
+
| `--grey-200` | `#e5e7eb` |
|
|
117
|
+
| `--grey-300` | `#d1d5db` |
|
|
118
|
+
| `--grey-400` | `#9ca3af` |
|
|
119
|
+
| `--grey-500` | `#6b7280` |
|
|
120
|
+
| `--grey-600` | `#4b5563` |
|
|
121
|
+
| `--grey-700` | `#374151` |
|
|
122
|
+
| `--grey-800` | `#1f2937` |
|
|
123
|
+
| `--grey-900` | `#111827` |
|
|
124
|
+
| `--grey-950` | `#030712` |
|
|
125
|
+
|
|
126
|
+
### Indigo
|
|
127
|
+
|
|
128
|
+
| Variable | Value |
|
|
129
|
+
|----------|-------|
|
|
130
|
+
| `--indigo-50` | `#eef2ff` |
|
|
131
|
+
| `--indigo-100` | `#e0e7ff` |
|
|
132
|
+
| `--indigo-200` | `#c7d2fe` |
|
|
133
|
+
| `--indigo-300` | `#a5b4fc` |
|
|
134
|
+
| `--indigo-400` | `#818cf8` |
|
|
135
|
+
| `--indigo-500` | `#6366f1` |
|
|
136
|
+
| `--indigo-600` | `#4f46e5` |
|
|
137
|
+
| `--indigo-700` | `#4338ca` |
|
|
138
|
+
| `--indigo-800` | `#3730a3` |
|
|
139
|
+
| `--indigo-900` | `#312e81` |
|
|
140
|
+
| `--indigo-950` | `#1e1b4b` |
|
|
141
|
+
|
|
142
|
+
### Lime
|
|
143
|
+
|
|
144
|
+
| Variable | Value |
|
|
145
|
+
|----------|-------|
|
|
146
|
+
| `--lime-50` | `#f7fee7` |
|
|
147
|
+
| `--lime-100` | `#ecfccb` |
|
|
148
|
+
| `--lime-200` | `#d9f99d` |
|
|
149
|
+
| `--lime-300` | `#bef264` |
|
|
150
|
+
| `--lime-400` | `#a3e635` |
|
|
151
|
+
| `--lime-500` | `#84cc16` |
|
|
152
|
+
| `--lime-600` | `#65a30d` |
|
|
153
|
+
| `--lime-700` | `#4d7c0f` |
|
|
154
|
+
| `--lime-800` | `#3f6212` |
|
|
155
|
+
| `--lime-900` | `#365314` |
|
|
156
|
+
| `--lime-950` | `#1a2e05` |
|
|
157
|
+
|
|
158
|
+
### Neutral
|
|
159
|
+
|
|
160
|
+
| Variable | Value |
|
|
161
|
+
|----------|-------|
|
|
162
|
+
| `--neutral-50` | `#fafafa` |
|
|
163
|
+
| `--neutral-100` | `#f5f5f5` |
|
|
164
|
+
| `--neutral-200` | `#e5e5e5` |
|
|
165
|
+
| `--neutral-300` | `#d4d4d4` |
|
|
166
|
+
| `--neutral-400` | `#a3a3a3` |
|
|
167
|
+
| `--neutral-500` | `#737373` |
|
|
168
|
+
| `--neutral-600` | `#525252` |
|
|
169
|
+
| `--neutral-700` | `#404040` |
|
|
170
|
+
| `--neutral-800` | `#262626` |
|
|
171
|
+
| `--neutral-900` | `#171717` |
|
|
172
|
+
| `--neutral-950` | `#0a0a0a` |
|
|
173
|
+
|
|
174
|
+
### Orange
|
|
175
|
+
|
|
176
|
+
| Variable | Value |
|
|
177
|
+
|----------|-------|
|
|
178
|
+
| `--orange-50` | `#fff7ed` |
|
|
179
|
+
| `--orange-100` | `#ffedd5` |
|
|
180
|
+
| `--orange-200` | `#fed7aa` |
|
|
181
|
+
| `--orange-300` | `#fdba74` |
|
|
182
|
+
| `--orange-400` | `#fb923c` |
|
|
183
|
+
| `--orange-500` | `#f97316` |
|
|
184
|
+
| `--orange-600` | `#ea580c` |
|
|
185
|
+
| `--orange-700` | `#c2410c` |
|
|
186
|
+
| `--orange-800` | `#9a3412` |
|
|
187
|
+
| `--orange-900` | `#7c2d12` |
|
|
188
|
+
| `--orange-950` | `#431407` |
|
|
189
|
+
|
|
190
|
+
### Pink
|
|
191
|
+
|
|
192
|
+
| Variable | Value |
|
|
193
|
+
|----------|-------|
|
|
194
|
+
| `--pink-50` | `#fdf2f8` |
|
|
195
|
+
| `--pink-100` | `#fce7f3` |
|
|
196
|
+
| `--pink-200` | `#fbcfe8` |
|
|
197
|
+
| `--pink-300` | `#f9a8d4` |
|
|
198
|
+
| `--pink-400` | `#f472b6` |
|
|
199
|
+
| `--pink-500` | `#ec4899` |
|
|
200
|
+
| `--pink-600` | `#db2777` |
|
|
201
|
+
| `--pink-700` | `#be185d` |
|
|
202
|
+
| `--pink-800` | `#9d174d` |
|
|
203
|
+
| `--pink-900` | `#831843` |
|
|
204
|
+
| `--pink-950` | `#500724` |
|
|
205
|
+
|
|
206
|
+
### Purple
|
|
207
|
+
|
|
208
|
+
| Variable | Value |
|
|
209
|
+
|----------|-------|
|
|
210
|
+
| `--purple-50` | `#faf5ff` |
|
|
211
|
+
| `--purple-100` | `#f3e8ff` |
|
|
212
|
+
| `--purple-200` | `#e9d5ff` |
|
|
213
|
+
| `--purple-300` | `#d8b4fe` |
|
|
214
|
+
| `--purple-400` | `#c084fc` |
|
|
215
|
+
| `--purple-500` | `#a855f7` |
|
|
216
|
+
| `--purple-600` | `#9333ea` |
|
|
217
|
+
| `--purple-700` | `#7e22ce` |
|
|
218
|
+
| `--purple-800` | `#6b21a8` |
|
|
219
|
+
| `--purple-900` | `#581c87` |
|
|
220
|
+
| `--purple-950` | `#3b0764` |
|
|
221
|
+
|
|
222
|
+
### Red
|
|
223
|
+
|
|
224
|
+
| Variable | Value |
|
|
225
|
+
|----------|-------|
|
|
226
|
+
| `--red-50` | `#fef2f2` |
|
|
227
|
+
| `--red-100` | `#fee2e2` |
|
|
228
|
+
| `--red-200` | `#fecaca` |
|
|
229
|
+
| `--red-300` | `#fca5a5` |
|
|
230
|
+
| `--red-400` | `#f87171` |
|
|
231
|
+
| `--red-500` | `#ef4444` |
|
|
232
|
+
| `--red-600` | `#dc2626` |
|
|
233
|
+
| `--red-700` | `#b91c1c` |
|
|
234
|
+
| `--red-800` | `#991b1b` |
|
|
235
|
+
| `--red-900` | `#7f1d1d` |
|
|
236
|
+
| `--red-950` | `#450a0a` |
|
|
237
|
+
|
|
238
|
+
### Rose
|
|
239
|
+
|
|
240
|
+
| Variable | Value |
|
|
241
|
+
|----------|-------|
|
|
242
|
+
| `--rose-50` | `#fff1f2` |
|
|
243
|
+
| `--rose-100` | `#ffe4e6` |
|
|
244
|
+
| `--rose-200` | `#fecdd3` |
|
|
245
|
+
| `--rose-300` | `#fda4af` |
|
|
246
|
+
| `--rose-400` | `#fb7185` |
|
|
247
|
+
| `--rose-500` | `#f43f5e` |
|
|
248
|
+
| `--rose-600` | `#e11d48` |
|
|
249
|
+
| `--rose-700` | `#be123c` |
|
|
250
|
+
| `--rose-800` | `#9f1239` |
|
|
251
|
+
| `--rose-900` | `#881337` |
|
|
252
|
+
| `--rose-950` | `#4c0519` |
|
|
253
|
+
|
|
254
|
+
### Sky
|
|
255
|
+
|
|
256
|
+
| Variable | Value |
|
|
257
|
+
|----------|-------|
|
|
258
|
+
| `--sky-50` | `#f0f9ff` |
|
|
259
|
+
| `--sky-100` | `#e0f2fe` |
|
|
260
|
+
| `--sky-200` | `#bae6fd` |
|
|
261
|
+
| `--sky-300` | `#7dd3fc` |
|
|
262
|
+
| `--sky-400` | `#38bdf8` |
|
|
263
|
+
| `--sky-500` | `#0ea5e9` |
|
|
264
|
+
| `--sky-600` | `#0284c7` |
|
|
265
|
+
| `--sky-700` | `#0369a1` |
|
|
266
|
+
| `--sky-800` | `#075985` |
|
|
267
|
+
| `--sky-900` | `#0c4a6e` |
|
|
268
|
+
| `--sky-950` | `#082f49` |
|
|
269
|
+
|
|
270
|
+
### Slate
|
|
271
|
+
|
|
272
|
+
| Variable | Value |
|
|
273
|
+
|----------|-------|
|
|
274
|
+
| `--slate-50` | `#f8fafc` |
|
|
275
|
+
| `--slate-100` | `#f1f5f9` |
|
|
276
|
+
| `--slate-200` | `#e2e8f0` |
|
|
277
|
+
| `--slate-300` | `#cbd5e1` |
|
|
278
|
+
| `--slate-400` | `#94a3b8` |
|
|
279
|
+
| `--slate-500` | `#64748b` |
|
|
280
|
+
| `--slate-600` | `#475569` |
|
|
281
|
+
| `--slate-700` | `#334155` |
|
|
282
|
+
| `--slate-800` | `#1e293b` |
|
|
283
|
+
| `--slate-900` | `#0f172a` |
|
|
284
|
+
| `--slate-950` | `#020617` |
|
|
285
|
+
|
|
286
|
+
### Stone
|
|
287
|
+
|
|
288
|
+
| Variable | Value |
|
|
289
|
+
|----------|-------|
|
|
290
|
+
| `--stone-50` | `#fafaf9` |
|
|
291
|
+
| `--stone-100` | `#f5f5f4` |
|
|
292
|
+
| `--stone-200` | `#e7e5e4` |
|
|
293
|
+
| `--stone-300` | `#d6d3d1` |
|
|
294
|
+
| `--stone-400` | `#a8a29e` |
|
|
295
|
+
| `--stone-500` | `#78716c` |
|
|
296
|
+
| `--stone-600` | `#57534e` |
|
|
297
|
+
| `--stone-700` | `#44403c` |
|
|
298
|
+
| `--stone-800` | `#292524` |
|
|
299
|
+
| `--stone-900` | `#1c1917` |
|
|
300
|
+
| `--stone-950` | `#0c0a09` |
|
|
301
|
+
|
|
302
|
+
### Teal
|
|
303
|
+
|
|
304
|
+
| Variable | Value |
|
|
305
|
+
|----------|-------|
|
|
306
|
+
| `--teal-50` | `#f0fdfa` |
|
|
307
|
+
| `--teal-100` | `#ccfbf1` |
|
|
308
|
+
| `--teal-200` | `#99f6e4` |
|
|
309
|
+
| `--teal-300` | `#5eead4` |
|
|
310
|
+
| `--teal-400` | `#2dd4bf` |
|
|
311
|
+
| `--teal-500` | `#14b8a6` |
|
|
312
|
+
| `--teal-600` | `#0d9488` |
|
|
313
|
+
| `--teal-700` | `#0f766e` |
|
|
314
|
+
| `--teal-800` | `#115e59` |
|
|
315
|
+
| `--teal-900` | `#134e4a` |
|
|
316
|
+
| `--teal-950` | `#042f2e` |
|
|
317
|
+
|
|
318
|
+
### Violet
|
|
319
|
+
|
|
320
|
+
| Variable | Value |
|
|
321
|
+
|----------|-------|
|
|
322
|
+
| `--violet-50` | `#f5f3ff` |
|
|
323
|
+
| `--violet-100` | `#ede9fe` |
|
|
324
|
+
| `--violet-200` | `#ddd6fe` |
|
|
325
|
+
| `--violet-300` | `#c4b5fd` |
|
|
326
|
+
| `--violet-400` | `#a78bfa` |
|
|
327
|
+
| `--violet-500` | `#8b5cf6` |
|
|
328
|
+
| `--violet-600` | `#7c3aed` |
|
|
329
|
+
| `--violet-700` | `#6d28d9` |
|
|
330
|
+
| `--violet-800` | `#5b21b6` |
|
|
331
|
+
| `--violet-900` | `#4c1d95` |
|
|
332
|
+
| `--violet-950` | `#2e1065` |
|
|
333
|
+
|
|
334
|
+
### Yellow
|
|
335
|
+
|
|
336
|
+
| Variable | Value |
|
|
337
|
+
|----------|-------|
|
|
338
|
+
| `--yellow-50` | `#fefce8` |
|
|
339
|
+
| `--yellow-100` | `#fef9c3` |
|
|
340
|
+
| `--yellow-200` | `#fef08a` |
|
|
341
|
+
| `--yellow-300` | `#fde047` |
|
|
342
|
+
| `--yellow-400` | `#facc15` |
|
|
343
|
+
| `--yellow-500` | `#eab308` |
|
|
344
|
+
| `--yellow-600` | `#ca8a04` |
|
|
345
|
+
| `--yellow-700` | `#a16207` |
|
|
346
|
+
| `--yellow-800` | `#854d0e` |
|
|
347
|
+
| `--yellow-900` | `#713f12` |
|
|
348
|
+
| `--yellow-950` | `#422006` |
|
|
349
|
+
|
|
350
|
+
### Zinc
|
|
351
|
+
|
|
352
|
+
| Variable | Value |
|
|
353
|
+
|----------|-------|
|
|
354
|
+
| `--zinc-50` | `#fafafa` |
|
|
355
|
+
| `--zinc-100` | `#f4f4f5` |
|
|
356
|
+
| `--zinc-200` | `#e4e4e7` |
|
|
357
|
+
| `--zinc-300` | `#d4d4d8` |
|
|
358
|
+
| `--zinc-400` | `#a1a1aa` |
|
|
359
|
+
| `--zinc-500` | `#71717a` |
|
|
360
|
+
| `--zinc-600` | `#52525b` |
|
|
361
|
+
| `--zinc-700` | `#3f3f46` |
|
|
362
|
+
| `--zinc-800` | `#27272a` |
|
|
363
|
+
| `--zinc-900` | `#18181b` |
|
|
364
|
+
| `--zinc-950` | `#09090b` |
|
|
365
|
+
|
|
366
|
+
## Thematic palettes
|
|
367
|
+
|
|
368
|
+
Import thematic palettes to access branded colour tokens used by the `Theme` component.
|
|
369
|
+
|
|
370
|
+
### Nord
|
|
371
|
+
|
|
372
|
+
| Variable | Value |
|
|
373
|
+
|----------|-------|
|
|
374
|
+
| `--nord-0` | `#2e3440` |
|
|
375
|
+
| `--nord-polar-night-0` | `#2e3440` |
|
|
376
|
+
| `--nord-black` | `#2e3440` |
|
|
377
|
+
| `--nord-1` | `#3b4252` |
|
|
378
|
+
| `--nord-polar-night-1` | `#3b4252` |
|
|
379
|
+
| `--nord-2` | `#434c5e` |
|
|
380
|
+
| `--nord-polar-night-2` | `#434c5e` |
|
|
381
|
+
| `--nord-3` | `#4c566a` |
|
|
382
|
+
| `--nord-polar-night-3` | `#4c566a` |
|
|
383
|
+
| `--nord-4` | `#d8dee9` |
|
|
384
|
+
| `--nord-snow-storm-0` | `#d8dee9` |
|
|
385
|
+
| `--nord-5` | `#e5e9f0` |
|
|
386
|
+
| `--nord-snow-storm-1` | `#e5e9f0` |
|
|
387
|
+
| `--nord-6` | `#eceff4` |
|
|
388
|
+
| `--nord-snow-storm-2` | `#eceff4` |
|
|
389
|
+
| `--nord-white` | `#eceff4` |
|
|
390
|
+
| `--nord-7` | `#8fbcbb` |
|
|
391
|
+
| `--nord-frost-0` | `#8fbcbb` |
|
|
392
|
+
| `--nord-8` | `#88c0d0` |
|
|
393
|
+
| `--nord-frost-1` | `#88c0d0` |
|
|
394
|
+
| `--nord-9` | `#81a1c1` |
|
|
395
|
+
| `--nord-frost-2` | `#81a1c1` |
|
|
396
|
+
| `--nord-10` | `#5e81ac` |
|
|
397
|
+
| `--nord-frost-3` | `#5e81ac` |
|
|
398
|
+
| `--nord-blue` | `#5e81ac` |
|
|
399
|
+
| `--nord-11` | `#bf616a` |
|
|
400
|
+
| `--nord-aurora-0` | `#bf616a` |
|
|
401
|
+
| `--nord-red` | `#bf616a` |
|
|
402
|
+
| `--nord-12` | `#d08770` |
|
|
403
|
+
| `--nord-aurora-1` | `#d08770` |
|
|
404
|
+
| `--nord-orange` | `#d08770` |
|
|
405
|
+
| `--nord-13` | `#ebcb8b` |
|
|
406
|
+
| `--nord-aurora-2` | `#ebcb8b` |
|
|
407
|
+
| `--nord-yellow` | `#ebcb8b` |
|
|
408
|
+
| `--nord-14` | `#a3be8c` |
|
|
409
|
+
| `--nord-aurora-3` | `#a3be8c` |
|
|
410
|
+
| `--nord-green` | `#a3be8c` |
|
|
411
|
+
| `--nord-15` | `#b48ead` |
|
|
412
|
+
| `--nord-aurora-4` | `#b48ead` |
|
|
413
|
+
| `--nord-purple` | `#b48ead` |
|
|
414
|
+
|
|
415
|
+
### Tr
|
|
416
|
+
|
|
417
|
+
| Variable | Value |
|
|
418
|
+
|----------|-------|
|
|
419
|
+
| `--tr-orange` | `#fa6400` |
|
|
420
|
+
| `--tr-dark-orange` | `#dc4300` |
|
|
421
|
+
| `--tr-light-orange` | `#ffa100` |
|
|
422
|
+
| `--tr-dark-grey` | `#404040` |
|
|
423
|
+
| `--tr-medium-grey` | `#666666` |
|
|
424
|
+
| `--tr-light-grey` | `#afafaf` |
|
|
425
|
+
| `--tr-muted-grey` | `#d0d0d0` |
|
|
426
|
+
| `--tr-contrast-grey` | `#949494` |
|
|
427
|
+
| `--tr-hover-background-grey` | `#f8f8f8` |
|
|
428
|
+
| `--tr-light-muted-grey` | `#f4f4f4` |
|
|
429
|
+
| `--tr-ultra-light-grey` | `#fafafa` |
|
|
430
|
+
| `--tr-dark-blue` | `#005da2` |
|
|
431
|
+
| `--tr-light-blue` | `#0099c4` |
|
|
432
|
+
| `--tr-muted-blue` | `#4386b9` |
|
|
433
|
+
| `--tr-lighter-blue` | `#7facce` |
|
|
434
|
+
| `--tr-superlight-blue` | `#e5eef5` |
|
|
435
|
+
| `--tr-dark-purple` | `#621f95` |
|
|
436
|
+
| `--tr-light-purple` | `#6e3ab7` |
|
|
437
|
+
| `--tr-dark-red` | `#a00000` |
|
|
438
|
+
| `--tr-light-red` | `#dc0a0a` |
|
|
439
|
+
| `--tr-dark-green` | `#387c2b` |
|
|
440
|
+
| `--tr-light-green` | `#77a22d` |
|
|
441
|
+
| `--tr-black` | `#000` |
|
|
442
|
+
| `--tr-white` | `#fff` |
|
|
443
|
+
| `--tr-ad-placeholder` | `#ffb1b1` |
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Customising components with SCSS
|
|
2
|
+
|
|
3
|
+
One of the most powerful ways to customise components isn't props or, even, Svelte.
|
|
4
|
+
|
|
5
|
+
## How's that??
|
|
6
|
+
|
|
7
|
+
Let's say you wanted to change our `BeforeAfter` component. You want the text overlays to be at the bottom of the image instead of the top like this:
|
|
8
|
+
|
|
9
|
+
The first thing you should do is and see if CSS can make the change you want.
|
|
10
|
+
|
|
11
|
+
In our case, we want to change the absolute position of those elements. To test that'll actually work, we can 
|
|
12
|
+
|
|
13
|
+
Now that we know we can change what we need through CSS it's time to write some SCSS, either in your `global.scss` file or directly in a component like `App.svelte`.
|
|
14
|
+
|
|
15
|
+
First, let's look at the class of the style rule we changed in the inspector:
|
|
16
|
+
|
|
17
|
+
`figure.before-after-container.s-khJY-w4TYkp5 .overlay-container.before.s-khJY-w4TYkp5`
|
|
18
|
+
|
|
19
|
+
One thing we always need to do is , i.e., those weird `.s-khJY-w4TYkp5` classes. Why? Those are random classes Svelte adds to CSS, and we can't guarantee they won't change.
|
|
20
|
+
|
|
21
|
+
That leaves us with:
|
|
22
|
+
|
|
23
|
+
`figure.before-after-container .overlay-container.before`
|
|
24
|
+
|
|
25
|
+
But we need our style rule to _beat_ the original style in the CSS cascade, and right now, it's less specific without those class names we stripped.
|
|
26
|
+
|
|
27
|
+
The easiest way to make sure your style rule wins out is to . In our case, let's add an ID through the `BeforeAfter` `id` prop. Now we can use it! (For extra credit, though, we'll drop the `.before` so our new style rule applies to _both_ overlays.)
|
|
28
|
+
|
|
29
|
+
```scss
|
|
30
|
+
figure#my-before-after .overlay-container {
|
|
31
|
+
bottom: 0;
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Now our selector is more specific. We win!
|
|
36
|
+
|
|
37
|
+
If you don't see a way to add an ID through a component's props, then just wrap the component in a `div` in your code:
|
|
38
|
+
|
|
39
|
+
```svelte
|
|
40
|
+
<div id="my-before-after">
|
|
41
|
+
<BeforeAfter />
|
|
42
|
+
</div>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
... and use that, instead!
|
|
46
|
+
|
|
47
|
+
```scss
|
|
48
|
+
div#my-before-after figure .overlay-container {
|
|
49
|
+
bottom: 0;
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
We can 
|
|
54
|
+
|
|
55
|
+
Done!
|
|
56
|
+
|
|
57
|
+
### Can I just... `important!` it?
|
|
58
|
+
|
|
59
|
+
Yep! Just be sure your style rule is **very specific** and not something generic that might apply to other elements in your page like `div.container`.
|
|
60
|
+
|
|
61
|
+
Many of the components have `class` or `id` props you can use to attach additional classes or an id that will add more specificity to your components.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Using with the graphics kit
|
|
2
|
+
|
|
3
|
+
Our graphics components are designed to work seemlessly with the [graphics kit](https://reuters-graphics.github.io/bluprint_graphics-kit/) as well as just about any Svelte-based page builder.
|
|
4
|
+
|
|
5
|
+
**There is, however, one gotcha to watch out for:**
|
|
6
|
+
|
|
7
|
+
When working with multimedia files like images or videos, components expect all paths to be 
|
|
8
|
+
|
|
9
|
+
✅ `https://reuters.com/graphics/.../myImage.jpg`
|
|
10
|
+
|
|
11
|
+
❌ `./myImage.jpg`
|
|
12
|
+
|
|
13
|
+
In the graphics kit, that means you'll need to prefix relative paths with the special [`asset`](https://svelte.dev/docs/kit/$app-paths#asset) SvelteKit helper that resolves the path to the root URL for your project. Many examples in these docs show how to do it. But it's also easy enough to demo again here!
|
|
14
|
+
|
|
15
|
+
```svelte
|
|
16
|
+
<script>
|
|
17
|
+
import { FeaturePhoto } from '@reuters-graphics/graphics-components';
|
|
18
|
+
|
|
19
|
+
// Import the asset helper if it's not already there.
|
|
20
|
+
import { asset } from '$app/paths';
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<!-- Use the asset helper to prefix the path to your image. -->
|
|
24
|
+
<FeautrePhoto src={asset('/imgs/myImage.jpg')} />
|
|
25
|
+
```
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Guides
|
|
2
|
+
|
|
3
|
+
Conceptual documentation, integration guides, and design system reference.
|
|
4
|
+
|
|
5
|
+
| Guide | Description |
|
|
6
|
+
|-------|-------------|
|
|
7
|
+
| [@reuters-graphics/graphics-components](./intro.md) | Svelte components, SCSS and more you can use in graphics projects. |
|
|
8
|
+
| [Layout](./layout.md) | Layout components setup our default page structure. |
|
|
9
|
+
| [Styles](./styles.md) | This library also includes our main SCSS stylesheets with pre-defined classes you can use to style your page. |
|
|
10
|
+
| [CSS variables](./theming.md) | The Theme?path=/docs/components-theme--default component uses CSS variableshttps://developer.mozilla.org/en-US/docs/Web/CSS/UsingCSScustomproperties to control major parts of your |
|
|
11
|
+
| [Using with the graphics kit](./graphics-kit.md) | Our graphics components are designed to work seemlessly with the graphics kithttps://reuters-graphics.github.io/bluprintgraphics-kit/ as well as just about any Svelte-based page bu |
|
|
12
|
+
| [Using components with ArchieML docs](./archieml.md) | Most of the snippets in these docs show how to use components by passing data into their props directly. In most cases, though, you don't want to hard-code content in your project |
|
|
13
|
+
| [Customising components with SCSS](./customising-with-scss.md) | One of the most powerful ways to customise components isn't props or, even, Svelte. |
|
|
14
|
+
| [LLM Docs](./llm-docs.md) | This library ships machine-readable documentation designed to be used as context for AI agents and LLMs. The docs are generated at build time from source — Svelte component props, |
|
|
15
|
+
| [Colour Palettes](./colours.md) | CSS custom properties for 24 colour families (primary + thematic). |
|
|
16
|
+
| [Style Tokens](./tokens.md) | Spacing utilities (margin/padding), typography classes, and fluid spacers. |
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @reuters-graphics/graphics-components
|
|
2
|
+
|
|
3
|
+
Svelte components, SCSS and more you can use in graphics projects.
|
|
4
|
+
|
|
5
|
+
## Getting started
|
|
6
|
+
|
|
7
|
+
1. Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm i @reuters-graphics/graphics-components
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
2. Checkout the [guides](?path=/docs/guides-using-these-docs--docs), if you haven't, or dive straight into the docs to start using components.
|
|
14
|
+
|
|
15
|
+
```svelte
|
|
16
|
+
<script>
|
|
17
|
+
import { BodyText } from '@reuters-graphics/graphics-components';
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<BodyText text={'Hello world!'} />
|
|
21
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Layout
|
|
2
|
+
|
|
3
|
+
Layout components setup our default page structure.
|
|
4
|
+
|
|
5
|
+
Generally, our page layout includes a central text well and a few preset block breakpoints, wider and narrower than the well.
|
|
6
|
+
|
|
7
|
+
Here's how it works:
|
|
8
|
+
|
|
9
|
+
The [`Article`](?path=/docs/layout-article--default) component sets up the set dimensions of the well and the block breakpoints.
|
|
10
|
+
|
|
11
|
+
The [`Block`](?path=/docs/layout-block--default) component is a wrapper for individual parts of a page that can be as wide as any of those breakpoints.
|
|
12
|
+
|
|
13
|
+
The docs in this section explain how to use our layout components to build the basic structure of your page and also how to break out of our default layout if you need to do something different.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# LLM Docs
|
|
2
|
+
|
|
3
|
+
This library ships machine-readable documentation designed to be used as context for AI agents and LLMs. The docs are generated at build time from source — Svelte component props, Storybook stories, MDX prose, and SCSS token files — and packaged inside the npm distribution so a consuming project can pull them in with a single command.
|
|
4
|
+
|
|
5
|
+
## What gets generated
|
|
6
|
+
|
|
7
|
+
Running `pnpm generate:llm-docs` produces a `dist/llm-docs/` directory with the following structure:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
dist/llm-docs/
|
|
11
|
+
index.md ← Library overview and section links
|
|
12
|
+
components/
|
|
13
|
+
index.md ← All components with category and description
|
|
14
|
+
BodyText.md ← Per-component: props table, types, usage examples
|
|
15
|
+
Legend.md
|
|
16
|
+
...
|
|
17
|
+
guides/
|
|
18
|
+
index.md ← All guides with descriptions
|
|
19
|
+
archieml.md ← Integration guides extracted from MDX prose
|
|
20
|
+
colours.md ← Full colour palette tables (generated from SCSS)
|
|
21
|
+
tokens.md ← Spacing and typography utility class reference
|
|
22
|
+
theming.md
|
|
23
|
+
...
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Each component file contains a props table with types, defaults, and JSDoc descriptions; TypeScript type definitions for any exported types; and Svelte usage examples extracted from Storybook stories.
|
|
27
|
+
|
|
28
|
+
## Using in a consuming project
|
|
29
|
+
|
|
30
|
+
This library declares its LLM docs via the `"llms"` field in `package.json`:
|
|
31
|
+
|
|
32
|
+
```json
|
|
33
|
+
"llms": {
|
|
34
|
+
"description": ["..."],
|
|
35
|
+
"files": ["./dist/llm-docs/**/*"]
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Consuming projects — the Graphics Kit and any future projects — use a `sync:llm-docs` script that reads this field across all installed `@reuters-graphics/*` packages and copies the matched files to `.claude/llms/{package-name}/` in the project root, then writes a `CLAUDE.md` entry using the `description`. Running that sync script after `pnpm install` keeps all library docs current automatically.
|
|
40
|
+
|
|
41
|
+
See the Graphics Kit for the sync script implementation.
|
|
42
|
+
|
|
43
|
+
## Maintaining the generator
|
|
44
|
+
|
|
45
|
+
The generation pipeline lives in `scripts/generate-llm-docs/` and runs as part of the `build` script. It has two plain-file configuration points that can be edited without touching any TypeScript.
|
|
46
|
+
|
|
47
|
+
### docs-map.json
|
|
48
|
+
|
|
49
|
+
`scripts/generate-llm-docs/docs-map.json` lists the MDX files from `src/docs/` that get extracted into `guides/`. Each entry maps a source path (relative to `src/docs/`) to an output filename and a fallback title:
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
[
|
|
53
|
+
{
|
|
54
|
+
"srcPath": "guides/archieml.mdx",
|
|
55
|
+
"destFile": "archieml.md",
|
|
56
|
+
"title": "Using ArchieML"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Add a new entry when a new guide is written in `src/docs/`. Remove or update entries when guides move or are renamed. The MDX extractor strips JSX components (`<Canvas>`, `<Meta>`, imports) and preserves the prose, so only files with meaningful prose content are worth including.
|
|
62
|
+
|
|
63
|
+
Some files in `src/docs/` are intentionally omitted — `theme-builder/` (a React application with no extractable prose), `styles/tokens/` (interactive data tables with no prose), and `docs-components/` and `utils/` (internal tooling). The colour and token reference docs are generated directly from SCSS source instead.
|
|
64
|
+
|
|
65
|
+
### master-index.md
|
|
66
|
+
|
|
67
|
+
`scripts/generate-llm-docs/master-index.md` is the static `index.md` that lands at the root of `dist/llm-docs/`. Edit it directly to update the library overview, install instructions, or section descriptions. No code changes required.
|
|
68
|
+
|
|
69
|
+
### Component docs
|
|
70
|
+
|
|
71
|
+
Component documentation is generated automatically by scanning `src/components/` — no configuration needed. Every component directory that contains a `.svelte` file is processed. Props, defaults, and JSDoc descriptions come from the TypeScript `interface Props {}` block; usage examples come from `<Story>` elements in the `.stories.svelte` file; prose comes from the `.mdx` file. New components are picked up on the next build.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Styles
|
|
2
|
+
|
|
3
|
+
This library also includes our main SCSS stylesheets with pre-defined classes you can use to style your page.
|
|
4
|
+
|
|
5
|
+
### Importing our main stylesheet
|
|
6
|
+
|
|
7
|
+
Import the SCSS directly in your top-level component. (This is done for you in the graphics kit.)
|
|
8
|
+
|
|
9
|
+
```svelte
|
|
10
|
+
<!-- pages/index.svelte -->
|
|
11
|
+
<script>
|
|
12
|
+
// other imports and stuffs ...
|
|
13
|
+
|
|
14
|
+
import '@reuters-graphics/graphics-components/scss/main.scss';
|
|
15
|
+
</script>
|
|
16
|
+
```
|