Skip to content

Commit b5cf156

Browse files
feat: add widget gradient color variables for light and dark themes (#1062)
* feat: add widget gradient color variables for light and dark themes * fix: minor changes * fix: minor changes
1 parent 45948d3 commit b5cf156

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

packages/ui/src/shared-style-variables.css

+28
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,13 @@
14651465
--canary-graph-gradient-executing-1: hsla(var(--canary-amber-150));
14661466
--canary-graph-gradient-executing-2: hsla(var(--canary-amber-600));
14671467
--canary-graph-viewport-bg: hsla(var(--canary-base-chrome-150));
1468+
1469+
--canary-widget-bg-gradient-from: var(--canary-base-chrome-100);
1470+
--canary-widget-bg-gradient-to: var(--canary-pure-white);
1471+
--canary-widget-number-gradient-from: var(--canary-base-chrome-500);
1472+
--canary-widget-number-gradient-to: var(--canary-base-chrome-600);
1473+
--canary-widget-number-bg-gradient-from: var(--canary-base-chrome-150);
1474+
--canary-widget-number-bg-gradient-to: var(--canary-pure-white);
14681475
}
14691476

14701477
.dark,
@@ -1927,6 +1934,13 @@
19271934
--canary-graph-gradient-executing-2: hsla(var(--canary-base-chrome-850));
19281935
--canary-graph-viewport-bg: hsla(var(--canary-base-chrome-850) / 0.6);
19291936

1937+
--canary-widget-number-gradient-from: var(--canary-base-chrome-200) / 1;
1938+
--canary-widget-number-gradient-to: var(--canary-base-chrome-600) / 0;
1939+
--canary-widget-number-bg-gradient-from: var(--canary-base-chrome-800);
1940+
--canary-widget-number-bg-gradient-to: var(--canary-base-chrome-850);
1941+
--canary-widget-bg-gradient-from: var(--canary-base-chrome-850);
1942+
--canary-widget-bg-gradient-to: var(--canary-base-chrome-950);
1943+
19301944
/* Navigation gradients */
19311945
/* We’ve removed them until we find a better solution in the design.
19321946
--canary-nav-gradient-1-1: var();
@@ -2180,6 +2194,13 @@
21802194
--canary-graph-gradient-executing-2: hsla(var(--canary-base-chrome-700));
21812195
--canary-graph-viewport-bg: hsla(var(--canary-base-chrome-700) / 0.5);
21822196

2197+
--canary-widget-number-gradient-from: var(--canary-base-chrome-100);
2198+
--canary-widget-number-gradient-to: var(--canary-base-chrome-500);
2199+
--canary-widget-number-bg-gradient-from: var(--canary-base-chrome-800);
2200+
--canary-widget-number-bg-gradient-to: var(--canary-base-chrome-850);
2201+
--canary-widget-bg-gradient-from: var(--canary-base-chrome-850);
2202+
--canary-widget-bg-gradient-to: var(--canary-base-chrome-950);
2203+
21832204
/* Navigation gradients */
21842205
/* We’ve removed them until we find a better solution in the design.
21852206
--canary-nav-gradient-1-1: var();
@@ -2429,5 +2450,12 @@
24292450
--canary-graph-gradient-executing-1: hsla(var(--canary-amber-200));
24302451
--canary-graph-gradient-executing-2: hsla(var(--canary-base-chrome-850));
24312452
--canary-graph-viewport-bg: hsla(var(--canary-base-chrome-850) / 0.4);
2453+
2454+
--canary-widget-number-gradient-from: var(--canary-grey-200) / 1;
2455+
--canary-widget-number-gradient-to: var(--canary-base-chrome-600) / 0;
2456+
--canary-widget-number-bg-gradient-from: var(--canary-base-chrome-800);
2457+
--canary-widget-number-bg-gradient-to: var(--canary-base-chrome-850);
2458+
--canary-widget-bg-gradient-from: var(--canary-base-chrome-850);
2459+
--canary-widget-bg-gradient-to: var(--canary-base-chrome-950);
24322460
}
24332461
}

0 commit comments

Comments
 (0)