Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

React Dark Theme Image

This example shows how to use the url-gen JS SDK to apply an effect on an image to be able to show the image when dark theme is used

Working example https://stackblitz.com/edit/vitejs-vite-cpcpdb?file=src%2Findex.css

To run this example add the following to your .env file

VITE_CLOUD_NAME=<YOUR_CLOUD_NAME>
VITE_PUBLIC_ID=<THE_IMAGE_ID_ON_YOUR_MEDIA_LIBRARY>