Vectacity as CSS

Coloured boxesDavyd Madeley made an interesting suggestion for redesigning the theme format.  Assuming, as seems likely, we end up using Clutter, there’s no need to specify the structure of a window, which would need SVG.  After all, all windows have a basically similar structure.  Instead, we could style any item on the window usinga CSS file, parsed by libccss.

Don’t want a titlebar?
#titlebar {
height: 0;

Want a red background on the close button?
button#close {
background-color: red;

And so on.  I think this is an interesting idea because it seems comprehensive enough to capture all the problems we face in theme design.  I’m wondering whether it’s perhaps more powerful than necessary and whether it could cause themes to be able to be disruptive, though.

Photo © Sarah G, cc-by.


  1. Posted July 6, 2009 at 8:15 pm | Permalink

    As long as we can still choose the theme we want, a powerful format is fine!

  2. Screwtape
    Posted July 6, 2009 at 11:16 pm | Permalink

    Aw man, I suggested this ages ago!

  3. Posted July 7, 2009 at 1:41 am | Permalink

    Aw, sorry! I apologise for not getting it when you explained it the first time. Davyd just explained the idea to me in person and it clicked.

  4. Screwtape
    Posted July 7, 2009 at 2:39 am | Permalink

    To be fair, I was thinking about a combination of the existing draw_ops and some CSS syntax for declaring where they should be drawn (much like HTML’s background-image) rather than trying to do the whole theming thing in CSS.

    Still, I think it’s a rich vein of potential.

  5. Jorge
    Posted July 7, 2009 at 6:19 am | Permalink

    Wonderful idea! go for it!

    IMHO if the allowed css rules are chosen carefully I don’t think the themes could become too disruptive.

2 Trackbacks

  1. […] Some discussion of the use of CSS in theming. […]

  2. […] to our previous discussion of CSS, Thomas spent a few hours on sketching out a possible design for a CSS-based theme format, and on […]