refactor(treewide)!: simplify userstyles.yml & remove style previews (#1691)
Co-authored-by: uncenter <[email protected]>
This commit is contained in:
1 parent
b8e16c7524
commit
37fd16969a
265 files changed
+543
-1635
No files matched your search
@@ -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.
|
||||
Reference in new issue
Block a user