diff --git a/plugins/completions/common.py b/plugins/completions/common.py index 53af21d..b98901f 100644 --- a/plugins/completions/common.py +++ b/plugins/completions/common.py @@ -100,13 +100,16 @@ def get_common_values(): "color": [ "currentColor", "transparent", - ["rgb()", "rgb(${1:0}, ${2:0}, ${3:0}${4:, ${5:1.0}})"], + ["rgb()", "rgb(${1:0}, ${2:0}, ${3:0}${4: / ${5:1.0}})"], ["rgba()", "rgba(${1:0}, ${2:0}, ${3:0}, ${4:1.0})"], - ["hsl()", "hsl(${1:0}, ${2:100%}, ${3:50%}${4:, ${5:1.0}})"], + ["hsl()", "hsl(${1:0}, ${2:100%}, ${3:50%}${4: / ${5:1.0}})"], ["hsla()", "hsla(${1:0}, ${2:100%}, ${3:50%}, ${4:1.0})"], - ["hwb()", "hwb(${1:0}, ${2:100%}, ${3:50%}${4:, ${5:1.0}})"], - ["lab()", "lab(${1:0%}, ${2:0}, ${3:0}${4:, ${5:1.0}})"], - ["lch()", "lch(${1:0%}, ${2:0.0}, ${3:0.0}${4:, ${5:1.0}})"], + ["hwb()", "hwb(${1:0}, ${2:100%}, ${3:50%}${4: / ${5:1.0}})"], + ["lab()", "lab(${1:0%}, ${2:0}, ${3:0}${4: / ${5:1.0}})"], + ["lch()", "lch(${1:0%}, ${2:0.0}, ${3:0.0}${4: / ${5:1.0}})"], + ["light-dark()", "light-dark(${1}, ${2})"], + ["oklab()", "oklab(${1:0%}, ${2:0}, ${3:0}${4: / ${5:1.0}})"], + ["oklch()", "oklch(${1:0%}, ${2:0.0}, ${3:0.0}${4: / ${5:1.0}})"], # Named colors "aliceblue", "antiquewhite", @@ -257,6 +260,7 @@ def get_common_values(): "yellow", "yellowgreen", ], + "container-type": ["normal", "size", "inline-size"], "content-distribution": ["space-between", "space-around", "space-evenly", "stretch"], "content-position": ["center", "start", "end", "flex-start", "flex-end"], "counter-style": [["symbols()", "symbols($1)"]], @@ -440,6 +444,7 @@ def get_common_values(): ], "shape-radius": ["closest-side", "farthest-side"], "side-or-corner": ["left", "right", "top", "bottom"], + "text-wrap": ["wrap", "nowrap", "balance", "stable", "pretty"], "timing-function": [ "linear", "ease", @@ -493,6 +498,20 @@ def get_common_values(): "%", ], "url": [["url()", "url($1)"]], + "white-space-collapse": [ + "collapse", + "discard", + "preserve", + "preserve-breaks", + "preserve-spaces", + "break-spaces" + ], + "white-space-trim": [ + "none", + "discard-before", + "discard-after", + "discard-inner" + ], } resolved_values = {} diff --git a/plugins/completions/function_args.py b/plugins/completions/function_args.py index cebc504..ca8d3be 100644 --- a/plugins/completions/function_args.py +++ b/plugins/completions/function_args.py @@ -41,6 +41,7 @@ def get_func_args(): "lab": ["", "none"], "lch": ["", "none"], "leader": [""], + "light-dark": [""], "linear-gradient": ["", "", "to"], "log": [""], "matrix": [""], @@ -49,6 +50,8 @@ def get_func_args(): "min": [["attr()", "attr($1)"], ""], "minmax": ["min-content", "max-content", "auto"], "mod": [""], + "oklab": ["", "none"], + "oklch": ["", "none"], "opacity": [""], "path": [""], "paint": [], diff --git a/plugins/completions/properties.py b/plugins/completions/properties.py index 73ca6c2..acd8aec 100644 --- a/plugins/completions/properties.py +++ b/plugins/completions/properties.py @@ -273,6 +273,9 @@ def get_properties(): "auto", ], "columns": ["", "auto"], + "container": [""], + "container-name": ["none"], + "container-type": [""], "contain": ["content", "layout", "none", "paint", "inline-size", "size", "strict", "style"], "contain-intrinsic-size": ["none", "auto"], "contain-intrinsic-block-size": ["none", "auto"], @@ -476,6 +479,9 @@ def get_properties(): ], "font-style": ["normal", "italic", "oblique"], "font-synthesis": ["none", "weight", "style", "small-caps"], + "font-synthesis-small-caps": ["auto", "none"], + "font-synthesis-style": ["auto", "none"], + "font-synthesis-weight": ["auto", "none"], "font-variant": ["normal", "small-caps"], "font-variant-alternates": [""], "font-variant-caps": [ @@ -497,6 +503,7 @@ def get_properties(): "simplified", "traditional", ], + "font-variant-emoji": ["normal", "text", "emoji", "unicode"], "font-variant-ligatures": [ "normal", "none", @@ -623,6 +630,7 @@ def get_properties(): "height": ["", "auto", "fit-content"], "hyphens": ["none", "manual", "auto"], "hyphenate-character": ["auto"], + "hyphenate-limit-chars": ["auto"], "image-orientation": ["flip", "from-image"], "image-rendering": ["auto", "optimizeSpeed", "optimizeQuality", "pixelated"], "image-resolution": ["from-image"], @@ -809,7 +817,7 @@ def get_properties(): "offset-inline-end": ["", "auto"], "offset-inline-start": ["", "auto"], "offset-path": ["", "none"], - "offset-position": ["", "auto"], + "offset-position": ["", "auto", "normal"], "offset-rotate": ["", "auto", "reverse"], "opacity": [ "", @@ -869,9 +877,11 @@ def get_properties(): "padding-left": ["", "auto"], "padding-right": ["", "auto"], "padding-top": ["", "auto"], + "page": ["auto"], "page-break-after": ["auto", "always", "avoid", "left", "right"], "page-break-before": ["auto", "always", "avoid", "left", "right"], "page-break-inside": ["avoid", "auto"], + "page-orientation": ["upright", "rotate-left", "rotate-right"], "paint-order": ["normal", "fill", "stroke", "markers"], "perspective": ["none"], "perspective-origin": ["", ""], @@ -1088,6 +1098,7 @@ def get_properties(): ], "text-underline-offset": ["", "auto"], "text-underline-position": ["auto", "under", "left", "right"], + "text-wrap": [""], "top": ["", "auto"], "touch-action": [ "auto", @@ -1189,7 +1200,12 @@ def get_properties(): "nowrap", "pre-wrap", "pre-line", + "", + "", + "", ], + "white-space-collapse": [""], + "white-space-trim": [""], "widows": [ "", ],