mirror of
https://github.com/penpot/penpot.git
synced 2026-02-20 08:10:51 -05:00
f
This commit is contained in:
@@ -56,10 +56,11 @@
|
||||
(def schema:token-value-opacity
|
||||
[:and
|
||||
::sm/text
|
||||
[:fn {:error/fn #(tr "workspace.tokens.opacity-range")}
|
||||
(fn [opacity]
|
||||
(let [n (d/parse-percent opacity)]
|
||||
(and (some? n) (<= 0 n 1))))]])
|
||||
[:or cto/schema:token-ref
|
||||
[:fn {:error/fn #(tr "workspace.tokens.opacity-range")}
|
||||
(fn [opacity]
|
||||
(let [n (d/parse-percent opacity)]
|
||||
(and (some? n) (<= 0 n 1))))]]])
|
||||
|
||||
(def schema:token-value-font-family
|
||||
[:vector ::sm/text])
|
||||
|
||||
Reference in New Issue
Block a user