Skip to content

Commit ec3be7d

Browse files
committed
fix(primeng): updated theme configs
1 parent 9fe43b1 commit ec3be7d

3 files changed

Lines changed: 29 additions & 24 deletions

File tree

src/app/core/theme/components.ts

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { primitives } from './primitives';
22

33
export const components = {
44
button: {
5-
colorScheme: {
5+
root: {
66
success: {
77
hoverBackground: primitives.colors.greenThree,
88
hoverBorderColor: primitives.colors.greenThree,
@@ -11,18 +11,6 @@ export const components = {
1111
hoverBackground: primitives.colors.redThree,
1212
hoverBorderColor: primitives.colors.redThree,
1313
},
14-
info: {
15-
background: primitives.colors.transparent,
16-
hoverBackground: primitives.colors.transparent,
17-
activeBackground: primitives.colors.transparent,
18-
borderColor: primitives.colors.transparent,
19-
hoverBorderColor: primitives.colors.greyTwo,
20-
activeBorderColor: primitives.colors.greyTwo,
21-
color: primitives.colors.darkBlueOne,
22-
hoverColor: primitives.colors.darkBlueOne,
23-
activeColor: primitives.colors.darkBlueOne,
24-
fontWeight: primitives.fontWeights.regular,
25-
},
2614
secondary: {
2715
background: primitives.colors.bgBlueThree,
2816
hoverBackground: primitives.colors.bgBlueTwo,
@@ -32,14 +20,31 @@ export const components = {
3220
color: primitives.colors.darkBlueTwo,
3321
hoverColor: primitives.colors.prBlueThree,
3422
},
35-
outlined: {
36-
primary: {
37-
hoverBackground: primitives.colors.bgBlueTwo,
38-
activeBackground: primitives.colors.bgBlueTwo,
39-
},
40-
success: {
41-
hoverBackground: primitives.colors.greenTwo,
42-
activeBackground: primitives.colors.greenTwo,
23+
},
24+
outlined: {
25+
primary: {
26+
hoverBackground: primitives.colors.bgBlueTwo,
27+
activeBackground: primitives.colors.bgBlueTwo,
28+
},
29+
success: {
30+
hoverBackground: primitives.colors.greenTwo,
31+
activeBackground: primitives.colors.greenTwo,
32+
},
33+
},
34+
colorScheme: {
35+
light: {
36+
root: {
37+
info: {
38+
background: primitives.colors.transparent,
39+
hoverBackground: primitives.colors.transparent,
40+
activeBackground: primitives.colors.transparent,
41+
borderColor: primitives.colors.transparent,
42+
hoverBorderColor: primitives.colors.greyTwo,
43+
activeBorderColor: primitives.colors.greyTwo,
44+
color: primitives.colors.darkBlueOne,
45+
hoverColor: primitives.colors.darkBlueOne,
46+
activeColor: primitives.colors.darkBlueOne,
47+
},
4348
},
4449
},
4550
},

src/app/core/theme/custom-preset.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { definePreset } from '@primeng/themes';
2-
import Aura from '@primeng/themes/aura';
1+
import { definePreset } from '@primeuix/themes';
2+
import Aura from '@primeuix/themes/aura';
33

44
import { components } from './components';
55
import { semantic } from './semantic';

src/app/core/theme/semantic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { palette } from '@primeng/themes';
1+
import { palette } from '@primeuix/themes';
22

33
import { primitives } from './primitives';
44

0 commit comments

Comments
 (0)