diff --git a/styles/duckduckgo/catppuccin.user.css b/styles/duckduckgo/catppuccin.user.css index 4cfa782b..f3b4fb96 100644 --- a/styles/duckduckgo/catppuccin.user.css +++ b/styles/duckduckgo/catppuccin.user.css @@ -17,21 +17,20 @@ /* If you need any help with the information above, please see: https://github.com/openstyles/stylus/wiki/Writing-UserCSS#var */ /* For help with URL rules, please see https://github.com/openstyles/stylus/wiki/Writing-styles#valid--moz-document-rules. */ @-moz-document domain(duckduckgo.com) { - - @media (prefers-color-scheme: light) { - :root { - #catppuccin(@lightFlavor, + @media (prefers-color-scheme: light) { + :root { + #catppuccin(@lightFlavor, @accentColor); - } } - @media (prefers-color-scheme: dark) { - :root { - #catppuccin(@darkFlavor, + } + @media (prefers-color-scheme: dark) { + :root { + #catppuccin(@darkFlavor, @accentColor); - } } + } - /* prettier-ignore */ + /* prettier-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; }; @frappe: { @rosewater: #f2d5cf; @flamingo: #eebebe; @pink: #f4b8e4; @mauve: #ca9ee6; @red: #e78284; @maroon: #ea999c; @peach: #ef9f76; @yellow: #e5c890; @green: #a6d189; @teal: #81c8be; @sky: #99d1db; @sapphire: #85c1dc; @blue: #8caaee; @lavender: #babbf1; @text: #c6d0f5; @subtext1: #b5bfe2; @subtext0: #a5adce; @overlay2: #949cbb; @overlay1: #838ba7; @overlay0: #737994; @surface2: #626880; @surface1: #51576d; @surface0: #414559; @base: #303446; @mantle: #292c3c; @crust: #232634; }; @@ -39,398 +38,472 @@ @mocha: { @rosewater: #f5e0dc; @flamingo: #f2cdcd; @pink: #f5c2e7; @mauve: #cba6f7; @red: #f38ba8; @maroon: #eba0ac; @peach: #fab387; @yellow: #f9e2af; @green: #a6e3a1; @teal: #94e2d5; @sky: #89dceb; @sapphire: #74c7ec; @blue: #89b4fa; @lavender: #b4befe; @text: #cdd6f4; @subtext1: #bac2de; @subtext0: #a6adc8; @overlay2: #9399b2; @overlay1: #7f849c; @overlay0: #6c7086; @surface2: #585b70; @surface1: #45475a; @surface0: #313244; @base: #1e1e2e; @mantle: #181825; @crust: #11111b; }; } - #catppuccin(@lookup, @accent) { - @rosewater: @catppuccin[@@lookup][@rosewater]; - @flamingo: @catppuccin[@@lookup][@flamingo]; - @pink: @catppuccin[@@lookup][@pink]; - @mauve: @catppuccin[@@lookup][@mauve]; - @red: @catppuccin[@@lookup][@red]; - @maroon: @catppuccin[@@lookup][@maroon]; - @peach: @catppuccin[@@lookup][@peach]; - @yellow: @catppuccin[@@lookup][@yellow]; - @green: @catppuccin[@@lookup][@green]; - @teal: @catppuccin[@@lookup][@teal]; - @sky: @catppuccin[@@lookup][@sky]; - @sapphire: @catppuccin[@@lookup][@sapphire]; - @blue: @catppuccin[@@lookup][@blue]; - @lavender: @catppuccin[@@lookup][@lavender]; - @text: @catppuccin[@@lookup][@text]; - @subtext1: @catppuccin[@@lookup][@subtext1]; - @subtext0: @catppuccin[@@lookup][@subtext0]; - @overlay2: @catppuccin[@@lookup][@overlay2]; - @overlay1: @catppuccin[@@lookup][@overlay1]; - @overlay0: @catppuccin[@@lookup][@overlay0]; - @surface2: @catppuccin[@@lookup][@surface2]; - @surface1: @catppuccin[@@lookup][@surface1]; - @surface0: @catppuccin[@@lookup][@surface0]; - @base: @catppuccin[@@lookup][@base]; - @mantle: @catppuccin[@@lookup][@mantle]; - @crust: @catppuccin[@@lookup][@crust]; - @accent-color: @catppuccin[@@lookup][@@accent]; + #catppuccin(@lookup, @accent) { + @rosewater: @catppuccin[@@lookup][@rosewater]; + @flamingo: @catppuccin[@@lookup][@flamingo]; + @pink: @catppuccin[@@lookup][@pink]; + @mauve: @catppuccin[@@lookup][@mauve]; + @red: @catppuccin[@@lookup][@red]; + @maroon: @catppuccin[@@lookup][@maroon]; + @peach: @catppuccin[@@lookup][@peach]; + @yellow: @catppuccin[@@lookup][@yellow]; + @green: @catppuccin[@@lookup][@green]; + @teal: @catppuccin[@@lookup][@teal]; + @sky: @catppuccin[@@lookup][@sky]; + @sapphire: @catppuccin[@@lookup][@sapphire]; + @blue: @catppuccin[@@lookup][@blue]; + @lavender: @catppuccin[@@lookup][@lavender]; + @text: @catppuccin[@@lookup][@text]; + @subtext1: @catppuccin[@@lookup][@subtext1]; + @subtext0: @catppuccin[@@lookup][@subtext0]; + @overlay2: @catppuccin[@@lookup][@overlay2]; + @overlay1: @catppuccin[@@lookup][@overlay1]; + @overlay0: @catppuccin[@@lookup][@overlay0]; + @surface2: @catppuccin[@@lookup][@surface2]; + @surface1: @catppuccin[@@lookup][@surface1]; + @surface0: @catppuccin[@@lookup][@surface0]; + @base: @catppuccin[@@lookup][@base]; + @mantle: @catppuccin[@@lookup][@mantle]; + @crust: @catppuccin[@@lookup][@crust]; + @accent-color: @catppuccin[@@lookup][@@accent]; - - --sds-color-text-02: @text !important; - --theme-col-txt-url: @text !important; - --theme-col-txt-title-visited: @mauve !important; - --theme-col-txt-snippet: @text !important; - --theme-col-txt-card-title: @text; - --theme-col-txt-url-domain: @subtext1 !important; - --theme-col-txt-title: @blue !important; - --theme-col-bg-card: @surface0 !important; - --theme-col-about-link: @blue; - --theme-col-border-ui: @surface1 !important; - --theme-col-bg-expandcollapse: @surface0 !important; - --sds-color-palette-gray-60: @accent-color !important; - --theme-col-txt-url-path: @subtext0 !important; - --theme-col-border-expandcollapse: @surface1; - --theme-col-bg-page: @base; - --sds-color-text-04: @subtext1 !important; - --theme-col-txt-card-body: @text; - --sds-color-text-03: @subtext0 !important; - --col-slate-light: @subtext0; - --col-silver-dark: @overlay1; - --theme-col-txt-button-secondary: @accent-color !important; - --theme-bg-legacy-home: @base !important; - --theme-bg-cta-cards: @surface0 !important; - --theme-button-primary-bg: @blue !important; - --theme-button-primary-bg--hover: @blue !important; - --theme-button-primary-bg--active: @blue !important; - --theme-button-primary-text: @crust !important; ---theme-badge-fg--green: @crust !important; ---theme-browser-comparison-table-check-bg: @green !important; ---theme-browser-comparison-table-cross-bg: @red !important; - --theme-searchbox-bg: @surface0 !important; - --theme-searchbox-bg--hover: @surface0 !important; - --theme-searchbox-bg--active: @surface0 !important; - --theme-searchbox-bg--focused: @surface0 !important; ---theme-border-color-legacy-home-searchbox: @surface2 !important; - --theme-button-link-text: @blue !important; - --theme-browser-comparison-table-badge-text: @text !important; - --theme-badge-bg--green: @green !important; - --theme-badge-bg--yellow: @yellow !important; - --theme-atb-button-bg: @blue; - --theme-atb-button-bg--hover: @blue; - --theme-atb-button-bg--active: @blue; - --col-silver-light: @surface1 !important; - --theme-col-card-inner-border: @surface2 !important; - --sds-color-text-link-02: @text !important; - --sds-color-text-link-02--hover: @subtext1 !important; - --theme-text-legacy-home: @text !important; - --theme-browser-comparison-table-row-bg: @surface0 !important; - --theme-browser-comparison-table-row-alt-bg: @surface1 !important; - --theme-bg-home-bottom: @base !important; - --theme-atb-card-back-bg: @surface0 !important; - --theme-atb-card-front-bg: @surface1 !important; - --theme-text-bg: @text !important; - .featureCards_root__brAX3 { - --feature-card-background-color: @surface0 !important; - } - --theme-accordion-background--expanded: @surface0 !important; - --theme-accordion-background: @surface1 !important; - --theme-footer-link-text: @blue !important; - --theme-sidemenu-bg: @surface0 !important; - --theme-col-txt-button-tertiary: @text !important; - --theme-bg-legacy-home-searchbox: @surface0 !important; - --theme-bg-info-snippet: @surface2 !important; - --theme-button-tertiary-txt: @text !important; - --theme-browser-comparison-table-icon-bg: @mantle !important; ---theme-col-bg-ui: @mantle !important; - - .footer, - .switch__knob .modal--dropdown--settings, - .settings-dropdown--section, - .frm__field, - .frm__switch, - .tileview .metabar--fixed, - body, - .frm__switch__label.btn::after, - .zci, html, .body--home, html.displayable-atb-banner .body--home, .site-wrapper, .region__body, .badge-link, .module--carousel__image-wrapper, .result__image, .vertical--map__sidebar, .vertical--map__sidebar__header, .page-chrome_newtab, .zci--type--tiles:not(.is-fallback).is-full-page.is-expanded, .zci--type--tiles:not(.is-fallback).is-full-page.is-expanded .metabar:not(.is-stuck) { - background-color: @base !important; - } - .featureCards_dark__5Xbsn { - background: linear-gradient(180deg, @yellow, @blue) - } - - - .modal__header__clear, - .sep--before, - .js-region-filter-clear, - .result__a, - .module--carousel__body__title, - .js-carousel-module-more, - .js-no-results-web, - .bing .tile__title--pr a, - .sidebar-filter__show-more, - .module__footer, - .js-settings-dropdown-reset-appearance, - .modal--dropdown--settings .settings-dropdown--button, - .settings-page-wrapper a:not(.btn, .set-tab), - .module__link--blue, - .place-list-item__cta-item__text { - color: @blue !important; - } - -.tile__title a:visited { -color: @mauve} - - .place-detail__status--off { - color: @red - } - - .place-detail__status--on { - color: @green; - } - - .result__a:visited { - color: @mauve !important; - } - .bg-clr--green { - background-color: @green - } -.tile__status { -color: @mantle !important; -} - - .modal__header, - .modal__footer, - .modal__box, - .tile, - .js-carousel-module-more, - .related-searches__item, - .bg-clr--white, - .tile__media__free-shipping-label, - .sidebar-filter__options, - .sidebar-filter__option.is-size, - .module__footer, - .frm__select, - .set-bookmarklet, - .set-reset, - .search__autocomplete, .frm__input, .frm__color__swatch { - border-color: @surface0 !important; - } - - .sep--before::before, - .sep { - border-left-color: @surface2; - } - - .header-wrap, .module--carousel__left, .module--carousel__right, .detail, .btn{ - background-color: @mantle; - } - - .set-header--fixed .tileview--grid .metabar--fixed, - .tileview--grid .metabar--fixed.is-stuck { - background-color: @surface0; - border-top-color: @surface0 - } - - .modal--dropdown--region.modal--popout .frm__input, - .js-region-filter-list, - .tile__body, - .bg-clr--white, - .acp-wrap, - .tile__media__free-shipping-label, - .tile__media--pr, - .modal__box, - .nav-menu__list, - .set-tab.is-active, - .frm__select select, - .cloudsave, - .feedback-btn__send, - .set-bookmarklet__input, - .howItWorksSection_downloadsCard__U3Ph9, - .metabar__grid-btn, - .feedback-btn__icon-wrap, code, .set-bookmarklet__input .btn, .btn:visited, .btn:active, .btn.btn--primary, .btn.btn--secondary, .btn--primary:hover, .btn.is-disabled, .btn.is-disabled:hover, input, textarea, .frm__input, .frm__text, .detail--xd .c-detail__btn, .set-bookmarklet, .set-reset, .zci--json_validator textarea, .colorpicker, .feedback-modal__submit.is-disabled, .feedback-modal__submit.is-disabled:hover, .feedback-modal__submit.is-disabled:active, .feedback-modal__submit.is-disabled:focus, .btn.btn--skeleton:hover, .module__section, .module--carousel__item, .is-related-search-exp.dark-bg, .related-searches__item, .detail--xd .tile-nav--sm, .set-bookmarklet__detail, .set-reset__detail - { - background-color: @surface0 !important - } - -.set-bookmarklet__data { -background-color: @surface2; -color: @text; -} - - .modal__list__link.is-highlighted, - .modal__list li:hover { - background-color: @overlay1; - } - - .metabar__dropdowns-wrap::before, - .metabar__dropdowns-wrap::after { - background-image: linear-gradient(90deg, @surface0, rgba(255, 255, 255, 0)) - } - - .nav-menu__item__badge { - background-color: @yellow; - color: @mantle; - } - - .settings-dropdown--section, - .set-head, - .frm__hr { - border-bottom-color: @surface2; - } - - .footer { - border-top-color: @surface0 - } - - .is-vertical-tabs-exp, - #duckbar, - .zcm__link:not(.dropdown__button).is-active, .set-main-footer { - border-color: @accent-color !important; - } - - - input, - select, - h1, - h2, - h3, - h4, - h5, - h6, - ul, - ol, - blockquote, - p, - body, - .module--carousel__footer, - .set-tab.is-active, - .zcm__link, - .feedback-prompt__link, - .feedback-btn__send, - .tile--img__sub, - .result__snippet, - .result__snippet b, - .modal__list__link, - .acp, - .header_headerButton__cLYU3, - .is-vertical-tabs-exp, - .module.module--images, - .module__header.module__header--link, - .text--title, - .text--airline-flight, - .timing, - .flight-details__values, - .airlines-footer, - .tx-clr--slate, - .nav-menu__heading, - .zci, - .metabar__grid-btn, .module--carousel__left, .module--carousel__right, .c-detail__title__sub, .c-detail__desc, .c-detail__filemeta, .c-detail__more, .btn, .frm__label, .js-cloudsave-new-suggestion - { - color: @text !important; - } - -.zci--airlines .text--title svg path { -fill: @text; -} - -.star { -color: @overlay2 -} - - .set-tab, - .set-tab:visited { - background-color: @mantle; - color: @overlay1; - } - - .js-cloudsave-save-btn, - .js-cloudsave-load-btn { - background-color: @surface2; - border-color: @overlay0; - color: @text; - } - - .video-source, - .tile__count, - .result__url, - .tile__time, - .feedback-prompt, - .footer__text, - .vertical--news .result__url, - .result__timestamp, - .js-metabar-secondary, - .sidebar-filters, - .tile--pr__original-price, - .nav-menu__item a, - .nav-menu__close, - .frm__desc, - .dropdown__button, - .tx-clr--slate-light, - .flight-details__labels, - .scheduled-time, - .source-link, - .tile__source, - .zci__more-at, .cloudsave__close{ - color: @subtext0 !important; - } - - .dropdown--region.has-inactive-region .dropdown__button::after, - .modal--dropdown--region.modal--popout .modal__header::before, - .js-carousel-module-title, - .tile--pr__brand, - .frm__select, - .star::after, - .feedback-btn__icon, .detail--xd .tile-nav--sm, .detail__close{ - color: @accent-color !important; - } - - .search__button:hover, - .search--header.has-text.search--hover .search__button { - background-color: @accent-color !important; - color: @base !important; - } - - .settings-page-wrapper .btn--primary { - border-color: @blue; - background-color: @blue !important; - color: @crust !important; - } - - .js-region-filter-switch, - .frm__switch__label { - background-color: @accent-color !important; - border-color: @accent-color !important; - } - - .dropdown__switch.is-on::before, - .frm__switch__label { - color: @base !important; - } - .search--header { - background-color: @surface0; - border-color: @surface0; - } - - .acp--highlight, .bg-clr--platinum-light { - background-color: @overlay0 - } - - .review__rating-stars, - .place-list-item__rating__image { - @svg: escape(''); - background-image: url("data:image/svg+xml,@{svg}"); - } //ddg icon - .header__logo { - @svg: escape(' '); - background-image: url("data:image/svg+xml,@{svg}"); - } -// search glass icon - .related-searches__item-text::before { - @svg: escape('