{"_id":"@atlaskit/babel-plugin-tokens","_rev":"7-84e0dc3566ab295eb33d25a0e1af28d3","name":"@atlaskit/babel-plugin-tokens","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@atlaskit/babel-plugin-tokens","version":"1.0.0","author":{"name":"Atlassian Pty Ltd"},"license":"Apache-2.0","_id":"@atlaskit/babel-plugin-tokens@1.0.0","maintainers":[{"name":"atlaskit","email":"afp-repo-bot@atlassian.com"}],"homepage":"https://bitbucket.org/atlassian/atlassian-frontend#readme","dist":{"shasum":"920a9f849ffc9af2ada3c84306bc1a7315b7b5c8","tarball":"https://registry.npmjs.org/@atlaskit/babel-plugin-tokens/-/babel-plugin-tokens-1.0.0.tgz","fileCount":15,"integrity":"sha512-7fjbvHbAh1d7VqPNVytp+ShqcjV3rCu1oW43u49WLqMmnZq7U8BQxlC7hONnmVHLY2TNDJ6RqNjrpgPEjtopOw==","signatures":[{"sig":"MEUCIBlN+qx9+j1dEjmuQTr729yP0qxtNGxoKvhzh3fZIaIjAiEAjKJMZ+utLEsEGLVdZo8LChRyud2sg8ztnS1fFspZ594=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLeeJCRA9TVsSAnZWagAAAXgQAIkQ9N+nvQ//101V0jzK\nEM22YqVzvg4RljWjMzGUzSXSHvnUUHj/dAT42kkY8PY5jBhy87GTnTizFTwn\nccKVyfSVH87T38LL8ZjqVwjzPScS4PiWxEQF8Y16b5te+gcndTmrr60Lya0h\nnMLI/Zl4ibiA8A7LDGkr3UblH9bhBQvf95QsFjKxQhiaQ1NKphEyfM+Hvttb\nnSIZsVhZ2ZGWqnCAHXIkYZNKDVBxHbp7NCl/RohEusgo+blAHEumt2dkSr/7\nRhh5BC4BaQRIU8w9UVe/vjg+CcUyoiyMmDFSEbzGY2nN/t0rkqJiWB8HU06f\nOt5AbyTEWVNoCX3AmW5wltuY+usHWFOxCz8Xb8ykfQfk2FgMWcFMizPVzsgd\nwjYb/d0qhZeJ0mMMypUg99I4cFPWhps+Iz2uqG3Pj0z/kwcde3NM0wvrt7hQ\niVo5aS3CtI9Fs09tR5LoVhsMUrSn3yTuYavICW5TcKT7cdfACCfGvMRffnyo\n0YvF/D3w8OToR95qL3f6ku1E/hiWWR+mmpFbrYfTQ57ThC4QGlk6R7AP6AJa\nbtHx6QwSQPrbriQccvY04DxLOC96odqIQCHIV+TZx4CMQp+Svyd0qj4xRyIx\nJjbBXy/h/12pzm7QxXTk/38U8s5siLxHDq1/tQdi6RlwxgwqdS/KIATkoTpx\nmWxf\r\n=eyMB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","_npmUser":{"name":"atlaskit","email":"afp-repo-bot@atlassian.com"},"prettier":"@atlassian/atlassian-frontend-prettier-config-1.0.0","atlassian":{"team":"Design System Team","releaseModel":"continuous"},"techstack":{"@repo/internal":{"deprecation":"no-deprecated-imports","design-system":"v1","ui-components":"lite-mode"},"@atlassian/frontend":{"import-structure":"atlassian-conventions","circular-dependencies":"file-and-folder-level"}},"af:exports":{".":"./src/index.ts"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://bitbucket.org/atlassian/atlassian-frontend.git","type":"git"},"_npmVersion":"6.14.12","description":"A babel plugin to optimise performance and support fallbacks for Design System tokens","directories":{},"sideEffects":false,"_nodeVersion":"12.22.1","atlaskit:src":"src/index.ts","dependencies":{"@babel/types":"^7.15.0","@babel/runtime":"^7.0.0","@babel/traverse":"^7.15.0"},"module:es2019":"dist/es2019/index.js","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"3.9.6","@babel/core":"^7.12.3","@atlassian/atlassian-frontend-prettier-config-1.0.0":"npm:@atlassian/atlassian-frontend-prettier-config@1.0.0"},"peerDependencies":{"@atlaskit/tokens":"*"},"_npmOperationalInternal":{"tmp":"tmp/babel-plugin-tokens_1.0.0_1630398345784_0.4602841483616611","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@atlaskit/babel-plugin-tokens","version":"2.0.0","author":{"name":"Atlassian Pty Ltd"},"license":"Apache-2.0","_id":"@atlaskit/babel-plugin-tokens@2.0.0","maintainers":[{"name":"atlaskit","email":"afp-repo-bot@atlassian.com"}],"homepage":"https://bitbucket.org/atlassian/atlassian-frontend#readme","dist":{"shasum":"b1eaec518d5b098bff3f967655fcf7d4580f2a2c","tarball":"https://registry.npmjs.org/@atlaskit/babel-plugin-tokens/-/babel-plugin-tokens-2.0.0.tgz","fileCount":15,"integrity":"sha512-KBnjvqFqXBtyi2QLLdtMnnyXKFIRpxmvmi7cZ0JsxwSFOtxHSvmNlIaNe2dCraBOYmsdg/qookdXc+q9j3zA/w==","signatures":[{"sig":"MEYCIQDaP+wHGOqcU8VfadYzjHRIK3GMBjkX+9sg5PEuEAcqTQIhALeV8fhhg+Ir55AYisI+iSBzeKGvS7O5+uJs9t7w4h3y","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyIm+CRA9TVsSAnZWagAA8W8P+wRkDi66tKC7Q+HzsCfu\nc7KgzgMTXUjyneAMa+6HwbGgp1JU83ZVQtw27ImdQ9tFjR+zRoSHRlDVm6BF\nH6HMShRN1mM2ncMV6pURbsZTri0t281zVSYOSm/C0sC/XEu5826Q6K59iSoz\np0W/2Wwq8OpAUwPehO5hXu0NYsk6vbcNJv5BSP5UTG7/ifp/B0T3ZR+XsrMr\nZiO+zakVxoLRzWEl1EL9mrarMM4FVKZEqR4BrxtfUiPdtChDt/lgfuDlVx9M\ngqEdWjkUF8wtB5imtt1BEBDQT2TMMaWMYT/geM7xVyhuZbVdsQRyKrWfzsaH\nvXZfen98c5aM4lBrIgG9lnYmDvLaveRgekuhat+EFsvNU+5OrEhLWiMKHkcB\nmZe7u7OE4IEUUGKFg1wHhYkIvh5WVAwh+o0Wjx1z9bYTZFSSWpoSbDGvyNkL\n1vSCqMM9LOPP7XFyWOu7MVjVzynkf2AjPu+C79sOKDDgR3Gm0zwW26lsqBqn\nM+meFKo0q93QUqiq5a34TOGlJtYEfrJR+awcVzjR6JSz5xy+O1fSoxxhWjLh\n33E1SAQog8CNYhoqS0qc4v3NqPLMctTg5FT9cWGSLlg9FzTxU+zttNIbGj1s\nelylnZRBtPSsnERPP1OBRpAPf/XaFX1/609E+HLpwYiVQc1QwUNUQ/slz+gF\n9pUE\r\n=LFI0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","_npmUser":{"name":"atlaskit","email":"afp-repo-bot@atlassian.com"},"prettier":"@atlassian/atlassian-frontend-prettier-config-1.0.0","atlassian":{"team":"Design System Team","releaseModel":"scheduled"},"techstack":{"@repo/internal":{"deprecation":"no-deprecated-imports","design-system":"v1","ui-components":"lite-mode"},"@atlassian/frontend":{"import-structure":"atlassian-conventions","circular-dependencies":"file-and-folder-level"}},"af:exports":{".":"./src/index.tsx"},"repository":{"url":"git+https://bitbucket.org/atlassian/atlassian-frontend.git","type":"git"},"_npmVersion":"6.14.15","description":"A babel plugin to optimise performance and support fallbacks for Design System tokens","directories":{},"sideEffects":false,"_nodeVersion":"12.22.6","atlaskit:src":"src/index.tsx","dependencies":{"@babel/types":"^7.15.0","@babel/runtime":"^7.0.0","@babel/traverse":"^7.15.0"},"module:es2019":"dist/es2019/index.js","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"3.9.6","@babel/core":"^7.12.3","@atlassian/atlassian-frontend-prettier-config-1.0.0":"npm:@atlassian/atlassian-frontend-prettier-config@1.0.0"},"peerDependencies":{"@atlaskit/tokens":"*"},"_npmOperationalInternal":{"tmp":"tmp/babel-plugin-tokens_2.0.0_1635477983087_0.7981860752697416","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-08-31T08:25:45.715Z","modified":"2025-01-29T23:23:45.512Z","1.0.0":"2021-08-31T08:25:45.925Z","2.0.0":"2021-10-29T03:26:23.222Z"},"author":{"name":"Atlassian Pty Ltd"},"license":"Apache-2.0","homepage":"https://bitbucket.org/atlassian/atlassian-frontend#readme","repository":{"url":"git+https://bitbucket.org/atlassian/atlassian-frontend.git","type":"git"},"description":"A babel plugin to optimise performance and support fallbacks for Design System tokens","maintainers":[{"email":"eng-development-tooling-secrets-and-artifacts@atlassian.com","name":"atlassianartifactteam"}],"readme":"# BabelPluginTokens\n\nA babel plugin to optimise performance and support fallbacks for Design System tokens.\n\nIt replaces any calls to the `@atlaskit/tokens` token() function with the CSS value the function would return (i.e. var(--token-name) or\nvariations with fallbacks).\n\nIf there’s no fallback, the plugin (optionally) finds the token’s value from the default Atlassian theme, and sets it as the fallback.\n\nIf there is a fallback defined in code, it’s inserted into the style (expressions are inserted using template strings).\n\n## Usage\n\nAdd the plugin to your babel configuration:\n\n```\n{\n  \"plugins\": [\"@atlaskit/babel-plugin-tokens\"]\n}\n```\n\n### Options\n\nCurrently the plugin supports one option, `shouldUseAutoFallback`. When enabled, the plugin will fetch the token's value in the default\nAtlassian theme (currently `atlassian-light`) and use it as the fallback value. \n\nThis is useful for cases where tokens are in use, but token definitions aren't present in the top-level page CSS.\n","readmeFilename":"README.md"}