@zenuml/core 2.0.5 → 2.0.6
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.
- package/dist/zenuml/core.common.js +83 -82
- package/dist/zenuml/core.common.js.map +1 -1
- package/dist/zenuml/core.css +4 -4
- package/dist/zenuml/core.umd.js +83 -82
- package/dist/zenuml/core.umd.js.map +1 -1
- package/dist/zenuml/core.umd.min.js +2 -2
- package/dist/zenuml/core.umd.min.js.map +1 -1
- package/docs/asciidoc/create-my-own-theme.adoc +42 -1
- package/docs/asciidoc/theme-debug-web-app.png +0 -0
- package/docs/asciidoc/user-css.png +0 -0
- package/package.json +4 -4
- package/tailwind.config.js +1 -1
- package/dist/fonts/kalam-v15-latin-300.00bd845e.woff2 +0 -0
- package/dist/fonts/kalam-v15-latin-300.1c36b0ad.woff +0 -0
- package/dist/fonts/kalam-v15-latin-700.2a87f463.woff2 +0 -0
- package/dist/fonts/kalam-v15-latin-700.9ec0bbf1.woff +0 -0
- package/dist/fonts/kalam-v15-latin-regular.4c0c4df4.woff +0 -0
- package/dist/fonts/kalam-v15-latin-regular.e4d4907f.woff2 +0 -0
|
@@ -11,7 +11,48 @@ You can apply themes on the follow products:
|
|
|
11
11
|
. JetBrains plugins (Intellij IDEA, WebStore, PhpStore, etc.)
|
|
12
12
|
. https://app.zenuml.com
|
|
13
13
|
|
|
14
|
-
With
|
|
14
|
+
With https://chrome.google.com/webstore/detail/user-css/okpjlejfhacmgjkmknjhadmkdbcldfcb[User CSS]
|
|
15
|
+
browser extension, you can apply themes anywhere (e.g. https://zenuml.cn).
|
|
16
|
+
|
|
17
|
+
== Principles of creating themes
|
|
18
|
+
|
|
19
|
+
=== 1. Do not override tailwind classes
|
|
20
|
+
The tailwind classes directly applied on the elements are important for layout so
|
|
21
|
+
they are NOT meant be overridden.
|
|
22
|
+
|
|
23
|
+
For example,
|
|
24
|
+
[html]
|
|
25
|
+
....
|
|
26
|
+
// Participant.vue
|
|
27
|
+
<div class="participant relative flex flex-col justify-center z-10 h-10"
|
|
28
|
+
....
|
|
29
|
+
|
|
30
|
+
=== 2. Use provided class selectors
|
|
31
|
+
Important elements are provided with a semantic class selector. You can use them
|
|
32
|
+
to override the style.
|
|
33
|
+
|
|
34
|
+
For the above example, the class selector is `participant`. You can override the
|
|
35
|
+
style by using this selector.
|
|
36
|
+
|
|
37
|
+
[css]
|
|
38
|
+
....
|
|
39
|
+
// use `.zenuml .sequence-diagram` to increase specificity
|
|
40
|
+
.zenuml .sequence-diagram .participant {
|
|
41
|
+
background-color: #f00;
|
|
42
|
+
}
|
|
43
|
+
....
|
|
44
|
+
|
|
45
|
+
=== 3. Debug your theme
|
|
46
|
+
|
|
47
|
+
You can use the browser extension https://chrome.google.com/webstore/detail/user-css/okpjlejfhacmgjkmknjhadmkdbcldfcb[User CSS]
|
|
48
|
+
to debug your theme.
|
|
49
|
+
|
|
50
|
+
image::user-css.png[User CSS]
|
|
51
|
+
|
|
52
|
+
Alternatively, you can use our web app https://app.zenuml.com[app.zenuml.com]. Go to the CSS tab
|
|
53
|
+
and paste your theme there. You can see the result immediately.
|
|
54
|
+
|
|
55
|
+
image::theme-debug-web-app.png[]
|
|
15
56
|
|
|
16
57
|
=== JetBrains
|
|
17
58
|
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenuml/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/ZenUml/core.git"
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"main": "./dist/zenuml/core.umd.min.js",
|
|
28
28
|
"types": "./types/index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tailwindcss/postcss7-compat": "^2.0.2",
|
|
31
30
|
"@types/assert": "^1.5.4",
|
|
32
31
|
"@types/ramda": "^0.28.0",
|
|
33
32
|
"antlr4": "~4.8.0",
|
|
@@ -39,9 +38,9 @@
|
|
|
39
38
|
"lodash": "^4.17.20",
|
|
40
39
|
"marked": "^2.0.0",
|
|
41
40
|
"pino": "^8.7.0",
|
|
42
|
-
"postcss": "^
|
|
41
|
+
"postcss": "^8.4.19",
|
|
43
42
|
"ramda": "^0.28.0",
|
|
44
|
-
"tailwindcss": "
|
|
43
|
+
"tailwindcss": "^3.2.4",
|
|
45
44
|
"vue": "2.6.12",
|
|
46
45
|
"vue-gtag": "^1.16.1",
|
|
47
46
|
"vue-template-compiler": "2.6.12",
|
|
@@ -71,6 +70,7 @@
|
|
|
71
70
|
"@vue/eslint-config-typescript": "^5.0.2",
|
|
72
71
|
"@vue/test-utils": "^1.1.3",
|
|
73
72
|
"@vue/vue2-jest": "^29.1.1",
|
|
73
|
+
"autoprefixer": "^10.4.13",
|
|
74
74
|
"babel-eslint": "^10.1.0",
|
|
75
75
|
"core-js": "^3.8.3",
|
|
76
76
|
"cypress": "^9.4.1",
|
package/tailwind.config.js
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|