Refactored Menu component tokens

pull/5701/head
Cagatay Civici 2024-05-04 20:06:51 +03:00
parent b2a5787d4a
commit 4870d66609
20 changed files with 256 additions and 416 deletions

View File

@ -79,33 +79,33 @@ const theme = ({ dt }) => `
} }
.p-contextmenu-item.p-focus > .p-contextmenu-item-content { .p-contextmenu-item.p-focus > .p-contextmenu-item-content {
color: ${dt('contextmenu.item.focus.color')}; color: ${dt('contextmenu.item.hover.color')};
background: ${dt('contextmenu.item.focus.background')}; background: ${dt('contextmenu.item.hover.background')};
} }
.p-contextmenu-item.p-focus > .p-contextmenu-item-content .p-contextmenu-item-icon, .p-contextmenu-item.p-focus > .p-contextmenu-item-content .p-contextmenu-item-icon,
.p-contextmenu-item.p-focus > .p-contextmenu-item-content .p-contextmenu-submenu-icon { .p-contextmenu-item.p-focus > .p-contextmenu-item-content .p-contextmenu-submenu-icon {
color: ${dt('contextmenu.item.icon.focus.color')}; color: ${dt('contextmenu.item.icon.hover.color')};
} }
.p-contextmenu-item:not(.p-disabled) > .p-contextmenu-item-content:hover { .p-contextmenu-item:not(.p-disabled) > .p-contextmenu-item-content:hover {
color: ${dt('contextmenu.item.focus.color')}; color: ${dt('contextmenu.item.hover.color')};
background: ${dt('contextmenu.item.focus.background')}; background: ${dt('contextmenu.item.hover.background')};
} }
.p-contextmenu-item:not(.p-disabled) > .p-contextmenu-item-content:hover .p-contextmenu-item-icon, .p-contextmenu-item:not(.p-disabled) > .p-contextmenu-item-content:hover .p-contextmenu-item-icon,
.p-contextmenu-item:not(.p-disabled) > .p-contextmenu-item-content:hover .p-contextmenu-submenu-icon { .p-contextmenu-item:not(.p-disabled) > .p-contextmenu-item-content:hover .p-contextmenu-submenu-icon {
color: ${dt('contextmenu.item.icon.focus.color')}; color: ${dt('contextmenu.item.icon.hover.color')};
} }
.p-contextmenu-item-active > .p-contextmenu-item-content { .p-contextmenu-item-active > .p-contextmenu-item-content {
color: ${dt('contextmenu.item.focus.color')}; color: ${dt('contextmenu.item.hover.color')};
background: ${dt('contextmenu.item.focus.background')}; background: ${dt('contextmenu.item.hover.background')};
} }
.p-contextmenu-item-active > .p-contextmenu-item-content .p-contextmenu-item-icon, .p-contextmenu-item-active > .p-contextmenu-item-content .p-contextmenu-item-icon,
.p-contextmenu-item-active > .p-contextmenu-item-content .p-contextmenu-submenu-icon { .p-contextmenu-item-active > .p-contextmenu-item-content .p-contextmenu-submenu-icon {
color: ${dt('contextmenu.item.icon.focus.color')}; color: ${dt('contextmenu.item.icon.hover.color')};
} }
.p-contextmenu-separator { .p-contextmenu-separator {

View File

@ -46,33 +46,33 @@ const theme = ({ dt }) => `
} }
.p-megamenu-item.p-focus > .p-megamenu-item-content { .p-megamenu-item.p-focus > .p-megamenu-item-content {
color: ${dt('megamenu.item.focus.color')}; color: ${dt('megamenu.item.hover.color')};
background: ${dt('megamenu.item.focus.background')}; background: ${dt('megamenu.item.hover.background')};
} }
.p-megamenu-item.p-focus > .p-megamenu-item-content .p-megamenu-item-icon, .p-megamenu-item.p-focus > .p-megamenu-item-content .p-megamenu-item-icon,
.p-megamenu-item.p-focus > .p-megamenu-item-content .p-megamenu-submenu-icon { .p-megamenu-item.p-focus > .p-megamenu-item-content .p-megamenu-submenu-icon {
color: ${dt('megamenu.item.icon.focus.color')}; color: ${dt('megamenu.item.icon.hover.color')};
} }
.p-megamenu-item:not(.p-disabled) > .p-megamenu-item-content:hover { .p-megamenu-item:not(.p-disabled) > .p-megamenu-item-content:hover {
color: ${dt('megamenu.item.focus.color')}; color: ${dt('megamenu.item.hover.color')};
background: ${dt('megamenu.item.focus.background')}; background: ${dt('megamenu.item.hover.background')};
} }
.p-megamenu-item:not(.p-disabled) > .p-megamenu-item-content:hover .p-megamenu-item-icon, .p-megamenu-item:not(.p-disabled) > .p-megamenu-item-content:hover .p-megamenu-item-icon,
.p-megamenu-item:not(.p-disabled) > .p-megamenu-item-content:hover .p-megamenu-submenu-icon { .p-megamenu-item:not(.p-disabled) > .p-megamenu-item-content:hover .p-megamenu-submenu-icon {
color: ${dt('megamenu.item.icon.focus.color')}; color: ${dt('megamenu.item.icon.hover.color')};
} }
.p-megamenu-item-active > .p-megamenu-item-content { .p-megamenu-item-active > .p-megamenu-item-content {
color: ${dt('megamenu.item.focus.color')}; color: ${dt('megamenu.item.hover.color')};
background: ${dt('megamenu.item.focus.background')}; background: ${dt('megamenu.item.hover.background')};
} }
.p-megamenu-item-active > .p-megamenu-item-content .p-megamenu-item-icon, .p-megamenu-item-active > .p-megamenu-item-content .p-megamenu-item-icon,
.p-megamenu-item-active > .p-megamenu-item-content .p-megamenu-submenu-icon { .p-megamenu-item-active > .p-megamenu-item-content .p-megamenu-submenu-icon {
color: ${dt('megamenu.item.icon.focus.color')}; color: ${dt('megamenu.item.icon.hover.color')};
} }
.p-megamenu-submenu-icon { .p-megamenu-submenu-icon {
@ -123,7 +123,7 @@ const theme = ({ dt }) => `
.p-megamenu-submenu .p-megamenu-submenu-item { .p-megamenu-submenu .p-megamenu-submenu-item {
margin: 0; margin: 0;
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
color: ${dt('megamenu.submenu.header.color')}; color: ${dt('megamenu.submenu.item.color')};
font-weight: 600; font-weight: 600;
margin-bottom: 2px; margin-bottom: 2px;
} }

View File

@ -57,21 +57,21 @@ const theme = ({ dt }) => `
} }
.p-menu-item.p-focus .p-menu-item-content { .p-menu-item.p-focus .p-menu-item-content {
color: ${dt('menu.item.focus.color')}; color: ${dt('menu.item.hover.color')};
background: ${dt('menu.item.focus.background')}; background: ${dt('menu.item.hover.background')};
} }
.p-menu-item.p-focus .p-menu-item-icon { .p-menu-item.p-focus .p-menu-item-icon {
color: ${dt('menu.item.icon.focus.color')}; color: ${dt('menu.item.icon.hover.color')};
} }
.p-menu-item:not(.p-disabled) .p-menu-item-content:hover { .p-menu-item:not(.p-disabled) .p-menu-item-content:hover {
color: ${dt('menu.item.focus.color')}; color: ${dt('menu.item.hover.color')};
background: ${dt('menu.item.focus.background')}; background: ${dt('menu.item.hover.background')};
} }
.p-menu-item:not(.p-disabled) .p-menu-item-content:hover .p-menu-item-icon { .p-menu-item:not(.p-disabled) .p-menu-item-content:hover .p-menu-item-icon {
color: ${dt('menu.item.icon.focus.color')}; color: ${dt('menu.item.icon.hover.color')};
} }
.p-menu-overlay { .p-menu-overlay {
@ -81,7 +81,7 @@ const theme = ({ dt }) => `
.p-menu-submenu-item { .p-menu-submenu-item {
margin: 0; margin: 0;
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
color: ${dt('menu.submenu.header.color')}; color: ${dt('menu.submenu.item.color')};
font-weight: 600; font-weight: 600;
} }

View File

@ -57,33 +57,33 @@ const theme = ({ dt }) => `
} }
.p-menubar-item.p-focus > .p-menubar-item-content { .p-menubar-item.p-focus > .p-menubar-item-content {
color: ${dt('menubar.item.focus.color')}; color: ${dt('menubar.item.hover.color')};
background: ${dt('menubar.item.focus.background')}; background: ${dt('menubar.item.hover.background')};
} }
.p-menubar-item.p-focus > .p-menubar-item-content .p-menubar-item-icon, .p-menubar-item.p-focus > .p-menubar-item-content .p-menubar-item-icon,
.p-menubar-item.p-focus > .p-menubar-item-content .p-menubar-submenu-icon { .p-menubar-item.p-focus > .p-menubar-item-content .p-menubar-submenu-icon {
color: ${dt('menubar.item.icon.focus.color')}; color: ${dt('menubar.item.icon.hover.color')};
} }
.p-menubar-item:not(.p-disabled) > .p-menubar-item-content:hover { .p-menubar-item:not(.p-disabled) > .p-menubar-item-content:hover {
color: ${dt('menubar.item.focus.color')}; color: ${dt('menubar.item.hover.color')};
background: ${dt('menubar.item.focus.background')}; background: ${dt('menubar.item.hover.background')};
} }
.p-menubar-item:not(.p-disabled) > .p-menubar-item-content:hover .p-menubar-item-icon, .p-menubar-item:not(.p-disabled) > .p-menubar-item-content:hover .p-menubar-item-icon,
.p-menubar-item:not(.p-disabled) > .p-menubar-item-content:hover .p-menubar-submenu-icon { .p-menubar-item:not(.p-disabled) > .p-menubar-item-content:hover .p-menubar-submenu-icon {
color: ${dt('menubar.item.icon.focus.color')}; color: ${dt('menubar.item.icon.hover.color')};
} }
.p-menubar-item-active > .p-menubar-item-content { .p-menubar-item-active > .p-menubar-item-content {
color: ${dt('menubar.item.focus.color')}; color: ${dt('menubar.item.hover.color')};
background: ${dt('menubar.item.focus.background')}; background: ${dt('menubar.item.hover.background')};
} }
.p-menubar-item-active > .p-menubar-item-content .p-menubar-item-icon, .p-menubar-item-active > .p-menubar-item-content .p-menubar-item-icon,
.p-menubar-item-active > .p-menubar-item-content .p-menubar-submenu-icon { .p-menubar-item-active > .p-menubar-item-content .p-menubar-submenu-icon {
color: ${dt('menubar.item.icon.focus.color')}; color: ${dt('menubar.item.icon.hover.color')};
} }
.p-menubar-submenu-icon { .p-menubar-submenu-icon {

View File

@ -48,23 +48,23 @@ const theme = ({ dt }) => `
} }
.p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content { .p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content {
background: ${dt('panelmenu.item.focus.background')}; background: ${dt('panelmenu.item.hover.background')};
color: ${dt('panelmenu.item.focus.color')}; color: ${dt('panelmenu.item.hover.color')};
} }
.p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-panelmenu-submenu-icon, .p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-panelmenu-submenu-icon,
.p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-panelmenu-header-icon { .p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-panelmenu-header-icon {
color: ${dt('panelmenu.item.icon.focus.color')}; color: ${dt('panelmenu.item.icon.hover.color')};
} }
.p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover { .p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover {
background: ${dt('panelmenu.item.focus.background')}; background: ${dt('panelmenu.item.hover.background')};
color: ${dt('panelmenu.item.focus.color')}; color: ${dt('panelmenu.item.hover.color')};
} }
.p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover .p-panelmenu-submenu-icon, .p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover .p-panelmenu-submenu-icon,
.p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover .p-panelmenu-header-icon { .p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover .p-panelmenu-header-icon {
color: ${dt('panelmenu.item.icon.focus.color')}; color: ${dt('panelmenu.item.icon.hover.color')};
} }
.p-panelmenu .p-panelmenu-item { .p-panelmenu .p-panelmenu-item {
@ -110,22 +110,22 @@ const theme = ({ dt }) => `
} }
.p-panelmenu-item.p-focus > .p-panelmenu-item-content { .p-panelmenu-item.p-focus > .p-panelmenu-item-content {
background: ${dt('panelmenu.item.focus.background')}; background: ${dt('panelmenu.item.hover.background')};
color: ${dt('panelmenu.item.focus.color')}; color: ${dt('panelmenu.item.hover.color')};
} }
.p-panelmenu-item.p-focus > .p-panelmenu-item-icon { .p-panelmenu-item.p-focus > .p-panelmenu-item-icon {
color: ${dt('panelmenu.item.focus.color')}; color: ${dt('panelmenu.item.hover.color')};
} }
.p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover { .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover {
background: ${dt('panelmenu.item.focus.background')}; background: ${dt('panelmenu.item.hover.background')};
color: ${dt('panelmenu.item.focus.color')}; color: ${dt('panelmenu.item.hover.color')};
} }
.p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-item-icon, .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-item-icon,
.p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon { .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon {
color: ${dt('panelmenu.item.icon.focus.color')}; color: ${dt('panelmenu.item.icon.hover.color')};
} }
`; `;

