When working on EPUB output from InDesign, the stylesheet names in the generated CSS can become quite long, at the same time the number of styles for more complex documents can increase quickly. So I’ve started placing paragraph styles in particular in Style Groups that are named with short names.
When InDesign generates the CSS file the Style Group names turn into prefixes for the class names.
Here’s an example:
- I name the Paragraph Style Group based on where the style is applied. For instance styles that are used within body cells of a table would appear in a Style Group named ‘
- Within the Style Group, the paragraph styles names themselves also have short names. E.g.
When applying the paragraph style “text-blue” to some text in a table cell, the resulting stylesheet in the CSS will become: