Skip to content

Commit f1e5214

Browse files
pkp/pkp-lib#10850 Remove duplicate css variables
1 parent bb71759 commit f1e5214

File tree

2 files changed

+21
-79
lines changed

2 files changed

+21
-79
lines changed

src/docs/guide/DesignSystem/_CSSVariables.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ onMounted(() => {
3838
if (prop.startsWith('--') && !prop.startsWith('--tw')) {
3939
const value = rule.style.getPropertyValue(prop).trim();
4040
41-
if (prop === '--background-color-primary') {
41+
if (prop === '--color-primary') {
4242
primaryColor = value;
4343
}
4444
let styles;

src/styles/tw-theme-vars.css

+20-78
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,12 @@
11
:root {
2-
--background-color-primary: #006798;
3-
--background-color-hover: #0082bf;
4-
--background-color-attention: #d00a0a;
5-
--background-color-success: #00b24e;
6-
--background-color-negative: #d00a6c;
7-
--background-color-stage-desk-review: #9b6ff8;
8-
--background-color-stage-in-review: #e08914;
9-
--background-color-stage-copyediting: #f66aaf;
10-
--background-color-stage-production: #4ac7e2;
11-
--background-color-stage-scheduled-for-publishing: #ded15d;
12-
--background-color-stage-incomplete-submission: #777777;
13-
--background-color-stage-published: #00b24e;
14-
--background-color-stage-declined: #d00a0a;
15-
--background-color-profile-1: #ab7d94;
16-
--background-color-profile-2: #598d70;
17-
--background-color-profile-3: #9b7cdc;
18-
--background-color-profile-4: #89aae0;
19-
--background-color-profile-5: #ebda68;
20-
--background-color-profile-6: #bd726c;
21-
--background-color-transparent: transparent;
22-
--background-color-default: #eaedee;
23-
--background-color-secondary: #ffffff;
24-
--background-color-tertiary: rgba(234, 237, 238, 0.3);
25-
--background-color-blur: rgba(0, 0, 0, 0.5);
26-
--background-color-selection-light: #d5e9f2;
27-
--background-color-selection-dark: #002c40;
28-
--background-color-disabled: rgba(28, 27, 31, 0.1);
29-
--text-color-primary: #006798;
30-
--text-color-hover: #0082bf;
31-
--text-color-attention: #d00a0a;
32-
--text-color-success: #00b24e;
33-
--text-color-negative: #d00a6c;
34-
--text-color-stage-desk-review: #9b6ff8;
35-
--text-color-stage-in-review: #e08914;
36-
--text-color-stage-copyediting: #f66aaf;
37-
--text-color-stage-production: #4ac7e2;
38-
--text-color-stage-scheduled-for-publishing: #ded15d;
39-
--text-color-stage-incomplete-submission: #777777;
40-
--text-color-stage-published: #00b24e;
41-
--text-color-stage-declined: #d00a0a;
42-
--text-color-profile-1: #ab7d94;
43-
--text-color-profile-2: #598d70;
44-
--text-color-profile-3: #9b7cdc;
45-
--text-color-profile-4: #89aae0;
46-
--text-color-profile-5: #ebda68;
47-
--text-color-profile-6: #bd726c;
48-
--text-color-transparent: transparent;
49-
--text-color-default: #222222;
50-
--text-color-secondary: #505050;
51-
--text-color-heading: #01354f;
52-
--text-color-disabled: #4e4f4f;
53-
--text-color-on-dark: #ffffff;
54-
--border-color-primary: #006798;
55-
--border-color-hover: #0082bf;
56-
--border-color-attention: #d00a0a;
57-
--border-color-success: #00b24e;
58-
--border-color-negative: #d00a6c;
59-
--border-color-stage-desk-review: #9b6ff8;
60-
--border-color-stage-in-review: #e08914;
61-
--border-color-stage-copyediting: #f66aaf;
62-
--border-color-stage-production: #4ac7e2;
63-
--border-color-stage-scheduled-for-publishing: #ded15d;
64-
--border-color-stage-incomplete-submission: #777777;
65-
--border-color-stage-published: #00b24e;
66-
--border-color-stage-declined: #d00a0a;
67-
--border-color-profile-1: #ab7d94;
68-
--border-color-profile-2: #598d70;
69-
--border-color-profile-3: #9b7cdc;
70-
--border-color-profile-4: #89aae0;
71-
--border-color-profile-5: #ebda68;
72-
--border-color-profile-6: #bd726c;
73-
--border-color-transparent: transparent;
74-
--border-color-dark: #696969;
75-
--border-color-light: #bbbbbb;
76-
--border-color-form-fields: #777777;
77-
--radius: 4px;
78-
--radius-full: 9999px;
79-
--shadow: 0 0 4px rgba(0, 0, 0, 0.5);
802
--color-primary: #006798;
813
--color-hover: #0082bf;
824
--color-attention: #d00a0a;
835
--color-success: #00b24e;
846
--color-negative: #d00a6c;
857
--color-stage-desk-review: #9b6ff8;
868
--color-stage-in-review: #e08914;
9+
--color-stage-in-internal-review: #42427f;
8710
--color-stage-copyediting: #f66aaf;
8811
--color-stage-production: #4ac7e2;
8912
--color-stage-scheduled-for-publishing: #ded15d;
@@ -97,6 +20,25 @@
9720
--color-profile-5: #ebda68;
9821
--color-profile-6: #bd726c;
9922
--color-transparent: transparent;
23+
--background-color-default: #eaedee;
24+
--background-color-secondary: #ffffff;
25+
--background-color-tertiary: rgba(234, 237, 238, 0.3);
26+
--background-color-blur: rgba(0, 0, 0, 0.5);
27+
--background-color-selection-light: #d5e9f2;
28+
--background-color-selection-dark: #002c40;
29+
--background-color-disabled: rgba(28, 27, 31, 0.1);
30+
--text-color-default: #222222;
31+
--text-color-secondary: #505050;
32+
--text-color-heading: #01354f;
33+
--text-color-disabled: #4e4f4f;
34+
--text-color-on-dark: #ffffff;
35+
--border-color-dark: #696969;
36+
--border-color-light: #bbbbbb;
37+
--border-color-form-fields: #777777;
38+
--border-color-transparent: transparent;
39+
--radius: 4px;
40+
--radius-full: 9999px;
41+
--shadow: 0 0 4px rgba(0, 0, 0, 0.5);
10042
--font-sans: 'Noto Sans', ui-sans-serif, system-ui, sans-serif,
10143
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
10244
--text-xs-normal: 0.625rem;

0 commit comments

Comments
 (0)