View File

@ -29,7 +29,7 @@ const theme = ({ dt }) => `
.p-steps-item:before { .p-steps-item:before {
content: " "; content: " ";
border-top: 2px solid ${dt('steps.connector.border.color')}; border-top: 2px solid ${dt('steps.separator.background')};
width: 100%; width: 100%;
top: 50%; top: 50%;
left: 0; left: 0;
@ -70,7 +70,7 @@ const theme = ({ dt }) => `
text-overflow: ellipsis; text-overflow: ellipsis;
max-width: 100%; max-width: 100%;
margin-top: 0.5rem; margin-top: 0.5rem;
color: ${dt('steps.item.color')}; color: ${dt('steps.item.label.color')};
display: block; display: block;
font-weight: 500; font-weight: 500;
} }
@ -79,9 +79,9 @@ const theme = ({ dt }) => `
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: ${dt('steps.marker.color')}; color: ${dt('steps.item.number.color')};
border: 2px solid ${dt('steps.marker.border.color')}; border: 2px solid ${dt('steps.item.number.border.color')};
background: ${dt('steps.marker.background')}; background: ${dt('steps.item.number.background')};
min-width: 2rem; min-width: 2rem;
height: 2rem; height: 2rem;
line-height: 2rem; line-height: 2rem;
@ -106,13 +106,13 @@ const theme = ({ dt }) => `
} }
.p-steps-item-active .p-steps-item-number { .p-steps-item-active .p-steps-item-number {
background: ${dt('steps.marker.active.background')}; background: ${dt('steps.item.number.active.background')};
color: ${dt('steps.marker.active.color')}; color: ${dt('steps.item.number.active.color')};
} }
.p-steps-item-active .p-steps-item-label { .p-steps-item-active .p-steps-item-label {
font-weight: 500; font-weight: 500;
color: ${dt('steps.item.active.color')}; color: ${dt('steps.item.label.active.color')};
} }
`; `;

