1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

new color scheme for debug error page

This commit is contained in:
nkzawa 2016-11-06 02:02:57 +09:00
parent e81de708b8
commit b56428529d

View file

@ -46,7 +46,7 @@ const styles = {
message: style({ message: style({
fontFamily: '"SF Mono", "Roboto Mono", "Fira Mono", menlo-regular, monospace', fontFamily: '"SF Mono", "Roboto Mono", "Fira Mono", menlo-regular, monospace',
fontSize: '10px', fontSize: '10px',
color: '#fff', color: '#fbe7f1',
margin: 0 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({ ansiHTML.setColors({
reset: ['fff', 'a6004c'], reset: 'fff',
darkgrey: '5a012b', darkgrey: 'e54590',
yellow: 'ffab07', yellow: 'ee8cbb',
green: 'aeefba', green: 'f2a2c7',
magenta: 'ff84bf', magenta: 'fbe7f1',
blue: '3505a0', blue: 'fff',
cyan: '56eaec', cyan: 'ef8bb9',
red: '4e053a' red: 'fff'
}) })