Skip to content

Commit

Permalink
high-contrast fg/bg for header colors
Browse files Browse the repository at this point in the history
bgWhite and whiteBright are the same color in many terminal colorthemes,
which was causing it to render as illegible white-on-white
  • Loading branch information
pcattori committed Jan 12, 2024
1 parent f3302f9 commit 69dd300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/create-remix/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ interface Context {

async function introStep(ctx: Context) {
log(
`\n${color.bgWhite(` ${color.whiteBright("remix")} `)} ${color.green(
`\n${color.bgWhite(` ${color.black("remix")} `)} ${color.green(
color.bold(`v${ctx.remixVersion}`)
)} ${color.bold("💿 Let's build a better website...")}`
);
Expand Down Expand Up @@ -757,7 +757,7 @@ async function loadingIndicator(args: {
}

function title(text: string) {
return align(color.bgWhite(` ${color.whiteBright(text)} `), "end", 7) + " ";
return align(color.bgWhite(` ${color.black(text)} `), "end", 7) + " ";
}

function printHelp(ctx: Context) {
Expand Down

0 comments on commit 69dd300

Please sign in to comment.