@zenuml/core 2.0.9 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,6 +19,22 @@ Text messages are internally styled at four levels:
19
19
  3. text-skin-link: used for links
20
20
  4. text-skin-secondary: used for everything else, such as title, participant, divider notes, etc.
21
21
 
22
+ When it comes to branding, the following elements are the most important:
23
+
24
+ 1. Canvas background, however, it can easily be overwhelming if you use high contrast color to the
25
+ overall page background.
26
+ 2. Title background, participant background and fragment header background are the most attractive
27
+ elements to brand. These are where your brand color should be used.
28
+ 3. The background of the occurrence (message bar) is also a good place to use your brand color, but
29
+ less attractive than the above three.
30
+ 4. The borders of the frame, participant, fragment, occurrence and lifeline can add a bit
31
+ of color to the diagram.
32
+ 5. The color of the message and the arrow are the most important information on
33
+ the diagram. Choose a striking and comfortable color for them. You can use the brand color here, but
34
+ they should not be the only elements that reflect your brand color. Same principles apply to the
35
+ background and text color for hover state.
36
+ 6. Then is the color of link and control. They should avoid attracting too much attention
37
+
22
38
  [%autowidth]
23
39
  |===
24
40
  |Category | Diagram Frame |Lifeline Layer | Message Layer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenuml/core",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "url": "https://github.com/ZenUml/core.git"
@@ -21,6 +21,7 @@
21
21
  "start": "vue-cli-service serve",
22
22
  "git:branch:clean:gone": "git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d",
23
23
  "git:branch:clean:merged": "git branch --merged|egrep -v \"(\\*|master|main|dev|skip_branch_name)\" | xargs git branch -d",
24
+ "git:branch:safe-delete": "echo '> git log --graph --left-right --cherry --oneline another-branch...main'",
24
25
  "git:forget": "git rm -r --cached . && git add . && git commit -m \"Forget all ignored files\"",
25
26
  "test:specs": "echo \"Error: test:specs is not supported\""
26
27
  },
@@ -6,34 +6,35 @@ module.exports = {
6
6
  extend: {
7
7
  textColor: {
8
8
  skin: {
9
- title: 'var(--color-text-title)',
9
+ title: 'var(--color-text-title, var(--color-text-message, var(--color-text-base, #000)))',
10
10
  participant: 'var(--color-text-participant)',
11
- message: 'var(--color-text-message)',
12
- "message-arrow": 'var(--color-message-arrow)', // message arrow head
13
- "message-hover": 'var(--color-text-message-hover)',
14
- comment: 'var(--color-text-comment)',
15
- fragment: 'var(--color-text-fragment)',
11
+ message: 'var(--color-text-message, var(--color-text-base, #000))',
12
+ "message-arrow": 'var(--color-message-arrow, var(--color-border-frame, var(--color-border-base, #000)))', // message arrow head
13
+ "message-hover": 'var(--color-text-message-hover, var(--color-bg-base, #fff))',
14
+ comment: 'var(--color-text-comment, var(--color-text-secondary, var(--color-text-base, #000)))',
15
+ "fragment-header": 'var(--color-text-fragment-header, var(--color-text-message, #000))',
16
+ fragment: 'var(--color-text-fragment, var(--color-text-message, #000))',
16
17
  base: 'var(--color-text-base)',
17
18
  header: 'var(--color-text-header)',
18
19
  secondary: 'var(--color-text-secondary)',
19
- control: 'var(--color-text-control)',
20
+ control: 'var(--color-text-control, var(--color-text-secondary, var(--color-text-base, #000)))',
20
21
  muted: 'var(--color-text-muted)',
21
22
  hover: 'var(--color-text-hover)',
22
- link: `var(--color-text-link)`,
23
+ link: `var(--color-text-link, var(--color-text-secondary, var(--color-text-base, #000)))`,
23
24
  fill: `var(--color-text-fill)`,
24
25
  },
25
26
  },
26
27
  backgroundColor: {
27
28
  skin: {
28
- canvas: 'var(--color-bg-canvas)',
29
- frame: 'var(--color-bg-frame)',
30
- title: 'var(--color-bg-title)',
31
- participant: 'var(--color-bg-participant)',
32
- lifeline: 'var(--color-border-participant)',
29
+ canvas: 'var(--color-bg-canvas, var(--color-bg-base, #fff))',
30
+ frame: 'var(--color-bg-frame, var(--color-bg-canvas, var(--color-bg-base, #fff)))',
31
+ title: 'var(--color-bg-title, var(--color-bg-frame, var(--color-bg-canvas, var(--color-bg-base, #fff))))',
32
+ participant: 'var(--color-bg-participant, var(--color-bg-frame, var(--color-bg-canvas, var(--color-bg-base, #fff))))',
33
+ lifeline: 'var(--color-border-participant, var(--color-border-participant, var(--color-border-frame, var(--color-border-base, #000))))',
33
34
  divider: 'var(--color-border-participant)',
34
- "message-hover": 'var(--color-bg-message-hover)',
35
- "fragment-header": 'var(--color-bg-fragment-header)',
36
- occurrence: 'var(--color-bg-occurrence)',
35
+ "message-hover": 'var(--color-bg-message-hover, var(--color-text-base, #000))',
36
+ "fragment-header": 'var(--color-bg-fragment-header, transparent)',
37
+ occurrence: 'var(--color-bg-occurrence, var(--color-bg-participant, var(--color-bg-frame, var(--color-bg-canvas, var(--color-bg-base, #fff)))))',
37
38
  base: 'var(--color-bg-base)',
38
39
  secondary: 'var(--color-bg-secondary)',
39
40
  hover: 'var(--color-bg-hover)',
@@ -42,11 +43,11 @@ module.exports = {
42
43
  },
43
44
  borderColor: {
44
45
  skin: {
45
- frame: 'var(--color-border-frame)',
46
- participant: 'var(--color-border-participant)',
47
- "message-arrow": 'var(--color-message-arrow)', // message arrow line
48
- fragment: 'var(--color-border-fragment)',
49
- occurrence: 'var(--color-border-occurrence)',
46
+ frame: 'var(--color-border-frame, var(--color-border-base, #000))',
47
+ participant: 'var(--color-border-participant, var(--color-border-frame, var(--color-border-base, #000)))',
48
+ "message-arrow": 'var(--color-message-arrow, var(--color-border-frame, var(--color-border-base, #000)))', // message arrow line
49
+ fragment: 'var(--color-border-fragment, var(--color-border-frame, var(--color-border-base, #000)))',
50
+ occurrence: 'var(--color-border-occurrence, var(--color-border-frame, var(--color-border-base, #000)))',
50
51
  base: 'var(--color-border-base)',
51
52
  secondary: 'var(--color-border-secondary)',
52
53
  },