Skip to content

Commit f4677a0

Browse files
authored
Merge pull request #2206 from anyproto/feat/color-icons-palette
2 parents 1a26ff6 + 54cb85a commit f4677a0

5 files changed

Lines changed: 61 additions & 39 deletions

File tree

src/json/theme.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ export default {
1414
},
1515
bg: {
1616
grey: '#9b9b9b',
17-
yellow: '#e9d619',
18-
orange: '#fe9a00',
19-
red: '#fb592c',
20-
pink: '#f6339a',
21-
purple: '#ad46ff',
22-
blue: '#3e58eb',
17+
yellow: '#dcc000',
18+
orange: '#f08a00',
19+
red: '#f04520',
20+
pink: '#f030a0',
21+
purple: '#a840f0',
22+
blue: '#4a60f0',
2323
ice: '#2aa7ee',
2424
teal: '#00bba7',
25-
lime: '#5dd400',
25+
lime: '#5ec400',
2626
},
2727

2828
list: [ 'grey', 'yellow', 'orange', 'red', 'pink', 'purple', 'blue', 'ice', 'teal', 'lime' ],
@@ -38,16 +38,16 @@ export default {
3838

3939
color: {
4040
default: '#252525',
41-
grey: '#b6b6b6',
42-
yellow: '#e9d619',
43-
orange: '#fe9a00',
44-
red: '#fb592c',
45-
pink: '#f6339a',
46-
purple: '#ad46ff',
47-
blue: '#3e58eb',
41+
grey: '#9b9b9b',
42+
yellow: '#dcc000',
43+
orange: '#f08a00',
44+
red: '#f04520',
45+
pink: '#f030a0',
46+
purple: '#a840f0',
47+
blue: '#4a60f0',
4848
ice: '#2aa7ee',
4949
teal: '#00bba7',
50-
lime: '#5dd400',
50+
lime: '#5ec400',
5151
},
5252

5353
textColor: {
@@ -137,16 +137,16 @@ export default {
137137

138138
color: {
139139
default: '#e1e1e1',
140-
grey: '#737373',
141-
yellow: '#e9d619',
142-
orange: '#fe9a00',
143-
red: '#fb592c',
144-
pink: '#f6339a',
145-
purple: '#ad46ff',
146-
blue: '#3e58eb',
140+
grey: '#9b9b9b',
141+
yellow: '#dcc000',
142+
orange: '#f08a00',
143+
red: '#f04520',
144+
pink: '#f030a0',
145+
purple: '#a840f0',
146+
blue: '#4a60f0',
147147
ice: '#2aa7ee',
148148
teal: '#00bba7',
149-
lime: '#5dd400',
149+
lime: '#5ec400',
150150
},
151151

152152
textColor: {
@@ -181,7 +181,7 @@ export default {
181181
primaryColor: '#bb2528',
182182
primaryTextColor: '#fff',
183183
primaryBorderColor: '#7c0000',
184-
lineColor: '#F8b229',
184+
lineColor: '#f8b229',
185185
secondaryColor: '#006100',
186186
tertiaryColor: '#fff'
187187
},
@@ -227,7 +227,7 @@ export default {
227227
strokeHover: 'rgba(160, 160, 160, 0.7)', // Brighter hover
228228
},
229229
canvas: {
230-
background: '#1F1F1F',
230+
background: '#1f1f1f',
231231
grid: '#333333',
232232
nodeCenter: 'rgba(40, 40, 40, 0.95)', // Darker center for contrast
233233
nodeGlow: 'rgba(80, 100, 140, 0.1)', // Very weak general glow

src/scss/_vars.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,19 @@
128128
--color-tag-teal: #0caaa3;
129129
--color-tag-lime: #64b90f;
130130

131+
/* Icons */
132+
133+
--color-icons-yellow: #dcc000;
134+
--color-icons-orange: #f08a00;
135+
--color-icons-red: #f04520;
136+
--color-icons-pink: #f030a0;
137+
--color-icons-purple: #a840f0;
138+
--color-icons-blue: #4a60f0;
139+
--color-icons-ice: #2aa7ee;
140+
--color-icons-teal: #00bba7;
141+
--color-icons-lime: #5ec400;
142+
--color-icons-grey: #9b9b9b;
143+
131144
/* Font */
132145

133146
--font-size-9: 9px;

src/scss/component/icon.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
};
1818

1919
.icon.iconColor-default { color: var(--color-control-accent); }
20-
.icon.iconColor-grey { color: var(--color-grey); }
21-
.icon.iconColor-yellow { color: var(--color-yellow); }
22-
.icon.iconColor-orange { color: var(--color-orange); }
23-
.icon.iconColor-red { color: var(--color-red); }
24-
.icon.iconColor-pink { color: var(--color-pink); }
25-
.icon.iconColor-purple { color: var(--color-purple); }
26-
.icon.iconColor-blue { color: var(--color-blue); }
27-
.icon.iconColor-ice { color: var(--color-ice); }
28-
.icon.iconColor-teal { color: var(--color-teal); }
29-
.icon.iconColor-lime { color: var(--color-lime); }
20+
.icon.iconColor-grey { color: var(--color-icons-grey); }
21+
.icon.iconColor-yellow { color: var(--color-icons-yellow); }
22+
.icon.iconColor-orange { color: var(--color-icons-orange); }
23+
.icon.iconColor-red { color: var(--color-icons-red); }
24+
.icon.iconColor-pink { color: var(--color-icons-pink); }
25+
.icon.iconColor-purple { color: var(--color-icons-purple); }
26+
.icon.iconColor-blue { color: var(--color-icons-blue); }
27+
.icon.iconColor-ice { color: var(--color-icons-ice); }
28+
.icon.iconColor-teal { color: var(--color-icons-teal); }
29+
.icon.iconColor-lime { color: var(--color-icons-lime); }
3030
.icon.iconColor-darkGrey { color: var(--color-dark-grey); }
3131
.icon.iconColor-darkOrange { color: var(--color-dark-orange); }
3232
.icon.iconColor-darkRed { color: var(--color-dark-red); }

src/scss/component/iconObject.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
.icon.hasSvg { color: var(--color-text-tertiary); }
5656

5757
&.isDone {
58-
.icon.hasSvg { color: var(--color-lime); }
58+
.icon.hasSvg { color: var(--color-icons-lime); }
5959
}
6060
}
6161

src/scss/component/tag.scss

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,19 @@
3030
&.canEdit { padding-right: 20px; }
3131
}
3232

33-
&.isSelect {
34-
border: 1px solid var(--color-shape-secondary); background: var(--color-bg-primary) !important;
35-
}
33+
&.isSelect { border: 1px solid var(--color-shape-secondary); background: var(--color-bg-primary) !important; }
3634
&.isSelect {
3735
.tagRemove { display: none; }
36+
37+
&.textColor-grey .inner { color: var(--color-grey); }
38+
&.textColor-yellow .inner { color: var(--color-yellow); }
39+
&.textColor-orange .inner { color: var(--color-orange); }
40+
&.textColor-red .inner { color: var(--color-red); }
41+
&.textColor-pink .inner { color: var(--color-pink); }
42+
&.textColor-purple .inner { color: var(--color-purple); }
43+
&.textColor-blue .inner { color: var(--color-blue); }
44+
&.textColor-ice .inner { color: var(--color-ice); }
45+
&.textColor-teal .inner { color: var(--color-teal); }
46+
&.textColor-lime .inner { color: var(--color-lime); }
3847
}
3948
}

0 commit comments

Comments
 (0)