Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>CSS Gradients PreviewNew to Visual Studio Code? Get it now.
CSS Gradients Preview

CSS Gradients Preview

Romain Menke

|
1,778 installs
| (1) | Free
Preview CSS gradients
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CSS Gradients Preview

Preview CSS gradients in VSCode with live updates.

Features

Hover over a CSS gradient and click Show Gradient.

Open the gradients preview

Once shown the preview will update as you change code. This is not very solid and you might need to click Show Gradient again to see the updated preview.

Gradients will refresh automatically

Uses PostCSS Preset Env to preview color functions like oklch which are not yet supported by VSCode.

Known Issues

Will not work with CSS variables. This extension can not mimic your real HTML structure nor your full CSS code. Only self contained CSS gradients are supported.

.a-gradient {
	background: conic-gradient(
		from 0.25turn,
		var(--some-color),
		10deg,
		#3f87a6,
		var(--some-amount-of-degrees),
		#ebf8e1
	);
}

1.0.4

Prevent the preview from re-opening after manually closing it and then editing a gradient.

1.0.3

Various fixes.

1.0.0

Initial release

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft