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>
68 lines
2.0 KiB
Clojure
68 lines
2.0 KiB
Clojure
{:paths ["src" "vendor" "resources" "test" "performance"]
|
|
:deps
|
|
{;; Carries `app.common.render-wasm.*`, shared with the headless exporter.
|
|
penpot/common
|
|
{:local/root "../common"}
|
|
|
|
org.clojure/clojure {:mvn/version "1.12.6"}
|
|
binaryage/devtools {:mvn/version "RELEASE"}
|
|
metosin/reitit-core {:mvn/version "0.11.0"}
|
|
funcool/okulary {:mvn/version "2022.04.11-16"}
|
|
|
|
funcool/tubax
|
|
{:git/tag "v2025.11.28"
|
|
:git/sha "2d9a986"
|
|
:git/url "https://github.com/funcool/tubax.git"}
|
|
|
|
funcool/potok2
|
|
{:git/tag "v2.3"
|
|
:git/sha "bdebbdb"
|
|
:git/url "https://github.com/funcool/potok.git"
|
|
:exclusions [funcool/beicon2]}
|
|
|
|
funcool/beicon2
|
|
{:git/tag "v2.3"
|
|
:git/sha "df7058a"
|
|
:git/url "https://github.com/funcool/beicon.git"}
|
|
|
|
funcool/rumext
|
|
{:git/tag "v2.26"
|
|
:git/sha "d726717"
|
|
:git/url "https://github.com/funcool/rumext.git"}
|
|
|
|
instaparse/instaparse {:mvn/version "1.5.0"}
|
|
garden/garden {:git/url "https://github.com/noprompt/garden"
|
|
:git/sha "05590ecb5f6fa670856f3d1ab400aa4961047480"}}
|
|
|
|
:aliases
|
|
{:outdated
|
|
{:extra-deps {com.github.liquidz/antq {:mvn/version "RELEASE"}}
|
|
:main-opts ["-m" "antq.core"]}
|
|
|
|
:jvm-repl
|
|
{:extra-deps
|
|
{com.bhauman/rebel-readline {:mvn/version "RELEASE"}}
|
|
:main-opts ["-m" "rebel-readline.main"]}
|
|
|
|
:dev
|
|
{:extra-paths ["dev"]
|
|
:jvm-opts ["--sun-misc-unsafe-memory-access=allow"
|
|
"--enable-native-access=ALL-UNNAMED"]
|
|
|
|
:extra-deps
|
|
{thheller/shadow-cljs {:mvn/version "3.5.3"}
|
|
com.bhauman/rebel-readline {:mvn/version "RELEASE"}
|
|
org.clojure/tools.namespace {:mvn/version "RELEASE"}
|
|
criterium/criterium {:mvn/version "0.4.6"}}}
|
|
|
|
:shadow-cljs
|
|
{:main-opts ["-m" "shadow.cljs.devtools.cli"]
|
|
:jvm-opts ["--sun-misc-unsafe-memory-access=allow"
|
|
"-Dpenpot.wasm.profile-marks=true"
|
|
"-XX:+UnlockExperimentalVMOptions"
|
|
"-XX:CompileCommand=blackhole,criterium.blackhole.Blackhole::consume"]}
|
|
|
|
:renderer-bench
|
|
{:main-opts ["-m" "shadow.cljs.devtools.cli"]
|
|
:jvm-opts ["-Dpenpot.wasm.profile-marks=false"]}}}
|