Check and radio buttons

Live: the check button and radio button cards of the gallery.

checkbutton

set opts(sync) 1
set opts(mixed) x
checkbutton .sync -text "Sync files" -variable opts(sync)
checkbutton .mixed -text "Some of the folders" -variable opts(mixed) -tristatevalue x
checkbutton .wifi -text "Wi-Fi" -variable opts(wifi)
ztk::class .wifi add switch
pack .sync .mixed .wifi -anchor w -padx 12 -pady 2
The check button Sync files on, the check button Some of the folders, in the mixed state, and a Wi-Fi switch that is off
Live

radiobutton

set quality high
foreach {v t} {low Draft normal Normal high "Fine detail"} {
    radiobutton .q$v -text $t -variable quality -value $v
    pack .q$v -anchor w -padx 12
}
frame .seg
foreach {v t} {list List grid Grid columns Columns} {
    radiobutton .seg.$v -text $t -variable view -value $v -indicatoron 0
    ztk::class .seg.$v add segmented
    pack .seg.$v -side left
}
set view list
pack .seg -padx 12 -pady 8
Three radio buttons with Fine detail selected, and a segmented control of List, Grid, and Columns with List selected
Live

The style class segmented joins radio buttons with -indicatoron 0 into a segmented control.

In CSS

The indicator is the part ::indicator, and the states are pseudo-classes:

Checkbutton.switch:checked::indicator { background: #16a34a; }
Radiobutton:hover::indicator { border-color: var(--accent); }

The ttk forms are on Themed widgets.