native-theme 0.7.1

Cross-platform native theme detection and loading for Rust GUI applications
Documentation
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
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
# iOS theme: the flat look of iOS 13-18, light and dark
# Covers: iOS 13-18. Verified on: iOS 18 (code review M2c, 2026-10-11). iOS 26 (Liquid Glass)
# changed the system colours, the separator and WebKit's switch and progress bar; this preset
# keeps the iOS 13-18 values.
# Sources, by the short names the comments below use:
#   HIG color 2025-06-07: https://web.archive.org/web/20250607225442/https://developer.apple.com/tutorials/data/design/human-interface-guidelines/color.json
#     (the iOS system colours before the June 2025 update)
#   HIG typography 2025-05-23: https://web.archive.org/web/20250523115548/https://developer.apple.com/tutorials/data/design/human-interface-guidelines/typography.json
#     ("iOS, iPadOS Dynamic Type sizes", Large (default); the copy read 2026-10-11 gives the same values)
#   HIG accessibility 2024-11-14: https://web.archive.org/web/20241114144601/https://developer.apple.com/tutorials/data/design/human-interface-guidelines/accessibility.json
#   ios-18 expected.txt: WebKit de320ba3ff90229f983988d42d4b0f83315459da
#     LayoutTests/platform/ios-18/fast/css/ios/system-color-for-css-value-expected.txt (UIKit's iOS 18 colours)
#   html.css, RenderThemeIOS.mm: WebKit 31adf9d1605fad1fb548e86d36384161a2a060b4 (tag WebKit-7621.2.5.14.9,
#     before the iOS 26 form-control refresh), Source/WebCore/css/html.css and Source/WebCore/rendering/ios/RenderThemeIOS.mm
#   RenderThemeCocoa.mm: WebKit de320ba3ff90229f983988d42d4b0f83315459da Source/WebCore/rendering/cocoa/RenderThemeCocoa.mm
# (WebKit) marks a value read from WebKit's drawing of iOS controls (docs/platform-facts.md:23), not from UIKit.
# A value with no comment has no primary source (M2c Step 2 found none: Apple publishes no UIKit
# metric or state colour for it) and is kept as it was.
# docs/inheritance-rules.toml:488-498 asks a preset to state the colours it would otherwise inherit
# wrongly. No iOS source gives window.title_bar_background, list.header_background,
# menu.background_color, menu.font.color, list.item_font.color, list.header_font.color or
# scrollbar.thumb_color (the HIG's scroll indicator is "translucent", with no colour), so they
# are not stated and inherit.
name = "iOS"
# SF Symbols, the system symbol set (HIG https://developer.apple.com/tutorials/data/design/human-interface-guidelines/sf-symbols.json, read 2026-10-11)
icon_set = "sf-symbols"
icon_theme = "sf-symbols"

# === Light variant ===

[light.defaults]
# systemBlue (HIG color 2025-06-07, Blue; ios-18 expected.txt:13)
accent_color = "#007aff"
# systemBackground (ios-18 expected.txt:7)
background_color = "#ffffff"
# label (ios-18 expected.txt:73)
text_color = "#000000"
# secondarySystemBackground (ios-18 expected.txt:133)
surface_color = "#f2f2f7"
# secondaryLabel rgba(60,60,67,0.6) (ios-18 expected.txt:145), the macOS column's muted_color
# role (docs/platform-facts.md:1056); #8a8a8e over white
muted_color = "#3c3c4399"
shadow_color = "#00000018"

# systemRed (HIG color 2025-06-07, Red; ios-18 expected.txt:127)
danger_color = "#ff3b30"
danger_text_color = "#ffffff"
# systemOrange (HIG color 2025-06-07, Orange; ios-18 expected.txt:97)
warning_color = "#ff9500"
warning_text_color = "#000000"
# systemGreen (HIG color 2025-06-07, Green; ios-18 expected.txt:43)
success_color = "#34c759"
success_text_color = "#ffffff"
# systemBlue, the macOS column's info_color role (docs/platform-facts.md:1090)
info_color = "#007aff"
info_text_color = "#ffffff"

