Skip to content

Theming Approach #35

@de-coy

Description

@de-coy

I've been looking at how to approach themes and wondered if you had any thoughts on it so far. I can think of a couple of approaches:

  1. Extend the existing theme approach but allow more flexibility with line colours, fills etc.
  2. Add CSS classes to the individual elements e.g. title, actor, signal, note etc. and use external style sheets to add fill and stroke colours.

My thoughts are that option 1 might become unwieldy as the number of theme options grows larger whereas option 2 keeps a nice separation of concerns. The jQuery initialisation would then look something like this:

$(function() {
    $(".sequence").sequenceDiagram({linestyle: 'hand',themecss:'css/mytheme.css'}); 
});

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions