Skip to content

Commit f724d53

Browse files
update button color and extract colors to global theme
1 parent 944198a commit f724d53

File tree

5 files changed

+140
-10
lines changed

5 files changed

+140
-10
lines changed

web-integrations/javascript-sdk/client-side/html/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ <h2>${IDENTITY_NAME} Integration Status</h2>
117117
<div class="tooltip">
118118
<span class="tooltip-trigger">?</span>
119119
<div class="tooltip-content">
120-
The ${IDENTITY_NAME} token used for targeted advertising. This token is passed to advertising partners and automatically refreshed by the SDK in the background.
120+
This token is passed to the bidstream and used for targeted advertising. It is automatically refreshed by the SDK in the background when expired.
121121
</div>
122122
</div>
123123
</div>
@@ -131,7 +131,7 @@ <h2>${IDENTITY_NAME} Integration Status</h2>
131131
<div class="tooltip">
132132
<span class="tooltip-trigger">?</span>
133133
<div class="tooltip-content">
134-
Indicates whether the user needs to generate a new ${IDENTITY_NAME} token. Returns "yes" when no valid identity exists or the current identity has expired.
134+
Indicates whether a new ${IDENTITY_NAME} token needs to be generated. Returns "yes" when no valid identity exists or the current identity has expired.
135135
</div>
136136
</div>
137137
</div>
@@ -228,7 +228,7 @@ <h4>What's Happening?</h4>
228228
<ul>
229229
<li><strong>Client-Side Token Generation:</strong> The SDK generates tokens directly in the browser using your public credentials</li>
230230
<li><strong>Auto-Refresh:</strong> Tokens are automatically refreshed in the background to maintain up-to-date identity</li>
231-
<li><strong>Local Storage:</strong> Identity is stored in browser storage for persistence across page loads</li>
231+
<li><strong>Local Storage:</strong> Identity is stored in localStorage (__uid2_advertising_token or __euid_advertising_token) for persistence across page loads</li>
232232
</ul>
233233
</div>
234234

web-integrations/javascript-sdk/client-side/html/stylesheets/app.css

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@
1212
--sidebar-bg: #FFF7ED;
1313
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
1414
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
15+
16+
/* Button Colors */
17+
--button-navy: rgba(2, 10, 64, 1);
18+
--button-navy-hover: rgba(2, 10, 64, 0.9);
19+
20+
/* Link Colors */
21+
--link-color: #0459fd;
22+
--link-hover: #0347cc;
23+
24+
/* Tooltip Colors */
25+
--tooltip-bg: #1F2937;
26+
--tooltip-trigger: #3B82F6;
27+
--tooltip-trigger-hover: #2563EB;
1528
}
1629