selection_background = "#007aff"
selection_text_color = "#ffffff"
link_color = "#007aff"
# (WebKit) systemBlue, WebKit's iOS focus ring (RenderThemeIOS.mm:936-943; ios-18 expected.txt:13)
focus_ring_color = "#007aff"
# (WebKit) tertiaryLabel rgba(60,60,67,0.298), the text of a disabled button or select
# (html.css:996-1003; ios-18 expected.txt:181); #c5c5c7 over white
disabled_text_color = "#3c3c434c"
accent_text_color = "#ffffff"

disabled_opacity = 0.3
# docs/platform-facts.md:1034 (§2.1.1): 1.19, SF Pro's font metrics, (1950+494+0)/2048, as
# macos-monterey.toml states it; SF Pro is the system font in iOS and iPadOS (HIG typography 2025-05-23)
line_height = 1.19
focus_ring_width_px = 2.0
focus_ring_offset_px = 1.0


[light.defaults.border]
# separator rgba(60,60,67,0.29) over white (ios-18 expected.txt:157)
color = "#c6c6c8"
corner_radius_px = 10.0
corner_radius_lg_px = 13.0
line_width_px = 0.5
# the text colour's share that gives color over the background (docs/platform-facts.md:950, :1001):
# black over white at 57/255 = 0.224 (red, green) and 55/255 = 0.216 (blue)
opacity = 0.22
shadow_enabled = true
[light.defaults.font]
# SF Pro, Body: Regular 17 pt (HIG typography 2025-05-23)
family = "SF Pro"
size_pt =17.0
weight = 400

[light.defaults.mono_font]
family = "SF Mono"
size_pt =17.0
weight = 400

[light.defaults.icon_sizes]
toolbar_px = 24.0
small_px = 16.0
large_px = 32.0
dialog_px = 22.0
panel_px = 20.0

[light.text_scale.caption]
# Caption 1: Regular 12 pt, leading 16 (HIG typography 2025-05-23)
size_pt =12.0
weight = 400
line_height_pt = 16.0

[light.text_scale.section_heading]
# Headline: Semibold 17 pt, leading 22 (HIG typography 2025-05-23); the macOS column's role,
# .headline (docs/platform-facts.md:1486)
size_pt =17.0
weight = 600
line_height_pt = 22.0

[light.text_scale.dialog_title]
# Title 1: Regular 28 pt, leading 34 (HIG typography 2025-05-23); the macOS column's role,
# .title1 (docs/platform-facts.md:1487)
size_pt =28.0
weight = 400
line_height_pt = 34.0

[light.text_scale.display]
# Large Title: Regular 34 pt, leading 41 (HIG typography 2025-05-23); the macOS column's role,
# .largeTitle (docs/platform-facts.md:1488)
size_pt =34.0
weight = 400
line_height_pt = 41.0

[light.button]
# (WebKit) opaqueSecondaryFill, an iOS button's fill (html.css:895; ios-18 expected.txt:85)
background_color = "#e9e9ea"
min_width_px = 64.0
# the HIG's minimum hit target, 44 x 44 pt (HIG accessibility 2024-11-14), used as the drawn min_height
min_height_px = 44.0
icon_text_gap_px = 6.0
hover_background = "#d1d1d6"
# hover_text_color is not stated: iOS has no hover state and WebKit's iOS html.css gives a button no
# :hover rule, so it inherits button.font.color (docs/inheritance-rules.toml:168)
active_background = "#c7c7cc"
# (WebKit) systemBlue, a pressed iOS button keeps its blue text (html.css:901-906; ios-18 expected.txt:13)
active_text_color = "#007aff"
disabled_background = "#e5e5ea80"
# (WebKit) tertiaryLabel, a disabled button's text (html.css:996-1003; ios-18 expected.txt:181)
disabled_text_color = "#3c3c434c"


