Quantcast
Channel: Adobe Community : All Content - Illustrator
Viewing all articles
Browse latest Browse all 61891

Save as SVG, with character styles included as CSS classes? (CC)

$
0
0

Hi, I know that

 

a) Character styles in Illustrator CC are saved as CSS classes in the CSS properties menu, with appropriate style info;

b) These classes can be exported to a CSS file from the CSS properties manual;

c) Graphic styles can also be saved as CSS classes; but

d) When saving to SVG (with Style Elements option) the graphic style classes are included in the SVG code, but NOT the character style classes. Instead, it uses classes like ".st0", ".st1", etc., which separate each styled attribute (font-family, size, etc.) into its own class.

 

Is there any way around this problem, short of extensively editing the svg code by hand later? The end result we're looking for is an SVG where text has classes assigned, based on character styles.  (Ideally we'd then link to an external style sheet in order to modify based on the end use of the SVG. So for example a graphic with .textBold and .textRegular, where those classes are later assigned different values based on the delivery device.)

 

Has anyone else dealt with this issue?

 

Thanks!


Viewing all articles
Browse latest Browse all 61891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>