Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 454 Bytes

readme.md

File metadata and controls

32 lines (22 loc) · 454 Bytes

Installation & Usage

Install

npm install vector-drawable-svg
const { transform } = require('vector-drawable-svg');

const svgContent = transform(vectorDrawbleContent, {
	pretty: true,
	override: {
		'@color/colorPrimary': '#00ff00',
		'@color/colorSecondary': '#00ff00',
		'?android:attr/textColorPrimary': 'white',
	});

Using on Bash

npm install -g vector-drawable-svg
vd2svg my-drawable.xml file.svg