[light.button.font]
# (WebKit) systemBlue, an iOS button's text (html.css:891; ios-18 expected.txt:13)
color = "#007aff"
[light.input]
# (WebKit) Canvas = systemBackground (html.css:463; RenderThemeIOS.mm:1024; ios-18 expected.txt:7)
background_color = "#ffffff"
# the HIG's minimum hit target, 44 x 44 pt (HIG accessibility 2024-11-14), used as the drawn min_height
min_height_px = 44.0
hover_border_color = "#007aff"
focus_border_color = "#007aff"
disabled_background = "#f2f2f7"
disabled_text_color = "#c7c7cc"
# placeholderText, "The color for placeholder text in controls or text views" (UIKit
# https://developer.apple.com/tutorials/data/documentation/uikit/uicolor/placeholdertext.json, read 2026-10-11),
# rgba(60,60,67,0.298) (ios-18 expected.txt:109); #c5c5c7 over white
placeholder_color = "#3c3c434c"


[light.input.font]
# label (ios-18 expected.txt:73)
color = "#000000"

[light.input.border]
# docs/inheritance-rules.toml:605 ([wrong_safety_nets]): the defaults' shadow is a wrong safety net for this control, and the preset must say so
shadow_enabled = false
[light.checkbox]
indicator_width_px = 22.0
label_gap_px = 8.0
hover_background = "#d1d1d6"
disabled_background = "#e5e5ea80"
disabled_text_color = "#c7c7cc"
unchecked_background = "#ffffff"
unchecked_border_color = "#c6c6c8"

[light.checkbox.border]
# docs/inheritance-rules.toml:609 ([wrong_safety_nets]): the defaults' shadow is a wrong safety net for this control, and the preset must say so
shadow_enabled = false

[light.tooltip]
background_color = "#2c2c2e"
max_width_px = 300.0
# show_delay_ms unset: UIToolTipInteraction, iOS 15+, states no delay (UIKit
# https://developer.apple.com/documentation/uikit/uitooltipinteraction, read 2026-10-14)


[light.tooltip.font]
color = "#ffffff"
[light.scrollbar]
groove_width_px = 6.0
thumb_width_px = 3.0
# a translucent scroll indicator shown while scrolling (HIG https://developer.apple.com/tutorials/data/design/human-interface-guidelines/scroll-views.json, read 2026-10-11)
overlay_mode = true
min_thumb_length_px = 30.0
thumb_hover_color = "#a0a0a5"
thumb_active_color = "#8e8e93"

[light.slider]
# (WebKit) kTrackThickness, the track of WebKit's HTML range control (RenderThemeIOS.mm:560)
track_height_px = 4.0
# (WebKit) opaqueFill, the range control's track (RenderThemeIOS.mm:623; ios-18 expected.txt:79)
track_color = "#e4e4e5"
# no UIKit source. The same range control's thumb is 16 (kDefaultSliderThumbSize, RenderThemeIOS.mm:562,
# :657-661), which M2c Step 6 did not take as UISlider's (M2c-21)
thumb_diameter_px = 28.0
# no UIKit source. The same range control's ticks are 1 x 3, under a FIXME that says the values need
# correcting (RenderThemeIOS.mm:796-800)
tick_mark_length_px = 4.0
thumb_hover_color = "#f0f0f0"
disabled_fill_color = "#007aff80"
disabled_track_color = "#c7c7cc"
disabled_thumb_color = "#e5e5ea"

[light.progress_bar]
# (WebKit) barBlockSize (RenderThemeIOS.mm:718)
track_height_px = 4.0
min_width_px = 100.0
# (WebKit) opaqueFill, the progress bar's track (RenderThemeIOS.mm:752; ios-18 expected.txt:79)
track_color = "#e4e4e5"

[light.progress_bar.border]
# docs/inheritance-rules.toml:613 ([wrong_safety_nets]): the defaults' shadow is a wrong safety net for this control, and the preset must say so
shadow_enabled = false