View File

@ -11,8 +11,8 @@ const theme = ({ dt }) => `
padding: 0; padding: 0;
list-style-type: none; list-style-type: none;
flex: 1 1 auto; flex: 1 1 auto;
background: ${dt('tabmenu.nav.background')}; background: ${dt('tabmenu.tablist.background')};
border: 1px solid ${dt('tabmenu.nav.border.color')}; border: 1px solid ${dt('tabmenu.tablist.border.color')};
border-width: 0 0 1px 0; border-width: 0 0 1px 0;
position: relative; position: relative;
} }
@ -27,8 +27,8 @@ const theme = ({ dt }) => `
overflow: hidden; overflow: hidden;
border-style: solid; border-style: solid;
border-width: 0 0 1px 0; border-width: 0 0 1px 0;
border-color: transparent transparent ${dt('tabmenu.header.border.color')} transparent; border-color: transparent transparent ${dt('tabmenu.item.link.border.color')} transparent;
color: ${dt('tabmenu.header.color')}; color: ${dt('tabmenu.item.link.color')};
padding: 1rem 1.125rem; padding: 1rem 1.125rem;
font-weight: 600; font-weight: 600;
border-top-right-radius: ${dt('rounded.base')}; border-top-right-radius: ${dt('rounded.base')};
@ -51,11 +51,11 @@ const theme = ({ dt }) => `
line-height: 1; line-height: 1;
} }
.p-tabmenu-item:not(.p-tabmenu-item-active):not(.p-disabled):hover .p-tabmenu-item-link { .p-tabmenu-item:not(.p-tabmenu-item-active):not(.p-disabled):hover .p-tabmenu-item-link {
color: ${dt('tabmenu.header.hover.color')}; color: ${dt('tabmenu.item.link.hover.color')};
} }
.p-tabmenu-item-active .p-tabmenu-item-link { .p-tabmenu-item-active .p-tabmenu-item-link {
color: ${dt('tabmenu.header.active.border.color')}; color: ${dt('tabmenu.item.link.active.border.color')};
} }
.p-tabmenu-ink-bar { .p-tabmenu-ink-bar {
@ -64,7 +64,7 @@ const theme = ({ dt }) => `
position: absolute; position: absolute;
bottom: -1px; bottom: -1px;
height: 1px; height: 1px;
background-color: ${dt('tabmenu.header.active.border.color')}; background-color: ${dt('tabmenu.item.link.active.border.color')};
transition: 250ms cubic-bezier(0.35, 0, 0.25, 1); transition: 250ms cubic-bezier(0.35, 0, 0.25, 1);
} }

