{"name":"@atlaskit/tokens","version":"2.0.1","description":"Design tokens are the single source of truth to name and store design decisions.","publishConfig":{"registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://bitbucket.org/atlassian/atlassian-frontend-mirror.git"},"author":{"name":"Atlassian Pty Ltd"},"license":"Apache-2.0","main":"dist/cjs/index.js","module":"dist/esm/index.js","module:es2019":"dist/es2019/index.js","types":"dist/types/index.d.ts","sideEffects":["**/*.css"],"atlaskit:src":"src/index.tsx","atlassian":{"team":"Design System Team","runReact18":true,"website":{"name":"Design tokens","category":"Libraries"}},"scripts":{"prebuilt":"yes | cp -R $(npx repo-root)/packages/design-system/tokens/dist/cjs/* $(npx repo-root)/packages/design-system/tokens/prebuilt/","ak-postbuild":"yarn prebuilt && (cd $(npx repo-root) && yarn build @atlassian/codegen -d cjs,esm,es2019) && yarn workspace @atlaskit/tokens codegen-tokens && yarn workspace @atlaskit/tokens check-clean-git","check-clean-git":"git diff --exit-code -- packages/design-system/tokens/ || (echo 'tokens are out of date, run yarn build tokens' && false)","codegen-tokens":"run-ts ./scripts/style-dictionary/build.tsx && cd $(npx repo-root)/packages/design-system/primitives && yarn codegen-styles && cd $(npx repo-root)/packages/design-system/ds-explorations && yarn codegen-styles && cd $(npx repo-root)/packages/design-system/heading && yarn codegen"},"dependencies":{"@atlaskit/ds-lib":"^2.6.0","@atlaskit/platform-feature-flags":"^0.3.0","@babel/runtime":"^7.0.0","@babel/traverse":"^7.23.2","@babel/types":"^7.20.0","bind-event-listener":"^3.0.0"},"peerDependencies":{"react":"^16.8.0 || ^17.0.0 || ^18.0.0"},"devDependencies":{"@af/accessibility-testing":"*","@af/formatting":"*","@atlaskit/button":"^20.2.0","@atlaskit/calendar":"^15.0.0","@atlaskit/checkbox":"^14.0.0","@atlaskit/radio":"^6.5.0","@atlaskit/textfield":"^6.5.0","@atlaskit/tooltip":"^18.7.0","@atlaskit/visual-regression":"*","@atlassian/codegen":"^0.1.0","@atlassian/feature-flags-test-utils":"*","@atlassian/ts-loader":"*","@babel/core":"7.24.9","@emotion/react":"^11.7.1","@hypermod/utils":"^0.4.2","@testing-library/dom":"^10.1.0","@testing-library/react":"^12.1.5","@testing-library/react-hooks":"^8.0.1","@testing-library/user-event":"^14.4.3","@types/chrome":"^0.0.171","color-blend":"^4.0.0","copy-webpack-plugin":"^6.4.0","echarts":"^5.4.1","echarts-for-react":"^3.0.2","fuse.js":"^6.6.2","jscodeshift":"^0.13.0","lodash":"^4.17.21","postcss":"^8.4.7","postcss-less":"^6.0.0","prettier":"^3.2.5","react":"^16.8.0","react-use-clipboard":"^1.0.0","react-window":"^1.8.8","recharts":"^1.8.5","style-dictionary":"^3.8.0","typescript":"~5.4.2"},"techstack":{"@atlassian/frontend":{"import-structure":"atlassian-conventions","circular-dependencies":"file-and-folder-level"},"@repo/internal":{"dom-events":"use-bind-event-listener","design-system":"v1","ui-components":"lite-mode","deprecation":"no-deprecated-imports","styling":["emotion"]}},"hypermod":{"dependencies":["@hypermod/utils","postcss","postcss-less"]},"typesVersions":{">=4.5 <4.9":{"*":["dist/types-ts4.5/*","dist/types-ts4.5/index.d.ts"]}},"af:exports":{".":"./src/index.tsx","./custom-themes":"./src/entry-points/custom-themes.tsx","./figma/atlassian-light.json":"./figma/atlassian-light.json","./figma/atlassian-dark.json":"./figma/atlassian-dark.json","./palettes-raw":"./src/entry-points/palettes-raw.tsx","./tokens-raw":"./src/entry-points/tokens-raw.tsx","./token-ids":"./src/entry-points/token-ids.tsx","./token-names":"./src/entry-points/token-names.tsx","./token-order":"./src/entry-points/token-order.tsx","./token-default-values":"./src/entry-points/token-default-values.tsx","./rename-mapping":"./src/entry-points/rename-mapping.tsx","./babel-plugin":"./src/entry-points/babel-plugin.tsx","./css-type-schema":"./src/entry-points/css-type-schema.codegen.tsx"},"platform-feature-flags":{"platform_increased-contrast-themes":{"type":"boolean"},"platform-component-visual-refresh":{"type":"boolean"}},"homepage":"https://atlassian.design/components/tokens","_id":"@atlaskit/tokens@2.0.1","gitHead":"17f6b0414c3fbf556556e664fa9df9e737aa22a6","bugs":{"url":"https://bitbucket.org/atlassian/atlassian-frontend-mirror/issues"},"_nodeVersion":"20.15.1","_npmVersion":"10.7.0","dist":{"integrity":"sha512-/BqDg8snjLCwzI6vunJo7FDKT2LXdxj0entWe3ag/hyTMzT+d1wsVnByjeizkuvwTqbt++vFffi/ZLM7/KDMQw==","shasum":"cf17d0624b01e04095dc64ef93662a93d3dc5908","tarball":"http://registry-npm.ywwl.com/@atlaskit/tokens/download/@atlaskit/tokens-2.0.1.tgz","fileCount":567,"unpackedSize":13043722,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0uiLe0wUIXQuWbPheE8zv9Te9VzJujYHHGyfaJPJKTgIgBqQ3Po1x9oz5mnpMsOYMV7CzII9ZTRwi97G0HlbYrcI="}],"size":831687,"noattachment":false,"key":"/@atlaskit/tokens/-/@atlaskit/tokens-2.0.1.tgz"},"_npmUser":{"name":"atlaskit","email":"afp-repo-bot@atlassian.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tokens_2.0.1_1727761077236_0.06649303253950967"},"_hasShrinkwrap":false,"readme":"# Tokens\n\nTokens are a single source of truth to name and store Atlassian design decisions.\n\n## Installation\n\n```sh\nyarn add @atlaskit/tokens\n```\n\n## Usage\n\n[View documentation](https://atlassian.design/components/tokens).\n\n# BabelPlugin\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\nwould return (i.e. var(--token-name) or variations with fallbacks).\n\nIf there’s no fallback, the plugin (optionally) finds the token’s value from the default Atlassian\ntheme, 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\ntemplate strings).\n\n## Usage\n\nAdd the plugin to your babel configuration:\n\n```\n{\n  \"plugins\": [\n    [\"@atlaskit/tokens/babel-plugin\", { \"shouldUseAutoFallback\": true }]\n  ]\n}\n```\n\n### Options\n\nCurrently the plugin supports one option, `shouldUseAutoFallback`. When not disabled, the plugin\nwill fetch the token's value in the default Atlassian theme (currently `atlassian-light`) and use it\nas the fallback value.\n\nThis is useful for cases where tokens are in use, but token definitions aren't guaranteed to be\npresent in the top-level page CSS.\n","publish_time":1727761077478,"maintainers":[{"name":"atlaskit","email":"afp-repo-bot@atlassian.com"}],"_cnpm_publish_time":1727761077478,"dist-tags":{"latest":"20.15.0","next":"1.4.2"}}