Skip to content

Commit a801a89

Browse files
committed
feat: Update gray color palette, set primaryColor to dark, and add default props for ThemeIcon, Title, and Text components.
1 parent cb21729 commit a801a89

File tree

1 file changed

+33
-30
lines changed
  • .agent/skills/riligar-design-system/assets

1 file changed

+33
-30
lines changed

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

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,28 @@
1-
/**
2-
* RiLiGar Design System - Mantine 8 Theme
3-
* Estética minimalista e adaptável (Light/Dark Mode).
4-
*
5-
* CENTRALIZAÇÃO TOTAL:
6-
* Toda a configuração visual (sizes, borders, radius) DEVE estar aqui.
7-
* O código do componente deve ser limpo.
8-
*/
9-
10-
import { createTheme } from '@mantine/core'
1+
import { createTheme, rem } from '@mantine/core'
112

123
export const theme = createTheme({
134
fontFamily: 'Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',
145

156
colors: {
16-
// Escala Baseada nas cores fornecidas
17-
// Preto: #34322D
18-
// Cinza: #F8F8F8
19-
// Branco: #FFFFFF
7+
// Escala Neutra Universal (Substitui o gray padrão)
208
gray: [
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
9+
'#F9FAFB', // 0: App Background
10+
'#F3F4F6', // 1: Hover/Subtle
11+
'#E5E7EB', // 2: Borders
12+
'#D1D5DB', // 3: Disabled
13+
'#9CA3AF', // 4: Placeholder
14+
'#6B7280', // 5: Text Secondary
15+
'#4B5563', // 6: Text Primary Soft
16+
'#374151', // 7: Text Primary
17+
'#1F2937', // 8: Headers
18+
'#11181C', // 9: Absolute Black
3119
],
3220
// Semânticos neutralizados para manter monochromaticidade total
3321
error: ['#F9FAFB', '#F3F4F6', '#E5E7EB', '#D1D5DB', '#9CA3AF', '#6B7280', '#4B5563', '#374151', '#1F2937', '#11181C'],
3422
success: ['#F9FAFB', '#F3F4F6', '#E5E7EB', '#D1D5DB', '#9CA3AF', '#6B7280', '#4B5563', '#374151', '#1F2937', '#11181C'],
3523
},
3624

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

4228
defaultRadius: 'md', // 6px
@@ -84,7 +70,6 @@ export const theme = createTheme({
8470
fw: 500,
8571
radius: 'md',
8672
},
87-
// Variações semânticas via theme vars se necessário
8873
},
8974
TextInput: {
9075
defaultProps: {
@@ -93,9 +78,9 @@ export const theme = createTheme({
9378
},
9479
styles: theme => ({
9580
input: {
96-
border: `1px solid ${theme.colors.gray[2]}`, // Garante borda 1px
81+
border: `1px solid ${theme.colors.gray[2]}`,
9782
'&:focus': {
98-
borderColor: theme.colors.gray[5], // Force gray focus
83+
borderColor: theme.colors.dark[8],
9984
},
10085
},
10186
}),
@@ -114,5 +99,23 @@ export const theme = createTheme({
11499
radius: 'md',
115100
},
116101
},
102+
ThemeIcon: {
103+
defaultProps: {
104+
size: 'lg',
105+
radius: 'md',
106+
variant: 'light',
107+
color: 'gray',
108+
},
109+
},
110+
Title: {
111+
defaultProps: {
112+
lh: 1.2,
113+
},
114+
},
115+
Text: {
116+
defaultProps: {
117+
lh: 1.6,
118+
},
119+
},
117120
},
118121
})

0 commit comments

Comments
 (0)