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
|
${selected
|
||||||
? 'bg-brand-orange text-white shadow-md shadow-brand-orange/20'
|
? 'bg-brand-orange text-white shadow-md shadow-brand-orange/20'
|
||||||
: inRange
|
: 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'
|
: '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' : ''}
|
${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>
|
||||||
<button
|
<button
|
||||||
onClick={() => onApply({ start: formatDate(startDate), end: formatDate(endDate) })}
|
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
|
Apply
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -4,6 +4,11 @@
|
|||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
:root {
|
:root {
|
||||||
|
/* * Semantic colors */
|
||||||
|
--color-success: #10B981;
|
||||||
|
--color-warning: #F59E0B;
|
||||||
|
--color-error: #EF4444;
|
||||||
|
|
||||||
/* * Brand colors - Orange used as accent only */
|
/* * Brand colors - Orange used as accent only */
|
||||||
--color-brand-orange: #FD5E0F;
|
--color-brand-orange: #FD5E0F;
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,10 @@ const config: Config = {
|
|||||||
colors: {
|
colors: {
|
||||||
// * Brand color: Orange (#FD5E0F) - used as accent only
|
// * Brand color: Orange (#FD5E0F) - used as accent only
|
||||||
brand: {
|
brand: {
|
||||||
orange: '#FD5E0F',
|
orange: {
|
||||||
|
DEFAULT: '#FD5E0F',
|
||||||
|
hover: '#E54E00',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
|
|||||||
Reference in New Issue
Block a user