|
7 | 7 | <%= render partial: '/pwb/custom_css/base_variables', locals: {} %> |
8 | 8 |
|
9 | 9 | :root { |
10 | | - /* Primary Colors - from palette with fallbacks */ |
11 | | - --barcelona-med: <%= @current_website.style_variables["primary_color"] || "#0B5394" %>; |
12 | | - --barcelona-terra: <%= @current_website.style_variables["secondary_color"] || "#B8503E" %>; |
13 | | - --barcelona-gold: <%= @current_website.style_variables["accent_color"] || "#E5B45A" %>; |
14 | | - --barcelona-warm: <%= @current_website.style_variables["text_color"] || "#2D3436" %>; |
15 | | - --barcelona-light: <%= @current_website.style_variables["background_color"] || @current_website.style_variables["light_color"] || "#FEFCF9" %>; |
16 | | - |
17 | | - /* Extended Mediterranean Blue Palette - derived using color-mix */ |
18 | | - --barcelona-med-50: color-mix(in srgb, <%= @current_website.style_variables["primary_color"] || "#0B5394" %> 5%, white); |
19 | | - --barcelona-med-100: color-mix(in srgb, <%= @current_website.style_variables["primary_color"] || "#0B5394" %> 15%, white); |
20 | | - --barcelona-med-200: color-mix(in srgb, <%= @current_website.style_variables["primary_color"] || "#0B5394" %> 25%, white); |
21 | | - --barcelona-med-300: color-mix(in srgb, <%= @current_website.style_variables["primary_color"] || "#0B5394" %> 40%, white); |
22 | | - --barcelona-med-400: color-mix(in srgb, <%= @current_website.style_variables["primary_color"] || "#0B5394" %> 60%, white); |
23 | | - --barcelona-med-500: var(--barcelona-med); |
24 | | - --barcelona-med-600: color-mix(in srgb, <%= @current_website.style_variables["primary_color"] || "#0B5394" %> 85%, black); |
25 | | - --barcelona-med-700: color-mix(in srgb, <%= @current_website.style_variables["primary_color"] || "#0B5394" %> 70%, black); |
26 | | - --barcelona-med-800: color-mix(in srgb, <%= @current_website.style_variables["primary_color"] || "#0B5394" %> 55%, black); |
27 | | - --barcelona-med-900: color-mix(in srgb, <%= @current_website.style_variables["primary_color"] || "#0B5394" %> 40%, black); |
28 | | - |
29 | | - /* Extended Terracotta Palette - derived using color-mix */ |
30 | | - --barcelona-terra-50: color-mix(in srgb, <%= @current_website.style_variables["secondary_color"] || "#B8503E" %> 5%, white); |
31 | | - --barcelona-terra-100: color-mix(in srgb, <%= @current_website.style_variables["secondary_color"] || "#B8503E" %> 15%, white); |
32 | | - --barcelona-terra-200: color-mix(in srgb, <%= @current_website.style_variables["secondary_color"] || "#B8503E" %> 25%, white); |
33 | | - --barcelona-terra-300: color-mix(in srgb, <%= @current_website.style_variables["secondary_color"] || "#B8503E" %> 40%, white); |
34 | | - --barcelona-terra-400: color-mix(in srgb, <%= @current_website.style_variables["secondary_color"] || "#B8503E" %> 70%, white); |
35 | | - --barcelona-terra-500: var(--barcelona-terra); |
36 | | - --barcelona-terra-600: color-mix(in srgb, <%= @current_website.style_variables["secondary_color"] || "#B8503E" %> 80%, black); |
37 | | - |
38 | | - /* Extended Gold Palette - derived using color-mix */ |
39 | | - --barcelona-gold-50: color-mix(in srgb, <%= @current_website.style_variables["accent_color"] || "#E5B45A" %> 5%, white); |
40 | | - --barcelona-gold-100: color-mix(in srgb, <%= @current_website.style_variables["accent_color"] || "#E5B45A" %> 15%, white); |
41 | | - --barcelona-gold-200: color-mix(in srgb, <%= @current_website.style_variables["accent_color"] || "#E5B45A" %> 30%, white); |
42 | | - --barcelona-gold-300: color-mix(in srgb, <%= @current_website.style_variables["accent_color"] || "#E5B45A" %> 50%, white); |
43 | | - --barcelona-gold-400: var(--barcelona-gold); |
44 | | - --barcelona-gold-500: color-mix(in srgb, <%= @current_website.style_variables["accent_color"] || "#E5B45A" %> 80%, black); |
45 | | - |
46 | | - /* Footer Colors - from palette */ |
47 | | - --footer-bg-color: <%= @current_website.style_variables["footer_bg_color"] || "var(--barcelona-med-900)" %>; |
48 | | - --footer-text-color: <%= @current_website.style_variables["footer_text_color"] || @current_website.style_variables["footer_main_text_color"] || "#d5d0c8" %>; |
| 10 | + /* Primary Colors - Mapped to PWB Standard Variables */ |
| 11 | + --barcelona-med: var(--pwb-primary-color); |
| 12 | + --barcelona-terra: var(--pwb-secondary-color); |
| 13 | + --barcelona-gold: var(--pwb-accent-color); |
| 14 | + --barcelona-warm: var(--pwb-text-color); |
| 15 | + --barcelona-light: var(--pwb-background-color); |
| 16 | + |
| 17 | + /* Extended Mediterranean Blue Palette - Mapped to PWB Dynamic Shades */ |
| 18 | + --barcelona-med-50: var(--pwb-primary-50); |
| 19 | + --barcelona-med-100: var(--pwb-primary-100); |
| 20 | + --barcelona-med-200: var(--pwb-primary-200); |
| 21 | + --barcelona-med-300: var(--pwb-primary-300); |
| 22 | + --barcelona-med-400: var(--pwb-primary-400); |
| 23 | + --barcelona-med-500: var(--pwb-primary-500); |
| 24 | + --barcelona-med-600: var(--pwb-primary-600); |
| 25 | + --barcelona-med-700: var(--pwb-primary-700); |
| 26 | + --barcelona-med-800: var(--pwb-primary-800); |
| 27 | + --barcelona-med-900: var(--pwb-primary-900); |
| 28 | + |
| 29 | + /* Extended Terracotta Palette - Mapped to PWB Dynamic Shades */ |
| 30 | + --barcelona-terra-50: var(--pwb-secondary-50); |
| 31 | + --barcelona-terra-100: var(--pwb-secondary-100); |
| 32 | + --barcelona-terra-200: var(--pwb-secondary-200); |
| 33 | + --barcelona-terra-300: var(--pwb-secondary-300); |
| 34 | + --barcelona-terra-400: var(--pwb-secondary-400); |
| 35 | + --barcelona-terra-500: var(--pwb-secondary-500); |
| 36 | + --barcelona-terra-600: var(--pwb-secondary-600); |
| 37 | + |
| 38 | + /* Extended Gold Palette - Mapped to PWB Dynamic Shades */ |
| 39 | + --barcelona-gold-50: var(--pwb-accent-50); |
| 40 | + --barcelona-gold-100: var(--pwb-accent-100); |
| 41 | + --barcelona-gold-200: var(--pwb-accent-200); |
| 42 | + --barcelona-gold-300: var(--pwb-accent-300); |
| 43 | + --barcelona-gold-400: var(--pwb-accent-400); |
| 44 | + --barcelona-gold-500: var(--pwb-accent-500); |
| 45 | + |
| 46 | + /* Footer Colors */ |
| 47 | + --footer-bg-color: var(--pwb-footer-background-color); |
| 48 | + --footer-text-color: var(--pwb-footer-text-color); |
49 | 49 | --footer-link-color: var(--barcelona-gold-400); |
50 | 50 | --footer-link-hover-color: var(--barcelona-gold-300); |
51 | 51 |
|
52 | | - /* Action Colors - from palette */ |
53 | | - --action-color: <%= @current_website.style_variables["action_color"] || "var(--barcelona-med)" %>; |
| 52 | + /* Action Colors */ |
| 53 | + --action-color: var(--pwb-primary-color); |
54 | 54 |
|
55 | | - /* Typography - from palette */ |
| 55 | + /* Typography */ |
56 | 56 | --font-display: <%= @current_website.style_variables["font_primary"] || "Cormorant Garamond" %>; |
57 | 57 | --font-body: <%= @current_website.style_variables["font_secondary"] || "Montserrat" %>; |
58 | 58 |
|
59 | | - /* Spacing & Sizing - from palette */ |
| 59 | + /* Spacing & Sizing */ |
60 | 60 | --border-radius-soft: <%= @current_website.style_variables["border_radius"] || "12px" %>; |
61 | 61 | --border-radius-softer: 16px; |
62 | 62 | --border-radius-pill: 9999px; |
63 | 63 | --container-padding: <%= @current_website.style_variables["container_padding"] || "1rem" %>; |
64 | 64 |
|
65 | | - /* Soft Shadows - using primary color for tinted shadows */ |
66 | | - --shadow-soft: 0 4px 24px -4px color-mix(in srgb, <%= @current_website.style_variables["text_color"] || "#2D3436" %> 8%, transparent); |
67 | | - --shadow-medium: 0 8px 32px -8px color-mix(in srgb, <%= @current_website.style_variables["text_color"] || "#2D3436" %> 12%, transparent); |
68 | | - --shadow-elevated: 0 16px 48px -12px color-mix(in srgb, <%= @current_website.style_variables["text_color"] || "#2D3436" %> 16%, transparent); |
69 | | - --shadow-glow: 0 0 40px color-mix(in srgb, <%= @current_website.style_variables["primary_color"] || "#0B5394" %> 15%, transparent); |
| 65 | + /* Soft Shadows */ |
| 66 | + --shadow-soft: 0 4px 24px -4px color-mix(in srgb, var(--pwb-text-color) 8%, transparent); |
| 67 | + --shadow-medium: 0 8px 32px -8px color-mix(in srgb, var(--pwb-text-color) 12%, transparent); |
| 68 | + --shadow-elevated: 0 16px 48px -12px color-mix(in srgb, var(--pwb-text-color) 16%, transparent); |
| 69 | + --shadow-glow: 0 0 40px color-mix(in srgb, var(--pwb-primary-color) 15%, transparent); |
70 | 70 | } |
71 | 71 |
|
72 | 72 | /* ============================================ |
|
0 commit comments