Iosevka/parameters.patel

11 lines
476 B
Plaintext

export : define [build parametersData styles] : begin
local param {.}
local variantSelector {.}
foreach [style : items-of styles] : begin
local hive parametersData.(style)
if hive : then
foreach [k : items-of : Object.keys hive] : set param.(k) hive.(k)
if hive.variantSelector : foreach [k : items-of : Object.keys hive.variantSelector] : begin
set variantSelector.(k) hive.variantSelector.(k)
param.variantSelector = variantSelector
return param