View File

@ -1,30 +1,13 @@
export default { export default {
colorScheme: {
root: { root: {
background: '{surface.0}' background: '{container.background}'
},
light: {
item: {
color: '{surface.500}',
hoverColor: '{surface.700}',
iconColor: '{surface.400}'
},
separator: {
color: '{surface.400}'
}
},
dark: {
root: {
background: '{surface.900}'
}, },
item: { item: {
color: '{surface.400}', color: '{text.muted.color}',
hoverColor: '{surface.0}', hoverColor: '{text.color}',
iconColor: '{surface.500}' iconColor: '{navigation.item.icon.color}'
}, },
separator: { separator: {
color: '{surface.500}' color: '{navigation.item.icon.color}'
}
}
} }
}; };

View File

@ -1,42 +1,22 @@
export default { export default {
colorScheme: {
light: {
root: { root: {
background: '{surface.0}', background: '{content.background}',
borderColor: '{surface.200}', borderColor: '{content.border.color}',
color: '{surface.700}' color: '{content.color}'
}, },
item: { item: {
focusBackground: '{surface.100}', hoverBackground: '{navigation.item.hover.background}',
color: '{surface.700}', color: '{navigation.item.color}',
focusColor: '{surface.800}', hoverColor: '{navigation.item.hover.color}',
icon: { icon: {
color: '{surface.400}', color: '{navigation.item.icon.color}',
focusColor: '{surface.500}' hoverColor: '{navigation.item.icon.hover.color}'
} }
}, },
submenuItem: {
color: '{navigation.submenu.label.color}'
},
separator: { separator: {
borderColor: '{surface.200}' borderColor: '{content.border.color}'
}
},
dark: {
root: {
background: '{surface.900}',
borderColor: '{surface.700}',
color: '{surface.0}'
},
item: {
focusBackground: '{surface.800}',
color: '{surface.0}',
focusColor: '{surface.0}',
icon: {
color: '{surface.500}',
focusColor: '{surface.400}'
}
},
separator: {
borderColor: '{surface.700}'
}
}
} }
}; };

