Use correct bg color from the theme

This commit is contained in:
aditya.chandel
2024-12-30 17:15:48 -07:00
parent 303ae7102a
commit 9e95987b20
4 changed files with 2 additions and 76 deletions
@@ -40,6 +40,7 @@ const presets = {
imports: [CommonModule, FormsModule, InputSwitchModule, ButtonModule, RadioButtonModule, SelectButton, ToggleSwitchModule]
})
export class AppConfiguratorComponent {
get ripple() {
return this.config.ripple();
}
@@ -49,20 +50,9 @@ export class AppConfiguratorComponent {
}
config: PrimeNG = inject(PrimeNG);
configService: AppConfigService = inject(AppConfigService);
platformId = inject(PLATFORM_ID);
presets = Object.keys(presets);
ngOnInit() {
if (isPlatformBrowser(this.platformId)) {
this.onPresetChange(this.configService.appState().preset);
}
}
surfaces = [
{
name: 'slate',
@@ -246,20 +236,6 @@ export class AppConfiguratorComponent {
950: '{surface.950}'
},
colorScheme: {
light: {
primary: {
color: '{primary.950}',
contrastColor: '#ffffff',
hoverColor: '{primary.800}',
activeColor: '{primary.700}'
},
highlight: {
background: '{primary.950}',
focusBackground: '{primary.700}',
color: '#ffffff',
focusColor: '#ffffff'
}
},
dark: {
primary: {
color: '{primary.50}',
@@ -283,20 +259,6 @@ export class AppConfiguratorComponent {
semantic: {
primary: color!.palette,
colorScheme: {
light: {
primary: {
color: '{primary.600}',
contrastColor: '#ffffff',
hoverColor: '{primary.700}',
activeColor: '{primary.800}'
},
highlight: {
background: '{primary.600}',
focusBackground: '{primary.700}',
color: '#ffffff',
focusColor: '#ffffff'
}
},
dark: {
primary: {
color: '{primary.500}',
@@ -319,20 +281,6 @@ export class AppConfiguratorComponent {
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}',
@@ -355,20 +303,6 @@ export class AppConfiguratorComponent {
semantic: {
primary: color!.palette,
colorScheme: {
light: {
primary: {
color: '{primary.500}',
contrastColor: '#ffffff',
hoverColor: '{primary.600}',
activeColor: '{primary.700}'
},
highlight: {
background: '{primary.50}',
focusBackground: '{primary.100}',
color: '{primary.700}',
focusColor: '{primary.800}'
}
},
dark: {
primary: {
color: '{primary.400}',
@@ -12,7 +12,7 @@ html {
body {
font-family: var(--font-family);
color: var(--text-color);
background-color: var(--surface-ground);
background-color: var(--ground-background);
margin: 0;
padding: 0;
min-height: 100%;