From a735015c21edd25b38d0e4223cef810e5c83c640 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Sun, 31 Mar 2024 06:03:21 -0400 Subject: [PATCH] refactor(brave-search): rewrite (#715) * refactor(brave-search): rewrite * feat: added logo accent color * feat(brave-search): theme settings panel, filled buttons * fix(brave-search): lint issues + formatting * feat(brave-search): settings dialog related stuff * fix(brave-search): linter --------- Co-authored-by: ndsboy --- styles/brave-search/catppuccin.user.css | 242 ++++++++++++------------ 1 file changed, 122 insertions(+), 120 deletions(-) diff --git a/styles/brave-search/catppuccin.user.css b/styles/brave-search/catppuccin.user.css index 08977ac1..7cf42dc7 100644 --- a/styles/brave-search/catppuccin.user.css +++ b/styles/brave-search/catppuccin.user.css @@ -2,7 +2,7 @@ @name Brave Search Catppuccin @namespace github.com/catppuccin/userstyles/styles/brave-search @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/brave-search -@version 1.0.5 +@version 2.0.0 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/brave-search/catppuccin.user.css @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Abrave-search @description Soothing pastel theme for Brave Search @@ -69,130 +69,132 @@ @accent-color: @catppuccin[@@lookup][@@accent]; color-scheme: if(@lookup = latte, light, dark); - --color-container-highlight: @crust; - --search-serp-container-background: @mantle; - --body-bg: @base; - --bg-glassy: @mantle; - --bg-1: @surface1; - --bg-2: @surface0; - --bg-02: @crust; - --bg-04: @mantle; - --bg-green: @green; - --bg-blue: @blue; - --bg-red: @red; - --bg-favicon: @surface1; - --bg-form-control-selected: @surface2; - --bg-form-control-unselected: @surface0; - --form-control-selected: @blue; - --form-control-hover: @lavender; - --form-control-focus: @text; - --settings-header-bg: @mantle; - --settings-header-text: @text; - --settings-header-icon: @blue; - --settings-widget-text: @subtext0; - --settings-item-text: @text; - --settings-item-icon: @blue; - --settings-item-border: @overlay0; - --settings-item-border-2: @overlay2; - --settings-btn-bg: @surface0; - --settings-btn-text: @text; - --settings-widget-outline: @overlay0; - --settings-independent-score: @blue; - --settings-global-score: @peach; - --brave-supporter-bg: @base; - --brave-supporter-text: @text; - --context-menu-header-border: @overlay0; - --color-primary: @text; - --color-primary-2: @subtext1; - --color-primary-3: @subtext0; - --color-white: @text; - --color-gray-2: @subtext1; - --color-gray-3: @subtext0; - --color-gray-4: @overlay2; - --color-gray-5: @overlay1; - --color-gray-6: @overlay0; - --color-green: @green; - --color-red: @red; - --color-blue: @blue; - --info-color: @blue; - --link-primary: @blue; - --link-secondary: @blue; - --link-visited: @mauve; - --snippet-url: @subtext0; - --separator-dot: @overlay0; - --theme-purple: @mauve; - --theme-yellow: @yellow; - --border-color: @overlay0; - --blurple-300: @lavender; - --text-01: @text; - --text-02: @subtext1; - --text-03: @subtext0; - --interactive-04: @blue; - --interactive-05: @blue; - --interactive-06: @blue; - --interactive-07: @blue; - --interactive-08: @blue; - --focus-border: @overlay2; - --divider-01: @overlay0; - --disabled: @overlay1; - --btn-filled-bg: @surface0; - --btn-filled-bg-hover: @surface1; - --btn-filled-text-active: @text; - --btn-filled-bg-active: @surface2; - --btn-filled-text-disabled: @overlay1; - --btn-outline-border: @overlay0; - --btn-outline-border-hover: @overlay1; - --btn-outline-text: @text; - --btn-outline-text-hover: @subtext1; - --btn-outline-text-active: @text; - --btn-outline-border-active: @overlay2; - --btn-outline-text-disabled: @overlay1; - --btn-icon-svg-hover: @subtext1; - --btn-icon-bg-hover: @surface1; - --btn-icon-svg-active: @text; - --code-bg-0: @base; - --code-border: @overlay0; - --code-color-1: @surface0; - --code-color-2: @text; - --code-color-3: @green; - --code-color-4: @blue; - --code-color-5: @pink; - --search-bgd-01: @overlay0; - --search-bgd-02: @base; - --search-bgd-03: @crust; - --search-bgd-04: @mantle; - --search-bgd-05: @base; - --search-bgd-06: @surface0; - --search-bgd-07: @mantle; - --search-bgd-08: @crust; - --search-line-01: @surface0; - --search-line-02: @subtext0; - --search-text-01: @text; - --search-text-02: @subtext1; - --search-text-03: @subtext0; - --search-text-04: @subtext0; - --search-text-05: @blue; - --search-text-06: @overlay0; - --search-text-09: @yellow; - --search-text-10: @peach; - --search-interactive-01: @blue; - --search-interactive-02: @mauve; - --search-interactive-03: @mauve; - --search-interactive-04: @sky; - --search-interactive-05: @mauve; - --gray-30: @base; - --gray-60: @surface0; - --gray-90: @overlay0; - --gray-110: @subtext0; - --gray-120: @text; - --secondary-90: @lavender; - #searchform > .searchbox-wrapper::after { - background-image: none; + --color-page-background: @base; + --color-container-background: @crust; + --color-container-highlight: @mantle; + --color-serp-header-background: @crust; + --color-text-interactive: @accent-color; + --color-divider-subtle: @surface0; + --color-divider-interactive: @accent-color; + --color-text-primary: @text; + --color-serp-bar-bg: @mantle; + --color-serp-divider-subtle-container: @surface0; + --color-gray-30: @subtext0; + --color-gray-40: @overlay2; + --color-text-secondary: @subtext1; + --color-text-tertiary: @subtext0; + --color-icon-default: @overlay2; + --color-serp-snippet-background: @base; + --color-link-default: @blue; + --color-link-visited: @mauve; + --color-tabs-search-text-default: @accent-color; + --color-primary-50: @accent-color; + --color-primitive-primary-60: @accent-color; + --color-primitive-primary-70: darken(@accent-color, 5%); + --color-container-interactive: transparent; + --color-button-background: @accent-color; + --color-button-disabled: fade(@surface2, 30%); + + dialog { + color: @text; + + &::backdrop { + background-color: fade(@crust, 30%); + } + } + + #searchform::after { + outline-color: @surface0; } #searchform-actions::before { background: none !important; } + #submit-button { + &:hover:not(:disabled) { + background: linear-gradient( + 314deg, + @peach 8.49%, + @pink 43.72%, + @mauve 99.51% + ); + } + + svg { + fill: @overlay2; + } + } + #searchbox::placeholder { + color: @subtext0; + } + + .button.type--filled.theme--default { + color: @base; + + &:disabled { + color: fade(@text, 50%); + } + } + .button.type--outlined.theme--default:hover { + background-color: @accent-color; + border-color: @accent-color !important; + color: @base !important; + } + .tab-item.active .icon { + fill: @accent-color !important; + } + .tab-item.active ::after { + background: @accent-color !important; + } + + .logo-img { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + .nav-logo .logo-large { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + .nav-logo .logo-small { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + .waves-bottom { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}"); + } + + .waves-top { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}"); + } + + input[type="radio"]:checked::after { + background-color: @accent-color; + } + + .feedback-footer { + #logo { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + height: 48px; + } + } } } // vim:ft=less