This commit is contained in:
Andrés Moya
2026-02-20 12:42:18 +01:00
parent b2f1a1d5f4
commit 74e35c58e4

View File

@@ -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])