mirror of
https://github.com/penpot/penpot.git
synced 2026-05-04 15:49:34 +00:00
✨ Enable font-size token
This commit is contained in:
parent
02ae934e25
commit
9c5a13c4ac
@ -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]))
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user