diff --git a/src/advisor-view.component.vue b/src/advisor-view.component.vue index cdc894f..3343af0 100644 --- a/src/advisor-view.component.vue +++ b/src/advisor-view.component.vue @@ -176,7 +176,8 @@ function onComparisonClosed(): void { margin: 0 auto; padding: var(--zv-space-lg); overflow: hidden; - background: transparent; + background: var(--zv-bg-surface-alt); + border-radius: var(--zv-radius-lg); color: var(--zv-text-inverse); text-align: center; font-family: var(--zv-font-body); diff --git a/src/components/answer/choice-answer.component.vue b/src/components/answer/choice-answer.component.vue index 52ac784..d7d8fa3 100644 --- a/src/components/answer/choice-answer.component.vue +++ b/src/components/answer/choice-answer.component.vue @@ -151,7 +151,8 @@ const handleSelect = () => { flex-direction: column; width: var(--zv-choice-card-width); max-width: 100%; - border-radius: var(--zv-radius-sm); + border: var(--zv-border-width-thin) solid var(--zv-border-soft); + border-radius: var(--zv-radius-lg); overflow: hidden; box-shadow: var(--zv-shadow-sm); outline: var(--zv-border-width-thick) solid var(--zv-border-transparent); @@ -164,7 +165,8 @@ const handleSelect = () => { } .choice-answer:focus-visible { - outline-color: var(--zv-border-brand); + outline-color: var(--zv-focus-ring-color); + outline-offset: var(--zv-border-width-thick); } .choice-answer:hover:not(.choice-answer--disabled) { @@ -213,7 +215,7 @@ const handleSelect = () => { } .choice-answer--selected .choice-answer__content { - background-color: var(--zv-bg-brand); + background-color: var(--zv-bg-selection); } .choice-answer__label { @@ -221,7 +223,7 @@ const handleSelect = () => { font-size: var(--zv-font-size-base); font-weight: var(--zv-font-weight-semibold); line-height: var(--zv-line-height-tight); - color: var(--zv-text-brand); + color: var(--zv-text-primary); text-align: center; word-break: break-word; overflow: hidden; @@ -232,7 +234,7 @@ const handleSelect = () => { } .choice-answer--selected .choice-answer__label { - color: var(--zv-text-inverse); + color: var(--zv-text-brand); } @container zv-advisor (max-width: 640px) { @@ -242,6 +244,7 @@ const handleSelect = () => { max-width: var(--zv-content-narrow); align-items: center; padding-right: var(--zv-space-md); + background-color: var(--zv-bg-surface); } .choice-answer__image-wrap { @@ -268,7 +271,7 @@ const handleSelect = () => { } .choice-answer--selected { - background-color: var(--zv-bg-brand); + background-color: var(--zv-bg-selection); } .choice-answer--selected .choice-answer__content { diff --git a/src/components/product-card/components/product-card-features/product-card-features.component.vue b/src/components/product-card/components/product-card-features/product-card-features.component.vue index d3acceb..ff4a51d 100644 --- a/src/components/product-card/components/product-card-features/product-card-features.component.vue +++ b/src/components/product-card/components/product-card-features/product-card-features.component.vue @@ -67,6 +67,11 @@ const { visibleProperties, attributeKey, attributeLabel, attributeValue } = color: var(--zv-text-primary); } +.product-card-features__toggle:focus-visible { + outline: var(--zv-focus-ring-width) solid var(--zv-focus-ring-color); + outline-offset: var(--zv-space-2xs); +} + .product-card-features__label { font-weight: var(--zv-font-weight-medium); } diff --git a/src/components/product-card/components/product-card-footer/product-card-footer.component.vue b/src/components/product-card/components/product-card-footer/product-card-footer.component.vue index aebe4c7..240efa5 100644 --- a/src/components/product-card/components/product-card-footer/product-card-footer.component.vue +++ b/src/components/product-card/components/product-card-footer/product-card-footer.component.vue @@ -204,7 +204,7 @@ const handleAddToCart = (): void => { gap: var(--zv-space-sm); width: 100%; height: var(--zv-size-lg); - border-radius: var(--zv-radius-md); + border-radius: var(--zv-radius-pill); font-family: var(--zv-font-body); font-weight: var(--zv-font-weight-semibold); font-size: var(--zv-font-size-base); @@ -221,6 +221,11 @@ const handleAddToCart = (): void => { transform: translateY(calc(-1 * var(--zv-translate-xs))); } +.product-card-footer__btn:focus-visible { + outline: var(--zv-focus-ring-width) solid var(--zv-focus-ring-color); + outline-offset: var(--zv-space-2xs); +} + .product-card-footer__btn--filled { background: var(--zv-bg-brand); color: var(--zv-text-inverse); @@ -230,10 +235,14 @@ const handleAddToCart = (): void => { background: var(--zv-bg-brand-hover); } +.product-card-footer__btn--filled:active { + background: var(--zv-bg-brand-pressed); +} + .product-card-footer__btn--outline { background: var(--zv-bg-surface); color: var(--zv-text-brand); - border: var(--zv-border-width-md) solid var(--zv-border-strong); + border: var(--zv-border-width-thin) solid var(--zv-border-brand); } .product-card-footer__btn--outline:hover { diff --git a/src/components/product-card/components/product-card-image/product-card-image.component.vue b/src/components/product-card/components/product-card-image/product-card-image.component.vue index 2e7c194..4fadecd 100644 --- a/src/components/product-card/components/product-card-image/product-card-image.component.vue +++ b/src/components/product-card/components/product-card-image/product-card-image.component.vue @@ -28,7 +28,7 @@ defineProps<{ position: relative; aspect-ratio: var(--zv-product-card-image-aspect); width: 100%; - background: var(--zv-bg-surface-alt); + background: var(--zv-bg-surface); display: flex; align-items: center; justify-content: center; diff --git a/src/components/product-card/product-card.component.vue b/src/components/product-card/product-card.component.vue index 45499e0..76b72c4 100644 --- a/src/components/product-card/product-card.component.vue +++ b/src/components/product-card/product-card.component.vue @@ -151,11 +151,12 @@ const { recordClickout } = useProductClickout(() => props.product); transition: transform var(--zv-duration-slow) var(--zv-easing-default), var(--zv-transition-shadow), var(--zv-transition-border-base); box-shadow: var(--zv-shadow-xs); + --zv-product-card-image-aspect: 4 / 3; } .product-card:hover { transform: translateY(calc(-1 * var(--zv-translate-sm))); - border-color: var(--zv-border-strong); + border-color: var(--zv-border-default); box-shadow: var(--zv-shadow-lg); } @@ -179,7 +180,7 @@ const { recordClickout } = useProductClickout(() => props.product); .product-card__content { display: flex; flex-direction: column; - padding: var(--zv-space-lg); + padding: var(--zv-space-xl); gap: var(--zv-space-md); flex: 1 1 auto; text-align: center; @@ -209,6 +210,11 @@ const { recordClickout } = useProductClickout(() => props.product); -webkit-box-orient: vertical; } +.product-card__name:focus-visible { + outline: var(--zv-focus-ring-width) solid var(--zv-focus-ring-color); + outline-offset: var(--zv-space-2xs); +} + .product-card__name:hover { text-decoration: underline; } diff --git a/src/components/results-page/results-page.component.vue b/src/components/results-page/results-page.component.vue index c57bf38..7d1af08 100644 --- a/src/components/results-page/results-page.component.vue +++ b/src/components/results-page/results-page.component.vue @@ -167,11 +167,11 @@ const loadMore = () => { min-height: var(--zv-size-lg); padding: 0 var(--zv-space-md); border-radius: var(--zv-radius-pill); - border: var(--zv-border-width-md) solid var(--zv-border-dim); + border: var(--zv-border-width-thin) solid var(--zv-border-brand); background: var(--zv-bg-surface); - color: var(--zv-text-primary); + color: var(--zv-text-brand); font-family: var(--zv-font-body); - font-weight: var(--zv-font-weight-medium); + font-weight: var(--zv-font-weight-semibold); font-size: var(--zv-font-size-base); line-height: var(--zv-line-height-none); cursor: pointer; @@ -179,7 +179,6 @@ const loadMore = () => { } .results-page__load-more-btn:hover { - border-color: var(--zv-border-strong); background: var(--zv-bg-surface-alt); } diff --git a/src/css/tokens.css b/src/css/tokens.css index d57f441..fc2db59 100644 --- a/src/css/tokens.css +++ b/src/css/tokens.css @@ -9,35 +9,35 @@ :root { /* ---------- Brand palette ---------- */ - --zv-color-primary: #002673; - --zv-color-secondary: #0040b0; + --zv-color-primary: #1f4d3a; + --zv-color-secondary: #2a644b; --zv-color-brand: #1f4d3a; - --zv-color-brand-hover: #0d3a62; - --zv-color-brand-pressed: #0b3458; + --zv-color-brand-hover: #2a644b; + --zv-color-brand-pressed: #173b2c; /* ---------- Neutrals ---------- */ --zv-color-white: #ffffff; --zv-color-black: #000000; --zv-color-surface: #ffffff; - --zv-color-surface-alt: #f5f7fa; - --zv-color-surface-muted: #eceef2; - --zv-color-surface-selection: #f0f4f8; + --zv-color-surface-alt: #f6f1e7; + --zv-color-surface-muted: #ebe4d6; + --zv-color-surface-selection: #e6efe9; /* ---------- Text ---------- */ - --zv-color-text: #111111; - --zv-color-text-secondary: #555555; - --zv-color-text-muted: #767676; + --zv-color-text: #1c2420; + --zv-color-text-secondary: #4a554f; + --zv-color-text-muted: #5c665f; --zv-color-text-inverse: #ffffff; /* ---------- Borders ---------- */ - --zv-color-border: #e0e0e0; - --zv-color-border-soft: #eceef2; - --zv-color-border-strong: #8b94a3; - --zv-color-border-dim: #c2c2c2; + --zv-color-border: #ddd6c8; + --zv-color-border-soft: #ebe4d6; + --zv-color-border-strong: #7d867f; + --zv-color-border-dim: #c4bcad; /* ---------- Feedback ---------- */ - --zv-color-error: #dc3545; - --zv-color-success: #27ae60; + --zv-color-error: #b3261e; + --zv-color-success: #1e7a46; /* ---------- Zoe assistant ---------- */ --zv-color-zoe-accent: #008ecf; @@ -55,20 +55,22 @@ --zv-shadow-color-weak: rgba(0, 0, 0, 0.06); --zv-shadow-color-md: rgba(0, 0, 0, 0.12); --zv-shadow-color-strong: rgba(0, 0, 0, 0.2); - --zv-shadow-color-brand-soft: rgba(9, 42, 69, 0.08); - --zv-shadow-color-brand-md: rgba(9, 42, 69, 0.15); - --zv-shadow-color-brand-strong: rgba(9, 42, 69, 0.25); - --zv-shadow-color-brand-overlay: rgba(9, 42, 69, 0.05); + --zv-shadow-color-brand-soft: rgba(31, 77, 58, 0.08); + --zv-shadow-color-brand-md: rgba(31, 77, 58, 0.15); + --zv-shadow-color-brand-strong: rgba(31, 77, 58, 0.25); + --zv-shadow-color-brand-overlay: rgba(31, 77, 58, 0.05); --zv-shadow-color-black-overlay: rgba(0, 0, 0, 0.5); --zv-shadow-color-black-scrim: rgba(0, 0, 0, 0.35); --zv-shadow-color-white-ring: rgba(255, 255, 255, 0.25); --zv-shadow-color-white-scrim: rgba(255, 255, 255, 0.7); - --zv-shadow-color-error: rgba(220, 53, 69, 0.15); + --zv-shadow-color-error: rgba(179, 38, 30, 0.15); --zv-shadow-color-zoe-panel: rgba(0, 0, 0, 0.16); --zv-shadow-color-zoe-drag: rgba(0, 0, 0, 0.28); /* ---------- Font families (primitives) ---------- */ - --zv-font-family-ubuntu: 'Ubuntu', sans-serif; + --zv-font-family-sans: system-ui, -apple-system, 'Segoe UI', Roboto, + 'Helvetica Neue', Arial, sans-serif; + --zv-font-family-serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif; /* ---------- Font size primitives (8 steps) ---------- */ --zv-font-size-0: 0.6875rem; @@ -126,9 +128,9 @@ --zv-content-5: 1440px; /* ---------- Radius primitives (5 values) ---------- */ - --zv-radius-0: 4px; - --zv-radius-1: 8px; - --zv-radius-2: 12px; + --zv-radius-0: 6px; + --zv-radius-1: 10px; + --zv-radius-2: 16px; --zv-radius-3: 50%; --zv-radius-4: 9999px; diff --git a/src/css/variables.css b/src/css/variables.css index 3ab5038..8e5f81f 100644 --- a/src/css/variables.css +++ b/src/css/variables.css @@ -145,8 +145,8 @@ --zv-bg-error: var(--zv-color-error); /* ---------- Font families (semantic) ---------- */ - --zv-font-heading: var(--zv-font-family-ubuntu); - --zv-font-body: var(--zv-font-family-ubuntu); + --zv-font-heading: var(--zv-font-family-serif); + --zv-font-body: var(--zv-font-family-sans); /* ---------- Accent colours ---------- */ --zv-color-accent: var(--zv-color-primary); @@ -204,9 +204,12 @@ /* ---------- Shadows ---------- */ --zv-shadow-xs: 0 1px 2px var(--zv-shadow-color-weak); - --zv-shadow-sm: 0 1px 6px var(--zv-shadow-color-weak); - --zv-shadow-md: 0 2px 8px var(--zv-shadow-color-md); - --zv-shadow-lg: 0 4px 16px var(--zv-shadow-color-md); + --zv-shadow-sm: 0 1px 2px var(--zv-shadow-color-weak), + 0 2px 8px var(--zv-shadow-color-weak); + --zv-shadow-md: 0 1px 2px var(--zv-shadow-color-weak), + 0 6px 16px var(--zv-shadow-color-md); + --zv-shadow-lg: 0 2px 4px var(--zv-shadow-color-weak), + 0 12px 28px var(--zv-shadow-color-md); --zv-shadow-xl: 0 8px 32px var(--zv-shadow-color-md); --zv-shadow-toast: 0 2px 8px var(--zv-shadow-color-brand-md); --zv-shadow-toast-hover: 0 4px 16px var(--zv-shadow-color-brand-strong); @@ -220,7 +223,7 @@ /* ---------- Focus shadows ---------- */ --zv-focus-shadow-ring: 0 0 0 var(--zv-border-width-thick) var(--zv-color-surface), - 0 0 0 var(--zv-border-width-thick) var(--zv-color-brand); + 0 0 0 calc(2 * var(--zv-border-width-thick)) var(--zv-color-brand); --zv-focus-shadow-soft: 0 0 0 var(--zv-border-width-thick) var(--zv-shadow-color-brand-md); --zv-focus-shadow-error: 0 0 0 var(--zv-border-width-thick)