feat(ui): implement organic warmth premium theme

This commit is contained in:
Michael committed 2026-02-05 10:02:38 +01:00
1 parent f391155da5
commit 352768aad7
2 files changed
+41 -37

No files matched your search

+28 -29
View File
@@ -2,13 +2,14 @@
@import "tailwindcss"; @import "tailwindcss";
@theme { @theme {
--color-carbon: #F8F9FA; --color-carbon: #FAFAF9;
--color-carbon-light: #FFFFFF; --color-carbon-light: #FFFFFF;
--color-carbon-dark: #E9ECEF; --color-carbon-dark: #E7E5E4;
--color-gold: #c5a059; --color-nature: #166534;
--color-gold-bright: #e2c28d; --color-nature-light: #15803d;
--color-paper-white: #1A1A1A; --color-earth: #A0522D;
--color-paper-muted: #6B7280; --color-paper-white: #1C1917;
--color-paper-muted: #57534E;
--font-serif: "Playfair Display", serif; --font-serif: "Playfair Display", serif;
--font-sans: "Inter", system-ui, sans-serif; --font-sans: "Inter", system-ui, sans-serif;
@@ -17,24 +18,22 @@
--line-height-magazine: 1.8; --line-height-magazine: 1.8;
} }
@utility gold-glow { @utility nature-glow {
box-shadow: 0 0 20px rgba(197, 160, 89, 0.15); box-shadow: 0 4px 20px rgba(22, 101, 52, 0.15);
} }
@utility glass-panel { @utility paper-panel {
background: rgba(255, 255, 255, 0.8); background: #FFFFFF;
backdrop-filter: blur(12px); border: 1px solid #E7E5E4;
-webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
border: 1px solid rgba(0, 0, 0, 0.05);
} }
@layer base { @layer base {
body { body {
@apply bg-carbon text-paper-white font-sans antialiased selection:bg-gold/30; @apply bg-carbon text-paper-white font-sans antialiased selection:bg-nature/20;
margin: 0; margin: 0;
min-height: 100vh; min-height: 100vh;
/* Optional: Subtle texture for paper effect, or clean flat color */ border-top: 4px solid var(--color-nature); /* Editorial Touch */
background-color: var(--color-carbon);
} }
h1, h1,
@@ -43,11 +42,11 @@
h4, h4,
h5, h5,
h6 { h6 {
@apply font-serif tracking-tight leading-tight; @apply font-serif tracking-tight leading-tight text-paper-white;
} }
a { a {
@apply transition-all duration-300 decoration-gold/30 underline-offset-4 hover:decoration-gold; @apply transition-all duration-300 decoration-nature/30 underline-offset-4 hover:decoration-nature;
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
@@ -59,12 +58,12 @@
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: rgba(197, 160, 89, 0.2); background: rgba(87, 83, 78, 0.2);
border-radius: 10px; border-radius: 10px;
} }
::-webkit-scrollbar-thumb:hover { ::-webkit-scrollbar-thumb:hover {
background: rgba(197, 160, 89, 0.4); background: rgba(87, 83, 78, 0.4);
} }
} }
@@ -89,23 +88,23 @@
} }
.magazine-card { .magazine-card {
@apply relative transition-all duration-500 ease-out; @apply relative transition-all duration-500 ease-out hover:-translate-y-1;
} }
.btn-primary { .btn-primary {
@apply bg-gold text-carbon font-bold px-6 py-2.5 rounded-full hover:bg-gold-bright hover:-translate-y-0.5 transition-all shadow-lg active:scale-95 text-xs uppercase tracking-widest; @apply bg-nature text-white font-medium px-6 py-2.5 rounded-lg hover:bg-nature-light hover:shadow-lg transition-all active:scale-95 text-xs uppercase tracking-widest border border-transparent;
} }
.btn-ghost { .btn-ghost {
@apply text-paper-muted hover:text-gold hover:bg-gold/5 px-4 py-2 rounded-lg transition-all text-sm; @apply text-paper-muted hover:text-nature hover:bg-nature/5 px-4 py-2 rounded-lg transition-all text-sm font-medium;
} }
.input-field { .input-field {
@apply bg-carbon-dark border border-white/10 text-paper-white px-4 py-3 rounded-lg focus:border-gold/50 focus:ring-1 focus:ring-gold/50 outline-none transition-all placeholder:text-paper-muted/30; @apply bg-white border border-carbon-dark text-paper-white px-4 py-3 rounded-lg focus:border-nature/50 focus:ring-1 focus:ring-nature/50 outline-none transition-all placeholder:text-paper-muted/50 shadow-sm;
} }
.magazine-content { .magazine-content {
@apply font-reading leading-relaxed text-paper-white/80; @apply font-reading leading-relaxed text-paper-white/90;
} }
.magazine-content p { .magazine-content p {
@@ -113,16 +112,16 @@
} }
.magazine-content a { .magazine-content a {
@apply text-gold border-b border-gold/20 hover:border-gold transition-all no-underline; @apply text-nature border-b border-nature/20 hover:border-nature transition-all no-underline font-medium;
} }
.magazine-content h2, .magazine-content h2,
.magazine-content h3 { .magazine-content h3 {
@apply text-white font-serif italic mb-6 mt-12; @apply text-paper-white font-serif italic mb-6 mt-12;
} }
.magazine-content img { .magazine-content img {
@apply rounded-2xl my-12 border border-white/5 shadow-2xl mx-auto; @apply rounded-xl my-12 shadow-lg mx-auto;
} }
.magazine-content ul, .magazine-content ul,
@@ -131,6 +130,6 @@
} }
.magazine-content li { .magazine-content li {
@apply pl-2; @apply pl-2 marker:text-nature;
} }
} }
+13 -8
View File
@@ -8,17 +8,22 @@ export default {
extend: { extend: {
colors: { colors: {
carbon: { carbon: {
DEFAULT: '#F8F9FA', // Alabaster DEFAULT: '#FAFAF9', // Stone-50 (Warm Paper Background)
light: '#FFFFFF', // White for cards light: '#FFFFFF', // Pure White (Cards)
dark: '#E9ECEF', // Light gray for borders/inputs dark: '#E7E5E4', // Stone-200 (Borders/Inputs)
}, },
gold: { nature: {
DEFAULT: '#d4af37', DEFAULT: '#166534', // Green-800 (Forest Green - Primary Action)
glow: 'rgba(212, 175, 55, 0.4)', light: '#15803d', // Green-700 (Hover State)
glow: 'rgba(22, 101, 52, 0.2)',
},
earth: {
DEFAULT: '#A0522D', // Sienna (Secondary/Accent)
muted: '#D6CBC7', // Warm Gray
}, },
paper: { paper: {
white: '#1A1A1A', // Dark text white: '#1C1917', // Stone-900 (Primary Text - Soft Black)
muted: '#6B7280', // Gray text muted: '#57534E', // Stone-600 (Secondary Text)
} }
}, },
fontFamily: { fontFamily: {