Skip to content

fix(duckduckgo.com): misc #1713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 4 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
79 changes: 78 additions & 1 deletion styles/duckduckgo/catppuccin.user.less
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@
--theme-searchbox-bg--hover: @surface0 !important;
--theme-searchbox-bg--active: @surface0 !important;
--theme-searchbox-bg--focused: @surface0 !important;
--theme-assist-bg-chat-system: @surface0 !important;
--theme-dc-color-layer2: @surface0 !important;
--theme-dc-color-background-base: @base !important;
--theme-border-color-legacy-home-searchbox: @surface2 !important;
--theme-button-link-text: @blue !important;
--theme-browser-comparison-table-badge-text: @text !important;
Expand Down Expand Up @@ -203,6 +206,13 @@
border-color: @surface0;
}

.desktop-homepage_root__Ikj1_ {
--theme-howitworks-downloads-bg: @surface0 !important;
--theme-bg-cta-cards: @surface0 !important;
Copy link
Member

Choose a reason for hiding this comment

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

Already set on line 116?

--theme-bg-home: @base !important;
Copy link
Member

Choose a reason for hiding this comment

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

Already set under #__next div on line 1240?

--theme-bg-home-searchbox: @surface0 !important;
Copy link
Member

Choose a reason for hiding this comment

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

Already set under #__next div on line 1243?

}

.footer,
.footer--mobile,
.modal--dropdown--settings,
Expand Down Expand Up @@ -421,6 +431,9 @@
}

/* ai chat >:( */
.clS_s3a7onj0_NFty2Qh {
background-color: @surface0 !important;
}
.feedback-external__link {
color: @blue;
}
Expand Down Expand Up @@ -1224,7 +1237,7 @@
--theme-button-primary-bg: @blue !important;
--theme-searchbox-caret-bg: @accent !important;

.home_root__naJUp {
.home_root___gvmE {
--theme-bg-home: @base !important;
--theme-button-secondary-text: @text !important;
--theme-text-bg: @text !important;
Expand Down Expand Up @@ -1259,6 +1272,70 @@
}
}

@-moz-document domain("html.duckduckgo.com") {
:root:not(.theme-dark) {
#catppuccin(@lightFlavor);
}

:root.theme-dark {
#catppuccin(@darkFlavor);
}

#catppuccin(@flavor) {
@rosewater: @catppuccin[@@flavor][@rosewater];
@flamingo: @catppuccin[@@flavor][@flamingo];
@pink: @catppuccin[@@flavor][@pink];
@mauve: @catppuccin[@@flavor][@mauve];
@red: @catppuccin[@@flavor][@red];
@maroon: @catppuccin[@@flavor][@maroon];
@peach: @catppuccin[@@flavor][@peach];
@yellow: @catppuccin[@@flavor][@yellow];
@green: @catppuccin[@@flavor][@green];
@teal: @catppuccin[@@flavor][@teal];
@sky: @catppuccin[@@flavor][@sky];
@sapphire: @catppuccin[@@flavor][@sapphire];
@blue: @catppuccin[@@flavor][@blue];
@lavender: @catppuccin[@@flavor][@lavender];
@text: @catppuccin[@@flavor][@text];
@subtext1: @catppuccin[@@flavor][@subtext1];
@subtext0: @catppuccin[@@flavor][@subtext0];
@overlay2: @catppuccin[@@flavor][@overlay2];
@overlay1: @catppuccin[@@flavor][@overlay1];
@overlay0: @catppuccin[@@flavor][@overlay0];
@surface2: @catppuccin[@@flavor][@surface2];
@surface1: @catppuccin[@@flavor][@surface1];
@surface0: @catppuccin[@@flavor][@surface0];
@base: @catppuccin[@@flavor][@base];
@mantle: @catppuccin[@@flavor][@mantle];
@crust: @catppuccin[@@flavor][@crust];
@accent: @catppuccin[@@flavor][@@accentColor];

color-scheme: if(@flavor = latte, light, dark);

Comment on lines +1312 to +1313
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
color-scheme: if(@flavor = latte, light, dark);

The previous @-moz-document already covers this and the rest of the default styles, can be removed.

.header {
background-color:@mantle !important;
border-bottom-color:@crust !important;
}

.zci-wrapper {
background-color: @surface0 !important;
border-bottom-color:@crust !important;
}

.zci-wrapper .zci {
background-color: @surface0 !important;
}

.result:hover {
background-color: @surface0 !important;
}

.search {
background-color: @surface0 !important;
}
}
}

/* deno-fmt-ignore */
@catppuccin: {
@latte: { @rosewater: #dc8a78; @flamingo: #dd7878; @pink: #ea76cb; @mauve: #8839ef; @red: #d20f39; @maroon: #e64553; @peach: #fe640b; @yellow: #df8e1d; @green: #40a02b; @teal: #179299; @sky: #04a5e5; @sapphire: #209fb5; @blue: #1e66f5; @lavender: #7287fd; @text: #4c4f69; @subtext1: #5c5f77; @subtext0: #6c6f85; @overlay2: #7c7f93; @overlay1: #8c8fa1; @overlay0: #9ca0b0; @surface2: #acb0be; @surface1: #bcc0cc; @surface0: #ccd0da; @base: #eff1f5; @mantle: #e6e9ef; @crust: #dce0e8; };
Expand Down