View File

@ -195,6 +195,22 @@ export default {
borderColor: '{surface.200}', borderColor: '{surface.200}',
color: '{text.color}', color: '{text.color}',
hoverColor: '{text.hover.color}' hoverColor: '{text.hover.color}'
},
navigation: {
item: {
hoverBackground: '{surface.100}',
color: '{text.color}',
hoverColor: '{text.hover.color}',
icon: {
color: '{surface.400}',
hoverColor: '{surface.500}'
}
},
submenu: {
label: {
color: '{surface.400}'
}
}
} }
}, },
dark: { dark: {
@ -254,6 +270,22 @@ export default {
borderColor: '{surface.700}', borderColor: '{surface.700}',
color: '{text.color}', color: '{text.color}',
hoverColor: '{text.hover.color}' hoverColor: '{text.hover.color}'
},
navigation: {
item: {
hoverBackground: '{surface.800}',
color: '{text.color}',
hoverColor: '{text.hover.color}',
icon: {
color: '{surface.500}',
hoverColor: '{surface.400}'
}
},
submenu: {
label: {
color: '{surface.500}'
}
}
} }
} }
} }

View File

@ -1,58 +1,30 @@
export default { export default {
colorScheme: {
light: {
root: { root: {
background: '{surface.0}', background: '{content.background}',
borderColor: '{surface.200}', borderColor: '{content.border.color}',
color: '{surface.700}' color: '{content.color}'
}, },
item: { item: {
focusBackground: '{surface.100}', hoverBackground: '{navigation.item.hover.background}',
color: '{surface.700}', color: '{navigation.item.color}',
focusColor: '{surface.800}', hoverColor: '{navigation.item.hover.color}',
icon: { icon: {
color: '{surface.400}', color: '{navigation.item.icon.color}',
focusColor: '{surface.500}' hoverColor: '{navigation.item.icon.hover.color}'
} }
}, },
submenuHeader: { submenuItem: {
color: '{surface.400}' color: '{navigation.submenu.label.color}'
}, },
separator: { separator: {
borderColor: '{surface.200}' borderColor: '{content.border.color}'
}, },
mobileToggle: { mobileToggle: {
color: '{surface.500}', color: '{text.muted.color}',
hoverColor: '{surface.600}', hoverColor: '{text.muted.hover.color}',
hoverBackground: '{surface.100}' hoverBackground: '{content.hover.background}'
}
}, },
dark: { submenuItem: {
root: { color: '{navigation.submenu.label.color}'
background: '{surface.900}',
borderColor: '{surface.700}',
color: '{surface.0}'
},
item: {
focusBackground: '{surface.800}',
color: '{surface.0}',
focusColor: '{surface.0}',
icon: {
color: '{surface.500}',
focusColor: '{surface.400}'
}
},
submenuHeader: {
color: '{surface.500}'
},
separator: {
borderColor: '{surface.700}'
},
toggleIcon: {
color: '{surface.400}',
hoverColor: '{surface.300}',
hoverBackground: '{surface.800}'
}
}
} }
}; };

