• Stars
    star
    99
  • Rank 341,982 (Top 7 %)
  • Language
    JavaScript
  • License
    GNU General Publi...
  • Created almost 8 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A GUI app to the SVGO library with the addition of creating SVG sprite sheets.

Spritebot

Your awkwardly ostentatious optimizing robot.

This application is essentially a GUI wrapper around SVGO, but without all the configuration of SVGOMG.

I was inspired to create it because my students needed a simpler SVG batch processing tool since SVG-GUI isn’t maintained any more.

The additional feature Spritebot brings, that isn’t available in the other tools, is the generation of SVG sprite sheets.

Built with Javascript, Node.js & Electron.


Download

Download the latest version of Spritebot below:

⬇ Download for MacOS

⬇ Download for Windows


Using the sprite sheets

The sprite sheets that Spritebot creates will have <symbol> tags for each active SVG that’s been added into Spritebot.

If the SVGs are reverted to their original, unoptimized format they will not be included in the sprite sheet.

The id for each <symbol> will be the SVGs filename without the .svg extension.

Using an external SVG image file

Save the sprite sheet into your images folder. Then, in your HTML, you can use the SVG <use> statement to display a single sprite at a time:

<svg><use xlink:href="images/sprite-sheet.svg#icon-green" /></svg>

Using sprites pasted into HTML

You can paste the sprite sheet into your HTML file directly, then use the sprites from there.

I suggest hiding the <svg> tag with the hidden attribute, like so:

<svg hidden>
  â‹®
</svg>

Then further down, in your HTML you can use a single sprite with the <use> statement:

<svg><use xlink:href="#icon-green" /></svg>

More tutorials…

Check out the lessons & tutorials I use for my students for more details information.


License & copyright

© 2017 Thomas J Bradley — GPL.

More Repositories

1

signature-to-image

A supplemental script for Signature Pad that generates an image of the signature’s JSON output server-side using PHP.
PHP
65
star
2

saving-signatures-sample

A sample PHP and MySQL application for capturing the output of Signature Pad and saving it into a database.
PHP
29
star
3

markbot

An application that automatically tests and marks student code assignments in Algonquin College Graphic Design’s Web Dev courses.
JavaScript
25
star
4

dotfiles

Config files for bash, git, hg, etc.
Shell
10
star
5

jekyll_patternbot

A Jekyll plugin for developing pattern libraries & style guides that can be used to generate a Jekyll website.
CSS
9
star
6

gridifier

Gridifier is a tool to build a responsive grid framework for modern websites.
HTML
9
star
7

typografier

Typografier is a tool that generates a modular & harmonious type system for modern websites.
HTML
8
star
8

modulifier

Modulifier is a tool that generates CSS for a bunch of common patterns and repeated code on websites.
HTML
5
star
9

sublime-snippets

Snippets I use for Sublime Text.
5
star
10

micromodel

A really basic ORM-like form and table mapper, for working with Silex, Symfony Forms, and Doctrine DBAL; supports single tables without relationships.
PHP
5
star
11

patternbot

A GUI application for making style guides and pattern libraries.
HTML
3
star
12

groundhogdayroundup.ca

Groundhog Day is the best day of the year! This website celebrates my love.
CSS
2
star
13

todosaurus

A keyboard driven GUI app for the Todo.txt format.
JavaScript
2
star
14

thomasjbradley.ca

My personal homepage—a jumping board with outbound links.
CSS
2
star
15

element-highlighter

A small script to write out & highlight HTML elements, modules or grids for better in-class solutions examples.
JavaScript
2
star
16

patternbot-includes

A JavaScript, in browser companion to Patternbot for making templates & including patterns.
JavaScript
1
star
17

blog-archive

An archive of all the blog posts from my old website.
1
star
18

wp-theme-starter

My starter WordPress theme files.
PHP
1
star
19

patternbot-testing-repo

This is an ugly testing repo to test Patternbot features on other devices.
HTML
1
star
20

markbot-template

A template for repositories that use Markbot.
1
star
21

patternbot-docs

The documentation for Patternbot and the Patternbot include & template system.
CSS
1
star
22

lizandthomasgotmarried.ca

Our wedding and post-wedding website.
PHP
1
star
23

ottawaparks

List of all the parks in Ottawa including geo-location data and dog information.
Python
1
star
24

markbot-server

A small PHP proxy application for adding grades into Canvas after Markbot checks pass.
PHP
1
star
25

saveviewsource.org

A humourous gag website for saving the view source capabilities of browsers.
JavaScript
1
star
26

form-validation-helper

Helps prevent the :invalid/:valid styles from showing until after the form has been submitted.
HTML
1
star
27

web-dev.tools

A collection of independent, but collaborative, tools to generate a custom, responsive framework for websites.
CSS
1
star