Enable font-size token

This commit is contained in:
Florian Schroedl 2025-07-11 09:26:24 +02:00 committed by Xaviju
parent 02ae934e25
commit 9c5a13c4ac
3 changed files with 4 additions and 2 deletions

View file

@ -135,6 +135,8 @@
(def typography-keys (set/union font-size-keys letter-spacing-keys))
(def ff-typography-keys (set/difference typography-keys font-size-keys))
(def ^:private schema:number
(reduce mu/union [[:map [:line-height {:optional true} token-name-ref]]
schema:rotation]))

View file

@ -70,7 +70,7 @@
(and (not (contains? cf/flags :token-units))
(= dtcg-token-type "number"))
(and (not (contains? cf/flags :token-typography-types))
(contains? ctt/typography-keys dtcg-token-type)))
(contains? ctt/ff-typography-keys dtcg-token-type)))
nil
dtcg-token-type))})}
(catch js/Error e

View file

@ -34,7 +34,7 @@
token-typography-types? (contains? cf/flags :token-typography-types)
all-types (cond-> dwta/token-properties
(not token-units?) (dissoc :number)
(not token-typography-types?) (remove-keys ctt/typography-keys))
(not token-typography-types?) (remove-keys ctt/ff-typography-keys))
all-types (-> all-types keys seq)]
(loop [empty #js []
filled #js []