960.gs Templates for Inkscape

960gs logo
That's some shiny logo

CSS grid frameworks in a nutshell

There are various CSS grid frameworks, which try to make the life of front-end designers easier. There's YUI Grids, Blueprint, a bunch of other frameworks, and well, the 960 Grid System.

All those frameworks do their magic through non-semantic classes, which are added to your containers. While this sounds pretty bad, it actually isn't much of an issue in reality. Well, that is if you don't use those classes in your content. Fortunately there is very little reason to do so if you're using some kind of CMS – and if you aren't, you probably should.

Personally I happen to like the 960 one most. It's pretty minimalistic while offering enough flexibility. It's also shipped with a bunch of templates for Fireworks, Illustrator, Omni Giraffe, Photoshop, and Visio. Inkscape, however, was missing. It's time to fill that gap! :)

Template overview

  • 12 and 16 column flavor
  • 7 predefined grids
  • all vertical guides you need (37 respective 49)
  • page background is fully opaque white by default
  • page border is on top of the drawing

Predefined grids

Grid Spacing Major Every Major Spacing
g05 0.5px 2 1px
g1 (default) 1.0px 20 20px
g2 2.0px 10 20px
g4 4.0px 5 20px
g5 5.0px 4 20px
g10 10.0px 2 20px
g20 20.0px 1 20px

These predefined grids should take care of the most common use cases. As you've probably noticed the "g05" grid is different from the others. It's a special purpose grid, which allows you to align things with odd stroke widths (typically 1px) in a pixel perfect fashion. However, be sure to disable the guides beforehand otherwise it will be more fiddly than it needs to be.

To switch to a different grid, head over to the Document Properties dialog (top right icon). Go to "g1" and un-check the "enabled" check box. Then head over to the one you'd like to use and enable that one.

predefined grids in Inkscape
Figure 1: The predefined grids

Predefined layers

By default you'll start in "Layer 1". Below is a locked layer called "grid_12" or "grid_16" depending on the template you've chosen. This background layer shows you the location of the columns and gutters. Since that layer only contains some boring bars I rather show you an image of the layers dialog instead. ;)

predefined layers in Inkscape
Figure 2: The predefined layers

Guides with nice IDs (new)

If you drag a guide by accident you can just undo it. However, if you didn't notice it right away it might not be possible anymore. I addressed this issue by giving all guides an id, which tells you where it the guide belongs. Just double click the guide and set the value according to its ID.

Inkscape's guideline dialog
Figure 3: The ID tells you where it belongs

Installation

Download the zip file and extract it to Inkscape's template directory (you can also just open it with Inkscape if you'd like to take a look first). If you're using Windows the file structure should look like this afterwards:

Inkscape
└── share
    └── templates
            960_grid_12_col.svg
            960_grid_16_col.svg
            [...]

Under Linux the templates directory is located over at "/usr/share/inkscape/templates".

After you've successfully installed the 2 template files, they will be available in the "New" sub-menu:

Inkscape's File->New dialog
Figure 4: Creating a new document which uses one of the templates

Download: 960gs_inkscape_templates.zip (2kb)

Comments

You beat me to it :)

I just filled that same gap, but you did it so much better! Good job.

Anyway, have a look.

Happy hacking,
Gabe

re: You beat me to it :)

>[...] but you did it so much better!

Heh. Thanks. :)

I wondered if I should give those guides a name (well, a meaningful id), but I couldn't think of anything helpful therefore I omitted the id for all guides. You went with a name based on its position like guide-100 for the guide at 100px. I'd say that's the most useful naming scheme for these things, since you can only see those names if you double click a guide... and you only double click a guide if you want to set its position to a specific value... and you only want to set it to some specific value if you accidentally moved it a few steps earlier and hence you cannot go with undo.

I'm not sure if you had this stuff in mind when picking the ids, but now that I think about it it makes lots of sense. I'll add similar ids to my guides tonight.

great!

This was just I was looking for
Loose my nervers trying to use the grids
Now if just somehow found a template with gardients on.

for ubuntu, it is more

for ubuntu, it is more convenient to store the templates in:

~/.config/inkscape/templates

for windows

windows XP at least it's:
C:\Documents and Settings\ (user) \Application Data\Inkscape\templates

re: for windows

Yes, that should work, too.

Many Thanks!

I wanted to thank you for creating this and making it public. It was a great help. A+

NOTE: For MAC users, you need to go to your applications and right click on your Inkscape app icon and select "Show in finder". Then right click on the Inkscape again and select "Show Contents".Then you will follow the tree down to template folder.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options