fix(analytics-ui): unify branding colors and remove hardcoded values
This commit is contained in:
@@ -140,7 +140,7 @@ export default function DatePicker({ isOpen, onClose, onApply, initialRange }: D
|
||||
${selected
|
||||
? 'bg-brand-orange text-white shadow-md shadow-brand-orange/20'
|
||||
: inRange
|
||||
? 'bg-orange-50 dark:bg-orange-900/20 text-brand-orange'
|
||||
? 'bg-brand-orange/10 dark:bg-brand-orange/20 text-brand-orange'
|
||||
: 'hover:bg-neutral-100 dark:hover:bg-neutral-800 text-neutral-900 dark:text-white'
|
||||
}
|
||||
${today && !selected && !inRange ? 'ring-1 ring-brand-orange text-brand-orange' : ''}
|
||||
@@ -171,7 +171,7 @@ export default function DatePicker({ isOpen, onClose, onApply, initialRange }: D
|
||||
</button>
|
||||
<button
|
||||
onClick={() => onApply({ start: formatDate(startDate), end: formatDate(endDate) })}
|
||||
className="px-4 py-2 text-sm font-medium bg-brand-orange text-white rounded-xl shadow-sm hover:bg-orange-600 transition-colors"
|
||||
className="px-4 py-2 text-sm font-medium bg-brand-orange text-white rounded-xl shadow-sm hover:bg-brand-orange-hover transition-colors"
|
||||
>
|
||||
Apply
|
||||
</button>
|
||||
|
||||
@@ -4,6 +4,11 @@
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
/* * Semantic colors */
|
||||
--color-success: #10B981;
|
||||
--color-warning: #F59E0B;
|
||||
--color-error: #EF4444;
|
||||
|
||||
/* * Brand colors - Orange used as accent only */
|
||||
--color-brand-orange: #FD5E0F;
|
||||
|
||||
|
||||
@@ -13,7 +13,10 @@ const config: Config = {
|
||||
colors: {
|
||||
// * Brand color: Orange (#FD5E0F) - used as accent only
|
||||
brand: {
|
||||
orange: '#FD5E0F',
|
||||
orange: {
|
||||
DEFAULT: '#FD5E0F',
|
||||
hover: '#E54E00',
|
||||
},
|
||||
},
|
||||
},
|
||||
fontFamily: {
|
||||
|
||||
Reference in New Issue
Block a user