@ncino/styles 8.0.0 → 9.0.0-preview.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +12 -4
- package/src/gator/_fonts.css +8 -0
- package/src/gator/_gator-grid.css +81 -0
- package/src/gator/_gator-sizing.css +179 -0
- package/src/gator/_gator-typography.css +171 -0
- package/src/gator/fonts/OpenSans-VariableFont.woff2 +0 -0
- package/src/gator/gator-global-styles.css +31 -0
- package/src/gator/themes/MUIGatorTheme.ts +237 -0
- package/src/gator/themes/components/accordion.ts +67 -0
- package/src/gator/themes/components/alert.ts +53 -0
- package/src/gator/themes/components/autocomplete.ts +156 -0
- package/src/gator/themes/components/avatar.ts +65 -0
- package/src/gator/themes/components/badge.ts +55 -0
- package/src/gator/themes/components/button.ts +71 -0
- package/src/gator/themes/components/card.ts +202 -0
- package/src/gator/themes/components/checkbox.ts +73 -0
- package/src/gator/themes/components/chip.ts +270 -0
- package/src/gator/themes/components/dialog.ts +62 -0
- package/src/gator/themes/components/form-control.ts +103 -0
- package/src/gator/themes/components/radio.ts +53 -0
- package/src/gator/themes/components/select.ts +74 -0
- package/src/gator/themes/components/table.ts +200 -0
- package/src/gator/themes/components/text-field.ts +100 -0
- package/src/gator/themes/utils/themeConfig.ts +111 -0
- package/src/gator/tokens/_gator-global-tokens.css +4 -0
- package/src/gator/tokens/primitive.tokens.css +113 -0
- package/src/gator/tokens/semantic.tokens.css +349 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { gatorTypography } from '../utils/themeConfig';
|
|
2
|
+
|
|
3
|
+
export const MUIGatorFormControlOverrides = {
|
|
4
|
+
|
|
5
|
+
MuiFormControl: {
|
|
6
|
+
styleOverrides: {
|
|
7
|
+
root: {
|
|
8
|
+
// Radio group label (legend)
|
|
9
|
+
'& .MuiFormLabel-root': {
|
|
10
|
+
fontFamily: gatorTypography.fontFamily.body,
|
|
11
|
+
fontSize: 'var(--font-size-body-1)',
|
|
12
|
+
lineHeight: 'var(--line-height-body-1)',
|
|
13
|
+
color: 'var(--color-text-primary)',
|
|
14
|
+
letterSpacing: 'var(--letter-spacing-default)',
|
|
15
|
+
fontWeight: gatorTypography.fontWeight.regular,
|
|
16
|
+
marginBottom: '8px',
|
|
17
|
+
position: 'relative',
|
|
18
|
+
transform: 'none',
|
|
19
|
+
|
|
20
|
+
'&.Mui-focused': {
|
|
21
|
+
color: 'var(--color-text-primary)',
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
'&.Mui-disabled': {
|
|
25
|
+
color: 'var(--color-text-disabled)',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
// Help text (FormHelperText)
|
|
30
|
+
'& .MuiFormHelperText-root': {
|
|
31
|
+
fontFamily: gatorTypography.fontFamily.body,
|
|
32
|
+
fontSize: 'var(--font-size-body-2)',
|
|
33
|
+
lineHeight: 'var(--line-height-body-2)',
|
|
34
|
+
color: 'var(--color-text-secondary)',
|
|
35
|
+
letterSpacing: 'var(--letter-spacing-default)',
|
|
36
|
+
marginLeft: 0,
|
|
37
|
+
marginTop: '8px',
|
|
38
|
+
|
|
39
|
+
'&.Mui-error': {
|
|
40
|
+
color: 'var(--color-text-error)',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
MuiFormLabel: {
|
|
47
|
+
styleOverrides: {
|
|
48
|
+
root: {
|
|
49
|
+
fontFamily: gatorTypography.fontFamily.body,
|
|
50
|
+
fontSize: 'var(--font-size-body-1)',
|
|
51
|
+
lineHeight: 'var(--line-height-body-1)',
|
|
52
|
+
color: 'var(--color-text-primary)',
|
|
53
|
+
letterSpacing: 'var(--letter-spacing-default)',
|
|
54
|
+
fontWeight: gatorTypography.fontWeight.regular,
|
|
55
|
+
'&.Mui-error': {
|
|
56
|
+
color: 'var(--color-text-primary)',
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
MuiFormControlLabel: {
|
|
62
|
+
styleOverrides: {
|
|
63
|
+
root: {
|
|
64
|
+
marginLeft: 0,
|
|
65
|
+
marginRight: 0,
|
|
66
|
+
gap: '4px',
|
|
67
|
+
alignItems: 'center',
|
|
68
|
+
|
|
69
|
+
// Label styling
|
|
70
|
+
'& .MuiFormControlLabel-label': {
|
|
71
|
+
fontFamily: gatorTypography.fontFamily.body,
|
|
72
|
+
fontSize: 'var(--font-size-body-1)',
|
|
73
|
+
lineHeight: 'var(--line-height-body-1)',
|
|
74
|
+
color: 'var(--color-text-primary)',
|
|
75
|
+
letterSpacing: 'var(--letter-spacing-default)',
|
|
76
|
+
paddingTop: '0px', // Aligns with center of radio
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
// Disabled label
|
|
80
|
+
'&.Mui-disabled .MuiFormControlLabel-label': {
|
|
81
|
+
color: 'var(--color-text-disabled)',
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
// Error label
|
|
85
|
+
'&.Mui-error .MuiFormLabel-root': {
|
|
86
|
+
color: 'var(--color-text-primary)',
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
// Checkbox adjustment
|
|
90
|
+
'& .MuiCheckbox-root': {
|
|
91
|
+
marginLeft: '-5px',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
MuiFormGroup: {
|
|
97
|
+
styleOverrides: {
|
|
98
|
+
root: {
|
|
99
|
+
gap: '8px',
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gator Design System - MUI Radio & Radio Group Component Overrides
|
|
3
|
+
*
|
|
4
|
+
* Maps Gator Radio design specifications to MUI Radio and RadioGroup components.
|
|
5
|
+
* Supports all interactive states (default, hover, focus, disabled, error) aligned with Gator tokens.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export const MUIGatorRadioOverrides = {
|
|
9
|
+
MuiRadio: {
|
|
10
|
+
defaultProps: {
|
|
11
|
+
disableFocusRipple: true,
|
|
12
|
+
disableTouchRipple: true,
|
|
13
|
+
},
|
|
14
|
+
styleOverrides: {
|
|
15
|
+
root: {
|
|
16
|
+
padding: '3px', // Centers the 18px radio in a 24px container
|
|
17
|
+
color: 'var(--color-border-primary)',
|
|
18
|
+
|
|
19
|
+
'&:hover svg': {
|
|
20
|
+
fill: 'var(--color-border-brand)',
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
'&.Mui-focusVisible': {
|
|
24
|
+
outline: '3px solid var(--color-border-focus)',
|
|
25
|
+
outlineOffset: '-2px'
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
'&.Mui-checked': {
|
|
29
|
+
color: 'var(--color-border-brand)',
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
'&.Mui-disabled': {
|
|
33
|
+
color: 'var(--color-border-disabled)',
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
'.Mui-error &': {
|
|
37
|
+
color: 'var(--color-feedback-error-secondary)',
|
|
38
|
+
'&:hover': {
|
|
39
|
+
backgroundColor: 'var(--color-surface-error)',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
'.Mui-error &.Mui-checked': {
|
|
44
|
+
color: 'var(--color-feedback-error-secondary)',
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
'.Mui-error &:hover svg': {
|
|
48
|
+
fill: 'var(--color-feedback-error-secondary)',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { gatorTypography } from '../utils/themeConfig';
|
|
2
|
+
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
3
|
+
|
|
4
|
+
export const MUIGatorSelectOverrides = {
|
|
5
|
+
MuiSelect: {
|
|
6
|
+
defaultProps: {
|
|
7
|
+
MenuProps: {
|
|
8
|
+
PaperProps: {
|
|
9
|
+
sx: {
|
|
10
|
+
backgroundColor: 'var(--color-surface-primary)',
|
|
11
|
+
maxHeight: '14rem',
|
|
12
|
+
marginTop: 'var(--spacing-3)',
|
|
13
|
+
borderRadius: 'var(--border-radius-medium)',
|
|
14
|
+
boxShadow: 'var(--shadow-3-dropdown)',
|
|
15
|
+
|
|
16
|
+
'& .MuiMenuItem-root': {
|
|
17
|
+
padding: 'var(--spacing-5) var(--spacing-12)',
|
|
18
|
+
minHeight: '40px',
|
|
19
|
+
fontFamily: gatorTypography.fontFamily.body,
|
|
20
|
+
fontSize: 'var(--font-size-body-1)',
|
|
21
|
+
lineHeight: 'var(--line-height-body-1)',
|
|
22
|
+
color: 'var(--color-text-primary)',
|
|
23
|
+
|
|
24
|
+
'&:hover': {
|
|
25
|
+
backgroundColor: 'var(--color-surface-hover)',
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
'&.Mui-focusVisible': {
|
|
29
|
+
outline: '2px solid var(--color-border-focus)',
|
|
30
|
+
outlineOffset: '-2px',
|
|
31
|
+
backgroundColor: 'transparent',
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
'&.Mui-selected': {
|
|
35
|
+
backgroundColor: 'var(--color-surface-brand)',
|
|
36
|
+
color: 'var(--color-text-primary)',
|
|
37
|
+
fontWeight: gatorTypography.fontWeight.bold,
|
|
38
|
+
paddingLeft: 'var(--spacing-8)',
|
|
39
|
+
'::before': {
|
|
40
|
+
content: '"\u2713"',
|
|
41
|
+
display: 'inline-block',
|
|
42
|
+
marginRight: 'var(--spacing-6)',
|
|
43
|
+
color: 'var(--color-icon-primary)',
|
|
44
|
+
fontWeight: gatorTypography.fontWeight.regular,
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
'&:hover': {
|
|
48
|
+
backgroundColor: 'var(--color-surface-brand-secondary)',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
'&.Mui-disabled': {
|
|
53
|
+
opacity: 1,
|
|
54
|
+
color: 'var(--color-text-disabled)',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
IconComponent: ExpandMoreIcon as any,
|
|
61
|
+
},
|
|
62
|
+
styleOverrides: {
|
|
63
|
+
root: {
|
|
64
|
+
'& .MuiSelect-select': {
|
|
65
|
+
padding: 'var(--spacing-7) var(--spacing-8)',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
icon: {
|
|
70
|
+
right: 'var(--spacing-8)',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
};
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { gatorTypography } from '../utils/themeConfig';
|
|
2
|
+
|
|
3
|
+
export const MUIGatorTableOverrides = {
|
|
4
|
+
MuiPaper: {
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
root: {
|
|
7
|
+
borderRadius: 'var(--border-radius-medium)',
|
|
8
|
+
boxShadow: 'none',
|
|
9
|
+
|
|
10
|
+
// Bulk action toolbar styling when used with Table
|
|
11
|
+
'&:has(.MuiToolbar-root + .MuiTableContainer-root)': {
|
|
12
|
+
|
|
13
|
+
'.MuiToolbar-root': {
|
|
14
|
+
background: 'var(--color-surface-brand)',
|
|
15
|
+
marginBottom: 'var(--spacing-8)',
|
|
16
|
+
borderRadius: 'var(--border-radius-medium)',
|
|
17
|
+
display: 'flex',
|
|
18
|
+
gap: 'var(--spacing-8)',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
MuiTableContainer: {
|
|
25
|
+
styleOverrides: {
|
|
26
|
+
root: {
|
|
27
|
+
backgroundColor: 'var(--color-surface-primary)',
|
|
28
|
+
borderRadius: 'var(--border-radius-medium)',
|
|
29
|
+
overflow: 'auto',
|
|
30
|
+
boxShadow: 'var(--shadow-1-card)',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
MuiTable: {
|
|
36
|
+
styleOverrides: {
|
|
37
|
+
root: {
|
|
38
|
+
borderCollapse: 'separate',
|
|
39
|
+
borderSpacing: 0,
|
|
40
|
+
width: '100%',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
MuiTableHead: {
|
|
46
|
+
styleOverrides: {
|
|
47
|
+
root: {
|
|
48
|
+
'& .MuiTableCell-head': {
|
|
49
|
+
backgroundColor: 'var(--color-surface-brand)',
|
|
50
|
+
color: 'var(--color-text-primary)',
|
|
51
|
+
fontWeight: gatorTypography.fontWeight.bold,
|
|
52
|
+
borderBottom: '1px solid var(--color-border-tertiary)',
|
|
53
|
+
'&:hover': {
|
|
54
|
+
backgroundColor: 'var(--color-surface-brand-secondary)',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
MuiTableBody: {
|
|
62
|
+
styleOverrides: {
|
|
63
|
+
root: {
|
|
64
|
+
'& .MuiTableRow-root': {
|
|
65
|
+
backgroundColor: 'var(--color-surface-primary)',
|
|
66
|
+
transition: 'background-color 0.2s ease',
|
|
67
|
+
|
|
68
|
+
'&:hover': {
|
|
69
|
+
backgroundColor: 'var(--color-surface-hover)',
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
'&.Mui-selected': {
|
|
73
|
+
backgroundColor: 'var(--color-surface-brand)',
|
|
74
|
+
|
|
75
|
+
'&:hover': {
|
|
76
|
+
backgroundColor: 'var(--color-surface-hover)',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
// Remove border from last row
|
|
81
|
+
'&:last-child .MuiTableCell-root': {
|
|
82
|
+
borderBottom: 'none',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
MuiTableRow: {
|
|
90
|
+
styleOverrides: {
|
|
91
|
+
root: {
|
|
92
|
+
'&:not(:has(.MuiCheckbox-root)) .MuiTableCell-root': {
|
|
93
|
+
padding: 'var(--spacing-7)',
|
|
94
|
+
'&:first-of-type': {
|
|
95
|
+
paddingLeft: 24,
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
'&.Mui-selected': {
|
|
99
|
+
backgroundColor: 'var(--color-surface-brand)',
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
MuiTableCell: {
|
|
106
|
+
styleOverrides: {
|
|
107
|
+
root: {
|
|
108
|
+
fontFamily: gatorTypography.fontFamily.body,
|
|
109
|
+
fontSize: 'var(--font-size-body-2)',
|
|
110
|
+
color: 'var(--color-text-primary)',
|
|
111
|
+
borderBottom: '1px solid var(--color-border-tertiary)',
|
|
112
|
+
letterSpacing: 'var(--letter-spacing-default)',
|
|
113
|
+
'&:first-of-type': {
|
|
114
|
+
paddingLeft: 24,
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
|
|
118
|
+
head: {
|
|
119
|
+
fontWeight: gatorTypography.fontWeight.semiBold,
|
|
120
|
+
fontSize: 'var(--font-size-body-2)',
|
|
121
|
+
color: 'var(--color-text-primary)',
|
|
122
|
+
backgroundColor: 'var(--color-surface-secondary)',
|
|
123
|
+
borderBottom: '1px solid var(--color-border-tertiary)',
|
|
124
|
+
letterSpacing: 'var(--letter-spacing-default)',
|
|
125
|
+
'&:first-of-type': {
|
|
126
|
+
paddingLeft: 24,
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
body: {
|
|
131
|
+
fontSize: 'var(--font-size-body-2)',
|
|
132
|
+
fontWeight: gatorTypography.fontWeight.regular,
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
// Checkbox column sizing
|
|
136
|
+
paddingCheckbox: {
|
|
137
|
+
width: '48px',
|
|
138
|
+
padding: '0 var(--spacing-8)',
|
|
139
|
+
},
|
|
140
|
+
|
|
141
|
+
// Dense/comfortable sizing variants
|
|
142
|
+
sizeSmall: {
|
|
143
|
+
padding: 'var(--spacing-5)',
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
|
|
148
|
+
MuiTablePagination: {
|
|
149
|
+
styleOverrides: {
|
|
150
|
+
root: {
|
|
151
|
+
color: 'var(--color-text-primary)',
|
|
152
|
+
fontSize: 'var(--font-size-body-2)',
|
|
153
|
+
padding: 'var(--spacing-8) var(--spacing-10)',
|
|
154
|
+
borderTop: '1px solid var(--color-border-tertiary)',
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
toolbar: {
|
|
158
|
+
minHeight: '56px',
|
|
159
|
+
paddingLeft: 0,
|
|
160
|
+
paddingRight: 0,
|
|
161
|
+
},
|
|
162
|
+
|
|
163
|
+
selectLabel: {
|
|
164
|
+
margin: 0,
|
|
165
|
+
},
|
|
166
|
+
|
|
167
|
+
displayedRows: {
|
|
168
|
+
margin: 0,
|
|
169
|
+
},
|
|
170
|
+
|
|
171
|
+
select: {
|
|
172
|
+
color: 'var(--color-text-brand)',
|
|
173
|
+
fontSize: 'var(--font-size-body-2)',
|
|
174
|
+
fontWeight: gatorTypography.fontWeight.semiBold,
|
|
175
|
+
},
|
|
176
|
+
|
|
177
|
+
input: {
|
|
178
|
+
border: 'none',
|
|
179
|
+
padding: 0,
|
|
180
|
+
textDecoration: 'underline',
|
|
181
|
+
textUnderlineOffset: '4px',
|
|
182
|
+
textDecorationColor: 'var(--color-border-secondary)',
|
|
183
|
+
|
|
184
|
+
'&:focus': {
|
|
185
|
+
borderRadius: 'var(--border-radius-x-small)',
|
|
186
|
+
backgroundColor: 'var(--color-surface-secondary)',
|
|
187
|
+
borderColor: 'var(--color-border-brand)',
|
|
188
|
+
},
|
|
189
|
+
|
|
190
|
+
'&:hover': {
|
|
191
|
+
textDecorationColor: 'var(--color-border-brand)',
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
|
|
195
|
+
selectIcon: {
|
|
196
|
+
color: 'var(--color-icon-brand)',
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export const MUIGatorTextFieldOverrides = {
|
|
2
|
+
MuiInputLabel: {
|
|
3
|
+
defaultProps: {
|
|
4
|
+
shrink: true,
|
|
5
|
+
},
|
|
6
|
+
},
|
|
7
|
+
MuiInputBase: {
|
|
8
|
+
styleOverrides: {
|
|
9
|
+
root: {
|
|
10
|
+
borderRadius: 'var(--border-radius-x-small)',
|
|
11
|
+
fontSize: 'var(--font-size-body-1)',
|
|
12
|
+
lineHeight: 'var(--line-height-body-1)',
|
|
13
|
+
background: 'var(--color-surface-primary)',
|
|
14
|
+
padding: 'var(--spacing-7) var(--spacing-8)',
|
|
15
|
+
border: '1px solid var(--color-border-primary)',
|
|
16
|
+
marginTop: '0 !important',
|
|
17
|
+
'&:before': {
|
|
18
|
+
display: 'none',
|
|
19
|
+
},
|
|
20
|
+
'&:after': {
|
|
21
|
+
display: 'none',
|
|
22
|
+
},
|
|
23
|
+
'&:hover': {
|
|
24
|
+
borderColor: 'var(--color-border-brand-secondary)',
|
|
25
|
+
},
|
|
26
|
+
'&.Mui-focused': {
|
|
27
|
+
outline: '2px solid var(--color-border-focus)',
|
|
28
|
+
},
|
|
29
|
+
'&.Mui-disabled': {
|
|
30
|
+
background: 'var(--color-surface-tertiary)',
|
|
31
|
+
color: 'var(--color-text-disabled)',
|
|
32
|
+
borderColor: 'transparent',
|
|
33
|
+
},
|
|
34
|
+
'&.Mui-error': {
|
|
35
|
+
borderColor: 'var(--color-border-error-secondary)',
|
|
36
|
+
},
|
|
37
|
+
'&.Mui-readOnly': {
|
|
38
|
+
background: 'var(--color-surface-tertiary)',
|
|
39
|
+
borderColor: 'var(--color-border-secondary)',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
input: {
|
|
43
|
+
padding: 0,
|
|
44
|
+
color: 'var(--color-text-primary)',
|
|
45
|
+
fontSize: 'var(--font-size-body-1)',
|
|
46
|
+
lineHeight: 'var(--line-height-body-1)',
|
|
47
|
+
'&::placeholder': {
|
|
48
|
+
color: 'var(--color-text-placeholder)',
|
|
49
|
+
opacity: 1
|
|
50
|
+
},
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
MuiOutlinedInput: {
|
|
55
|
+
defaultProps: {
|
|
56
|
+
notched: false,
|
|
57
|
+
},
|
|
58
|
+
styleOverrides: {
|
|
59
|
+
root: {
|
|
60
|
+
padding: 0,
|
|
61
|
+
'fieldset': {
|
|
62
|
+
display: 'none'
|
|
63
|
+
},
|
|
64
|
+
input: {
|
|
65
|
+
padding: 'var(--spacing-7) var(--spacing-8)',
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
MuiFilledInput: {
|
|
71
|
+
defaultProps: {
|
|
72
|
+
disableUnderline: true,
|
|
73
|
+
},
|
|
74
|
+
styleOverrides: {
|
|
75
|
+
root: {
|
|
76
|
+
backgroundColor: 'var(--color-surface-primary)',
|
|
77
|
+
'&:hover': {
|
|
78
|
+
backgroundColor: 'var(--color-surface-primary)',
|
|
79
|
+
},
|
|
80
|
+
'&.Mui-focused': {
|
|
81
|
+
backgroundColor: 'var(--color-surface-primary)',
|
|
82
|
+
},
|
|
83
|
+
'&.Mui-disabled': {
|
|
84
|
+
backgroundColor: 'var(--color-surface-tertiary)',
|
|
85
|
+
},
|
|
86
|
+
'&.Mui-readOnly': {
|
|
87
|
+
backgroundColor: 'var(--color-surface-tertiary)',
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
input: {
|
|
91
|
+
padding: 0
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
MuiTextField: {
|
|
96
|
+
defaultProps: {
|
|
97
|
+
variant: 'standard',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export const gatorColorValues = {
|
|
2
|
+
brand: {
|
|
3
|
+
main: '#103656', // --color-brand-30
|
|
4
|
+
light: '#F0F5FA', // --color-brand-0
|
|
5
|
+
dark: '#0D2B45', // --color-brand-40
|
|
6
|
+
contrastText: '#FFFFFF',
|
|
7
|
+
},
|
|
8
|
+
error: {
|
|
9
|
+
main: '#D44011', // --color-red-30
|
|
10
|
+
light: '#FAEBE7', // --color-red-10
|
|
11
|
+
dark: '#AA330E', // --color-red-40
|
|
12
|
+
contrastText: '#FFFFFF',
|
|
13
|
+
},
|
|
14
|
+
success: {
|
|
15
|
+
main: '#22A969', // --color-green-30
|
|
16
|
+
light: '#E9F7F0', // --color-green-10
|
|
17
|
+
dark: '#1B8754', // --color-green-40
|
|
18
|
+
contrastText: '#FFFFFF',
|
|
19
|
+
},
|
|
20
|
+
warning: {
|
|
21
|
+
main: '#EC7000', // --color-orange-30
|
|
22
|
+
light: '#FEF1E6', // --color-orange-10
|
|
23
|
+
dark: '#BD5A00', // --color-orange-40
|
|
24
|
+
contrastText: '#040404', // Dark text for better contrast on orange
|
|
25
|
+
},
|
|
26
|
+
info: {
|
|
27
|
+
main: '#3355FF', // --color-blue-30
|
|
28
|
+
light: '#E8ECFF', // --color-blue-10
|
|
29
|
+
dark: '#2A46D4', // --color-blue-40
|
|
30
|
+
contrastText: '#FFFFFF',
|
|
31
|
+
},
|
|
32
|
+
ai: {
|
|
33
|
+
main: '#8000FF', // --color-purple-30
|
|
34
|
+
light: '#F6EEFF', // --color-purple-10
|
|
35
|
+
dark: '#6600CC', // --color-purple-40
|
|
36
|
+
contrastText: '#FFFFFF',
|
|
37
|
+
},
|
|
38
|
+
secondary: {
|
|
39
|
+
main: '#18A600', // --color-gator-green-30
|
|
40
|
+
light: '#EFFAED', // --color-gator-green-10
|
|
41
|
+
dark: '#107000', // --color-gator-green-40
|
|
42
|
+
contrastText: '#FFFFFF',
|
|
43
|
+
},
|
|
44
|
+
neutral: {
|
|
45
|
+
0: '#FFFFFF', // --color-neutral-0
|
|
46
|
+
10: '#F7F7F7', // --color-neutral-10
|
|
47
|
+
20: '#F2F2F2', // --color-neutral-20
|
|
48
|
+
30: '#E5E5E5', // --color-neutral-30
|
|
49
|
+
35: '#DBDBDB', // --color-neutral-35
|
|
50
|
+
40: '#BFBFBF', // --color-neutral-40
|
|
51
|
+
45: '#808080', // --color-neutral-45
|
|
52
|
+
50: '#6D6D6D', // --color-neutral-50
|
|
53
|
+
60: '#404040', // --color-neutral-60
|
|
54
|
+
70: '#1F1F1F', // --color-neutral-70
|
|
55
|
+
80: '#040404', // --color-neutral-80
|
|
56
|
+
},
|
|
57
|
+
text: {
|
|
58
|
+
primary: '#1F1F1F', // --color-text-primary / --color-neutral-70
|
|
59
|
+
secondary: '#6D6D6D', // --color-text-secondary / --color-neutral-50
|
|
60
|
+
disabled: '#BFBFBF', // --color-text-disabled / --color-neutral-40
|
|
61
|
+
},
|
|
62
|
+
background: {
|
|
63
|
+
default: '#FFFFFF', // --color-background-primary / --color-neutral-0
|
|
64
|
+
paper: '#F7F7F7', // --color-background-secondary / --color-neutral-10
|
|
65
|
+
},
|
|
66
|
+
divider: '#BFBFBF', // --color-border-primary / --color-neutral-50
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export const gatorTypography = {
|
|
70
|
+
fontFamily: {
|
|
71
|
+
body: '"Open Sans", system-ui, -apple-system, sans-serif',
|
|
72
|
+
headings: '"Lexend Deca", system-ui, -apple-system, sans-serif',
|
|
73
|
+
},
|
|
74
|
+
fontWeight: {
|
|
75
|
+
regular: 400,
|
|
76
|
+
medium: 500,
|
|
77
|
+
semiBold: 600,
|
|
78
|
+
bold: 700,
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
// Gator uses 8px base spacing which aligns with MUI's default
|
|
83
|
+
// Gator spacing scale: 1=2px, 2=4px, 3=8px, 4=16px, 6=24px, 7=32px
|
|
84
|
+
// MUI multiplies by 8, so spacing(1)=8px, spacing(2)=16px, etc.
|
|
85
|
+
export const gatorSpacing = 8;
|
|
86
|
+
|
|
87
|
+
export const gatorBorderRadius = {
|
|
88
|
+
none: 0, // --border-radius-no-radius
|
|
89
|
+
xsmall: 2, // --border-radius-x-small (0.125rem = 2px)
|
|
90
|
+
small: 4, // --border-radius-small (0.25rem = 4px)
|
|
91
|
+
medium: 8, // --border-radius-medium (0.5rem = 8px)
|
|
92
|
+
large: 12, // --border-radius-large (0.75rem = 12px)
|
|
93
|
+
xlarge: 16, // --border-radius-x-large (1rem = 16px)
|
|
94
|
+
xxlarge: 24, // --border-radius-xx-large (1.5rem = 24px)
|
|
95
|
+
xxxlarge: 32, // --border-radius-xxx-large (2rem = 32px)
|
|
96
|
+
circle: 9999, // --border-radius-circle
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const gatorShadows = [
|
|
100
|
+
'none',
|
|
101
|
+
// shadow-1-card
|
|
102
|
+
'0 1px 1.5px 0px rgba(31, 31, 31, 0.04), 0 2px 5px 0px rgba(31, 31, 31, 0.05), 0 3px 9px 6px rgba(31, 31, 31, 0.08)',
|
|
103
|
+
// shadow-2-card-raised
|
|
104
|
+
'0 5px 10px 0px rgba(31, 31, 31, 0.05), 0 7px 14px 0px rgba(31, 31, 31, 0.08), 0 3px 6px 0px rgba(31, 31, 31, 0.04)',
|
|
105
|
+
// shadow-3-dropdown
|
|
106
|
+
'0 7px 12px 0px rgba(31, 31, 31, 0.05), 0 8px 16px 0px rgba(31, 31, 31, 0.08), 0 9px 18px 0px rgba(31, 31, 31, 0.10)',
|
|
107
|
+
// shadow-4-modal
|
|
108
|
+
'0 9px 15px 0px rgba(31, 31, 31, 0.05), 0 10px 20px 0px rgba(31, 31, 31, 0.08), 0 9px 20px 0px rgba(31, 31, 31, 0.10)',
|
|
109
|
+
// Repeat shadow-4-modal for indices 5-24 (MUI requires 25 shadow values)
|
|
110
|
+
...Array(20).fill('0 9px 15px 0px rgba(31, 31, 31, 0.05), 0 10px 20px 0px rgba(31, 31, 31, 0.08), 0 9px 20px 0px rgba(31, 31, 31, 0.10)'),
|
|
111
|
+
] as [string, ...string[]];
|