View File

@ -1,48 +1,22 @@
export default { export default {
colorScheme: {
light: {
root: { root: {
background: '{surface.0}', background: '{content.background}',
borderColor: '{surface.200}', borderColor: '{content.border.color}',
color: '{surface.700}' color: '{content.color}'
}, },
item: { item: {
focusBackground: '{surface.100}', hoverBackground: '{navigation.item.hover.background}',
color: '{surface.700}', color: '{navigation.item.color}',
focusColor: '{surface.800}', hoverColor: '{navigation.item.hover.color}',
icon: { icon: {
color: '{surface.400}', color: '{navigation.item.icon.color}',
focusColor: '{surface.500}' hoverColor: '{navigation.item.icon.hover.color}'
} }
}, },
submenuHeader: { submenuItem: {
color: '{surface.400}' color: '{navigation.submenu.label.color}'
}, },
separator: { separator: {
borderColor: '{surface.200}' borderColor: '{content.border.color}'
}
},
dark: {
root: {
background: '{surface.900}',
borderColor: '{surface.700}',
color: '{surface.0}'
},
item: {
focusBackground: '{surface.800}',
color: '{surface.0}',
focusColor: '{surface.0}',
icon: {
color: '{surface.500}',
focusColor: '{surface.400}'
}
},
submenuHeader: {
color: '{surface.500}'
},
separator: {
borderColor: '{surface.700}'
}
}
} }
}; };

View File

@ -1,52 +1,27 @@
export default { export default {
colorScheme: {
light: {
root: { root: {
background: '{surface.0}', background: '{content.background}',
borderColor: '{surface.200}', borderColor: '{content.border.color}',
color: '{surface.700}' color: '{content.color}'
}, },
item: { item: {
focusBackground: '{surface.100}', hoverBackground: '{navigation.item.hover.background}',
color: '{surface.700}', color: '{navigation.item.color}',
focusColor: '{surface.800}', hoverColor: '{navigation.item.hover.color}',
icon: { icon: {
color: '{surface.400}', color: '{navigation.item.icon.color}',
focusColor: '{surface.500}' hoverColor: '{navigation.item.icon.hover.color}'
} }
}, },
submenuItem: {
color: '{navigation.submenu.label.color}'
},
separator: { separator: {
borderColor: '{surface.200}' borderColor: '{content.border.color}'
}, },
mobileToggle: { mobileToggle: {
color: '{surface.500}', color: '{text.muted.color}',
hoverColor: '{surface.600}', hoverColor: '{text.muted.hover.color}',
hoverBackground: '{surface.100}' hoverBackground: '{content.hover.background}'
}
},
dark: {
root: {
background: '{surface.900}',
borderColor: '{surface.700}',
color: '{surface.0}'
},
item: {
focusBackground: '{surface.800}',
color: '{surface.0}',
focusColor: '{surface.0}',
icon: {
color: '{surface.500}',
focusColor: '{surface.400}'
}
},
separator: {
borderColor: '{surface.700}'
},
mobileToggle: {
color: '{surface.400}',
hoverColor: '{surface.300}',
hoverBackground: '{surface.800}'
}
}
} }
}; };

View File

