diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md
index 6fe7c418..ae84cf3b 100644
--- a/docs/CONTRIBUTING.md
+++ b/docs/CONTRIBUTING.md
@@ -12,22 +12,51 @@ request.
It is important to note that there are **two types of PRs** for this repository:
-1. **New Userstyles:** Please see [userstyle-creation.md](userstyle-creation.md).
-2. **Other improvements:** These should follow the recommendations below, to help
- improve the chances of a merged PR.
+1. **New Userstyles:** Please see [userstyle-creation.md](./userstyle-creation.md).
+2. **Other improvements:** These should follow the recommendations below, to help improve the chances of a merged PR.
-## General Recommendations
+## Recommendations
-- Create a
- [topic branch](https://git-scm.com/book/en/v2/Git-Branching-Branching-Workflows#_topic_branch)
- on your fork for your specific PR.
-- Catppuccin uses the [Conventional Commits
- ](https://www.conventionalcommits.org/en/v1.0.0/) standard for creating explicit and meaningful commit messages. This repository requires pull request _titles_ to be in the conventional commit format, however we do not require it for individual commits within a pull request.
-- Update the version in the `==UserStyle==` header of the `catppuccin.user.css` file. This is to enable version control of the style.
+### Root Variables
+
+While writing a userstyle, you may have come across [custom properties / CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/--*), typically wrapped in a `:root` selector. We refer to these variables as "root variables", and they can be thought of as global variables used all across a website. For Catppuccin userstyles, we prefer that these variables are themed (if they exist) rather than individual elements. As the website hopefully uses these variables themselves, it saves yourself a lot of work in theming and maintaining the userstyle.
+
+### Opinionated Changes
+
+When writing or updating a userstyle, it is important to keep in mind that different users have different preferences. To avoid lengthy discussion over user interface aesthetics, we have a set of rules for what a userstyle may include; importantly, **changes to font or layout (padding, margin, hiding/moving elements) are prohibited.**
+
+
+### General Recommendations
+
+- Create a [topic branch](https://git-scm.com/book/en/v2/Git-Branching-Branching-Workflows#_topic_branch) on your fork for your specific PR.
+- Catppuccin uses the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
+ standard for creating explicit and meaningful commit messages. This repository
+ requires pull request _titles_ to be in the conventional commit format,
+ however we do not require it for individual commits within a pull request.
+- Update the version in the `==UserStyle==` header of the `catppuccin.user.css`
+ file. This is to enable version control of the style.
- If it's your first time contributing to a project then you should look to the
- popular
- [first-contributions](https://github.com/firstcontributions/first-contributions)
+ popular [first-contributions](https://github.com/firstcontributions/first-contributions)
repository on GitHub. This will give you hands-on experience with the features
- of GitHub required to make a contribution. As always, feel free to join our
- [Discord](https://discord.com/servers/catppuccin-907385605422448742) to ask
+ of GitHub required to make a contribution. As always, feel free to join our [Discord](https://discord.com/servers/catppuccin-907385605422448742) to ask
any questions and clarify your understanding, we are more than happy to help!
+- Changes to docs may need to use [marksman](https://github.com/artempyanykh/marksman) to generate the table of contents.
+
+## Pull Request Review Process
+
+```mermaid
+graph TD;
+ A[New userstyle];
+ B[Other improvements];
+ A --> C[Review by userstyles staff];
+ B --> D[Review by maintainer];
+ C --> E{Feedback};
+ D --> F{Feedback};
+ E -->|Changes made| E;
+ F -->|Changes made| F;
+ E -->|Approved by userstyles staff| K;
+ F -->|Approved by maintainer or userstyles staff| L[Merged by maintainer];
+ K[Waiting period*] --> M[Merged by userstyles staff];
+```
+
+*A waiting period is usually started if a website is particularly complex or for any other reason could not be thoroughly/completely tested. Waiting periods typically last between 1 and 2 days.
diff --git a/docs/how-to-write-a-userstyle.md b/docs/how-to-write-a-userstyle.md
index f1b792d0..57495f35 100644
--- a/docs/how-to-write-a-userstyle.md
+++ b/docs/how-to-write-a-userstyle.md
@@ -8,6 +8,19 @@
+### Table of Contents
+
+
+- [Prerequisites](#prerequisites)
+- [Setup](#setup)
+ - [Usercss Metadata](#usercss-metadata)
+ - [`@-moz-document`](#moz-document)
+ - [The lookup table](#the-lookup-table)
+- [The `#catppuccin` mixin](#the-catppuccin-mixin)
+ - [Applying the theme](#applying-the-theme)
+ - [Putting it all together](#putting-it-all-together)
+
+
### Prerequisites
- [Stylus](https://github.com/openstyles/stylus) ([Firefox](https://addons.mozilla.org/en-GB/firefox/addon/styl-us/) / [Chrome](https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne)
diff --git a/docs/tips-and-tricks.md b/docs/tips-and-tricks.md
index 71116aed..b3a662be 100644
--- a/docs/tips-and-tricks.md
+++ b/docs/tips-and-tricks.md
@@ -4,6 +4,20 @@
+### Table of Contents
+
+
+- [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)
+ - [`
+ ` elements](#img-elements)
+- [How do I set a variable to RGB values?](#how-do-i-set-a-variable-to-rgb-values)
+
+
### 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
+```
diff --git a/docs/userstyle-creation.md b/docs/userstyle-creation.md
index c3e16832..02720da4 100644
--- a/docs/userstyle-creation.md
+++ b/docs/userstyle-creation.md
@@ -8,14 +8,16 @@
+### Table of Contents
+
+
+- [Requesting Userstyles](#requesting-userstyles)
+- [Creating Userstyles](#creating-userstyles)
+
+
### Requesting Userstyles
-To request a website to be themed, please create a
-[Port Request](https://github.com/catppuccin/catppuccin/discussions/new?category=port-requests)
-discussion on [catppuccin/catppuccin](https://github.com/catppuccin/catppuccin).
-While this may seem odd, this ensures to keep all of our requests in one place
-and makes it easier for all people to request what they want without needing to
-learn what "Stylus" exactly is.
+To request a website to be themed, please create a [Port Request](https://github.com/catppuccin/catppuccin/discussions/new?category=port-requests) discussion on [catppuccin/catppuccin](https://github.com/catppuccin/catppuccin). While this may seem odd, this ensures to keep all of our requests in one place and makes it easier for all people to request what they want without needing to learn what "Stylus" exactly is.
**If you have already created a userstyle, please raise a
[Pull Request](https://github.com/catppuccin/userstyles/compare)!**
@@ -38,7 +40,7 @@ To create a userstyle, follow the instructions listed below:
userstyles based on the template.**
5. [Write the userstyle](./how-to-write-a-userstyle.md).
6. Edit the [`userstyles.yml`](../scripts/userstyles.yml) file and put in the details
- of your port. **More details given below.**
+ of your port. **More details given in [`userstylesyml.md`](./userstylesyml.md).**
7. Create your image preview.
- Take a screenshot of the themed website in each flavor, and then convert all four images [to WebP](./tips-and-tricks.md#how-do-i-convert-preview-images-to-webp) (e.g. `mocha.webp`,
`macchiato.webp`, `frappe.webp` & `latte.webp`).
@@ -47,78 +49,3 @@ To create a userstyle, follow the instructions listed below:
`styles/
📖
+userstyles.yml
+ The userstyles.yml file is responsible for tracking all information about each userstyle.
+