diff --git a/apps/showcase/layouts/AppConfigurator.vue b/apps/showcase/layouts/AppConfigurator.vue index c8e1c8ca1..c48c43b2f 100755 --- a/apps/showcase/layouts/AppConfigurator.vue +++ b/apps/showcase/layouts/AppConfigurator.vue @@ -194,6 +194,42 @@ export default { } } }; + } else if (this.$appState.preset === 'Material') { + return { + semantic: { + primary: color.palette, + colorScheme: { + light: { + primary: { + color: '{primary.500}', + contrastColor: '#ffffff', + hoverColor: '{primary.400}', + activeColor: '{primary.300}' + }, + highlight: { + background: 'color-mix(in srgb, {primary.color}, transparent 88%)', + focusBackground: 'color-mix(in srgb, {primary.color}, transparent 76%)', + color: '{primary.700}', + focusColor: '{primary.800}' + } + }, + dark: { + primary: { + color: '{primary.400}', + contrastColor: '{surface.900}', + hoverColor: '{primary.300}', + activeColor: '{primary.200}' + }, + highlight: { + background: 'color-mix(in srgb, {primary.400}, transparent 84%)', + focusBackground: 'color-mix(in srgb, {primary.400}, transparent 76%)', + color: 'rgba(255,255,255,.87)', + focusColor: 'rgba(255,255,255,.87)' + } + } + } + } + }; } else { return { semantic: { diff --git a/packages/themes/src/presets/material/tabs/index.js b/packages/themes/src/presets/material/tabs/index.js index 8571f4f4a..c2e27aa89 100644 --- a/packages/themes/src/presets/material/tabs/index.js +++ b/packages/themes/src/presets/material/tabs/index.js @@ -62,14 +62,16 @@ export default { background: '{primary.color}' }, style: ({ dt }) => ` -.p-tab { - flex-grow: 1 -} + .p-tabs-scrollable .p-tab { flex-grow: 0 } +.p-tab-active { + --p-ripple-background: color-mix(in srgb, ${dt('primary.color')}, transparent 90%); +} + .p-tab:not(.p-disabled):focus-visible { background: ${dt('navigation.item.active.background')}; }