Skip to content

chore: version packages - #466

Merged
quantizor merged 1 commit into
mainfrom
changeset-release/main
Nov 20, 2026
Merged

quantizor merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

vscode-styled-components@1.8.0

Minor Changes

  • #465 004e515 Thanks @quantizor! - Modern CSS functions such as oklch(), color-mix(), clamp(), and light-dark() now highlight as functions inside styled templates, and light-dark() no longer breaks apart at the hyphen.

  • #465 004e515 Thanks @quantizor! - CSS highlighting now works in more of the ways you write styled components: a tag chain, on one line or split across lines by Prettier (styled.div or Button.extend, then any number of .attrs() and .withConfig() calls), a comment between styled.div and its backtick, a tag reached through an object (theme.styled.div, $styled.div, theme.css) or through a call or index (getTheme().styled.div, items[0].styled.div), type arguments that span several lines, including on theme.keyframes, and an arrow function whose parameter starts with $ or has no parentheses, like styled.div(($props) => ...) or styled.div(p => ...).

  • #465 004e515 Thanks @quantizor! - hwb(), lab(), lch(), oklab(), and oklch() colors now show a color swatch, and the color picker can write any color in these five formats.

Patch Changes

  • #465 004e515 Thanks @quantizor! - Typing a backtick no longer offers to expand it into a multi-line template everywhere. The "expand template string" suggestion now appears only when the backtick opens a styled template (#386).

  • #465 004e515 Thanks @quantizor! - The color picker now writes the same values VS Code's picker writes in .css files. A semi-transparent hex color always gets a valid two-digit alpha (#ff00000d rather than #ff0000c), and hsl() values use whole numbers.

  • #465 004e515 Thanks @quantizor! - Picking a CSS property from the suggestion list and pressing Enter fills in : ; again when the template holds a nested template string inside ${} (#437). It also works when the styled tag is spread across several lines.

  • #465 004e515 Thanks @quantizor! - Syntax highlighting is about 8% faster on average, measured over about 5,800 lines of styled-components code in JavaScript and TSX, both the first time the editor highlights a file and after. Files with very long single lines gained the most, highlighting about 65% faster on average.

  • #465 004e515 Thanks @quantizor! - Syntax highlighting no longer breaks for the rest of the file after certain styled components. These now highlight correctly, along with the code below them: a template right after a call whose arrow function returns an object or JSX, like foo(() => ({ ... })) or MUI's styled(({ className, ...props }) => (...)) pattern (#383); .attrs() that uses props, even across several lines (#292); a props type written over several lines, like styled.div<{ color: string }> broken onto new lines (#358); TypeScript type parameters after styled.div (#442); a styled component passed into a function such as React.memo (#196); and templates after Comp.extend, keyframes, and .withComponent().

  • #465 004e515 Thanks @quantizor! - Keyframe selectors with decimals, like 33.3%, now highlight as one selector inside an @keyframes block, the same as they already did in a keyframes template.

  • #465 004e515 Thanks @quantizor! - The extension now needs VS Code 1.74 or later, so VS Code starts it for the Enter-key : ; command in any JavaScript or TypeScript file, not only after a JSX or TSX file opens.

  • #465 004e515 Thanks @quantizor! - Space-separated rgb() and hsl() colors now show a color swatch and open the color picker, with or without a / alpha value, like hsl(220 30% 95%) and rgb(255 0 153 / 50%) (#455).

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 981eb75 to 8664823 Compare November 20, 2026 05:20
@quantizor
quantizor merged commit 877d6ee into main Nov 20, 2026
2 checks passed
@quantizor
quantizor deleted the changeset-release/main branch November 20, 2026 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant