From af648aa9c38d5f333781932e68429f6d737e0ec9 Mon Sep 17 00:00:00 2001 From: Isabel <71222764+isabelroses@users.noreply.github.com> Date: Sun, 12 Nov 2023 22:39:00 +0000 Subject: [PATCH] feat(gmail): init (#295) --- src/userstyles.yml | 7 + styles/gmail/assets/catwalk.webp | 3 + styles/gmail/assets/frappe.webp | 3 + styles/gmail/assets/latte.webp | 3 + styles/gmail/assets/macchiato.webp | 3 + styles/gmail/assets/mocha.webp | 3 + styles/gmail/catppuccin.user.css | 553 +++++++++++++++++++++++++++++ 7 files changed, 575 insertions(+) create mode 100644 styles/gmail/assets/catwalk.webp create mode 100644 styles/gmail/assets/frappe.webp create mode 100644 styles/gmail/assets/latte.webp create mode 100644 styles/gmail/assets/macchiato.webp create mode 100644 styles/gmail/assets/mocha.webp create mode 100644 styles/gmail/catppuccin.user.css diff --git a/src/userstyles.yml b/src/userstyles.yml index ece770c9..6eac319b 100644 --- a/src/userstyles.yml +++ b/src/userstyles.yml @@ -210,6 +210,13 @@ userstyles: app-link: "https://github.com" current-maintainers: [*pocco81, *glowingumbreon] past-maintainers: [*andreasgrafen] + gmail: + name: Gmail + category: productivity + readme: + usage: "Switch to either the dark or default themes via the **gear icon** > **themes** > **view all** for the best experience!" + app-link: "https://mail.google.com" + current-maintainers: [*isabelroses] hacker-news: name: Hacker News category: social diff --git a/styles/gmail/assets/catwalk.webp b/styles/gmail/assets/catwalk.webp new file mode 100644 index 00000000..a6b7b5ea --- /dev/null +++ b/styles/gmail/assets/catwalk.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b91723f250222b2704fb65c3b55440a654663ba51aaaa9e079f05bb0112afe8e +size 297876 diff --git a/styles/gmail/assets/frappe.webp b/styles/gmail/assets/frappe.webp new file mode 100644 index 00000000..5776e17c --- /dev/null +++ b/styles/gmail/assets/frappe.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d21ed76c8ddd29ab13a175dbd5d9b4a6905b1a528bdea642dc9fd79b44fc2550 +size 49114 diff --git a/styles/gmail/assets/latte.webp b/styles/gmail/assets/latte.webp new file mode 100644 index 00000000..71089819 --- /dev/null +++ b/styles/gmail/assets/latte.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4368cc187a58342582cd2ecbae3e9c93602410681e9c40174537c411b78a7cd5 +size 44170 diff --git a/styles/gmail/assets/macchiato.webp b/styles/gmail/assets/macchiato.webp new file mode 100644 index 00000000..e5e9ed2d --- /dev/null +++ b/styles/gmail/assets/macchiato.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f048ea2cd16cb45fb23589d462b05610d47049e1038ec8360cca6013224da26 +size 50786 diff --git a/styles/gmail/assets/mocha.webp b/styles/gmail/assets/mocha.webp new file mode 100644 index 00000000..cc7b628f --- /dev/null +++ b/styles/gmail/assets/mocha.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e61d822283959a2160676ab7ad19fe862d5f85e5e878cf3b3b88fd9ebcfd8d5e +size 50962 diff --git a/styles/gmail/catppuccin.user.css b/styles/gmail/catppuccin.user.css new file mode 100644 index 00000000..d40070a3 --- /dev/null +++ b/styles/gmail/catppuccin.user.css @@ -0,0 +1,553 @@ +/* ==UserStyle== +@name Gmail Catppuccin +@namespace github.com/catppuccin/userstyles/styles/gmail +@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/gmail +@version 0.1.0 +@description Soothing pastel theme for Gmail +@author Catppuccin +@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/gmail/catppuccin.user.css +@license MIT + +@preprocessor less +@var select flavor "Flavor" ["latte:Latte", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha*"] +@var select accentColor "Accent" ["rosewater:Rosewater*", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire", "sky:Sky", "lavender:Lavender", "subtext0:Gray"] +==/UserStyle== */ +@-moz-document url-prefix("https://mail.google.com") { + + :root { + #catppuccin(@flavor, @accentColor); + } + + @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; + } + @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; + @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; + @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]; + + .ZG, + .boo .aQl > .J-JN-M-I-Jm, + .boo .aaa > .J-JN-M-I-Jm, + .boo .ZE > .J-JN-M-I-Jm, + .bs1 + .bs3, + .btj + .aD, + body { + color: @text !important; + } + + /* input box */ + .nr { + background-color: @surface1 !important; + color: @text !important; + } + + .bs0 > .acM, + .bti > .btg { + color: @text !important; + } + + /* quick settings */ + .IU { + background: @base !important; + box-shadow: inset 1px 0 0 @mantle !important; + } + .Q0, + .VM .Q5, + .VM .OG, + .Q2, + .bCh, + .aIY, + .a21, + .ST, + .OB { + color: @text !important; + } + .Tj, + .OD { + color: @accent-color !important; + } + + /* background */ + #loading { + background: @base !important; + } + + header, + .nH.w-asV, + .bkL { + background: @crust !important; + } + + /* links */ + .aRq { + color: @sapphire !important; + &:hover { + color: @teal !important; + } + } + + /* header */ + .aeH, + .aqK { + background: @mantle !important; + } + + /* search */ + .gb_Lc .gb_Ee { + background: @surface0 !important; + } + .gb_Lc .gb_3e, + .gb_Ee.gb_Fe .gb_Ze { + color: @text !important; + } + .gb_Ee.gb_Fe button svg { + color: @text !important; + opacity: 1; + } + .aRp { + background: @surface0 !important; + } + .gssb_i { + background: @surface1 !important; + color: @text !important; + } + .gssb_e, + .gssb_m { + background: @surface0 !important; + color: @text !important; + } + + /* left bar */ + .CL.Q7:hover, + .CL.Wj:hover, + .CL.Q7.NQ, + .CL.Wj.NQ, + .TK .TO.nZ:active, + .TK .TO.ol:active, + .TK .TO.nZ, + .TK .TO.ol, + .byl .TK .nZ.aBP, + .byl .TK .nZ.aS3, + .byl .TK .nZ.aS4, + .byl .TK .nZ.aS5, + .byl .TK .nZ.aS6 { + background: @surface0 !important; + } + .TO.NQ, + .n6 .ah9:hover, + .n6 .ah9.aiu:hover, + .n6 .ah9:focus, + .TK .TO:active, + .n6 .ah9.aiu:active { + background: @surface1 !important; + } + .aAv, + .TO .nU > .n0, + .TO.NQ .nU > .n0, + .TO.nZ .nU > .n0, + .ah9 > .CJ, + .n3 > .CL > .CK { + color: @text !important; + } + .h0, .Dj { + color: @subtext0 !important; + } + + /* right bar */ + .bAw .brC-aT5-aOt-Jw { + background: @crust !important; + } + .brC-aMv-auO .bse-bvF-I.aT5-aOt-I-JW .aT5-aOt-I-JX-atM-J6, + .brC-aMv-auO .bse-bvF-I.aT5-aOt-I-JO .aT5-aOt-I-JX-atM-J6 { + background: lighten(@crust, 4%); + } + /* inbox area */ + .H2.HD { + background: @surface0 !important; + border-color: @surface1 !important; + } + .bkK > .nH { + background: @mantle !important; + } + /* inbox item */ + .yO { + background: @mantle !important; + &:hover { + box-shadow: inset 1px 0 0 @surface0, inset -1px 0 0 @surface0, 0 0 4px 0 @base, 0 0 6px 2px @base !important; + } + } + /* quick text */ + .y2 { + color: @subtext0 !important; + } + .aeJ, + .aRs { + .J-KU:hover { + background: @surface0 !important; + } + background: @base !important; + .aRu { + .aRv { + color: @subtext0 !important; + } + color: @subtext1 !important; + } + } + .aAA.J-KU-Jg-K9 { + background: @base !important; + } + .J-KU-KO.aAy { + .aKz { + color: @accent-color !important; + } + &:before { + background: @accent-color !important; + } + } + .aKx > .aKz { + color: @subtext0 !important; + } + /* inbox box badge */ + .at { + color: @crust !important; + background: @accent-color !important; + .au .av { + color: @crust !important; + } + } + .y6, + .bA4 { + color: @text !important; + } + /* buttons hovers */ + .T-I-JW.amD::before, + .T-I-JW.adg::before, + .T-I-JW > .asa::before { + background: @surface0 !important; + } + /* forward/reply buttons */ + .amn > .ams { + color: @text !important; + } + .amr .amn > .ams { + background: @base !important; + border-color: @surface0 !important; + } + /* send one now */ + .x0 { + color: @text !important; + } + + /* theme */ + div.Kj-JD { + background-color: @base; + } + .a80.Kj-JD-K7 { + box-shadow: 0 5px 10px -5px @crust; + } + .a81 { + border: 1px solid @surface0; + } + + /* no star warning */ + .Tm .TC { + background: @base !important; + color: @text !important; + } + + /* dropdown */ + .ZF-z6, + .ZF-zT, + .ZF-Av .lJ, + .ZF-Av .lN, + .aaZ, + .aoT, + .J-M, + .bAp.b8.UC .vh, + .ajA, + .nH .Hy .m, + .J-N-JT, + .J-JK-JT, + .J-LC-JT, + form[role="search"], + form[role="search"] table, + form[role="search"] div, + form[role="search"] td { + background: @surface0 !important; + } + + div.Kj-JD-Jl > button.J-at1-atl, + div.Kj-JD-Jl > button.J-at1-auR { + background: @accent-color !important; + color: @crust !important; + } + div.Kj-JD-Jl > button, + .bBh .Kj-JD-Jl > .J-at1-auR, + .Kj-JD-K7-K0, + .J-N { + color: @text !important; + } + .J-N-JT, + .J-N-JW { + color: @text !important; + background: @surface2 !important; + } + .J-N-JT .J-N-Jz, + .J-N-JW .J-N-Jz { + color: @text !important; + } + .T-I-Kq > .asa::before, + .T-I-Kq.T-I-JO > .asa::before { + background: @surface1 !important; + } + + /* compose button */ + .T-I-KE { + background: @accent-color !important; + color: @crust !important; + & when (@lookup =latte) { + color: @text !important; + } + &:hover { + background: darken(@accent-color, 10%); + color: @crust !important; + } + } + + /* drive usage */ + .aiC { + background: @overlay0 !important; + } + .aiA { + background: @accent-color !important; + } + /* icons */ + .aAy>.aKp, + .xY > .T-Jo, + .T-I .T-I-J3, + td.apU > .T-KT.aXw::before { + filter: brightness(0) saturate(100%) invert(28%) sepia(17%) saturate(835%) hue-rotate(196deg) brightness(150%) contrast(75%); + } + td.apU > .T-KT.T-KT-Jp::before { + filter: brightness(0) saturate(100%) invert(28%) sepia(17%) saturate(835%) hue-rotate(337deg) brightness(300%); + } + /*svgs*/ + .gb_Mc svg, .gb_Rc.gb_Vc svg, .gb_Mc .gb_dd .gb_ld, .gb_Mc .gb_dd .gb_Lc, .gb_Mc .gb_dd .gb_fd, .gb_Rc.gb_Vc .gb_ld { + color: @subtext0; + } + + /* toolbar */ + .Hl, + .Hq, + .Ha, + [role="menuitemcheckbox"] > div > div, + [role="listbox"] .J-Z-M-I-J6-H > .J-Z-M-I-JG, + div.ajR .ajT, + .btC .dv, + .btC .aaA.a1, + .btC .J-N-JX.a1, + .btC .aaA.e5, + .aaZ .J-N-JX.e5, + .btC .aaA.QT, + .btC .J-N-JX.QT, + .btC .aaA.aA7, + .aaZ .J-N-JX.aA7, + .btC .aaA.buc, + .btC .J-N-JX.buc, + .btC .aaA.BP, + .aaZ .J-N-JX.BP, + .btC .aaA.a5, + .btC .aaA.a2X, + .aaZ .J-N-JX.a5, + .aaZ .J-N-JX.a2X, + [role="toolbar"] [role="button"]:not(.H2):not(.Ol) { + filter: invert(1) !important; + } + + /* advanced settings */ + div.Kj-JD-Jz { + color: @subtext0 !important; + } + .alO, + .v .fY, + .v .f1, + .r4 { + background: @base !important; + } + .v .f1, + .v .f1 .f0 { + color: @text !important; + } + .qL { + color: black !important; + } + .v .fZ { + box-shadow: inset 0 -2px 0 0 @accent-color; + .f0 { + color: @accent-color !important; + } + } + .alP, + .sA, + .r4 .e { + color: @sapphire !important; + &:hover { + color: @teal !important; + } + } + .Ze { + background: @surface0 !important; + } + .a8Y > .T-I-ax7 { + background: @surface0 !important; + color: @text !important; + &:hover { + background: @surface1 !important; + } + } + .T-I-atl { + background: @accent-color !important; + color: @crust !important; + &:hover { + background: ligten(@accent-color, 10%) !important; + } + } + } +}