mirror of
https://github.com/penpot/penpot.git
synced 2026-11-18 16:12:24 +00:00
Token import and export move to tokenscript.document.read and tokenscript.document.write in the tokenscript-interpreter package (penpot/tokenscript-interpreter#4). tokens-lib keeps an adapter that maps its documents to a TokensLib and back: penpot's token types, the keys of composite values and the activation of themes and sets. About 600 lines of format detection, legacy rewriting and tree walking go. - Imports read DTCG 2025.10 files: {value, unit} dimensions, color objects in their color space (oklch(l, c, h)), the fontFamily and fontWeight type names, $root, $extends and $ref aliases. Legacy and DTCG nodes can be mixed in one file. - What penpot does not store is dropped and listed in one warning toast: $extensions, $deprecated, group descriptions, values the reader cannot use (such as a Rec. 2020 color without hex), groups whose $extends fails and tokens of types penpot does not have. - Sets a theme marks disabled are no longer part of the theme, and activating a theme deactivates the other themes of its group. - Exports are unchanged by default. export-dtcg-json and export-dtcg-multi-file take {:profile :dtcg} for 2025.10 values and types. Such a file reads back with the DTCG types: spacing and sizing tokens come back as dimensions. - The package moves from frontend/deps.edn to common/deps.edn, since the backend and the SDK read and write token files too. Signed-off-by: Florian Schroedl <flo.schroedl@gmail.com>
91 lines
3.1 KiB
Clojure
91 lines
3.1 KiB
Clojure
{:deps
|
|
{org.clojure/clojure {:mvn/version "1.12.6"}
|
|
org.clojure/data.json {:mvn/version "2.5.2"}
|
|
org.clojure/tools.cli {:mvn/version "1.4.256"}
|
|
org.clojure/test.check {:mvn/version "1.1.3"}
|
|
org.clojure/data.fressian {:mvn/version "1.1.1"}
|
|
org.clojure/clojurescript {:mvn/version "1.12.145"}
|
|
|
|
org.apache.commons/commons-pool2 {:mvn/version "2.13.1"}
|
|
|
|
;; Logging
|
|
org.apache.logging.log4j/log4j-api {:mvn/version "2.26.1"}
|
|
org.apache.logging.log4j/log4j-core {:mvn/version "2.26.1"}
|
|
org.apache.logging.log4j/log4j-web {:mvn/version "2.26.1"}
|
|
org.apache.logging.log4j/log4j-jul {:mvn/version "2.26.1"}
|
|
org.apache.logging.log4j/log4j-slf4j2-impl {:mvn/version "2.26.1"}
|
|
org.slf4j/slf4j-api {:mvn/version "2.0.20"}
|
|
pl.tkowalcz.tjahzi/log4j2-appender {:mvn/version "0.9.43"}
|
|
|
|
selmer/selmer {:mvn/version "1.13.5"}
|
|
criterium/criterium {:mvn/version "0.4.6"}
|
|
|
|
metosin/jsonista {:mvn/version "1.0.1"
|
|
:exclusions [com.fasterxml.jackson.core/jackson-core
|
|
com.fasterxml.jackson.core/jackson-databind]}
|
|
com.fasterxml.jackson.core/jackson-core {:mvn/version "2.22.3"}
|
|
com.fasterxml.jackson.core/jackson-databind {:mvn/version "2.22.3"}
|
|
|
|
|
|
metosin/malli {:mvn/version "0.20.2"}
|
|
|
|
expound/expound {:mvn/version "0.9.0"}
|
|
com.cognitect/transit-clj {:mvn/version "1.1.363"}
|
|
com.cognitect/transit-cljs {:mvn/version "0.8.280"}
|
|
java-http-clj/java-http-clj {:mvn/version "0.4.3"}
|
|
integrant/integrant {:mvn/version "1.0.1"}
|
|
|
|
funcool/cuerdas {:mvn/version "2026.415"}
|
|
funcool/promesa {:mvn/version "12.0.1"}
|
|
|
|
funcool/datoteka
|
|
{:git/tag "4.0.0"
|
|
:git/sha "3372f3a"
|
|
:git/url "https://github.com/funcool/datoteka"}
|
|
|
|
lambdaisland/uri {:mvn/version "1.19.155"
|
|
:exclusions [org.clojure/data.json]}
|
|
|
|
frankiesardo/linked {:mvn/version "1.3.0"}
|
|
|
|
;; Resolves token values, reads and writes token files.
|
|
penpot/tokenscript-interpreter
|
|
{:git/sha "321061dbddaf78270319136eb41cfbff172fba02"
|
|
:git/url "https://github.com/penpot/tokenscript-interpreter.git"}
|
|
|
|
com.sun.mail/jakarta.mail {:mvn/version "2.0.2"}
|
|
org.la4j/la4j {:mvn/version "0.6.0"}
|
|
|
|
me.flowthing/pp {:mvn/version "2026-03-01.107"}
|
|
|
|
io.aviso/pretty {:mvn/version "1.4.4"}
|
|
environ/environ {:mvn/version "1.2.0"}}
|
|
:paths ["src" "vendor" "resources" "target/classes"]
|
|
:aliases
|
|
{:dev
|
|
{:extra-deps
|
|
{org.clojure/tools.namespace {:mvn/version "1.5.1"}
|
|
thheller/shadow-cljs {:mvn/version "3.5.3"}
|
|
com.clojure-goes-fast/clj-async-profiler {:mvn/version "2.0.0-beta1"}
|
|
com.bhauman/rebel-readline {:mvn/version "0.1.11"}
|
|
criterium/criterium {:mvn/version "0.4.6"}
|
|
mockery/mockery {:mvn/version "0.1.4"}}
|
|
:extra-paths ["test" "dev"]}
|
|
|
|
:build
|
|
{:extra-deps
|
|
{io.github.clojure/tools.build {:mvn/version "0.10.14"}}
|
|
:ns-default build}
|
|
|
|
:test
|
|
{:main-opts ["-m" "kaocha.runner"]
|
|
:extra-deps {lambdaisland/kaocha {:mvn/version "1.91.1392"}}}
|
|
|
|
:shadow-cljs
|
|
{:main-opts ["-m" "shadow.cljs.devtools.cli"]
|
|
:jvm-opts ["--sun-misc-unsafe-memory-access=allow"]}
|
|
|
|
:outdated
|
|
{:extra-deps {com.github.liquidz/antq {:mvn/version "RELEASE"}}
|
|
:main-opts ["-m" "antq.core"]}}}
|