refactor: convert single category to multiple categories (#559)

ref: https://github.com/catppuccin/catppuccin/commit/35662dbfb46b23d63eca9d3794cdc107c8ff92d3

Co-authored-by: isabel <[email protected]>
This commit is contained in:
Hamothyandisabel authored and GitHub committed 2024-02-28 21:14:52 +00:00
1 parent f7598a1c91
commit cec8bc9d8e
7 files changed
+232 -143

No files matched your search

+30 -6
View File
@@ -5,24 +5,48 @@
*/
export type Name = [string, string, ...string[]] | string;
/**
* The category that fits the port the most.
* 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.
*
* @minItems 1
* @maxItems 3
*/
export type Categories = [Category] | [Category, Category] | [Category, Category, Category];
export type Category =
| "3d_modelling"
| "analytics"
| "application_launcher"
| "artificial_intelligence"
| "boot_loader"
| "browser"
| "browser_extension"
| "cli"
| "code_editor"
| "desktop_environment"
| "development"
| "discussion_forum"
| "document_viewer"
| "education"
| "email_client"
| "entertainment"
| "file_manager"
| "game"
| "leisure"
| "game_development"
| "health_and_fitness"
| "library"
| "messaging"
| "music"
| "note_taking"
| "notification_daemon"
| "photo_and_video"
| "productivity"
| "search_engine"
| "social"
| "self_hosted"
| "social_networking"
| "system"
| "terminal";
| "terminal"
| "translation_tool"
| "userstyle"
| "wiki"
| "window_manager";
/**
* The fill color for the icon on the Catppuccin website.
*/
@@ -148,7 +172,7 @@ export interface Userstyles {
*/
export interface Userstyle {
name: Name;
category: Category;
categories: Categories;
color?: Color;
icon?: Icon;
readme: README;