Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Why does the @atlaskit/storybook-addon-design-system package export an empty object in index.ts ?

Why does the @atlaskit/storybook-addon-design-system package export an empty object in index.ts ?

Goutam Singla
March 31, 2025

I was exploring the source code of the @atlaskit/storybook-addon-design-system package and noticed that index.ts inside the src directory exports an empty object ({}).

Screenshot 2025-03-31 115527.png

when i try to import withDesignTokens function for setting decorator in storybook config file then i got empty object error. How to solve this problem?

and also if i try to import withDesignTokens from decorator file inside src folder then type is not matched with what storybook decorator is seeking?

1 answer

0 votes
Tuncay Senturk _Snapbytes_
Community Champion
February 19, 2026

Hi @Goutam Singla 

This addon is designed to be used via Storybook configuration, not by manually importing decorators.

You should register/inject it in .storybook/main.ts

export default {
  addons: ['@atlaskit/storybook-addon-design-system'],
};

If you need a design token decorator, instead of using withDesignTokens, use the Atlaskit setup

import { setGlobalTheme } from '@atlaskit/tokens';

this is the supported way to enable design tokens.

Please take it with a pinch of salt, but you may find more answers if you post this to Atlassian Developer Community.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events