refactor(treewide)!: simplify userstyles.yml & remove style previews (#1691)

Co-authored-by: uncenter <[email protected]>
This commit is contained in:
Hammyanduncenter authored and GitHub committed 2025-04-08 19:16:29 -04:00
1 parent b8e16c7524
commit 37fd16969a
265 files changed
+543 -1635

No files matched your search

-2
View File
@@ -24,8 +24,6 @@
- [Tips and Tricks](./tips-and-tricks/README.md)
- [Convert images to WebP](./tips-and-tricks/convert-images-to-webp.md)
- [Hide sensitive information from preview screenshots](./tips-and-tricks/hide-sensitive-information-from-previews.md)
- [Inspect hard-to-grab elements](./tips-and-tricks/inspect-hard-to-grab-elements.md)
- [See changes in real time (hot reloading)](./tips-and-tricks/see-changes-in-real-time.md)
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 MiB

-2
View File
@@ -1,6 +1,4 @@
# Tips and Tricks
- [Convert images to WebP](./convert-images-to-webp.md)
- [Hide sensitive information from preview screenshots](./hide-sensitive-information-from-previews.md)
- [Inspect hard-to-grab elements](./inspect-hard-to-grab-elements.md)
- [See changes in real time (hot reloading)](./see-changes-in-real-time.md)
@@ -1,20 +0,0 @@
The Catppuccin project prefers to use the [WebP image format](https://en.wikipedia.org/wiki/WebP) for the asset preview images. We recommend using Google's [`cwebp`](https://developers.google.com/speed/webp/docs/cwebp) conversion utility to convert images to WebP.
## Installation
| Method | Instructions |
| ------------------------------------- | ---------------------------------------------------------------------------------------- |
| [Homebrew](https://brew.sh/) | `brew install webp` [[view cask]](https://formulae.brew.sh/formula/webp) |
| [MacPorts](https://www.macports.org/) | `sudo port install webp` [[view port]](https://ports.macports.org/port/webp/) |
| Binaries | See <https://storage.googleapis.com/downloads.webmproject.org/releases/webp/index.html>. |
## Usage
> [!TIP]
> See [the full documentation on `cwebp`](https://developers.google.com/speed/webp/docs/cwebp) for further reference.
```
cwebp -lossless old-image.png -o new-image.webp
```
The command above is converting the input image `old-image.png` to the output file `new-image-webp`, with a lossless quality conversion.
@@ -1,15 +0,0 @@
When taking screenshots of userstyles, you may want to hide sensitive information (such as your username, email, etc.).
You can use the [Flow Circular](https://fonts.google.com/specimen/Flow+Circular) font to redact details by obscuring any text on the page.
Use this snippet at the top of your userstyle to import and use the font:
```less
@import url("https://fonts.googleapis.com/css2?family=Flow+Circular&display=swap");
* {
font-family: "Flow Circular", cursive;
}
```
Make sure to remove the snippet once you have taken the preview screenshots.
+1 -4
View File
@@ -12,7 +12,4 @@ To create a userstyle, follow the instructions below. If you are unsure how to t
- **The template uses [LESS](https://lesscss.org/#overview), a preprocessor for Stylus. Please do not change this as we will only accept userstyles based on the template.**
5. [Write the userstyle](./tutorials/writing-a-userstyle.md).
6. [Edit the `userstyles.yml` file](./userstylesyml.md) and enter the details of your port.
7. Create your image preview.
- Take a screenshot of the themed website in each flavor, **with the accent set to `mauve` (the default)**, and then convert all four images [to WebP](../tips/convert-images-to-webp.md) (e.g. `mocha.webp`, `macchiato.webp`, `frappe.webp` & `latte.webp`).
- Use [Catwalk](https://github.com/catppuccin/catwalk) to generate a composite or grid image of all the images. **This must be saved as `styles/<name-of-website>/preview.webp`.**
8. Raise a [pull request](https://github.com/catppuccin/userstyles/compare), making sure to read and fill out the template properly. The title of your pull request should follow the format of `feat(<port-name>): init`.
7. Raise a [pull request](https://github.com/catppuccin/userstyles/compare), making sure to read and fill out the template properly. The title of your pull request should follow the format of `feat(<name-of-website>): init`.
+10 -15
View File
@@ -19,34 +19,31 @@ The [`userstyles.yml`](https://github.com/catppuccin/userstyles/tree/main/script
**Required Fields:**
```yaml
<port>:
<userstyle>:
name: <name>
link: <url>
# Up to 3 categories are allowed, and having at least one is required.
# The first category is considered the "primary" category and impacts where the userstyle appears on the README.
categories: [<primary-category>]
color: <color>
readme:
app-link: <url>
current-maintainers: [*<github-username>]
```
**Optional Fields:**
The `readme.usage` and `readme.faq` fields allow for additional information about the port to be included on the README.
The `note` field allows for additional information about the userstyle to be included on the README.
The `icon` field allows for specifying an icon from [Simple Icons](https://simpleicons.org/) for the userstyle. The icon's "slug" - which can be found by hovering over the icon's title and clicking the copy button - should be used.
The `past-maintainers` field contains a list of maintainers who have maintained the port in the past. We encourage all maintainers to add/remove themselves from this list as they see fit.
## Adding yourself as a maintainer
1. Add a new entry to the end of the `collaborators` array in the `userstyles.yml` file. The entry should be made under your GitHub username. The following example shows a new entry for a user with the GitHub username "Pepperjack".
1. Add a new entry to the end of the `collaborators` array in the `userstyles.yml` file. The entry should be made under your GitHub username, and may optionally contain the `name` (your preferred name) and `url` fields. The following example shows a new entry for a user "Pepperjack".
```yaml
collaborators:
- &pepperjack
name: Pepperjack # OPTIONAL
url: https://github.com/catppuccin
- &Pepperjack Pepperjack
```
2. Add your username to the `current-maintainers` array of the userstyle you wish to maintain. The following example shows the user "Pepperjack" added to the `example.org` userstyle.
@@ -55,12 +52,11 @@ collaborators:
userstyles:
example.org:
name: example.org
link: https://example.org
categories: [productivity]
color: text
readme:
app-link: "https://example.org"
- current-maintainers: []
+ current-maintainers: [*pepperjack]
+ current-maintainers: [*Pepperjack]
```
If the change is accepted, you will receive an invitation to the `catppuccin` organization, and become a member of the [`userstyles-maintainers` team](https://github.com/orgs/catppuccin/teams/userstyles-maintainers).
@@ -79,13 +75,12 @@ As a maintainer you will be expected to:
userstyles:
example.org:
name: example.org
link: https://example.org
categories: [productivity]
color: text
readme:
app-link: "https://example.org"
- current-maintainers: [*pepperjack]
- current-maintainers: [*Pepperjack]
+ current-maintainers: []
+ past-maintainers: [*pepperjack]
+ past-maintainers: [*Pepperjack]
```
> [!NOTE]