From 1a409c6ad084f5f516d9fd668c28447197df5c08 Mon Sep 17 00:00:00 2001 From: Hamothy <58985301+sgoudham@users.noreply.github.com> Date: Thu, 7 Mar 2024 23:25:47 +0000 Subject: [PATCH] refactor: make `color` required & add/update new icons (#602) --- docs/userstyle-creation.md | 14 ++++++------ scripts/types/userstyles.d.ts | 4 ++-- scripts/userstyles.schema.json | 4 ++-- scripts/userstyles.yml | 39 ++++++++++++++++++++++++++++------ 4 files changed, 44 insertions(+), 17 deletions(-) diff --git a/docs/userstyle-creation.md b/docs/userstyle-creation.md index 30d2b894..cc4a770f 100644 --- a/docs/userstyle-creation.md +++ b/docs/userstyle-creation.md @@ -74,7 +74,7 @@ on the schema: You should make changes to everything wrapped in `<>` and remove the `<>` characters. If you need help with any of the fields, you should refer to - other ports in the `userstyle.yml` file. If you still cannot figure it out, + other ports in the `userstyle.yml` file. If you would like extra guidance, you can ask for help in the pull request or join our [Discord](https://discord.com/servers/catppuccin-907385605422448742). @@ -83,8 +83,10 @@ on the schema: ```yaml : name: - # Up to 3 categories are allowed. Keep in mind that the first category is considered the "primary" category. + # Up to 3 categories are allowed. + # The first category is considered the "primary" category and impacts where the userstyle appears on the README. categories: [ ] + color: readme: app-link: current-maintainers: [ * ] @@ -95,9 +97,9 @@ on the schema: These extra `usage` & `faq` keys will ensure that you can add important information about the port to the README. - The keys `color` & `icon` are best explained the schema specification itself. + The `icon` key is best explained the schema specification itself. - The key `past-maintainers` is a list of people who have maintained the port + The `past-maintainers` key is a list of people who have maintained the port in the past. We encourage all maintainers to add/remove themselves from this list as they see fit. @@ -107,7 +109,7 @@ on the schema: : name: categories: [ , ] - color: # OPTIONAL + color: icon: # OPTIONAL readme: app-link: "" @@ -118,5 +120,5 @@ on the schema: - question: answer: current-maintainers: [ * ] - past-maintainers: [ * ] # OPTIONAL + past-maintainers: [ * ] # OPTIONAL ``` diff --git a/scripts/types/userstyles.d.ts b/scripts/types/userstyles.d.ts index 7a01a661..decfe9ba 100644 --- a/scripts/types/userstyles.d.ts +++ b/scripts/types/userstyles.d.ts @@ -5,7 +5,7 @@ */ export type Name = [string, string, ...string[]] | string; /** - * The categories that fit the userstyle the most, the first category is the primary category which the port will be listed under on the README. + * The categories that fit the userstyle the most, the first category is the primary category which the userstyle will be listed under on the README. * * @minItems 1 * @maxItems 3 @@ -173,7 +173,7 @@ export interface Userstyles { export interface Userstyle { name: Name; categories: Categories; - color?: Color; + color: Color; icon?: Icon; readme: README; } diff --git a/scripts/userstyles.schema.json b/scripts/userstyles.schema.json index 917861cf..97cd9789 100644 --- a/scripts/userstyles.schema.json +++ b/scripts/userstyles.schema.json @@ -15,7 +15,7 @@ "type": "object", "description": "The directory of the userstyle.", "examples": ["youtube"], - "required": ["name", "categories", "readme"], + "required": ["name", "categories", "readme", "color"], "additionalProperties": false, "properties": { "name": { @@ -46,7 +46,7 @@ "color": { "$id": "#userstyles/userstyle/color", "title": "Color", - "description": "The fill color for the icon on the Catppuccin website.", + "description": "The fill color for the icon on the Catppuccin website, which should match the color used by Simple Icons. If the icon does not exist in Simple Icons, choose the most suitable color from the branding.", "type": "string", "enum": [ "rosewater", diff --git a/scripts/userstyles.yml b/scripts/userstyles.yml index 8031f569..d9b1a977 100644 --- a/scripts/userstyles.yml +++ b/scripts/userstyles.yml @@ -138,6 +138,8 @@ userstyles: arch-wiki: name: Arch Wiki categories: [wiki, productivity] + icon: archlinux + color: blue readme: app-link: "https://wiki.archlinux.org/" usage: "Make sure to use the default **Light** theme" @@ -145,6 +147,7 @@ userstyles: boringproxy: name: boringproxy categories: [development] + color: text readme: app-link: "https://boringproxy.io" current-maintainers: [*gandalf-the-blue] @@ -176,6 +179,8 @@ userstyles: canvas-lms: name: Canvas LMS categories: [education, productivity] + icon: canvas + color: red readme: app-link: "https://www.instructure.com/canvas" current-maintainers: [*thememesniper] @@ -205,6 +210,7 @@ userstyles: cinny: name: Cinny categories: [social_networking] + color: text readme: app-link: "https://cinny.in" current-maintainers: [*jn-sena] @@ -223,7 +229,7 @@ userstyles: name: Crowdin categories: [translation_tool, productivity] icon: crowdin - color: lavender + color: text readme: app-link: "https://crowdin.com" current-maintainers: [*ryanccn] @@ -238,6 +244,8 @@ userstyles: duckduckgo: name: DuckDuckGo categories: [search_engine] + icon: duckduckgo + color: peach readme: app-link: "https://duckduckgo.com" current-maintainers: [*genshibe] @@ -258,6 +266,7 @@ userstyles: formative: name: Formative categories: [education, productivity] + color: blue readme: app-link: "https://app.formative.com/home" current-maintainers: [*r58Playz] @@ -275,7 +284,7 @@ userstyles: name: Gmail categories: [email_client, productivity] icon: gmail - color: red + color: peach 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" @@ -291,7 +300,7 @@ userstyles: google-photos: name: Google Photos categories: [photo_and_video] - icon: google + icon: googlephotos color: sapphire readme: app-link: "https://photos.google.com" @@ -323,6 +332,7 @@ userstyles: holodex: name: Holodex categories: [entertainment, social_networking, photo_and_video] + color: pink readme: app-link: "https://holodex.net" usage: |+ @@ -332,6 +342,7 @@ userstyles: homepage: name: homepage categories: [productivity] + color: sky readme: app-link: "https://github.com/benphelps/homepage" current-maintainers: [*gandalf-the-blue] @@ -346,7 +357,7 @@ userstyles: hyperpipe: name: Hyperpipe categories: [music] - color: text + color: teal readme: app-link: "https://hyperpipe.surge.sh/" current-maintainers: [*jn-sena] @@ -378,6 +389,7 @@ userstyles: invokeai: name: InvokeAI categories: [artificial_intelligence, productivity] + color: yellow readme: app-link: "https://invoke-ai.github.io/InvokeAI" current-maintainers: [*ryanccn] @@ -411,6 +423,7 @@ userstyles: name: Lichess categories: [game] icon: lichess + color: text readme: usage: "Switch to a default Lichess light/dark theme via **Username** > **Background** for the best experience!" app-link: "https://lichess.org/" @@ -434,7 +447,7 @@ userstyles: name: Mastodon categories: [social_networking, entertainment] icon: mastodon - color: mauve + color: lavender readme: app-link: "https://github.com/mastodon/mastodon" usage: |+ @@ -454,6 +467,8 @@ userstyles: mdn: name: MDN categories: [development, wiki] + icon: mdnwebdocs + color: text readme: app-link: "https://developer.mozilla.org" current-maintainers: [*soya-daizu] @@ -476,6 +491,7 @@ userstyles: migadu-webmail: name: Migadu Webmail categories: [email_client, productivity] + color: blue readme: app-link: https://webmail.migadu.com/ usage: |+ @@ -485,6 +501,7 @@ userstyles: minesweeper: name: Minesweeper Online categories: [game] + color: text readme: app-link: "https://minesweeper.online" current-maintainers: [*gitmuslim] @@ -524,6 +541,7 @@ userstyles: openmediavault: name: OpenMediaVault categories: [productivity] + color: sky readme: app-link: "https://www.openmediavault.org/" current-maintainers: [*gandalf-the-blue] @@ -539,6 +557,8 @@ userstyles: perplexity: name: Perplexity categories: [artificial_intelligence, search_engine] + icon: perplexity + color: teal readme: app-link: "https://www.perplexity.ai" current-maintainers: [*isabelroses, *tnixc] @@ -554,6 +574,7 @@ userstyles: planet-minecraft: name: Planet Minecraft categories: [game] + color: green readme: app-link: "https://planetminecraft.com" current-maintainers: [*night-lake] @@ -617,13 +638,14 @@ userstyles: startpage: name: Startpage categories: [search_engine] + color: lavender readme: app-link: "https://startpage.com" current-maintainers: [*bartlibert] skiff: name: Skiff categories: [email_client, productivity] - color: text + color: maroon readme: usage: "Switch to a default Skiff light/dark theme via **Settings** > **Appearance** for the best experience!" app-link: "https://app.skiff.com/mail" @@ -657,6 +679,7 @@ userstyles: tabnews: name: TabNews categories: [discussion_forum, entertainment, social_networking] + color: text readme: app-link: "https://tabnews.com.br" current-maintainers: [*Guaxinim5573] @@ -664,7 +687,7 @@ userstyles: name: Tuta categories: [email_client, productivity] icon: tutanota - color: red + color: maroon readme: app-link: "https://tuta.com/" usage: |+ @@ -694,6 +717,7 @@ userstyles: name: Vercel categories: [development] icon: vercel + color: text readme: app-link: "https://vercel.com" current-maintainers: [*ryanccn] @@ -737,6 +761,7 @@ userstyles: name: Next.js categories: [development] icon: nextjs + color: text readme: app-link: "https://nextjs.org" current-maintainers: [*Dandraghas]