@ -1,36 +1,16 @@
export default { export default {
colorScheme: {
light: {
panel: { panel: {
background: '{surface.0}', background: '{content.background}',
borderColor: '{surface.200}', borderColor: '{content.border.color}',
color: '{surface.700}' color: '{content.color}'
}, },
item: { item: {
focusBackground: '{surface.100}', hoverBackground: '{navigation.item.hover.background}',
color: '{surface.700}', color: '{navigation.item.color}',
focusColor: '{surface.800}', hoverColor: '{navigation.item.hover.color}',
icon: { icon: {
color: '{surface.400}', color: '{navigation.item.icon.color}',
focusColor: '{surface.500}' hoverColor: '{navigation.item.icon.hover.color}'
}
}
},
dark: {
panel: {
background: '{surface.900}',
borderColor: '{surface.700}',
color: '{surface.0}'
},
item: {
focusBackground: '{surface.800}',
color: '{surface.0}',
focusColor: '{surface.0}',
icon: {
color: '{surface.500}',
focusColor: '{surface.400}'
}
}
} }
} }
}; };

View File

@ -1,36 +1,16 @@
export default { export default {
colorScheme: { separator: {
light: { background: '{content.border.color}'
connector: {
borderColor: '{surface.200}'
}, },
item: { itemLabel: {
color: '{surface.700}', color: '{text.color}',
activeColor: '{primary.color}' activeColor: '{primary.color}'
}, },
marker: { itemNumber: {
background: '{surface.0}', background: '{content.background}',
activeBackground: '{surface.0}', activeBackground: '{content.background}',
borderColor: '{surface.200}', borderColor: '{content.border.color}',
color: '{surface.500}', color: '{text.muted.color}',
activeColor: '{primary.color}' activeColor: '{primary.color}'
} }
},
dark: {
connector: {
borderColor: '{surface.700}'
},
item: {
color: '{surface.0}',
activeColor: '{primary.color}'
},
marker: {
background: '{surface.900}',
activeBackground: '{surface.900}',
borderColor: '{surface.700}',
color: '{surface.400}',
activeColor: '{primary.color}'
}
}
}
}; };

View File

@ -1,28 +1,12 @@
export default { export default {
colorScheme: { tablist: {
light: { background: '{content.background}',
nav: { borderColor: '{content.border.color}'
background: '{surface.0}',
borderColor: '{surface.200}'
}, },
header: { itemLink: {
borderColor: '{surface.200}', borderColor: '{content.border.color}',
activeBorderColor: '{primary.color}', activeBorderColor: '{primary.color}',
color: '{surface.500}', color: '{text.muted.color}',
hoverColor: '{surface.700}' hoverColor: '{text.color}'
}
},
dark: {
nav: {
background: '{surface.900}',
borderColor: '{surface.700}'
},
header: {
borderColor: '{surface.700}',
activeBorderColor: '{primary.color}',
color: '{surface.400}',
hoverColor: '{surface.0}'
}
}
} }
}; };

View File

@ -1,42 +1,22 @@
export default { export default {
colorScheme: {
light: {
root: { root: {
background: '{surface.0}', background: '{content.background}',
borderColor: '{surface.200}', borderColor: '{content.border.color}',
color: '{surface.700}' color: '{content.color}'
}, },
item: { item: {
focusBackground: '{surface.100}', hoverBackground: '{navigation.item.hover.background}',
color: '{surface.700}', color: '{navigation.item.color}',
focusColor: '{surface.800}', hoverColor: '{navigation.item.hover.color}',
icon: { icon: {
color: '{surface.400}', color: '{navigation.item.icon.color}',
focusColor: '{surface.500}' hoverColor: '{navigation.item.icon.hover.color}'
} }
}, },
submenuItem: {
color: '{navigation.submenu.label.color}'
},
separator: { separator: {
borderColor: '{surface.200}' borderColor: '{content.border.color}'
}
},
dark: {
root: {
background: '{surface.900}',
borderColor: '{surface.700}',
color: '{surface.0}'
},
item: {
focusBackground: '{surface.800}',
color: '{surface.0}',
focusColor: '{surface.0}',
icon: {
color: '{surface.500}',
focusColor: '{surface.400}'
}
},
separator: {
borderColor: '{surface.700}'
}
}
} }
}; };

View File