[light.tab]
min_width_px = 64.0
min_height_px = 49.0
hover_background = "#e5e5ea"
hover_text_color = "#000000"
active_background = "#ffffff"
active_text_color = "#007aff"


[light.menu]
icon_text_gap_px = 8.0
hover_background = "#007aff"
hover_text_color = "#ffffff"
disabled_text_color = "#c7c7cc"


[light.list]
alternate_row_background = "#f2f2f7"
hover_background = "#e5e5ea"
hover_text_color = "#000000"
disabled_text_color = "#c7c7cc"


[light.toolbar]

[light.sidebar]
background_color = "#f2f2f7"
hover_background = "#e5e5ea"


[light.sidebar.font]
# label (ios-18 expected.txt:73)
color = "#000000"
[light.popover]
background_color = "#ffffff"


[light.popover.font]
# label (ios-18 expected.txt:73)
color = "#000000"
[light.separator]
# separator rgba(60,60,67,0.29) over white (ios-18 expected.txt:157)
line_color = "#c6c6c8"

[light.splitter]
divider_width_px = 1.0
hover_color = "#007aff"

[light.switch]
# (WebKit) the on track is systemGreen on iOS (RenderThemeCocoa.mm:271-275, :333; ios-18 expected.txt:43)
checked_background = "#34c759"
# (WebKit) the off track, rgba(120,120,128,41/255) (RenderThemeCocoa.mm:277); #e9e9eb over white
unchecked_background = "#78788029"
hover_checked_background = "#2d8a47"
hover_unchecked_background = "#b0b0b5"
# (WebKit) a disabled switch's track is its track colour with the alpha multiplied by 0.4
# (RenderThemeCocoa.mm:816-817, the painter of :271-279): on 255 x 0.4 = 102 (0x66), #aee9bd over
# white; off 41 x 0.4 = 16.4, rounded to 16 (0x10), #f7f7f7 over white
disabled_checked_background = "#34c75966"
disabled_unchecked_background = "#78788010"
# (WebKit) the thumb is white, disabled too (RenderThemeCocoa.mm:763)
disabled_thumb_color = "#ffffff"
# (WebKit) white (RenderThemeCocoa.mm:763)
thumb_background = "#ffffff"
# (WebKit) 51 x 31 (RenderThemeIOS.mm:668-669; RenderThemeCocoa.mm:216-218)
track_width_px = 51.0
track_height_px = 31.0
# (WebKit) the track height less a 2 pt margin on each side (RenderThemeCocoa.mm:770-771)
thumb_diameter_px = 27.0
track_radius_px = 15.5

[light.dialog]
# "Always place the default button on the trailing side" (HIG https://developer.apple.com/tutorials/data/design/human-interface-guidelines/alerts.json, read 2026-10-11)
button_order = "primary_right"
min_width_px = 270.0
max_width_px = 560.0
min_height_px = 140.0
max_height_px = 600.0
button_gap_px = 8.0
icon_size_px =32.0

[light.link]
underline_enabled = false
background_color = "#00000000"
hover_background = "#007aff18"
hover_text_color = "#007aff"
active_text_color = "#0056b3"
disabled_text_color = "#c7c7cc"

[light.spinner]
diameter_px = 24.0
min_diameter_px = 16.0
stroke_width_px = 2.0

[light.combo_box]
# the HIG's minimum hit target, 44 x 44 pt (HIG accessibility 2024-11-14), used as the drawn min_height
min_height_px = 44.0
min_width_px = 120.0
arrow_icon_size_px =12.0
hover_background = "#d1d1d6"
disabled_background = "#e5e5ea80"
# (WebKit) tertiaryLabel, a disabled select's text (html.css:996-1003; ios-18 expected.txt:181)
disabled_text_color = "#3c3c434c"
# (WebKit) opaqueSecondaryFill, an iOS select's fill (html.css:1106; ios-18 expected.txt:85)
background_color = "#e9e9ea"