1730
* {
@@ -129,15 +142,15 @@ p {
129142
}
130143

131144
a {
132-
color: #0459fd; /* Self-serve portal link color */
145+
color: var(--link-color);
133146
text-decoration: none;
134147
font-weight: 600;
135148
border-bottom: 2px solid transparent;
136149
transition: border-color 0.2s ease;
137150
}
138151

139152
a:hover {
140-
border-bottom-color: #0459fd;
153+
border-bottom-color: var(--link-color);
141154
}
142155

143156
/* State Table */
@@ -223,7 +236,7 @@ a:hover {
223236
/* Buttons */
224237
.button {
225238
padding: 0.875rem 2rem;
226-
background: linear-gradient(135deg, var(--primary-orange) 0%, #FF8566 100%);
239+
background: var(--button-navy);
227240
color: white;
228241
border: none;
229242
font-size: 0.95rem;
@@ -235,8 +248,9 @@ a:hover {
235248
}
236249

237250
.button:hover {
251+
background: var(--button-navy-hover);
238252
transform: translateY(-2px);
239-
box-shadow: 0 6px 12px rgba(255, 107, 53, 0.3);
253+
box-shadow: 0 6px 12px rgba(2, 10, 64, 0.3);
240254
}
241255

242256
.button:active {
@@ -287,7 +301,7 @@ a:hover {
287301
width: 16px;
288302
height: 16px;
289303
border-radius: 50%;
290-
background-color: #3B82F6;
304+
background-color: var(--tooltip-trigger);
291305
color: white;
292306
border: none;
293307
font-size: 0.7rem;
@@ -301,7 +315,7 @@ a:hover {
301315
}
302316

303317
.tooltip-trigger:hover {
304-
background-color: #2563EB;
318+
background-color: var(--tooltip-trigger-hover);
305319
transform: scale(1.05);
306320
}
307321

@@ -312,7 +326,7 @@ a:hover {
312326
bottom: calc(100% + 8px); /* Position above with gap */
313327
left: 50%;
314328
transform: translateX(-50%);
315-
background-color: #1F2937;
329+
background-color: var(--tooltip-bg);
316330
color: white;
317331
padding: 10px;
318332
border-radius: 4px;
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Brand Colors
2+
$color-primary-orange: #FF6B35;
3+
$color-primary-dark: #2D3748;
4+
$color-accent-teal: #0D9488;
5+
$color-accent-yellow: #FBBF24;
6+
7+
// Text Colors
8+
$color-text-dark: #1A202C;
9+
$color-text-gray: #718096;
10+
11+
// Background Colors
12+
$color-bg-white: #FFFFFF;
13+
$color-bg-light: #F7FAFC;
14+
$color-sidebar-bg: #FFF7ED;
15+
16+
// Border & Shadow Colors
17+
$color-border: #E2E8F0;
18+
19+
// Button Colors
20+
$color-button-navy: rgba(2, 10, 64, 1);
21+
$color-button-navy-hover: rgba(2, 10, 64, 0.9);
22+
23+
// Link Colors
24+
$color-link: #0459fd;
25+
$color-link-hover: #0347cc;
26+
27+
// Tooltip Colors
28+
$color-tooltip-bg: #1F2937;
29+
$color-tooltip-trigger: #3B82F6;
30+
$color-tooltip-trigger-hover: #2563EB;
31+

web-integrations/styles/themes.css

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* Centralized UID2 Examples Theme Variables
3+
*
4+
* This file defines the color palette and design tokens used across all UID2 example sites.
5+
* To use in your site, either:
6+
* 1. Link this file in your HTML: <link rel="stylesheet" href="path/to/themes.css">
7+
* 2. Copy these :root variables into your site's CSS file
8+
*/
9+
10+
:root {
11+
/* Brand Colors */
12+
--primary-orange: #FF6B35;
13+
--primary-dark: #2D3748;
14+
--accent-teal: #0D9488;
15+
--accent-yellow: #FBBF24;
16+
17+
/* Text Colors */
18+
--text-dark: #1A202C;
19+
--text-gray: #718096;
20+
21+
/* Background Colors */
22+
--bg-white: #FFFFFF;
23+
--bg-light: #F7FAFC;
24+
--sidebar-bg: #FFF7ED;
25+
26+
/* Border Colors */
27+
--border-color: #E2E8F0;
28+
29+
/* Button Colors */
30+
--button-navy: rgba(2, 10, 64, 1);
31+
--button-navy-hover: rgba(2, 10, 64, 0.9);
32+
33+
/* Link Colors */
34+
--link-color: #0459fd;
35+
--link-hover: #0347cc;
36+
37+
/* Tooltip Colors */
38+
--tooltip-bg: #1F2937;
39+
--tooltip-trigger: #3B82F6;
40+
--tooltip-trigger-hover: #2563EB;
41+
42+
/* Shadows */
43+
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
44+
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
45+
}
46+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
@use "colors" as *;
2+
3+
:root {
4+
/* Brand Colors */
5+
--primary-orange: #{$color-primary-orange};
6+
--primary-dark: #{$color-primary-dark};
7+
--accent-teal: #{$color-accent-teal};
8+
--accent-yellow: #{$color-accent-yellow};
9+
10+
/* Text Colors */
11+
--text-dark: #{$color-text-dark};
12+
--text-gray: #{$color-text-gray};
13+
14+
/* Background Colors */
15+
--bg-white: #{$color-bg-white};
16+
--bg-light: #{$color-bg-light};
17+
--sidebar-bg: #{$color-sidebar-bg};
18+
19+
/* Border Colors */
20+
--border-color: #{$color-border};
21+
22+
/* Button Colors */
23+
--button-navy: #{$color-button-navy};
24+
--button-navy-hover: #{$color-button-navy-hover};
25+
26+
/* Link Colors */
27+
--link-color: #{$color-link};
28+
--link-hover: #{$color-link-hover};
29+
30+
/* Tooltip Colors */
31+
--tooltip-bg: #{$color-tooltip-bg};
32+
--tooltip-trigger: #{$color-tooltip-trigger};
33+
--tooltip-trigger-hover: #{$color-tooltip-trigger-hover};
34+
35+
/* Shadows */
36+
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
37+
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
38+
}
39+

0 commit comments

Comments
 (0)