import { Theme , Transformer } from '../types' ; param theme export const powerbi = ( theme ) => { const nominal = theme . scales ( ) . nominal ( 12 ) ; const dataColors = new Array ( 12 ) . fill ( 1 ) . map ( ( a , i ) => nominal ( i ) . hex ( ) ) ; const application = theme . application ( ) ; const pbi = { name : `${ theme . name } - ${ theme . variant }` , dataColors , background : application . background ( ) . hex ( ) , foreground : application . foreground ( ) . hex ( ) , tableAccent : application . accent ( ) . hex ( ) , } ; return pbi ; } ;