[light.combo_box.font]
# (WebKit) systemBlue, an iOS select's text (html.css:1099; ios-18 expected.txt:13)
color = "#007aff"

[light.combo_box.border]
# docs/inheritance-rules.toml:617 ([wrong_safety_nets]): the defaults' shadow is a wrong safety net for this control, and the preset must say so
shadow_enabled = false


[light.segmented_control]
segment_height_px = 32.0
separator_width_px = 1.0
hover_background = "#d1d1d6"
active_background = "#007aff"
active_text_color = "#ffffff"

[light.segmented_control.border]
# docs/inheritance-rules.toml:621 ([wrong_safety_nets]): the defaults' shadow is a wrong safety net for this control, and the preset must say so
shadow_enabled = false


[light.card]

[light.expander]
header_height_px = 44.0
arrow_icon_size_px =12.0
hover_background = "#e5e5ea"
arrow_color = "#8e8e93"

[light.expander.border]
# docs/inheritance-rules.toml:625 ([wrong_safety_nets]): the defaults' shadow is a wrong safety net for this control, and the preset must say so
shadow_enabled = false

[light.window]
inactive_title_bar_background = "#f2f2f7"
inactive_title_bar_text_color = "#000000"

# === Dark variant ===

[dark.defaults]
# systemBlue (HIG color 2025-06-07, Blue; ios-18 expected.txt:15)
accent_color = "#0a84ff"
# systemBackground (ios-18 expected.txt:9)
background_color = "#000000"
# label (ios-18 expected.txt:75)
text_color = "#ffffff"
# secondarySystemBackground (ios-18 expected.txt:135)
surface_color = "#1c1c1e"
# secondaryLabel rgba(235,235,245,0.6) (ios-18 expected.txt:147), the macOS column's muted_color
# role (docs/platform-facts.md:1056); #8d8d93 over black
muted_color = "#ebebf599"
shadow_color = "#00000040"

# systemRed (HIG color 2025-06-07, Red; ios-18 expected.txt:129)
danger_color = "#ff453a"
danger_text_color = "#ffffff"
# systemOrange (HIG color 2025-06-07, Orange; ios-18 expected.txt:99)
warning_color = "#ff9f0a"
warning_text_color = "#000000"
# systemGreen (HIG color 2025-06-07, Green; ios-18 expected.txt:45)
success_color = "#30d158"
success_text_color = "#ffffff"
# systemBlue, the macOS column's info_color role (docs/platform-facts.md:1090)
info_color = "#0a84ff"
info_text_color = "#ffffff"

selection_background = "#0a84ff"
selection_text_color = "#ffffff"
link_color = "#0a84ff"
# (WebKit) systemBlue, WebKit's iOS focus ring (RenderThemeIOS.mm:936-943; ios-18 expected.txt:15)
focus_ring_color = "#0a84ff"
# (WebKit) tertiaryLabel rgba(235,235,245,0.298), the text of a disabled button or select
# (html.css:996-1003; ios-18 expected.txt:183); #464649 over black
disabled_text_color = "#ebebf54c"
accent_text_color = "#ffffff"

disabled_opacity = 0.3
# docs/platform-facts.md:1034 (§2.1.1): 1.19, SF Pro's font metrics, (1950+494+0)/2048, as
# macos-monterey.toml states it; SF Pro is the system font in iOS and iPadOS (HIG typography 2025-05-23)
line_height = 1.19
focus_ring_width_px = 2.0
focus_ring_offset_px = 1.0


[dark.defaults.border]
color = "#38383a"
corner_radius_px = 10.0
corner_radius_lg_px = 13.0
line_width_px = 0.5
# the text colour's share that gives color over the background (docs/platform-facts.md:950, :1001):
# white over black at 56/255 = 0.220 (red, green) and 58/255 = 0.227 (blue)
opacity = 0.22
shadow_enabled = true
[dark.defaults.font]
# SF Pro, Body: Regular 17 pt (HIG typography 2025-05-23)
family = "SF Pro"
size_pt =17.0
weight = 400

