From 5a631c792fd9832d5f0b48ad927247bb385211b5 Mon Sep 17 00:00:00 2001 From: "kshitij.sobti" Date: Wed, 20 May 2026 14:24:41 +0530 Subject: [PATCH] fix: include user-defined tokens as app token source Currently, app tokens are limited by the tokens defined in the Paragon core and light themes, if a new token is defined by a custom theme, app tokens can't reference it. This change includes the user-defined tokens as sources so custom themes with app tokens can use values from there. --- lib/build-tokens.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/build-tokens.js b/lib/build-tokens.js index e9213df94a..b2df2129f6 100755 --- a/lib/build-tokens.js +++ b/lib/build-tokens.js @@ -199,8 +199,11 @@ async function buildTokensCommand(commandArgs) { ...coreConfig, include: [ ...coreConfig.include, + ...coreConfig.source, path.resolve(__dirname, '../tokens/src/themes/light/**/*.json'), path.resolve(__dirname, '../tokens/src/themes/light/**/*.toml'), + `${tokensSource}/themes/light/**/*.json`, + `${tokensSource}/themes/light/**/*.toml`, ], source: [ `${tokensPath}/apps/${appName}/**/*.json`,