Settings

SVG_SPRITE

Default: '' (Empty string)

The file name of the SVG file in your static files containing the sprites.

Specify the file name the same way you would with Django’s static template tag.

Example

SVG_SPRITE = 'my-sprite.svg'

Note

This setting is required for the {% svg_sprite %} template tag.

SVG_SPRITE_DEFAULT_​ATTRIBUTES

Default: {} (Empty dictionary)

Default attributes that will be added to each sprite (unless overridden).

Example

SVG_SPRITE_DEFAULT_ATTRIBUTES = {
    'class': 'icon',
    'fill': 'currentColor',
}

See Default attributes.