devsandbox 0.11.1

Manage devcontainer-style sandboxes on docker, podman, or Apple container — many throwaway instances per repo from one TOML config.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
.docs-shell {
  max-width: var(--page-max);
  min-height: calc(100vh - var(--header-h));
  margin: auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 232px;
}

.docs-sidebar {
  border-right: 1px solid var(--border);
  padding: 34px 19px 40px 28px;
}

.sidebar-nav {
  position: sticky;
  top: calc(var(--header-h) + 34px);
}

.docs-main {
  width: 100%;
  max-width: 850px;
  min-width: 0;
  padding: 42px clamp(30px, 5vw, 88px) 100px;
  margin: 0 auto;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0 0 69px;
  padding: 0;
  font-size: 11px;
  color: #728889;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb a:hover {
  color: var(--lime);
}

.breadcrumb [aria-current] {
  color: #c0d0cd;
}

.article-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eyebrow {
  font: 500 10px var(--font-mono);
  letter-spacing: 0.13em;
  color: #a6f071;
  display: flex;
  align-items: center;
  gap: 13px;
}

.eyebrow-line {
  height: 1px;
  width: 19px;
  background: var(--lime);
}

.read-time {
  font: 10px var(--font-mono);
  color: #789092;
}

.docs-main h1 {
  font: 700 clamp(42px, 4vw, 60px) / 1.15 var(--font-heading);
  letter-spacing: -0.06em;
  margin: 18px 0;
  color: var(--text-bright);
}

.article-lead {
  font-size: 17px;
  line-height: 1.6;
  color: #adbfbd;
  max-width: 625px;
  margin: 0;
}

.article-divider {
  height: 1px;
  background: #334043;
  margin: 43px 0 0;
  border: 0;
}

/* An `h2` brings its own top margin; a page opening on prose needs one too, or
   the text sits against the divider. */
.prose > :first-child:not(h2) {
  margin-top: 36px;
}

.article-bottom {
  border-top: 1px solid #334043;
  margin-top: 67px;
  padding-top: 25px;
}

/* Provenance line closing every docs page: source file + GitHub link. */
.prose .article-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 48px 0 0;
  font: 11px var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.prose .article-source a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

@media (max-width: 700px) {
  .prose .article-source a {
    margin-left: 0;
  }
}

.prose {
  padding-top: 4px;
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.8;
}

.prose h2,
.prose h3,
.prose h4 {
  position: relative;
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 33px);
}

.prose h2 {
  font: 600 25px/1.2 var(--font-heading);
  letter-spacing: -0.045em;
  margin: 46px 0 20px;
}

.prose h3 {
  font: 600 18px/1.3 var(--font-heading);
  letter-spacing: -0.035em;
  margin: 36px 0 14px;
  color: #e1ebe9;
}

.prose h4 {
  font: 600 12px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfe0dc;
  margin: 28px 0 10px;
}

/* Permalinks: `#` hangs in the gutter before the title, revealed on hover
   (inline and always visible on narrow screens). */
.heading-anchor {
  position: absolute;
  right: 100%;
  margin-right: 11px;
  top: 0;
  font: 500 17px/30px var(--font-mono);
  color: #577471;
  opacity: 0;
  transition:
    opacity 0.2s,
    color 0.2s;
}

.heading-anchor::before {
  content: '#';
}

.prose h3 .heading-anchor {
  font-size: 14px;
  line-height: 23px;
}

.prose h2:hover .heading-anchor,
.prose h3:hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}

.heading-anchor:hover {
  color: var(--lime);
}

.prose h2 code,
.prose h3 code {
  font-size: 0.85em;
}

.prose p {
  margin: 0 0 17px;
}

.prose p + p {
  margin-top: 15px;
}

.prose strong {
  color: #dfe9e7;
  font-weight: 700;
}

.prose a:not(.heading-anchor, .next-page) {
  color: var(--lime-soft);
  text-decoration: underline;
  text-decoration-color: #4f6b45;
  text-underline-offset: 3px;
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}

.prose a:not(.heading-anchor, .next-page):hover {
  color: var(--lime);
  text-decoration-color: var(--lime);
}

.prose ul,
.prose ol {
  padding-left: 19px;
  margin: 8px 0 20px;
}

.prose li {
  padding-left: 8px;
  margin-bottom: 8px;
}

.prose li > ul,
.prose li > ol {
  margin: 8px 0 0;
}

.prose ul > li::marker {
  color: #a6ea6e;
}

.prose ol > li::marker {
  color: #a6ea6e;
  font: 500 12px var(--font-mono);
}