[dark.defaults.mono_font]
family = "SF Mono"
size_pt =17.0
weight = 400

[dark.defaults.icon_sizes]
toolbar_px = 24.0
small_px = 16.0
large_px = 32.0
dialog_px = 22.0
panel_px = 20.0

[dark.text_scale.caption]
# Caption 1: Regular 12 pt, leading 16 (HIG typography 2025-05-23)
size_pt =12.0
weight = 400
line_height_pt = 16.0

[dark.text_scale.section_heading]
# Headline: Semibold 17 pt, leading 22 (HIG typography 2025-05-23); the macOS column's role,
# .headline (docs/platform-facts.md:1486)
size_pt =17.0
weight = 600
line_height_pt = 22.0

[dark.text_scale.dialog_title]
# Title 1: Regular 28 pt, leading 34 (HIG typography 2025-05-23); the macOS column's role,
# .title1 (docs/platform-facts.md:1487)
size_pt =28.0
weight = 400
line_height_pt = 34.0

[dark.text_scale.display]
# Large Title: Regular 34 pt, leading 41 (HIG typography 2025-05-23); the macOS column's role,
# .largeTitle (docs/platform-facts.md:1488)
size_pt =34.0
weight = 400
line_height_pt = 41.0

[dark.button]
# (WebKit) opaqueSecondaryFill, an iOS button's fill (html.css:895; ios-18 expected.txt:87)
background_color = "#262629"
min_width_px = 64.0
# the HIG's minimum hit target, 44 x 44 pt (HIG accessibility 2024-11-14), used as the drawn min_height
min_height_px = 44.0
icon_text_gap_px = 6.0
hover_background = "#3a3a3c"
# hover_text_color is not stated: iOS has no hover state and WebKit's iOS html.css gives a button no
# :hover rule, so it inherits button.font.color (docs/inheritance-rules.toml:168)
active_background = "#48484a"
# (WebKit) systemBlue, a pressed iOS button keeps its blue text (html.css:901-906; ios-18 expected.txt:15)
active_text_color = "#0a84ff"
disabled_background = "#2c2c2e80"
# (WebKit) tertiaryLabel, a disabled button's text (html.css:996-1003; ios-18 expected.txt:183)
disabled_text_color = "#ebebf54c"


[dark.button.font]
# (WebKit) systemBlue, an iOS button's text (html.css:891; ios-18 expected.txt:15)
color = "#0a84ff"
[dark.input]
# (WebKit) Canvas = systemBackground (html.css:463; RenderThemeIOS.mm:1024; ios-18 expected.txt:9)
background_color = "#000000"
# the HIG's minimum hit target, 44 x 44 pt (HIG accessibility 2024-11-14), used as the drawn min_height
min_height_px = 44.0
hover_border_color = "#0a84ff"
focus_border_color = "#0a84ff"
disabled_background = "#2c2c2e"
disabled_text_color = "#3a3a3c"
# placeholderText, "The color for placeholder text in controls or text views" (UIKit
# https://developer.apple.com/tutorials/data/documentation/uikit/uicolor/placeholdertext.json, read 2026-10-11),
# rgba(235,235,245,0.298) (ios-18 expected.txt:111); #464649 over black
placeholder_color = "#ebebf54c"


[dark.input.font]
# label (ios-18 expected.txt:75)
color = "#ffffff"

[dark.input.border]
# docs/inheritance-rules.toml:605 ([wrong_safety_nets]): the defaults' shadow is a wrong safety net for this control, and the preset must say so
shadow_enabled = false
[dark.checkbox]
indicator_width_px = 22.0
label_gap_px = 8.0
hover_background = "#3a3a3c"
disabled_background = "#2c2c2e80"
disabled_text_color = "#3a3a3c"
unchecked_background = "#1c1c1e"
unchecked_border_color = "#38383a"

