@atlaskit/tokens
Version:
Design tokens are the single source of truth to name and store design decisions.
55 lines (54 loc) • 2.3 kB
JavaScript
/**
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
*
* This file contains a dynamic import for each theme this package exports.
* Themes are loaded asynchronously at runtime to minimise the amount of CSS we send to the client.
* This allows users to compose their themes and only use the tokens that are requested.
* When a new theme is created, the import should automatically be added to the map
*
* @codegen <<SignedSource::a20c72d683b08b594c5be4160eec5f78>>
* @codegenCommand yarn build tokens
*/
var themeImportsMap = {
'light': function light() {
return import( /* webpackChunkName: "@atlaskit-internal_atlassian-light" */
'./themes/atlassian-light');
},
'light-future': function lightFuture() {
return import( /* webpackChunkName: "@atlaskit-internal_atlassian-light-future" */
'./themes/atlassian-light-future');
},
'light-increased-contrast': function lightIncreasedContrast() {
return import( /* webpackChunkName: "@atlaskit-internal_atlassian-light-increased-contrast" */
'./themes/atlassian-light-increased-contrast');
},
'dark': function dark() {
return import( /* webpackChunkName: "@atlaskit-internal_atlassian-dark" */
'./themes/atlassian-dark');
},
'dark-future': function darkFuture() {
return import( /* webpackChunkName: "@atlaskit-internal_atlassian-dark-future" */
'./themes/atlassian-dark-future');
},
'dark-increased-contrast': function darkIncreasedContrast() {
return import( /* webpackChunkName: "@atlaskit-internal_atlassian-dark-increased-contrast" */
'./themes/atlassian-dark-increased-contrast');
},
'spacing': function spacing() {
return import( /* webpackChunkName: "@atlaskit-internal_atlassian-spacing" */
'./themes/atlassian-spacing');
},
'typography': function typography() {
return import( /* webpackChunkName: "@atlaskit-internal_atlassian-typography" */
'./themes/atlassian-typography');
},
'shape': function shape() {
return import( /* webpackChunkName: "@atlaskit-internal_atlassian-shape" */
'./themes/atlassian-shape');
},
'motion': function motion() {
return import( /* webpackChunkName: "@atlaskit-internal_atlassian-motion" */
'./themes/atlassian-motion');
}
};
export default themeImportsMap;