diff --git a/src/userstyles.yml b/src/userstyles.yml index ab23277378..3ba15930cf 100644 --- a/src/userstyles.yml +++ b/src/userstyles.yml @@ -280,6 +280,12 @@ userstyles: readme: app-link: "https://github.com/searxng/searxng" current-maintainers: [*sekki21956, *ryanccn] + the-economist: + name: The Economist + category: productivity + readme: + app-link: "https://www.economist.com" + current-maintainers: [*winston] tutanota: name: Tutanota category: productivity diff --git a/styles/the-economist/assets/.gitkeep b/styles/the-economist/assets/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/styles/the-economist/catppuccin.user.css b/styles/the-economist/catppuccin.user.css new file mode 100644 index 0000000000..cf067d0859 --- /dev/null +++ b/styles/the-economist/catppuccin.user.css @@ -0,0 +1,301 @@ +/* ==UserStyle== +@name The Economist Catppuccin +@namespace github.com/catppuccin/userstyles/styles/the-economist +@homepageURL https://github.com/catppuccin/userstyles +@version 0.0.1 +@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/the-economist/catppuccin.user.css +@description Soothing pastel theme for The Economist +@author Catppuccin +@license MIT +/* ==UserStyle== +@name Catppuccin for The Economist +@namespace github.com/catppuccin/economist +@version 1.0.0 +@description Catppuccin for The Economist +@author winston +@preprocessor less +@var select theme "Theme" ["latte:Latte", "frappe:Frappe", "macchiato:Macchiato", "mocha:Mocha"] +==/UserStyle== */ + +@-moz-document domain("economist.com") { + + #catppuccin(@theme); + + @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; + @teala: rgba(23, 146, 153, 0.25); + @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; + @teala: rgba(129, 200, 190, 0.25); + @text: #c6d0f5; + @subtext1: #b5bfe2; + @subtext0: #a5adce; + @overlay2: #949cbb; + @overlay1: #838ba7; + @overlay0: #737994; + @surface2: #626880; + @surface1: #51576d; + @surface0: #414559; + @base: #303446; + @mantle: #292c3c; + @crust: #232634; + } + @macchiato: { + @rosewater: #f4dbd6; + @flamingo: #f0c6c6; + @pink: #f5bde6; + @mauve: #c6a0f6; + @red: #ed8796; + @maroon: #ee99a0; + @peach: #f5a97f; + @yellow: #eed49f; + @green: #a6da95; + @teal: #8bd5ca; + @sky: #91d7e3; + @sapphire: #7dc4e4; + @blue: #8aadf4; + @lavender: #b7bdf8; + @teala: rgba(139, 213, 202, 0.25); + @text: #cad3f5; + @subtext1: #b8c0e0; + @subtext0: #a5adcb; + @overlay2: #939ab7; + @overlay1: #8087a2; + @overlay0: #6e738d; + @surface2: #5b6078; + @surface1: #494d64; + @surface0: #363a4f; + @base: #24273a; + @mantle: #1e2030; + @crust: #181926; + } + @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; + @teala: rgba(148, 226, 213, 0.25); + @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) { + @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]; + @teala: @catppuccin[@@lookup][@teala]; + @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]; + + :root { + background: @base; + --ds-color-economist-red: @red // used for text + --ds-color-london-5: @text; + --ds-color-london-10: @subtext1; + --ds-color-london-20: @subtext1; + --ds-color-london-35: @subtext0; //used for publishing dates + --ds-color-london-70: @subtext0; + --ds-color-london-85: @subtext0; + --ds-color-london-95: @subtext0; + --ds-color-london-100: @subtext1; + --ds-color-london-85: @overlay0; + --ds-color-los-angeles-95: @surface0; // used for links + --ds-color-chicago-20: darken(@blue, 10%); + --ds-color-chicago-30: @blue; + --ds-color-chicago-45: @lavender; // used for :active + --ds-color-hong-kong-55: @rosewater; // older sections + --lwc-cardColorBackground: @mantle; + --slds-c-card-text-color: @text; + } + + main a:focus { + background: unset !important; + } // login & stuff + .slds-button_brand { + color: @crust; + background: @blue !important; + border: @blue !important; + &:hover { + background: darken(@blue, 10%) !important; + border: darken(@blue, 10%) !important; + } + } + + .slds-card { + background: @mantle !important; + + p, + span, + a, + div { + color: @text !important; + } + + input, + input:focus, + input:hover { + background: @surface2 !important; + color: @text !important; + } + + .separator { + background: @mantle !important; + } + } + + .slds-has-error { + border: @red !important; + } + + .css-1mpoj98 { + background: @mantle !important; + } + + span[type="1843"] { + color: @red + } + + .ds-section-headline--rule-emphasised::before, + ds-section-headline--rule-emphasised::before { + background: @overlay2; + } + + .styled-masthead { + background: @base !important + } + + .ds-masthead, + .ds-layout-masthead { + background: @mantle !important + } + + .ds-form-input { + background: @mantle !important + } + + .ds-navigation-disclosure--icon-search::before { + background-image: none !important; + mask-image: url("https://cdn.design-system.economist.com/assets/5.94.1/common/static/images/icons/material-search.svg"); + -webkit-mask-image: url("https://cdn.design-system.economist.com/assets/5.94.1/common/static/images/icons/material-search.svg"); + background-color: @subtext0; + mask-position: 0 0; + -webkit-mask-position: 0 0; + } + + .ds-masthead-nav-alpha__item .path-foreground { + fill: @subtext0 + } // this is on a bright background, so invert foreground + + a.ds-call-to-action, + a.ds-call-to-action--inverse { + color: @crust; + } + + *[class*="promo"], + *[class*="Promo"] { + display: none; + } // search icon on `/search?q=` + + .ds-button { + svg[aria-labelledby="search-adjacent-icon"] path { + fill: @crust; + } + } + + .ds-footer { + background: @crust; + } + + .ds-share-link.ds-share-link--inverse > svg { + .path-background { + fill: @surface2 !important; + } + .path-foreground { + fill: @text !important; + } + } + } +} \ No newline at end of file