[dark.checkbox.border]
# docs/inheritance-rules.toml:609 ([wrong_safety_nets]): the defaults' shadow is a wrong safety net for this control, and the preset must say so
shadow_enabled = false

[dark.tooltip]
background_color = "#2c2c2e"
max_width_px = 300.0
# show_delay_ms unset: UIToolTipInteraction, iOS 15+, states no delay (UIKit
# https://developer.apple.com/documentation/uikit/uitooltipinteraction, read 2026-10-14)


[dark.tooltip.font]
color = "#ffffff"
[dark.scrollbar]
groove_width_px = 6.0
thumb_width_px = 3.0
# a translucent scroll indicator shown while scrolling (HIG https://developer.apple.com/tutorials/data/design/human-interface-guidelines/scroll-views.json, read 2026-10-11)
overlay_mode = true
min_thumb_length_px = 30.0
thumb_hover_color = "#636366"
thumb_active_color = "#8e8e93"

[dark.slider]
# (WebKit) kTrackThickness, the track of WebKit's HTML range control (RenderThemeIOS.mm:560)
track_height_px = 4.0
# (WebKit) opaqueFill, the range control's track (RenderThemeIOS.mm:623; ios-18 expected.txt:81)
track_color = "#2b2b2e"
# no UIKit source. The same range control's thumb is 16 (kDefaultSliderThumbSize, RenderThemeIOS.mm:562,
# :657-661), which M2c Step 6 did not take as UISlider's (M2c-21)
thumb_diameter_px = 28.0
# no UIKit source. The same range control's ticks are 1 x 3, under a FIXME that says the values need
# correcting (RenderThemeIOS.mm:796-800)
tick_mark_length_px = 4.0
thumb_hover_color = "#3a3a3c"
disabled_fill_color = "#0a84ff80"
disabled_track_color = "#38383a"
disabled_thumb_color = "#2c2c2e"

[dark.progress_bar]
# (WebKit) barBlockSize (RenderThemeIOS.mm:718)
track_height_px = 4.0
min_width_px = 100.0
# (WebKit) opaqueFill, the progress bar's track (RenderThemeIOS.mm:752; ios-18 expected.txt:81)
track_color = "#2b2b2e"

[dark.progress_bar.border]
# docs/inheritance-rules.toml:613 ([wrong_safety_nets]): the defaults' shadow is a wrong safety net for this control, and the preset must say so
shadow_enabled = false

[dark.tab]
min_width_px = 64.0
min_height_px = 49.0
hover_background = "#2c2c2e"
hover_text_color = "#ffffff"
active_background = "#000000"
active_text_color = "#0a84ff"


[dark.menu]
icon_text_gap_px = 8.0
hover_background = "#0a84ff"
hover_text_color = "#ffffff"
disabled_text_color = "#3a3a3c"


[dark.list]
alternate_row_background = "#1c1c1e"
hover_background = "#2c2c2e"
hover_text_color = "#ffffff"
disabled_text_color = "#3a3a3c"


[dark.toolbar]

[dark.sidebar]
background_color = "#1c1c1e"
hover_background = "#2c2c2e"


[dark.sidebar.font]
# label (ios-18 expected.txt:75)
color = "#ffffff"
[dark.popover]
background_color = "#1c1c1e"


[dark.popover.font]
# label (ios-18 expected.txt:75)
color = "#ffffff"
[dark.separator]
line_color = "#38383a"

[dark.splitter]
divider_width_px = 1.0
hover_color = "#0a84ff"

