feat(v1.5.0): customização de fontes e correção de cores em tendências

Adiciona sistema de customização de fontes por usuário via CSS custom
properties, com preview ao vivo e persistência no banco. Corrige lógica
de cores invertida na tabela de receitas em tendências.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Felipe Coutinho
2026-02-15 21:35:00 +00:00
parent 4b442a907a
commit 2362a70b9d
25 changed files with 2779 additions and 70 deletions

View File

@@ -32,6 +32,13 @@ export function CategoryCell({
const isIncrease = percentageChange !== null && percentageChange > 0;
const isDecrease = percentageChange !== null && percentageChange < 0;
// Despesa: aumento é ruim (vermelho), diminuição é bom (verde)
// Receita: aumento é bom (verde), diminuição é ruim (vermelho)
const isPositive =
categoryType === "receita" ? isIncrease : isDecrease;
const isNegative =
categoryType === "receita" ? isDecrease : isIncrease;
return (
<Tooltip>
<TooltipTrigger asChild>
@@ -41,8 +48,8 @@ export function CategoryCell({
<div
className={cn(
"flex items-center gap-0.5 text-xs",
isIncrease && "text-destructive",
isDecrease && "text-success",
isNegative && "text-destructive",
isPositive && "text-success",
)}
>
{isIncrease && <RiArrowUpSFill className="h-3 w-3" />}
@@ -63,8 +70,8 @@ export function CategoryCell({
<div
className={cn(
"font-medium",
isIncrease && "text-destructive",
isDecrease && "text-success",
isNegative && "text-destructive",
isPositive && "text-success",
)}
>
Diferença:{" "}