From 84aedc2246a21f33a94f7b84ef819dfbb4c63857 Mon Sep 17 00:00:00 2001 From: isabel Date: Mon, 24 Jul 2023 18:34:57 +0100 Subject: [PATCH 1/3] fix: remove typos --- styles/deepl/catppuccin.user.css | 2 +- styles/homepage/catppuccin.user.css | 8 ++++---- styles/lastfm/catppuccin.user.css | 4 ++-- styles/youtube/catppuccin.user.css | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/styles/deepl/catppuccin.user.css b/styles/deepl/catppuccin.user.css index cd86d32f73..6c319bc9f2 100644 --- a/styles/deepl/catppuccin.user.css +++ b/styles/deepl/catppuccin.user.css @@ -226,7 +226,7 @@ --option-icon-color: @accent; background: @surface0; - [class^="option--"][class*="unavilable--"] { + [class^="option--"][class*="unavailable--"] { --option-color: @overlay1; --option-icon-color: @subtext0; } diff --git a/styles/homepage/catppuccin.user.css b/styles/homepage/catppuccin.user.css index b85eb222ff..f8cc7da7c9 100644 --- a/styles/homepage/catppuccin.user.css +++ b/styles/homepage/catppuccin.user.css @@ -160,7 +160,7 @@ @base: @catppuccin[@@lookup][@base]; @mantle: @catppuccin[@@lookup][@mantle]; @crust: @catppuccin[@@lookup][@crust]; - @accent-colour: @catppuccin[@@lookup][@@accent]; + @accent-color: @catppuccin[@@lookup][@@accent]; //Page Level Features @@ -171,7 +171,7 @@ .dark { --bg-color: @base; - --scrollbar-thumb: @accent-colour; //ScrollBar + --scrollbar-thumb: @accent-color; //ScrollBar --scrollbar-track: @mantle; //Scrollbar base } @@ -185,7 +185,7 @@ } .border-theme-300 { --tw-border-opacity: 1; - border-color: @accent-colour; //Search bar Border + border-color: @accent-color; //Search bar Border } :is(.dark .dark\:bg-white\/10) { background-color: @crust //Search bar background @@ -196,7 +196,7 @@ :is(.dark .dark\:text-white) { --tw-text-opacity: 1; - color: @accent-colour //Search bar Text + color: @accent-color //Search bar Text } // Services Level Features diff --git a/styles/lastfm/catppuccin.user.css b/styles/lastfm/catppuccin.user.css index 42bc6b05fc..87e1ca17a7 100644 --- a/styles/lastfm/catppuccin.user.css +++ b/styles/lastfm/catppuccin.user.css @@ -392,7 +392,7 @@ - /* RECCOMENDATIONS */ + /* RECOMMENDATIONS */ .recs-feed-title a { color: @text !important; } @@ -1727,4 +1727,4 @@ } } } -} \ No newline at end of file +} diff --git a/styles/youtube/catppuccin.user.css b/styles/youtube/catppuccin.user.css index 07202983a5..304aa09f2c 100644 --- a/styles/youtube/catppuccin.user.css +++ b/styles/youtube/catppuccin.user.css @@ -315,7 +315,7 @@ --sb-red-bg-color: @accent-Color !important; } - /* genral colors */ + /* general colors */ &:not(.style-scope) { --primary-text-color: @text !important; --primary-background-color: @base !important; @@ -431,7 +431,7 @@ } /* menu items */ - /* checbox subitem */ + /* checkbox subitem */ .ytp-menuitem[aria-checked=true] .ytp-menuitem-toggle-checkbox { background: @accent-Color !important; &::after { @@ -929,7 +929,7 @@ --ytcp-analytics-reach-background: @mantle !important; --yt-spec-black-2: @mantle !important; - /* additonal bg */ + /* additional bg */ --ytcp-general-background-c: @crust !important; /* menu */ From fcb23510b2c64791bfe57b39a95d9ddf7b79709c Mon Sep 17 00:00:00 2001 From: isabel Date: Mon, 24 Jul 2023 19:29:21 +0100 Subject: [PATCH 2/3] fix: correct typos --- styles/chess.com/catppuccin.user.css | 24 ++++++++++++------------ styles/ecosia/catppuccin.user.css | 20 ++++++++++---------- styles/homepage/catppuccin.user.css | 8 ++++---- styles/paste.rs/catppuccin.user.css | 4 ++-- styles/youtube/catppuccin.user.css | 4 ++-- 5 files changed, 30 insertions(+), 30 deletions(-) diff --git a/styles/chess.com/catppuccin.user.css b/styles/chess.com/catppuccin.user.css index daa1c081fb..27565376cc 100644 --- a/styles/chess.com/catppuccin.user.css +++ b/styles/chess.com/catppuccin.user.css @@ -2,7 +2,7 @@ @name Chess.com Catppuccin @namespace github.com/catppuccin/userstyles/styles/chess.com @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/chess.com -@version 0.1.0 +@version 0.1.1 @updateURL https://raw.githubusercontent.com/catppuccin/userstyles/main/styles/chess.com/catppuccin.user.css @description Soothing pastel theme for Chess.com @author Catppuccin @@ -217,7 +217,7 @@ @base: @catppuccin[@@lookup][@base]; @mantle: @catppuccin[@@lookup][@mantle]; @crust: @catppuccin[@@lookup][@crust]; - @accent-colour: @catppuccin[@@lookup][@@accent]; + @accent-color: @catppuccin[@@lookup][@@accent]; @bb: @catppuccin[@@lookup][@bb]; @bk: @catppuccin[@@lookup][@bk]; @@ -244,8 +244,8 @@ --globalBackgroundOpaque: @mantle !important; --globalSecondaryBackground: @crust !important; --globalTertiaryBackground: @surface0 !important; - --globalAccentBackground: @accent-colour !important; - --globalSecondaryAccentBackground: darken(@accent-colour, 20%) !important; + --globalAccentBackground: @accent-color !important; + --globalSecondaryAccentBackground: darken(@accent-color, 20%) !important; --globalSiteBackground: @base !important; --subtleButtonBackground: hsla(0, 0%, 100%, 0.16); --globalBorder: @surface0 !important; @@ -269,7 +269,7 @@ --globalColorNeutral200: rgba(0, 0, 0, 0.4); --globalOverlayBackground: @base !important; --globalColorWin: @green !important; - --globalColorDraw: @accent-colour !important; + --globalColorDraw: @accent-color !important; --globalColorLoss: @red !important; } @@ -288,7 +288,7 @@ } .home-username-link { - color: @accent; + color: @accent-color; } .index-info-item-counter { @@ -300,7 +300,7 @@ } .index-quote-author .index-chess-title { - background: @accent-colour !important; + background: @accent-color !important; color: @crust !important; } @@ -309,7 +309,7 @@ --labelBackgroundHover: @surface1 !important; .authentication-intro-level-v5.authentication-intro-selected { - border-color: @accent-colour !important; + border-color: @accent-color !important; } } @@ -358,11 +358,11 @@ &.ui_v5-button-primary { color: @crust !important; - background-color: @accent-colour !important; - --borderColor: darken(@accent-colour, 20%) !important; + background-color: @accent-color !important; + --borderColor: darken(@accent-color, 20%) !important; &:hover { - --secondaryBorderColor: fadeout(@accent-colour, 20%) !important; + --secondaryBorderColor: fadeout(@accent-color, 20%) !important; box-shadow: none; } } @@ -484,7 +484,7 @@ } .placeholder-ad-upgrade { - background-color: @accent-colour; + background-color: @accent-color; } .placeholder-ad-link { diff --git a/styles/ecosia/catppuccin.user.css b/styles/ecosia/catppuccin.user.css index 4bde74e832..5e7431819a 100644 --- a/styles/ecosia/catppuccin.user.css +++ b/styles/ecosia/catppuccin.user.css @@ -169,23 +169,23 @@ @base: @catppuccin[@@lookup][@base]; @mantle: @catppuccin[@@lookup][@mantle]; @crust: @catppuccin[@@lookup][@crust]; - @accent-colour: @catppuccin[@@lookup][@@accent]; + @accent-color: @catppuccin[@@lookup][@@accent]; /* general */ - --color-brand-primary: @accent-colour !important; + --color-brand-primary: @accent-color !important; --color-brand-secondary: @crust !important; --color-error: @red !important; --color-success: @green !important; --color-disabled: @overlay1 !important; - --color-button-background-primary: @accent-colour !important; - --color-button-background-primary-active: @accent-colour !important; - --color-button-background-primary-hover: @accent-colour; + --color-button-background-primary: @accent-color !important; + --color-button-background-primary-active: @accent-color !important; + --color-button-background-primary-hover: @accent-color; --color-button-background-secondary: @surface0 !important; --color-button-background-secondary-active: @surface2 !important; --color-button-background-secondary-hover: @surface1 !important; --color-button-content-primary: @base !important; --color-button-content-secondary: @text !important; - --color-button-content-tertiary: @accent-colour !important; + --color-button-content-tertiary: @accent-color !important; --color-button-border: @surface0 !important; --color-button-background-transparent-hover: @surface1; --color-button-background-transparent-active: @surface2; @@ -206,14 +206,14 @@ --color-url: @sapphire !important; --color-link-results-default: @sapphire !important; --color-link-results-visited: @teal !important; - --color-decorative-icon: @accent-colour !important; + --color-decorative-icon: @accent-color !important; --color-elevation-layer-1: @surface1; --color-elevation-layer-2: @surface2; --color-decorative-border-1: @surface1 !important; - --color-focused: @accent-colour !important; + --color-focused: @accent-color !important; --color-form-border-default: @surface0 !important; --color-form-border-hover: @surface1 !important; - --color-form-border-primary-active: @accent-colour !important; + --color-form-border-primary-active: @accent-color !important; --color-tripadvisor-rating: @subtext0 !important; --color-tree-counter-tree-tall: @yellow !important; --color-green-leaf-icon-color-top: @green !important; @@ -221,7 +221,7 @@ --color-fossil-fuel-icon-color-top: @flamingo !important; --color-fossil-fuel-icon-color-bottom: @maroon !important; - /* seach page */ + /* search page */ --color-above-fold-background: @surface0 !important; --color-above-fold-background-addon: @overlay1 !important; --color-above-fold-text: @text !important; diff --git a/styles/homepage/catppuccin.user.css b/styles/homepage/catppuccin.user.css index f8cc7da7c9..3c57fcc92a 100644 --- a/styles/homepage/catppuccin.user.css +++ b/styles/homepage/catppuccin.user.css @@ -210,26 +210,26 @@ } :is(.dark .dark\:hover\:bg-white\/10:hover) { - background-color: @surface1 //Box Hover Colour + background-color: @surface1 //Box Hover Color } :is(.dark .dark\:bg-theme-900\/50) { background-color: @crust; //Ping & Docker Stats Box Background } :is(.dark .dark\:bg-theme-900\/20) { - background-color: @surface0; //Stats Background Colour + background-color: @surface0; //Stats Background Color } :is(.dark .dark\:bg-theme-900\/40) { - background-color: @accent-colour; //Progress Bar + background-color: @accent-color; //Progress Bar } :is(.dark .dark\:text-theme-300) { color: @text; //Section Names + Container Description } :is(.dark .dark\:hover\:text-theme-300:hover) { --tw-text-opacity: 1; - color: darken(@accent-colour,10%); //Section Names + Container Description Hover Colour + color: darken(@accent-color,10%); //Section Names + Container Description Hover Color } :is(.dark .dark\:text-theme-200) { --tw-text-opacity: 1; diff --git a/styles/paste.rs/catppuccin.user.css b/styles/paste.rs/catppuccin.user.css index fb3f27934f..c7215df459 100644 --- a/styles/paste.rs/catppuccin.user.css +++ b/styles/paste.rs/catppuccin.user.css @@ -158,7 +158,7 @@ @base: @catppuccin[@@lookup][@base]; @mantle: @catppuccin[@@lookup][@mantle]; @crust: @catppuccin[@@lookup][@crust]; - @accent-colour: @catppuccin[@@lookup][@@accent]; + @accent-color: @catppuccin[@@lookup][@@accent]; body { background-color: @mantle; @@ -241,4 +241,4 @@ color: @maroon !important; } } -} \ No newline at end of file +} diff --git a/styles/youtube/catppuccin.user.css b/styles/youtube/catppuccin.user.css index 304aa09f2c..2023e4779f 100644 --- a/styles/youtube/catppuccin.user.css +++ b/styles/youtube/catppuccin.user.css @@ -2,7 +2,7 @@ @name YouTube Catppuccin @namespace github.com/catppuccin/userstyles/styles/youtube @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/youtube -@version 3.0.8 +@version 3.0.9 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/youtube/catppuccin.user.css @description Soothing pastel theme for YouTube @author Catppuccin @@ -249,7 +249,7 @@ /* Yt video Page */ --yt-live-chat-background-color: @base !important; --yt-live-chat-action-panel-background-color: @base !important; - --yt-live-chat-action-panel-background-color-transpart: @base !important; + --yt-live-chat-action-panel-background-color-transparent: @base !important; --yt-live-chat-secondary-background-color: @surface1; --yt-live-chat-banner-gradient-scrim: linear-gradient(@mantle, transparent) !important; --yt-live-chat-toast-background-color: @surface2 !important; From 821848371f91133266e5edd7d3ad4d2d8ceedc2e Mon Sep 17 00:00:00 2001 From: winston Date: Tue, 25 Jul 2023 02:29:53 +0200 Subject: [PATCH 3/3] build: don't check css classnames It's probably not worth the pain to add exlusions all the time. If we really want to have a check for potential classname misspellings, we can always run typos without a config file locally. --- .typos.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.typos.toml b/.typos.toml index 5e203edbd0..f715d14815 100644 --- a/.typos.toml +++ b/.typos.toml @@ -13,6 +13,6 @@ flavours = "flavours" [type.css] extend-ignore-re = [ - # generated classnames from css modules - '_[\w\d]+', + # css classnames + '\.[\w\d\-_]+(\[[\w\d\-_]+\])?', ]