Skip to content

Commit ed8f335

Browse files
committed
refactor: Revise the Mantine theme by updating the gray color palette, neutralizing semantic colors, and renaming the theme object.
1 parent c91afc8 commit ed8f335

File tree

1 file changed

+23
-18
lines changed
  • .agent/skills/riligar-design-system/assets

1 file changed

+23
-18
lines changed

.agent/skills/riligar-design-system/assets/theme.js

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,36 @@
77
* O código do componente deve ser limpo.
88
*/
99

10-
import { createTheme, rem } from '@mantine/core'
10+
import { createTheme } from '@mantine/core'
1111

12-
export const rlgTheme = createTheme({
12+
export const theme = createTheme({
1313
fontFamily: 'Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',
1414

1515
colors: {
16-
// Escala Neutra Universal (Substitui o gray padrão)
16+
// Escala Baseada nas cores fornecidas
17+
// Preto: #34322D
18+
// Cinza: #F8F8F8
19+
// Branco: #FFFFFF
1720
gray: [
18-
'#F9FAFB', // 0: App Background
19-
'#F3F4F6', // 1: Hover/Subtle
20-
'#E5E7EB', // 2: Borders
21-
'#D1D5DB', // 3: Disabled
22-
'#9CA3AF', // 4: Placeholder
23-
'#6B7280', // 5: Text Secondary
24-
'#4B5563', // 6: Text Primary Soft
25-
'#374151', // 7: Text Primary
26-
'#1F2937', // 8: Headers
27-
'#11181C', // 9: Absolute Black
21+
'#F8F8F8', // 0: Gray (Background)
22+
'#FFFFFF', // 1: White
23+
'#EEEEEE', // 2: Light Gray (Borders)
24+
'#E0E0E0', // 3: Disabled
25+
'#BDBDBD', // 4: Placeholder
26+
'#757575', // 5: Text Secondary
27+
'#616161', // 6: Text Primary Soft
28+
'#424242', // 7: Text Primary
29+
'#34322D', // 8: Black (Headers/Deep)
30+
'#212121', // 9: Absolute Black
2831
],
29-
// Semânticos
30-
error: ['#FEF2F2', '#FEE2E2', '#FECACA', '#FCA5A5', '#F87171', '#EF4444', '#DC2626', '#B91C1C', '#991B1B', '#7F1D1D'],
31-
success: ['#F0FDF4', '#DCFCE7', '#BBF7D0', '#86EFAC', '#4ADE80', '#22C55E', '#16A34A', '#15803D', '#166534', '#14532D'],
32+
// Semânticos neutralizados para manter monochromaticidade total
33+
error: ['#F9FAFB', '#F3F4F6', '#E5E7EB', '#D1D5DB', '#9CA3AF', '#6B7280', '#4B5563', '#374151', '#1F2937', '#11181C'],
34+
success: ['#F9FAFB', '#F3F4F6', '#E5E7EB', '#D1D5DB', '#9CA3AF', '#6B7280', '#4B5563', '#374151', '#1F2937', '#11181C'],
3235
},
3336

34-
primaryColor: 'dark', // Escala dark mapeada para cinzas
37+
primaryColor: 'gray',
38+
black: '#34322D',
39+
white: '#FFFFFF',
3540
autoContrast: true,
3641

3742
defaultRadius: 'md', // 6px
@@ -90,7 +95,7 @@ export const rlgTheme = createTheme({
9095
input: {
9196
border: `1px solid ${theme.colors.gray[2]}`, // Garante borda 1px
9297
'&:focus': {
93-
borderColor: theme.colors.dark[8],
98+
borderColor: theme.colors.gray[5], // Force gray focus
9499
},
95100
},
96101
}),

0 commit comments

Comments
 (0)