-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: change
catppuccin.variables.css
into generic version (#32)
* feat: add separate variable and rgb variables variants * Discard changes to README.md * refactor: add new "any" variables variant * docs(README): update * refactor: switch rgb/variable variants * docs(README): update info on variable versions * docs(README): fix links
- Loading branch information
Showing
12 changed files
with
64 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,8 +53,9 @@ You can then use the files in `@catppuccin/highlightjs/css` or `@catppuccin/high | |
Embed the [Highlight.js script](https://highlightjs.org/download/) along with one of our themes. | ||
|
||
> [!NOTE] | ||
> The "variable version" assumes that you have a flavor of Catppuccin already present in your CSS variables, e.g. `:root { --ctp-mauve:136,57,239; }`. | ||
> This is particularly useful if you use [Catppuccin TailwindCSS](https://github.com/catppuccin/tailwindcss) | ||
> The "variable version" assumes that you have a flavor of Catppuccin already present in your CSS variables, in any format of color (e.g. `--ctp-mauve: rgb(136, 57, 239)`, `--ctp-mauve: #8839ef`, `--ctp-mauve: hsl(266deg, 85%, 58%)`, etc). | ||
> If you use [Catppuccin for TailwindCSS](https://github.com/catppuccin/tailwindcss), where your variables are in the format of three comma-separated RGB | ||
> values (e.g. `--ctp-mauve: 136,57,239`), you should use the "rgb variable" version. | ||
<!-- x-release-please-start-version --> | ||
|
||
|
@@ -65,9 +66,14 @@ Embed the [Highlight.js script](https://highlightjs.org/download/) along with on | |
<link rel="stylesheet" href="//unpkg.com/@catppuccin/[email protected]/css/catppuccin-frappe.css"> | ||
<link rel="stylesheet" href="//unpkg.com/@catppuccin/[email protected]/css/catppuccin-macchiato.css"> | ||
<link rel="stylesheet" href="//unpkg.com/@catppuccin/[email protected]/css/catppuccin-mocha.css"> | ||
<!-- variable version --> | ||
<!-- Variable version --> | ||
<link rel="stylesheet" href="//unpkg.com/@catppuccin/[email protected]/css/catppuccin.variables.css"> | ||
<!-- Variable version with !important (higher specificity) --> | ||
<link rel="stylesheet" href="//unpkg.com/@catppuccin/[email protected]/css/catppuccin.variables.important.css"> | ||
<!-- RGB variable version --> | ||
<link rel="stylesheet" href="//unpkg.com/@catppuccin/[email protected]/css/catppuccin.variables.rgb.css"> | ||
<!-- RGB variable version with !important (higher specificity) --> | ||
<link rel="stylesheet" href="//unpkg.com/@catppuccin/[email protected]/css/catppuccin.variables.rgb.important.css"> | ||
``` | ||
|
||
#### jsDelivr | ||
|
@@ -77,10 +83,14 @@ Embed the [Highlight.js script](https://highlightjs.org/download/) along with on | |
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/@catppuccin/[email protected]/css/catppuccin-frappe.css"> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/@catppuccin/[email protected]/css/catppuccin-macchiato.css"> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/@catppuccin/[email protected]/css/catppuccin-mocha.css"> | ||
|
||
<!-- variable version --> | ||
<!-- Variable version --> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/@catppuccin/[email protected]/css/catppuccin.variables.css"> | ||
<!-- Variable version with !important (higher specificity) --> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/@catppuccin/[email protected]/css/catppuccin.variables.important.css"> | ||
<!-- RGB variable version --> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/@catppuccin/[email protected]/css/catppuccin.variables.rgb.css"> | ||
<!-- RGB variable version with !important (higher specificity) --> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/@catppuccin/[email protected]/css/catppuccin.variables.rgb.important.css"> | ||
``` | ||
|
||
<!-- x-release-please-end --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@use "theme"; | ||
|
||
code { | ||
@include theme.highlights("frappe", "hex"); | ||
@include theme.highlights($flavor: "frappe"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@use "theme"; | ||
|
||
code { | ||
@include theme.highlights("latte", "hex"); | ||
@include theme.highlights($flavor: "latte"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@use "theme"; | ||
|
||
code { | ||
@include theme.highlights("macchiato", "hex"); | ||
@include theme.highlights($flavor: "macchiato"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@use "theme"; | ||
|
||
code { | ||
@include theme.highlights("mocha", "hex"); | ||
@include theme.highlights($flavor: "mocha"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@use "theme"; | ||
|
||
code { | ||
@include theme.highlights( | ||
$flavor: "mocha", | ||
$format: "variable", | ||
$important: true | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@use "theme"; | ||
|
||
code { | ||
@include theme.highlights($flavor: "mocha", $format: "rgb", $important: true); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@use "theme"; | ||
|
||
code { | ||
@include theme.highlights($flavor: "mocha", $format: "rgb"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@use "theme"; | ||
|
||
code { | ||
@include theme.highlights($flavor: "mocha", $format: "variable"); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.