import darkColors from '@primer/primitives/dist/json/colors/dark.json' ; import dimmedColors from '@primer/primitives/dist/json/colors/dark_dimmed.json' ; import lightColors from '@primer/primitives/dist/json/colors/light.json' ; import adaptiveColors from './colors/adaptive.json' ; import { Primer } from './interfaces' ; export function getColors ( theme ) { if ( theme === 'light' ) { return lightColors ; } else if ( theme === 'dark' ) { return darkColors ; } else if ( theme === 'dimmed' ) { return dimmedColors ; } else if ( theme === 'adaptive' ) { return { ... dimmedColors , ... adaptiveColors } ; } }