@@ -249,7 +237,7 @@ export default {
Organization's website
-
+
Privacy policy
-
+
${icons[name] || ''}
`.css`
:host {
- ${color ? `color: var(--ui-color-${color});` : ''}
+ color: ${color ? `var(--ui-color-${color});` : 'inherit'};
}
svg {
@@ -254,18 +254,6 @@ const icons = {
`,
- 'circle': html`
-
- `,
'close': html`
@@ -56,7 +56,6 @@ export default {
pointer-events: none;
}
-
button {
cursor: pointer;
background: none;
@@ -74,11 +73,7 @@ export default {
}
#button {
- --ui-text-color-heading: var(--ui-color-gray-300);
- }
-
- :host([disabled]) #button {
- --ui-text-color-heading: var(--ui-color-gray-300) !important;
+ color: var(--ui-color-gray-300);
}
#toggle {
@@ -88,21 +83,17 @@ export default {
}
#toggle span {
- background: var(--ui-color-white);
+ background: var(--ui-color-layout);
border-radius: 8px;
transition: left 0.2s;
}
- :host([disabled]) #toggle {
- background: var(--ui-color-gray-200) !important;
- }
-
:host([value]) #toggle {
background: var(--ui-color-gray-600);
}
:host([value]) #button {
- --ui-text-color-heading: var(--ui-color-gray-600);
+ color: var(--ui-color-gray-600);
}
:host([value]) #toggle span {
@@ -113,9 +104,17 @@ export default {
display: none;
}
+ :host([disabled]) #toggle {
+ background: var(--ui-color-gray-200);
+ }
+
+ :host([disabled]) #button {
+ color: var(--ui-color-gray-300);
+ }
+
@media (hover: hover) and (pointer: fine) {
button:hover #button {
- --ui-text-color-heading: var(--ui-color-gray-400);
+ color: var(--ui-color-gray-400);
}
button:hover #toggle {
diff --git a/packages/ui/src/modules/global/components/tooltip.js b/packages/ui/src/modules/global/components/tooltip.js
index 433712541..10078e083 100644
--- a/packages/ui/src/modules/global/components/tooltip.js
+++ b/packages/ui/src/modules/global/components/tooltip.js
@@ -119,7 +119,7 @@ export default {
}
#tooltip ui-text {
- background: var(--ui-color-white);
+ background: var(--ui-color-layout);
border: 0.5px solid var(--ui-color-gray-300);
box-shadow: 0px 4px 12px rgba(32, 44, 68, 0.2);
border-radius: 4px;
diff --git a/packages/ui/src/modules/onboarding/components/dialog.js b/packages/ui/src/modules/onboarding/components/dialog.js
index 4b24d475c..5088146a1 100644
--- a/packages/ui/src/modules/onboarding/components/dialog.js
+++ b/packages/ui/src/modules/onboarding/components/dialog.js
@@ -47,7 +47,7 @@ export default {
}
#dialog {
- background: var(--ui-color-white);
+ background: var(--ui-color-layout);
border-radius: 16px;
box-shadow: 30px 60px 160px rgba(0, 0, 0, 0.2);
}
@@ -59,7 +59,7 @@ export default {
position: absolute;
inset: 0;
border-radius: 16px;
- background: linear-gradient(0deg, var(--ui-color-white) 0%, rgba(47, 49, 54, 0) 100%);
+ background: linear-gradient(0deg, var(--ui-color-layout) 0%, rgba(47, 49, 54, 0) 100%);
}
`,
};
diff --git a/packages/ui/src/modules/onboarding/styles.css b/packages/ui/src/modules/onboarding/styles.css
index dae7dadd3..25084c566 100644
--- a/packages/ui/src/modules/onboarding/styles.css
+++ b/packages/ui/src/modules/onboarding/styles.css
@@ -47,7 +47,7 @@ html {
--ui-color-gray-300: #b9bbbe;
--ui-color-gray-200: #d4d6d9;
--ui-color-gray-100: #f2f4f7;
- --ui-color-white: white;
+ --ui-color-layout: white;
--ui-color-primary-700: #0077cc;
--ui-color-primary-500: #00aef0;
@@ -63,7 +63,7 @@ html {
--ui-color-error-400: #ff5d35;
--ui-color-current: currentColor;
- --ui-color-onboarding-card: var(--ui-color-white);
+ --ui-color-onboarding-card: var(--ui-color-layout);
/* Fonts */
@@ -105,8 +105,6 @@ html {
--ui-font-body-m: 14px / 20px var(--ui-font-family-body);
--ui-font-body-s: 12px / 18px var(--ui-font-family-body);
--ui-font-body-xs: 12px / 18px var(--ui-font-family-body);
-
- --ui-text-color-anchor: var(--ui-color-primary-500);
}
@media screen and (min-width: 768px) {
@@ -163,11 +161,16 @@ body {
font-size: 13px;
-moz-osx-font-smoothing: grayscale;
color: var(--ui-color-gray-600);
- background: var(--ui-color-white);
+ background: var(--ui-color-layout);
}
button,
label,
input {
font-family: inherit !important;
+ color: inherit;
+}
+
+a {
+ color: inherit;
}
diff --git a/packages/ui/src/modules/panel/components/action.js b/packages/ui/src/modules/panel/components/action.js
index 20ac4e8ee..700e9f4e2 100644
--- a/packages/ui/src/modules/panel/components/action.js
+++ b/packages/ui/src/modules/panel/components/action.js
@@ -28,7 +28,7 @@ export default {
justify-content: center;
appearance: none;
border: none;
- background: var(--ui-color-white);
+ background: var(--ui-color-layout);
border: 1px solid var(--ui-color-gray-200);
box-shadow: 0px 2px 6px rgba(32, 44, 68, 0.08);
border-radius: 8px;
@@ -49,7 +49,6 @@ export default {
box-shadow: none;
background: var(--ui-color-gray-100);
color: var(--ui-color-gray-600);
- --ui-text-color-heading: var(--ui-color-gray-600);
}
@media (hover: hover) and (pointer: fine) {
diff --git a/packages/ui/src/modules/panel/components/header.js b/packages/ui/src/modules/panel/components/header.js
index 7897c39d7..cbb0171c9 100644
--- a/packages/ui/src/modules/panel/components/header.js
+++ b/packages/ui/src/modules/panel/components/header.js
@@ -27,7 +27,7 @@ export default {
`.css`
:host {
- background: var(--ui-color-white);
+ background: var(--ui-color-layout);
box-shadow: var(--ui-shadow-header);
}
`,
diff --git a/packages/ui/src/modules/panel/components/list.js b/packages/ui/src/modules/panel/components/list.js
index 64fa20f5b..7910903ff 100644
--- a/packages/ui/src/modules/panel/components/list.js
+++ b/packages/ui/src/modules/panel/components/list.js
@@ -73,15 +73,12 @@ export default {
}
#arrow {
+ transform: rotate(180deg);
transition: transform 0.1s;
}
:host([closed]) #arrow {
- transform: rotate(180deg);
- }
-
- #content ::slotted(*) {
- --ui-text-color-anchor: var(--ui-color-gray-800);
+ transform: rotate(0deg);
}
:host([closed]) #content {
diff --git a/packages/ui/src/modules/panel/components/protection-status-toggle.js b/packages/ui/src/modules/panel/components/protection-status-toggle.js
index 809c26f71..3b9587ad0 100644
--- a/packages/ui/src/modules/panel/components/protection-status-toggle.js
+++ b/packages/ui/src/modules/panel/components/protection-status-toggle.js
@@ -13,8 +13,10 @@ import { dispatch, html } from 'hybrids';
function updateValue(value) {
return (host) => {
- host.value = value;
- dispatch(host, 'change', { detail: value });
+ if (host.value !== value) {
+ host.value = value;
+ dispatch(host, 'change', { detail: value });
+ }
};
}
@@ -34,7 +36,7 @@ export default {
onclick="${updateValue(true)}"
>
-
Blocked
+
Blocked
@@ -43,7 +45,7 @@ export default {
onclick="${updateValue(false)}"
>
- Trusted
+ Trusted
@@ -53,7 +55,6 @@ export default {
width: auto;
height: 28px;
color: var(--ui-color-gray-600);
- --ui-text-color-heading: currentColor;
}
ui-panel-action[active] {
diff --git a/packages/ui/src/modules/panel/dark.css b/packages/ui/src/modules/panel/dark.css
index d32d0a27f..8589a2ce6 100644
--- a/packages/ui/src/modules/panel/dark.css
+++ b/packages/ui/src/modules/panel/dark.css
@@ -1,18 +1,19 @@
@media (prefers-color-scheme: dark) {
html {
- --ui-color-gray-100: #0e1218;
- --ui-color-gray-200: #2b3444;
- --ui-color-gray-300: #57616e;
- --ui-color-gray-400: #7f8aa3;
- --ui-color-gray-600: #b2b9cf;
- --ui-color-gray-800: #eceff5;
- --ui-color-white: #181d27;
+ --ui-color-layout: #1f2125;
+
+ --ui-color-gray-100: #13151a;
+ --ui-color-gray-200: #2f3136;
+ --ui-color-gray-300: #636468;
+ --ui-color-gray-400: #88898c;
+ --ui-color-gray-600: #b9bbbe;
+ --ui-color-gray-800: #f2f4f7;
--ui-color-primary-100: #0a1e31;
- --ui-color-primary-200: #1a4065;
- --ui-color-primary-300: #144878;
- --ui-color-primary-500: #4fa9e4;
- --ui-color-primary-700: #7dc7f8;
+ --ui-color-primary-200: #00365c;
+ --ui-color-primary-300: #004f88;
+ --ui-color-primary-500: #00aef0;
+ --ui-color-primary-700: #33c7ff;
--ui-color-success-100: #056605;
--ui-color-success-500: #1b911b;
diff --git a/packages/ui/src/modules/panel/styles.css b/packages/ui/src/modules/panel/styles.css
index 0a74286bc..a02cd81ab 100644
--- a/packages/ui/src/modules/panel/styles.css
+++ b/packages/ui/src/modules/panel/styles.css
@@ -15,13 +15,14 @@
}
html {
+ --ui-color-layout: white;
+
--ui-color-gray-800: #202c44;
--ui-color-gray-600: #49556e;
--ui-color-gray-400: #9ba3b4;
--ui-color-gray-300: #c3cad9;
--ui-color-gray-200: #dfe3eb;
--ui-color-gray-100: #f0f2f7;
- --ui-color-white: white;
--ui-color-primary-700: #0077cc;
--ui-color-primary-500: #00aef0;
@@ -43,7 +44,7 @@ html {
--ui-color-danger-500: #f13436;
--ui-color-danger-100: #ffecec;
- --ui-color-backdrop: var(--ui-color-gray-800);
+ --ui-color-backdrop: var(--ui-color-gray-600);
--ui-color-warning-text: var(--ui-color-gray-800);
--ui-color-scroll-shadow: rgba(0, 0, 0, 0.1);
@@ -71,10 +72,6 @@ html {
--ui-font-button-m: var(--ui-font-label-m);
--ui-font-button-s: 600 14px / 24px var(--ui-font-family);
-
- /* UI components overwrites */
- --ui-text-color-heading: var(--ui-color-gray-800);
- --ui-text-color-anchor: var(--ui-color-primary-700);
}
html,
@@ -91,7 +88,7 @@ body {
font-size: 13px;
-moz-osx-font-smoothing: grayscale;
width: 100%;
- background: var(--ui-color-white);
+ background: var(--ui-color-layout);
max-height: 100dvh;
}