GitHub

Undraw

llms.txt

Example

Usage

  1. Download a svg illustration from undraw leaving the theme color as it is (#6c63ff).
  2. Import that svg with the ?raw extension and use it with the undraw component. The theme color will automatically change to your theme color, all other colors will have to be manually changed using the colorMap prop (or if not using dark mode, leave as is).
		
<Undraw
	{svg}
	alt="Undraw"
	colorMap={{
		'#090814': 'fill-base-950 dark:fill-accent-950',
		'#d6d6e3': 'fill-base-300 dark:fill-base-700',
		'#cacaca': 'fill-base-400 dark:fill-base-600',
		'#cfcce0': 'fill-base-500 dark:fill-base-500',
		'#f2f2f2': 'fill-base-200 dark:fill-base-800'
	}}
/>

API Reference

Undraw

Renders an unDraw SVG illustration with optional color remapping and dark mode inversion.

Property
svg
alt
caption
captionClass
autoInvert
colorMap
class
ref