.prose :not(pre) > code {
  font: 0.88em var(--font-mono);
  color: #bfe6e3;
  background: #162326;
  border: 1px solid #293b3e;
  border-radius: var(--radius-sm);
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

.prose blockquote {
  margin: 24px 0;
  padding: 14px 19px;
  border-left: 2px solid var(--cyan-deep);
  background: #142125;
  color: #a9c0c0;
}

.prose blockquote > :last-child {
  margin-bottom: 0;
}

.prose hr {
  border: 0;
  height: 1px;
  background: #334043;
  margin: 40px 0;
}

/* Tables scroll sideways on their own (wrapper from src/lib/heading-anchors.ts)
   rather than widening the page. Touch screens hide the scrollbar, so a
   shadow marks the side with more table: the `local` covers move with the
   content and hide the `scroll` shadows once an end is reached. */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  margin: 24px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  background:
    linear-gradient(to right, var(--bg) 40%, transparent) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--bg) 40%, transparent) right / 32px 100% no-repeat local,
    linear-gradient(to right, rgb(145 230 232 / 0.22), transparent) left / 16px 100% no-repeat scroll,
    linear-gradient(to left, rgb(145 230 232 / 0.22), transparent) right / 16px 100% no-repeat scroll,
    var(--bg);
}

.table-scroll:focus-visible {
  outline-offset: 2px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.6;
}

.prose thead {
  background: var(--surface-code-head);
}

.prose th {
  text-align: left;
  font: 500 10px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #91aba9;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.prose td {
  padding: 11px 16px;
  vertical-align: top;
  border-top: 1px solid #253336;
}

.prose tbody tr:first-child td {
  border-top: 0;
}

/* Translucent so the .table-scroll shadows show through. */
.prose tbody tr:nth-child(even) {
  background: rgb(30 70 75 / 0.15);
}

.prose td:first-child {
  color: #dbe7e4;
}

/* The key column shrinks to its (unbreakable) content; auto layout would
   otherwise hand it space by max-content share, starving the prose column. */
.prose :is(th, td):first-child:not(:only-child) {
  width: 1%;
}

/* Keys, flags and field names in the first column shouldn't break mid-token. */
.prose td:first-child code {
  white-space: nowrap;
}

/* `anywhere` lets code shrink a column to one character wide (type columns
   like `{ spawn = [string], … }` wrapped per token); `break-word` only breaks
   when a token can't fit, so columns size to their words. */
.prose td code {
  overflow-wrap: break-word;
}

.toc {
  border-left: 1px solid var(--border);
  padding: 42px 22px;
}

.toc-inner {
  position: sticky;
  top: calc(var(--header-h) + 43px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-height: calc(100vh - var(--header-h) - 86px);
  overflow-y: auto;
}

.toc-label {
  font: 500 10px var(--font-mono);
  letter-spacing: 0.11em;
  color: #d9e9e3;
  margin-bottom: 22px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc a {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: #849a9a;
  padding: 7px 0 7px 10px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.toc .toc-depth-3 a {
  padding-left: 22px;
  font-size: 10.5px;
}

.toc a:hover {
  color: #b5ef8b;
}

.toc a[data-active] {
  color: var(--lime-soft);
  border-left-color: var(--lime);
}

.toc-list {
  border-left: 1px solid #2d393a;
}

.toc-rule {
  height: 1px;
  background: #2d393a;
  width: 100%;
  margin: 18px 0 12px;
}

.toc .toc-external {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
  padding-left: 0;
  border: 0;
}

@media (max-width: 1180px) {
  .docs-shell {
    grid-template-columns: 220px minmax(0, 1fr) 190px;
  }

  .docs-sidebar {
    padding-left: 15px;
  }

  .docs-main {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 980px) {
  .docs-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .toc {
    display: none;
  }
}

@media (max-width: 700px) {
  .docs-shell {
    display: block;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-main {
    padding: 27px var(--gutter) 70px;
    max-width: 680px;
  }

  .breadcrumb ol {
    margin-bottom: 52px;
  }

  .docs-main h1 {
    font-size: 45px;
  }

  .article-lead {
    font-size: 15px;
  }

  .article-divider {
    margin-top: 34px;
  }

  .prose h2 {
    font-size: 23px;
    margin-top: 39px;
  }

  .heading-anchor {
    position: static;
    margin-right: 9px;
    opacity: 1;
  }

  /* Three-plus columns squeezed into a phone make the prose column a few
     words wide and the table thousands of pixels tall; scroll instead. */
  .prose table:has(th:nth-child(3)) {
    min-width: 600px;
  }
}