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 da4c634
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .changeset/breezy-cows-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"create-remix": patch
---

create-remix: high-contrast fg/bg for header colors

`bgWhite` and `whiteBright` are the same color in many terminal colorthemes,
which was causing it to render as illegible white-on-white
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 da4c634

Please sign in to comment.