From b56428529d3b304b53b9c98ebee7483f09b0c3d2 Mon Sep 17 00:00:00 2001 From: nkzawa Date: Sun, 6 Nov 2016 02:02:57 +0900 Subject: [PATCH] new color scheme for debug error page --- pages/_error-debug.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/pages/_error-debug.js b/pages/_error-debug.js index 066b24fe..a4564d4d 100644 --- a/pages/_error-debug.js +++ b/pages/_error-debug.js @@ -46,7 +46,7 @@ const styles = { message: style({ fontFamily: '"SF Mono", "Roboto Mono", "Fira Mono", menlo-regular, monospace', fontSize: '10px', - color: '#fff', + color: '#fbe7f1', margin: 0 }), @@ -59,13 +59,16 @@ const styles = { }) } +// see color definitions of babel-code-frame: +// https://github.com/babel/babel/blob/master/packages/babel-code-frame/src/index.js + ansiHTML.setColors({ - reset: ['fff', 'a6004c'], - darkgrey: '5a012b', - yellow: 'ffab07', - green: 'aeefba', - magenta: 'ff84bf', - blue: '3505a0', - cyan: '56eaec', - red: '4e053a' + reset: 'fff', + darkgrey: 'e54590', + yellow: 'ee8cbb', + green: 'f2a2c7', + magenta: 'fbe7f1', + blue: 'fff', + cyan: 'ef8bb9', + red: 'fff' })