Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions styles/github/catppuccin.user.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ regexp(
}
&[data-dark-theme="dark"] {
#catppuccin(@darkFlavor);
header[data-color-mode] {
#catppuccin(@darkFlavor);
}
}
}
}
Expand Down Expand Up @@ -318,7 +321,7 @@ regexp(
--fgColor-default: @text;
--fgColor-muted: @subtext1;
--fgColor-onEmphasis: @base;
--fgColor-white: if(@flavor = latte, @crust, @text);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't notice any difference changing this logged in or out on a few different pages, so I'm not sure if it's still relevant to have it set to @crust on latte.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did it break something?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found one issue this was causing, currently the "Appearance Settings" icon in the top right in Latte is not visible:
Screenshot 2025-10-11 at 14-51-43 fix(github) dark theme header by LastElaphine Β· Pull Request #1922 Β· catppuccin_userstyles Β· GitHub

But removing the if condition fixes it to look like this:
Screenshot 2025-10-11 at 14-52-16 fix(github) dark theme header by LastElaphine Β· Pull Request #1922 Β· catppuccin_userstyles Β· GitHub

With the removal of the header overrides in this PR the text is not visible in Latte when the if condition is set:
Screenshot 2025-10-11 at 14-50-24 fix(github) dark theme header by LastElaphine Β· Pull Request #1922 Β· catppuccin_userstyles Β· GitHub

Will all the changes in the PR it also looks correct on Latte:
Screenshot 2025-10-11 at 14-56-01 fix(github) dark theme header by LastElaphine Β· Pull Request #1922 Β· catppuccin_userstyles Β· GitHub

--fgColor-white: @text;
--fgColor-disabled: @surface2;
--fgColor-link: @accent;
--fgColor-neutral: @subtext1;
Expand Down Expand Up @@ -517,24 +520,13 @@ regexp(
}

/* Header when logged out */
.HeaderMenu-link {
color: @text;

&:hover {
color: @text;
}
}
.header-search-button {
&.placeholder {
color: @subtext0;
}

svg {
fill: @text !important;
}
}
.HeaderMenu-toggle-bar {
background-color: @text;
border-color: @text;
}
.notification-indicator .mail-status {
background-image: linear-gradient(
Expand Down