docs: the PR to end all PRs maybe (#681)
Co-authored-by: Hamothy <[email protected]> Co-authored-by: uncenter <[email protected]>
This commit is contained in:
5 files changed
+234
-98
No files matched your search
+29
-2
@@ -4,6 +4,20 @@
|
||||
|
||||
|
||||
|
||||
### Table of Contents
|
||||
|
||||
<!--toc:start-->
|
||||
- [How can I see my changes in real time?](#how-can-i-see-my-changes-in-real-time)
|
||||
- [How can I hide sensitive information in preview screenshots?](#how-can-i-hide-sensitive-information-in-preview-screenshots)
|
||||
- [How do I convert preview images to WebP?](#how-do-i-convert-preview-images-to-webp)
|
||||
- [Installation](#installation)
|
||||
- [Usage](#usage)
|
||||
- [How do I theme images and SVGs?](#how-do-i-theme-images-and-svgs)
|
||||
- [SVG background images](#svg-background-images)
|
||||
- [`<img>` elements](#img-elements)
|
||||
- [How do I set a variable to RGB values?](#how-do-i-set-a-variable-to-rgb-values)
|
||||
<!--toc:end-->
|
||||
|
||||
### How can I see my changes in real time?
|
||||
|
||||
See [Stylus Wiki - Initial installation and live reload](https://github.com/openstyles/stylus/wiki/Writing-UserCSS#initial-installation-and-live-reload).
|
||||
@@ -36,8 +50,8 @@ The Catppuccin project prefers to use the [WebP image format](https://en.wikiped
|
||||
|
||||
| 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/) |
|
||||
| [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
|
||||
@@ -120,3 +134,16 @@ img.twitter-icon {
|
||||
background: url("data:image/svg+xml,@{svg}") no-repeat !important;
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### How do I set a variable to RGB values?
|
||||
|
||||
You can use the following snippet to get the raw RGB values from a color.
|
||||
|
||||
```less
|
||||
#rgbify(@color) {
|
||||
@rgb-raw: red(@color), green(@color), blue(@color);
|
||||
}
|
||||
|
||||
--ctp-base: #rgbify(@base) []; // -> 30, 30, 46
|
||||
```
|
||||
Reference in new issue
Block a user