import { Color } from '@thematic/color' ; import { Application , Chart , ApplicationSpec , ChartSpec } from '../types' ; export * from './colorScales' ; export * from './svg-marks' ; export * from './svg-chrome' ; export function ApplicationImpl ( application ) { return { accent : ( ) => new Color ( application . accent ! ) , background : ( ) => new Color ( application . background ! ) , foreground : ( ) => new Color ( application . foreground ! ) , success : ( ) => new Color ( application . success ! ) , warning : ( ) => new Color ( application . warning ! ) , error : ( ) => new Color ( application . error ! ) , lowContrast : ( ) => new Color ( application . lowContrast ! ) , lowMidContrast : ( ) => new Color ( application . lowMidContrast ! ) , midContrast : ( ) => new Color ( application . midContrast ! ) , midHighContrast : ( ) => new Color ( application . midHighContrast ! ) , highContrast : ( ) => new Color ( application . highContrast ! ) , border : ( ) => new Color ( application . border ! ) , faint : ( ) => new Color ( application . faint ! ) , } ; } export function ChartImpl ( chart ) { return { backgroundColor : ( ) => new Color ( chart . backgroundColor ! ) , padding : ( ) => chart . padding ! , } ; }