Refactored Select

This commit is contained in:
Cagatay Civici 2024-05-05 20:08:51 +03:00
parent c24c1d0176
commit 18283c10fa
3 changed files with 38 additions and 71 deletions

View file

@ -220,7 +220,7 @@ export default {
},
optionGroup: {
background: '{surface.0}',
color: '{surface.500}'
color: '{text.muted.color}'
}
},
navigation: {
@ -320,7 +320,7 @@ export default {
},
optionGroup: {
background: '{surface.900}',
color: '{surface.400}'
color: '{text.muted.color}'
}
},
navigation: {

View file

@ -13,64 +13,31 @@ export default {
placeholderColor: '{form.field.placeholder.color}',
boxShadow: '{form.field.box.shadow}'
},
colorScheme: {
light: {
toggle: {
color: '{surface.400}'
},
overlay: {
background: '{surface.0}',
borderColor: '{surface.200}',
color: '{surface.700}'
},
filterIcon: {
color: '{surface.400}'
},
itemGroup: {
background: '{surface.0}',
color: '{surface.500}'
},
item: {
focusBackground: '{surface.100}',
selectedBackground: '{highlight.background}',
selectedFocusBackground: '{highlight.focus.background}',
color: '{surface.700}',
focusColor: '{surface.800}',
selectedColor: '{highlight.color}',
selectedFocusColor: '{highlight.focus.color}'
},
checkmark: {
color: '{surface.400}'
}
},
dark: {
toggle: {
color: '{surface.400}'
},
overlay: {
background: '{surface.900}',
borderColor: '{surface.700}',
color: '{surface.0}'
},
filterIcon: {
color: '{surface.400}'
},
itemGroup: {
background: '{surface.900}',
color: '{surface.400}'
},
item: {
focusBackground: '{surface.800}',
selectedBackground: '{highlight.background}',
selectedFocusBackground: '{highlight.focus.background}',
color: '{surface.0}',
focusColor: '{surface.0}',
selectedColor: '{highlight.color}',
selectedFocusColor: '{highlight.focus.color}'
},
checkmark: {
color: '{surface.400}'
}
}
dropdown: {
color: '{form.field.icon.color}'
},
overlay: {
background: '{overlay.select.background}',
borderColor: '{overlay.select.border.color}',
color: '{overlay.select.color}'
},
option: {
focusBackground: '{list.option.focus.background}',
selectedBackground: '{list.option.selected.background}',
selectedFocusBackground: '{list.option.selected.focus.background}',
color: '{list.option.color}',
focusColor: '{list.option.focus.color}',
selectedColor: '{list.option.selected.color}',
selectedFocusColor: '{list.option.selected.focus.color}'
},
optionGroup: {
background: '{list.option.group.background}',
color: '{list.option.group.color}'
},
filterIcon: {
color: '{form.field.icon.color}'
},
checkmark: {
color: '{list.option.color}'
}
};