@ -79,33 +79,33 @@ const theme = ({ dt }) => `
} }
.p-tieredmenu-item.p-focus > .p-tieredmenu-item-content { .p-tieredmenu-item.p-focus > .p-tieredmenu-item-content {
color: ${dt('tieredmenu.item.focus.color')}; color: ${dt('tieredmenu.item.hover.color')};
background: ${dt('tieredmenu.item.focus.background')}; background: ${dt('tieredmenu.item.hover.background')};
} }
.p-tieredmenu-item.p-focus > .p-tieredmenu-item-content .p-tieredmenu-item-icon, .p-tieredmenu-item.p-focus > .p-tieredmenu-item-content .p-tieredmenu-item-icon,
.p-tieredmenu-item.p-focus > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon { .p-tieredmenu-item.p-focus > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon {
color: ${dt('tieredmenu.item.icon.focus.color')}; color: ${dt('tieredmenu.item.icon.hover.color')};
} }
.p-tieredmenu-item:not(.p-disabled) > .p-tieredmenu-item-content:hover { .p-tieredmenu-item:not(.p-disabled) > .p-tieredmenu-item-content:hover {
color: ${dt('tieredmenu.item.focus.color')}; color: ${dt('tieredmenu.item.hover.color')};
background: ${dt('tieredmenu.item.focus.background')}; background: ${dt('tieredmenu.item.hover.background')};
} }
.p-tieredmenu-item:not(.p-disabled) > .p-tieredmenu-item-content:hover .p-tieredmenu-item-icon, .p-tieredmenu-item:not(.p-disabled) > .p-tieredmenu-item-content:hover .p-tieredmenu-item-icon,
.p-tieredmenu-item:not(.p-disabled) > .p-tieredmenu-item-content:hover .p-tieredmenu-submenu-icon { .p-tieredmenu-item:not(.p-disabled) > .p-tieredmenu-item-content:hover .p-tieredmenu-submenu-icon {
color: ${dt('tieredmenu.item.icon.focus.color')}; color: ${dt('tieredmenu.item.icon.hover.color')};
} }
.p-tieredmenu-item-active > .p-tieredmenu-item-content { .p-tieredmenu-item-active > .p-tieredmenu-item-content {
color: ${dt('tieredmenu.item.focus.color')}; color: ${dt('tieredmenu.item.hover.color')};
background: ${dt('tieredmenu.item.focus.background')}; background: ${dt('tieredmenu.item.hover.background')};
} }
.p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-item-icon, .p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-item-icon,
.p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon { .p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon {
color: ${dt('tieredmenu.item.icon.focus.color')}; color: ${dt('tieredmenu.item.icon.hover.color')};
} }
.p-tieredmenu-separator { .p-tieredmenu-separator {

View File

@ -59,7 +59,7 @@ export default {
], ],
[ [
{ {
label: 'Home Theather', label: 'Home Theater',
items: [{ label: 'Projector' }, { label: 'Speakers' }, { label: 'TVs' }] items: [{ label: 'Projector' }, { label: 'Speakers' }, { label: 'TVs' }]
} }
], ],
@ -170,7 +170,7 @@ export default {
], ],
[ [
{ {
label: 'Home Theather', label: 'Home Theater',
items: [{ label: 'Projector' }, { label: 'Speakers' }, { label: 'TVs' }] items: [{ label: 'Projector' }, { label: 'Speakers' }, { label: 'TVs' }]
} }
], ],
@ -281,7 +281,7 @@ const items = ref([
], ],
[ [
{ {
label: 'Home Theather', label: 'Home Theater',
items: [{ label: 'Projector' }, { label: 'Speakers' }, { label: 'TVs' }] items: [{ label: 'Projector' }, { label: 'Speakers' }, { label: 'TVs' }]
} }
], ],

View File

@ -59,7 +59,7 @@ export default {
], ],
[ [
{ {
label: 'Home Theather', label: 'Home Theater',
items: [{ label: 'Projector' }, { label: 'Speakers' }, { label: 'TVs' }] items: [{ label: 'Projector' }, { label: 'Speakers' }, { label: 'TVs' }]
} }
], ],
@ -170,7 +170,7 @@ export default {
], ],
[ [
{ {
label: 'Home Theather', label: 'Home Theater',
items: [{ label: 'Projector' }, { label: 'Speakers' }, { label: 'TVs' }] items: [{ label: 'Projector' }, { label: 'Speakers' }, { label: 'TVs' }]
} }
], ],
@ -281,7 +281,7 @@ const items = ref([
], ],
[ [
{ {
label: 'Home Theather', label: 'Home Theater',
items: [{ label: 'Projector' }, { label: 'Speakers' }, { label: 'TVs' }] items: [{ label: 'Projector' }, { label: 'Speakers' }, { label: 'TVs' }]
} }
], ],