Blob Blame History Raw
diff --git a/index.js b/index.js
index 2d85a91..19b4b22 100644
--- a/index.js
+++ b/index.js
@@ -73,9 +73,9 @@ function applyStyle() {
 	// Turns out that on Windows dimmed gray text becomes invisible in cmd.exe,
 	// see https://github.com/chalk/chalk/issues/58
 	// If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop.
-	var originalDim = ansiStyles.dim.open;
+	var originalDim = ansiStyles.gray.open;
 	if (isSimpleWindowsTerm && (nestedStyles.indexOf('gray') !== -1 || nestedStyles.indexOf('grey') !== -1)) {
-		ansiStyles.dim.open = '';
+		ansiStyles.gray.open = '';
 	}
 
 	while (i--) {
@@ -88,7 +88,7 @@ function applyStyle() {
 	}
 
 	// Reset the original 'dim' if we changed it to work around the Windows dimmed gray issue.
-	ansiStyles.dim.open = originalDim;
+	ansiStyles.gray.open = originalDim;
 
 	return str;
 }