@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
17 lines • 505 B
JavaScript
import { editorUGCTokens, editorUGCTokensModernized, editorUGCTokensRefreshed } from './editor-ugc-token-names';
function editorUGCToken(path, typographyTheme) {
let token;
switch (typographyTheme) {
case 'typography-modernized':
token = editorUGCTokensModernized[path];
break;
case 'typography-refreshed':
token = editorUGCTokensRefreshed[path];
break;
default:
token = editorUGCTokens[path];
break;
}
return token;
}
export default editorUGCToken;