Skip to content

Commit 149dd86

Browse files
committed
Establish theme v2 structure and migrate home page as first consumer - PR_26152_023-theme-v2-home-migration
1 parent c0f6e44 commit 149dd86

16 files changed

Lines changed: 932 additions & 1 deletion
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* Home migration does not require reusable accordion patterns yet. */
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
.btn {
2+
border-radius: var(--radius-md);
3+
padding: var(--space-10) var(--space-14);
4+
font: inherit;
5+
font-weight: var(--font-weight-bold);
6+
display: inline-flex;
7+
align-items: center;
8+
justify-content: center;
9+
cursor: pointer;
10+
border: var(--border-standard);
11+
background: var(--panel-soft);
12+
color: var(--text)
13+
}
14+
15+
.btn.primary {
16+
background: var(--button-primary-background);
17+
border-color: var(--orange-border-strong)
18+
}
19+
20+
.btn.cyan {
21+
background: var(--button-cyan-background)
22+
}
23+
24+
.btn[aria-disabled=true] {
25+
opacity: var(--opacity-disabled)
26+
}
27+
28+
.return-to-top {
29+
min-width: var(--space-20);
30+
width: var(--space-44);
31+
height: var(--space-44);
32+
padding: var(--space-0);
33+
border: var(--border-standard);
34+
border-radius: var(--radius-pill);
35+
background: var(--panel-soft);
36+
color: var(--gold);
37+
line-height: var(--line-height-single);
38+
display: inline-grid;
39+
place-items: center;
40+
position: fixed;
41+
right: var(--return-to-top-offset);
42+
bottom: var(--return-to-top-offset);
43+
z-index: var(--z-index-lg);
44+
box-shadow: var(--shadow-md);
45+
opacity: var(--opacity-hidden);
46+
pointer-events: none;
47+
transform: translateY(var(--return-to-top-shift));
48+
transition: opacity var(--transition-duration-fast) ease, transform var(--transition-duration-fast) ease, color var(--transition-duration-fast) ease, border-color var(--transition-duration-fast) ease, background var(--transition-duration-fast) ease
49+
}
50+
51+
.return-to-top span {
52+
transform: translateY(var(--return-to-top-glyph-shift))
53+
}
54+
55+
.return-to-top.is-visible {
56+
opacity: 1;
57+
pointer-events: auto;
58+
transform: translateY(var(--space-0))
59+
}
60+
61+
.return-to-top:hover,
62+
.return-to-top:focus-visible {
63+
border-color: var(--gold);
64+
background: color-mix(in srgb, var(--gold) 24%, var(--panel));
65+
outline: none
66+
}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
:root {
2+
--iron-black: #121212;
3+
--foundry-space: #070a12;
4+
--panel-slate: #0f172a;
5+
--steel-gray: #6b7280;
6+
--molten-orange: #ff7a00;
7+
--forge-orange: #ff8a2a;
8+
--forge-gold: #ffc857;
9+
--electric-blue: #4da3ff;
10+
--arcade-cyan: #22d3ee;
11+
--bot-cyan: #20d6ff;
12+
--purple: #b877ff;
13+
--green: #7dd957;
14+
--pink: #ff4f8b;
15+
--red: #ff4d4d;
16+
--deep-red: #ff5757;
17+
--mint: #22c55e;
18+
--white: #ffffff;
19+
--button-primary-end: #b83b00;
20+
--button-cyan-start: #0891b2;
21+
--button-cyan-end: #0e7490;
22+
--switch-off: #1f2937;
23+
--tool-image-bg: #080d14;
24+
--dialog-bg: #0c111a;
25+
--bg: #090b0f;
26+
--panel: #111722;
27+
--panel2: #151b25;
28+
--panel-soft: rgba(255, 255, 255, .04);
29+
--panel-soft-strong: rgba(255, 255, 255, .055);
30+
--panel-soft-subtle: rgba(255, 255, 255, .025);
31+
--panel-overlay: rgba(7, 10, 18, .48);
32+
--panel-overlay-strong: rgba(7, 10, 18, .58);
33+
--header-bg: rgba(9, 11, 15, .82);
34+
--submenu-bg: rgba(9, 11, 15, .98);
35+
--orange-soft: rgba(255, 122, 0, .08);
36+
--orange-soft-medium: rgba(255, 122, 0, .10);
37+
--orange-soft-strong: rgba(255, 122, 0, .14);
38+
--gold-soft: rgba(255, 200, 87, .10);
39+
--blue-soft: rgba(77, 163, 255, .10);
40+
--cyan-soft: rgba(34, 211, 238, .10);
41+
--purple-soft: rgba(184, 119, 255, .08);
42+
--steel-soft: rgba(107, 114, 128, .14);
43+
--transparent: transparent;
44+
--body-background: radial-gradient(circle at 20% 0%, rgba(255, 122, 0, .16), var(--transparent) 28%), radial-gradient(circle at 80% 10%, rgba(32, 214, 255, .10), var(--transparent) 24%), var(--bg);
45+
--card-background: linear-gradient(180deg, var(--panel-soft-strong), var(--panel-soft-subtle));
46+
--game-art-background: linear-gradient(135deg, rgba(255, 122, 0, .22), rgba(77, 163, 255, .15));
47+
--cta-background: linear-gradient(135deg, rgba(255, 122, 0, .18), rgba(77, 163, 255, .11));
48+
--icon-background: linear-gradient(135deg, rgba(255, 122, 0, .28), rgba(77, 163, 255, .16));
49+
--button-primary-background: linear-gradient(135deg, var(--orange), var(--button-primary-end));
50+
--button-cyan-background: linear-gradient(135deg, var(--button-cyan-start), var(--button-cyan-end));
51+
--text: #f5f7fb;
52+
--muted: #aeb6c2;
53+
--orange: var(--molten-orange);
54+
--gold: var(--forge-gold);
55+
--cyan: var(--bot-cyan);
56+
--line: rgba(255, 255, 255, .12);
57+
--swatch-border: rgba(255, 255, 255, .28);
58+
--swatch-shadow-color: rgba(0, 0, 0, .16);
59+
--shadow-color: rgba(0, 0, 0, .28);
60+
--shadow-color-strong: rgba(0, 0, 0, .45);
61+
--orange-shadow-color: rgba(255, 122, 0, .24);
62+
--orange-border: rgba(255, 122, 0, .38);
63+
--orange-border-strong: rgba(255, 122, 0, .60);
64+
--orange-border-muted: rgba(255, 122, 0, .35);
65+
--gold-border-muted: rgba(255, 200, 87, .35);
66+
--cyan-border-muted: rgba(32, 214, 255, .35)
67+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* Home migration does not require reusable control patterns yet. */
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* Home migration does not require reusable dialog patterns yet. */
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
button,
2+
input[type="button"],
3+
input[type="submit"],
4+
input[type="reset"] {
5+
border-radius: var(--radius-md);
6+
padding: var(--space-10) var(--space-14);
7+
font: inherit;
8+
font-weight: var(--font-weight-bold);
9+
display: inline-flex;
10+
align-items: center;
11+
justify-content: center;
12+
cursor: pointer
13+
}
14+
15+
button:disabled,
16+
input[type="button"]:disabled,
17+
input[type="submit"]:disabled,
18+
input[type="reset"]:disabled {
19+
cursor: not-allowed
20+
}

0 commit comments

Comments
 (0)