Lines Matching refs:styles
74 function buildStyle(chalk, styles) { argument
77 for (const layer of styles) {
78 for (const style of layer.styles) {
84 for (const [styleName, styles] of Object.entries(enabled)) {
85 if (!Array.isArray(styles)) {
93 current = styles.length > 0 ? current[styleName](...styles) : current[styleName];
100 const styles = [];
111 chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
112 styles.push({inverse, styles: parseStyle(style)}); property
114 if (styles.length === 0) {
118 chunks.push(buildStyle(chalk, styles)(chunk.join('')));
120 styles.pop();
128 if (styles.length > 0) {
129 …const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.len…