diff options
| author | frozolotl <44589151+frozolotl@users.noreply.github.com> | 2023-11-10 10:31:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-10 10:31:06 +0100 |
| commit | d93ed1b3d8c12768f9c066ba13ac3143a43ebbf8 (patch) | |
| tree | 99b6883a6f1d35fe53cdca87f56883bdfb151f7a /crates/typst-ide | |
| parent | 7f0fcda3764e261612021e5ec66d536bb5ee98ef (diff) | |
Implement Oklch support (#2611)
Diffstat (limited to 'crates/typst-ide')
| -rw-r--r-- | crates/typst-ide/src/complete.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/typst-ide/src/complete.rs b/crates/typst-ide/src/complete.rs index c9a625d1..fd83b8c9 100644 --- a/crates/typst-ide/src/complete.rs +++ b/crates/typst-ide/src/complete.rs @@ -1224,6 +1224,11 @@ impl<'a> CompletionContext<'a> { "A custom Oklab color.", ); self.snippet_completion( + "oklch()", + "oklch(${l}, ${chroma}, ${hue}, ${alpha})", + "A custom Oklch color.", + ); + self.snippet_completion( "color.linear-rgb()", "color.linear-rgb(${r}, ${g}, ${b}, ${a})", "A custom linear RGBA color.", |
