Home > illustratorToCSS

illustratorToCSS

IllustratorToCSS is a project mainly written in JavaScript, it's free.

Export attributes of the selected illustrator object to CSS

Usage

  • Download the script
  • In Adobe Illustrator, select an item
  • Go to Files -> Scripts -> Other Scripts… and open the script

Voilà!

What works

  • color to rgb and rgba if you have transparency
  • gradient
  • height and width

What will “never” work

  • sadly drop-shadow, Adobe doesn’t give access to the effect from script

Documentations

  • http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/pdf/illustrator/scripting/illustrator_scripting_guide_cs5_fr.pdf
  • http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/pdf/illustrator/scripting/illustrator_scripting_reference_javascript_cs5.pdf
  • http://cssdk.host.adobe.com/sdk/1.0/docs/WebHelp/app_notes/AI_obj_model.htm
Previous:FeedParser