Enable Use of External CSS in Inkscape

Registered by Karen Stingel

SVG specification 1.1 allows for the use of external CSS in SVG files, however as of version 0.91 this is yet to be implemented within Inkscape. Additionally, the upcoming SVG version 2 spec will allow for the use of the @import statement to import an external CSS stylesheet. My proposal is that Inkscape be updated so that it can read a call to an external CSS page and in preparation for version 2 support be able to import included CSS links.

I'm not sure where an individual's file would be on the various OSes, but assuming Inkscape's customization files exist in ~/.inkscape, custom CSS pages could exist in ccss (the extra C signifying "custom") and the CSS friendly Inkscape version could be taught to read from ~/.inkscape/ccss first

Any new custom CSS pages could be automatically added to the ~/.inkscape/ccss directory and possibly also saved to the same directory the (calling) SVG is saved to

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Karen Stingel
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

YES—*PLEASE*! I’ve wanted this in Inkscape for nearly 10 years.

The ability to maintain a separate CSS document (or documents) and use it from multiple SVGs would be a paradigm shift.

2016-10-01 VictorWestmann : this sounds very interesting. +1 for this feature. Could you give more examples and samples on how this should work inside the application?

2017-04-05 Isaactzab : Also +1. This could be a good feature. Could be used like templating system. A potential issue is when you move your files and forget the CSS, SVG file will be broken. Maybe embedding CSS file helps.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.