@atlaskit/tokens
Version:
Design tokens are the single source of truth to name and store design decisions.
30 lines (29 loc) • 839 B
TypeScript
import { type NodePath } from '@babel/traverse';
import * as t from '@babel/types';
type DefaultColorTheme = 'light';
export default function plugin(): {
visitor: {
Program?: undefined;
};
} | {
visitor: {
Program: {
enter(path: NodePath<t.Program>, state: {
opts: {
/**
* @default true
*/
shouldUseAutoFallback?: boolean;
/**
* @default true
*/
shouldForceAutoFallback?: boolean;
forceAutoFallbackExemptions?: string[];
defaultTheme?: DefaultColorTheme;
};
}): void;
exit(path: NodePath<t.Program>): void;
};
};
};
export {};