Skip to content

Commit bdbe7d6

Browse files
committed
css: update base, site, vars for design refresh
1 parent e86543c commit bdbe7d6

File tree

3 files changed

+34
-19
lines changed

3 files changed

+34
-19
lines changed

docs/ui/src/css/base.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ html {
99
font-size: var(--body-font-size);
1010
height: 100%;
1111
scroll-behavior: smooth;
12+
/* Add static gradient background */
13+
background:
14+
radial-gradient(circle at 25% 75%, rgba(130, 0, 255, 0.4), transparent 40%),
15+
radial-gradient(circle at 75% 25%, rgba(0, 98, 255, 0.5), transparent 45%),
16+
radial-gradient(circle at 50% 50%, rgba(72, 0, 120, 0.6), transparent 60%),
17+
radial-gradient(circle at 60% 80%, rgba(200, 0, 255, 0.3), transparent 50%),
18+
linear-gradient(135deg, #3a0ca3, #4361ee, #7209b7);
19+
background-attachment: fixed;
20+
background-blend-mode: screen;
21+
background-size: cover;
22+
background-repeat: no-repeat;
1223
}
1324

1425
@media screen and (min-width: 1024px) {
@@ -18,13 +29,14 @@ html {
1829
}
1930

2031
body {
21-
background: var(--body-background);
32+
/* Remove the solid background since we're using gradient on html */
33+
/* background: var(--body-background); */
2234
color: var(--body-font-color);
2335
font-family: var(--body-font-family);
2436
line-height: var(--body-line-height);
2537
margin: 0;
2638
tab-size: 4;
27-
word-wrap: anywhere; /* aka overflow-wrap; used when hyphens are disabled or aren't sufficient */
39+
word-wrap: anywhere;
2840
}
2941

3042
a {

docs/ui/src/css/site.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
@import "typeface-roboto.css";
23
@import "typeface-roboto-mono.css";
34
@import "vars.css";
@@ -15,3 +16,5 @@
1516
@import "footer.css";
1617
@import "highlight.css";
1718
@import "print.css";
19+
20+
/* Inherits styles from landing page */

docs/ui/src/css/vars.css

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
:root {
22
/* colors */
3-
--color-white: #fff;
4-
--color-smoke-10: #fefefe;
5-
--color-smoke-30: #fafafa;
6-
--color-smoke-50: #f5f5f5;
7-
--color-smoke-70: #f0f0f0;
8-
--color-smoke-90: #e1e1e1;
9-
--color-gray-10: #c1c1c1;
10-
--color-gray-30: #9c9c9c;
11-
--color-gray-40: #8e8e8e;
12-
--color-gray-50: #808080;
13-
--color-gray-70: #5d5d5d;
14-
--color-jet-20: #4a4a4a;
15-
--color-jet-30: #424242;
16-
--color-jet-50: #333;
17-
--color-jet-70: #222;
18-
--color-jet-80: #191919;
19-
--color-black: #000;
3+
--color-white: rgba(255, 255, 255, 1);
4+
--color-smoke-10: rgba(254, 254, 254, 0.95);
5+
--color-smoke-30: rgba(250, 250, 250, 0.9);
6+
--color-smoke-50: rgba(245, 245, 245, 0.85);
7+
--color-smoke-70: rgba(240, 240, 240, 0.8);
8+
--color-smoke-90: rgba(225, 225, 225, 0.75);
9+
--color-gray-10: rgba(193, 193, 193, 0.7);
10+
--color-gray-30: rgba(156, 156, 156, 0.65);
11+
--color-gray-40: rgba(142, 142, 142, 0.6);
12+
--color-gray-50: rgba(128, 128, 128, 0.55);
13+
--color-gray-70: rgba(93, 93, 93, 0.5);
14+
--color-jet-20: rgba(74, 74, 74, 0.45);
15+
--color-jet-30: rgba(66, 66, 66, 0.4);
16+
--color-jet-50: rgba(51, 51, 51, 0.35);
17+
--color-jet-70: rgba(34, 34, 34, 0.3);
18+
--color-jet-80: rgba(25, 25, 25, 0.25);
19+
--color-black: rgba(0, 0, 0, 0.2);
2020
/* fonts */
2121
--rem-base: 18; /* used to compute rem value from desired pixel value (e.g., calc(18 / var(--rem-base) * 1rem) = 18px) */
2222
--body-font-size: 1.0625em; /* 17px */

0 commit comments

Comments
 (0)