diff --git a/scripts/userstyles.yml b/scripts/userstyles.yml index 58432a92a1..0eb85e0cde 100644 --- a/scripts/userstyles.yml +++ b/scripts/userstyles.yml @@ -342,6 +342,13 @@ userstyles: readme: app-link: "https://elk.zone" current-maintainers: [*ryanccn] + fontawesome: + name: Font Awesome + categories: ["development", "photo_and_video"] + color: blue + readme: + app-link: "https://fontawesome.com" + current-maintainers: [*trinkey] freedesktop: name: freedesktop.org categories: [development] diff --git a/styles/fontawesome/catppuccin.user.css b/styles/fontawesome/catppuccin.user.css new file mode 100644 index 0000000000..c585a43676 --- /dev/null +++ b/styles/fontawesome/catppuccin.user.css @@ -0,0 +1,714 @@ +/* ==UserStyle== +@name Font Awesome Catppuccin +@namespace github.com/catppuccin/userstyles/styles/fontawesome +@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/fontawesome +@version 0.0.1 +@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/fontawesome/catppuccin.user.css +@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Afontawesome +@description Soothing pastel theme for Font Awesome +@author Catppuccin +@license MIT + +@preprocessor less +@var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"] +@var select darkFlavor "Dark 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 domain('fontawesome.com') { + @media (prefers-color-scheme: light) { + :root { + #catppuccin(@lightFlavor, @accentColor); + } + } + + @media (prefers-color-scheme: dark) { + :root { + #catppuccin(@darkFlavor, @accentColor); + } + } + + #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]; + + color-scheme: if(@lookup = latte, light, dark); + + ::selection { + background-color: fade(@accent-color, 30%); + } + + input, + textarea { + &::placeholder { + color: @subtext0 !important; + } + } + + --balloon-text-color: @text; + --button-active-color: inherit; + --button-background: @crust; + --button-color: @text; + --button-hover-background: @mantle; + --button-hover-color: @subtext1; + --code-background: @mantle; + --code-color: @text; + --fa-brand-blue: @blue; + --fa-dk-blue: @accent-color; + --fa-dk-navy: @subtext0; + --fa-dk-purple: @accent-color; + --fa-dk-teal: @accent-color; + --fa-dk-violet: @accent-color; + --fa-dk-yellow: @accent-color; + --fa-gravy: @text; + --fa-lt-gravy: @mantle; + --fa-lt-gray: @surface0; + --fa-navy: @surface0; + --fa-purple: @mantle; + --fa-teal: @accent-color; + --fa-yellow: @mantle; + --focus-outline-color: @accent-color; + --input-border-color: @surface0; + --input-choice-checked-icon-color: @base; + --input-choice-icon-color: @text; + --link-hover-color: @accent-color; + --message-border-color: @surface0; + --message-color: @text; + --modal-shadow: fade(@crust, 50%); + --sl-color-bg-nav: @crust; + --sl-color-bg-sidebar: @mantle; + --sl-color-black: @base; + --sl-color-blue-low: @base; + --sl-color-blue: @accent-color; + --sl-color-gray-1: @text; + --sl-color-gray-2: @text; + --sl-color-gray-3: @text; + --sl-color-gray-5: @surface0; + --sl-color-gray-6: @surface0; + --sl-color-gray-7: @surface0; + --sl-color-green: @green; + --sl-color-red: @red; + --sl-color-white: @text; + --table-cell-border-color: @text; + --table-th-border-color: @text; + --text-color: @text; + --white: @base; + + .icons-facet-count { + --icon-facet-count-color: @text; + } + + .icons-facet-tab { + --link-color: @text; + } + + button.flat.compact[style*="--button-color: var(--fa-navy);"] { + color: @subtext0; + } + + select { + color: @text; + } + + .icon-search-powered-by a { + color: @subtext0; + + &:hover { + color: @accent-color; + } + } + + .muted, .mute { + color: @subtext0; + } + + .message[style*="--message-background"]:not([style*="--message-background: var(--fa-lt-gravy)"]) { + --message-background: @accent-color !important; + } + + [class*="fa-"][style*="color: rgb(30, 48, 80);"] { + color: @text !important; + } + + [style*="--link-color: var(--fa-blue)"] { + --link-color: @accent-color !important; + --link-hover-color: @accent-color !important; + } + + svg[data-icon="circle-info"][style*="color: var(--fa-blue)"] { + color: @accent-color !important; + } + + .select-icon-style-button { + --button-color: @text !important; + --button-background: @base !important; + --button-border-color: @surface0 !important; + --button-active-color: @accent-color !important; + --button-active-background: @crust !important; + --button-active-border-color: @surface0 !important; + border-color: @surface0 !important; + } + + .codeblock-tabbed .tabs { + background: @surface0; + + .tab { + --tab-hover-background: @mantle; + --tab-active-background: @mantle; + } + + & > button { + color: @text !important; + + &[aria-selected="true"] { + background-color: @crust !important; + } + } + } + + dl[style*="border-top:"] { + border-top-color: @base !important; + } + + .icon-detail.card { + --card-color: @text; + } + + .icon-details-preview[style*="--card-background"] { + --card-background: @text !important; + } + + .accent { + --button-background: @accent-color; + --button-color: @crust; + --button-hover-color: @mantle; + } + + .copy-button { + --button-color: @text !important; + } + + body { + background-color: @base; + color: @text; + } + + footer:not([class*="astro"]) { + background-color: @crust !important; + --link-color: @accent-color !important; + --link-hover-color: @accent-color !important; + + div, h3 { + color: @text !important; + } + } + + .with-icon-before { + --input-with-icon-color: @text !important; + } + + .with-close .close { + color: @text; + + &:hover { + color: @red; + } + } + + .secondary { + --link-color: @subtext0; + } + + .icon-code-snippet .code-snippet-secondary-tab { + --button-color: @accent-color; + --button-hover-color: @accent-color; + --button-hover-background: transparent; + } + + .message svg[style*="color: rgb(25, 49, 84);"] { + color: @base !important; + } + + a[style*="--link-hover-color"] { + --link-hover-color: @accent-color !important; + } + + .card[href*="&f=duotone"] { + --fa-primary-color: @accent-color; + --fa-secondary-color: @accent-color; + } + + .card.dark { + header, + .header { + background-color: @mantle; + } + } + + svg[style="color: var(--fa-md-gravy);"] { + color: @text !important; + } + + .plan-compare-table { + background-color: @base !important; + + .muted { + color: @text; + } + + .cell { + background-color: @mantle !important; + } + } + + .message.with-icon[style*="--message-with-icon-decorative-color"] { + --message-background: @mantle !important; + --message-color: @text; + --message-with-icon-decorative-color: @text !important; + } + + .violet, + .purple, + .blue, + .teal, + .yellow { + --message-border-color: @accent-color; + --message-color: @text; + --link-color: @accent-color; + --tag-background: @accent-color; + --theme-color: @accent-color; + --button-box-shadow: 0 var(--button-box-shadow-width) @crust !important; + --button-hover-background: @accent-color; + --button-color: @crust; + --button-hover-color: @mantle; + } + + [style*="--card-background"] { + --card-background: @mantle !important; + } + + button[style*="--button-background"] { + --button-background: @accent-color !important; + --button-hover-background: @accent-color !important; + --button-color: @crust !important; + --button-hover-color: @mantle !important; + --button-active-background: @text !important; + } + + .inverted { + --body-background: @mantle; + --fa-yellow: @text; + --white: @text; + } + + .app-header-links a.active, + .app-header-account a.active { + color: @text !important; + } + + .card { + --theme-color: @accent-color; + --theme-color-dk: @accent-color; + --card-header-color: @text !important; + --card-section-color: @text; + --card-section-background: @mantle; + --card-header-background: @mantle; + --card-color: @accent-color; + --card-link-hover-border-color: @accent-color; + --card-link-hover-box-shadow-color: @accent-color; + --card-link-box-shadow-color: @accent-color; + --card-link-background: @mantle !important; + --card-link-color: @text; + } + + .tag:not(.token) { + --tag-background: @accent-color !important; + --tag-color: @base !important; + } + + .checked-icon[style*="--fa-secondary-color"] { + --fa-secondary-color: @text !important; + } + + #header { + --link-color: @text !important; + --link-hover-color: @accent-color !important; + --button-hover-color: @accent-color !important; + } + + .logo-flag { + --logo-hover-color: @blue !important; + } + + a > div > svg, + h1 { + &[style*="color: var(--fa-dk-blue);"] { + color: @accent-color !important; + } + } + + .token { + &.tag { + color: @blue; + } + + &.punctuation { + color: @teal; + } + + &.attr-name { + color: @yellow; + } + + &.attr-value { + color: @green; + } + } + + .codeblock { + --balloon-color: @crust; + } + + #icon_family { + --input-border-color: @surface0 !important; + } + + input[type="radio"] + label svg[style*="color: var(--white);"] { + color: @text !important; + } + + .examples-in-use { + --fa-navy: @text; + --fa-blue: @crust; + --example-color: @crust; + + .examples-transitline { + --example-color: @accent-color; + } + + .examples-notification [style*="--card-background: var(--white)"] { + --card-background: @text !important; + } + + button.block { + &.active, &:active { + &, i { + color: @crust !important; + } + } + } + + .examples-sizing .fa-stack{ + .fa-square + i { + color: @crust !important; + } + } + } + + [style*="color: rgb(224, 49, 49);"] { color: @red !important; } + [style*="color: rgb(250, 176, 5);"], [style*="color: rgb(255, 212, 59);"] { color: @yellow !important; } + [style*="color: rgb(12, 166, 120);"], [style*="color: rgb(99, 230, 190);"] { color: @teal !important; } + [style*="color: rgb(28, 126, 214);"], [style*="color: rgb(116, 192, 252);"] { color: @blue !important; } + [style*="color: rgb(156, 54, 181);"], [style*="color: rgb(177, 151, 252);"] { color: @mauve !important; } + + [style*="background-color: rgb(255, 212, 59);"] { background-color: @yellow !important; } + [style*="background-color: rgb(99, 230, 190);"] { background-color: @teal !important; } + [style*="background-color: rgb(116, 192, 252);"] { background-color: @blue !important; } + [style*="background-color: rgb(177, 151, 252);"] { background-color: @mauve !important; } + + .custom-radio-button-set input + label:hover { + --option-color: @accent-color; + } + + span:has(svg[data-icon="film"]) { + color: @subtext0 !important; + } + + [style*="background: linear-gradient("] { + background: linear-gradient(50deg, @red, @peach, @yellow, @green, @sapphire, @lavender) !important; + } + + [style*="--message-background:"]:not(:has(svg[data-icon="cloudflare"])) { + --message-background: @accent-color !important; + } + + [style*="--message-background:"]:has(svg[data-icon="cloudflare"]) { + --link-color: @text !important; + --link-hover-color: @accent-color !important; + --fa-dk-gravy: @text; + } + + a[style*="--button-color: var(--fa-navy)"] { + --button-color: @text !important; + } + + .header[style*="--code-color"]:has(code) { + --code-color: @text !important; + } + + [style*="margin-left: calc(-1 * var(--spacing-3xs));"] { + background-color: @accent-color !important; + color: @base !important; + } + + [style*="--link-color: var(--fa-navy)"] { + --link-color: @text !important; + } + + .header[style*="color: var(--white);"] path[fill="currentColor"] { + fill: @text; + } + + .wrap-ad { + // I can't be bothered to style ads + display: none; + } + + svg[data-icon^="face-grin"][style*="--fa-secondary-color"] { + --fa-secondary-color: @accent-color !important; + } + + .icon-listing .icon { + --button-background: @crust !important; + --button-hover-background: @mantle !important; + --button-color: @text !important; + --button-hover-color: @text !important; + --button-active-background: @mantle !important; + + .icon-name { + color: @text; + } + } + + article.card.roomy.default { + --card-header-background: @mantle !important; + background-color: @mantle; + } + + label > span > svg { + &.unchecked-icon, + &.hover-icon, + &.checked-icon { + color: @text !important; + } + } + + [style*="--button-hover-border-color: var(--fa-blue)"] { + --button-hover-border-color: @accent-color !important; + } + + .banner.wa-promo { + background-color: @accent-color; + color: @base; + } + + .logo-flag-animated path[fill="var(--fa-navy)"] { + fill: @blue !important; + } + + [style*="/background-bricks2.png"] { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}") !important; + } + + [style*="/images/pro-upgrade-bg.svg"] { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}") !important; + } + + [style*="/images/icons-gray-bg.svg"] { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}") !important; + } + + [style*="/images/icons-missing-gray-bg.svg"] { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}") !important; + + .card { + --card-color: @text; + --card-background: @mantle; + } + + .fa-10x { + color: @accent-color; + + &.fa-duotone { + --fa-primary-color: @accent-color !important; + --fa-primary-opacity: 1 !important; + --fa-secondary-color: @accent-color !important; + --fa-secondary-opacity: 0.4 !important; + } + } + + blockquote, + cite { + &[style*="color:"] { + color: @subtext0 !important; + } + } + } + + img[src*="/_astro/font-awesome-flag."] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src$="/kit-illustration.svg"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src$="/icons-bg.svg"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src$="/other-sets-illustration.svg"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src$="/byoi-illustration2.svg"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src$="/yourlogo-illustration.svg"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src$="/modifiers-illustration.svg"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src$="/frameworks-developer.svg"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src$="/open-source-illustration.svg"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src$="/commissions-illustration.svg"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src$="/commissions-illustration-peek-a-boo.svg"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src$="/hero-icon-bg.svg"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src$="/frameworks-designer.svg"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src$="/frameworks-content-creator.svg"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src$="/start-illustration.svg"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src$="/support-illustration.svg"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + + img[src*="/_astro/terms-illustration."] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + } +} + +/* 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; }; + @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; }; +} + +// vim:ft=less diff --git a/styles/fontawesome/preview.webp b/styles/fontawesome/preview.webp new file mode 100644 index 0000000000..8f6002b212 --- /dev/null +++ b/styles/fontawesome/preview.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:687363a3e67a93f43133726885b2b6a82362cf666883387aa67652996e5a498a +size 155640