[dark.switch]
# (WebKit) the on track is systemGreen on iOS (RenderThemeCocoa.mm:271-275, :333; ios-18 expected.txt:45)
checked_background = "#30d158"
# (WebKit) the off track, rgba(120,120,128,82/255) (RenderThemeCocoa.mm:279); #272729 over black
unchecked_background = "#78788052"
hover_checked_background = "#25813c"
hover_unchecked_background = "#48484a"
# (WebKit) a disabled switch's track is its track colour with the alpha multiplied by 0.4
# (RenderThemeCocoa.mm:816-817, the painter of :271-279): on 255 x 0.4 = 102 (0x66), #135423 over
# black; off 82 x 0.4 = 32.8, rounded to 33 (0x21), #101011 over black
disabled_checked_background = "#30d15866"
disabled_unchecked_background = "#78788021"
# (WebKit) the thumb is white, disabled too (RenderThemeCocoa.mm:763)
disabled_thumb_color = "#ffffff"
# (WebKit) white (RenderThemeCocoa.mm:763)
thumb_background = "#ffffff"
# (WebKit) 51 x 31 (RenderThemeIOS.mm:668-669; RenderThemeCocoa.mm:216-218)
track_width_px = 51.0
track_height_px = 31.0
# (WebKit) the track height less a 2 pt margin on each side (RenderThemeCocoa.mm:770-771)
thumb_diameter_px = 27.0
track_radius_px = 15.5

[dark.dialog]
# "Always place the default button on the trailing side" (HIG https://developer.apple.com/tutorials/data/design/human-interface-guidelines/alerts.json, read 2026-10-11)
button_order = "primary_right"
min_width_px = 270.0
max_width_px = 560.0
min_height_px = 140.0
max_height_px = 600.0
button_gap_px = 8.0
icon_size_px =32.0

[dark.link]
underline_enabled = false
background_color = "#00000000"
hover_background = "#0a84ff18"
hover_text_color = "#0a84ff"
active_text_color = "#409cff"
disabled_text_color = "#3a3a3c"

[dark.spinner]
diameter_px = 24.0
min_diameter_px = 16.0
stroke_width_px = 2.0

[dark.combo_box]
# the HIG's minimum hit target, 44 x 44 pt (HIG accessibility 2024-11-14), used as the drawn min_height
min_height_px = 44.0
min_width_px = 120.0
arrow_icon_size_px =12.0
hover_background = "#3a3a3c"
disabled_background = "#2c2c2e80"
# (WebKit) tertiaryLabel, a disabled select's text (html.css:996-1003; ios-18 expected.txt:183)
disabled_text_color = "#ebebf54c"
# (WebKit) opaqueSecondaryFill, an iOS select's fill (html.css:1106; ios-18 expected.txt:87)
background_color = "#262629"

[dark.combo_box.font]
# (WebKit) systemBlue, an iOS select's text (html.css:1099; ios-18 expected.txt:15)
color = "#0a84ff"

[dark.combo_box.border]
# docs/inheritance-rules.toml:617 ([wrong_safety_nets]): the defaults' shadow is a wrong safety net for this control, and the preset must say so
shadow_enabled = false


[dark.segmented_control]
segment_height_px = 32.0
separator_width_px = 1.0
hover_background = "#3a3a3c"
active_background = "#0a84ff"
active_text_color = "#ffffff"

[dark.segmented_control.border]
# docs/inheritance-rules.toml:621 ([wrong_safety_nets]): the defaults' shadow is a wrong safety net for this control, and the preset must say so
shadow_enabled = false


[dark.card]

[dark.expander]
header_height_px = 44.0
arrow_icon_size_px =12.0
hover_background = "#2c2c2e"
arrow_color = "#8e8e93"

[dark.expander.border]
# docs/inheritance-rules.toml:625 ([wrong_safety_nets]): the defaults' shadow is a wrong safety net for this control, and the preset must say so
shadow_enabled = false

[dark.window]
inactive_title_bar_background = "#1c1c1e"
inactive_title_bar_text_color = "#ffffff"

[layout]
widget_gap_px = 8.0
# the default layout margins of most views, 8 pt (UIKit https://developer.apple.com/tutorials/data/documentation/uikit/uiview/directionallayoutmargins.json, read 2026-10-11)
container_margin_px = 8.0
window_margin_px = 20.0
section_gap_px = 20.0