mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
✨ Enable font-size token
This commit is contained in:
parent
02ae934e25
commit
9c5a13c4ac
3 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue