Extract command-line colour templates to separate npm module