MCPcopy Index your code
hub / github.com/angular/components / ThemeDemo

Class ThemeDemo

src/dev-app/theme/theme-demo.ts:53–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 imports: [MatCardModule, MatExpansionModule, MatIconModule, ThemeDemoColors],
52})
53export class ThemeDemo {
54 state = getAppState();
55
56 alternativeThemeColors: Color[] = [
57 {
58 name: 'Primary Container',
59 background: '--mat-sys-primary-container',
60 text: '--mat-sys-on-primary-container',
61 },
62 {
63 name: 'Secondary',
64 background: '--mat-sys-secondary',
65 text: '--mat-sys-on-secondary',
66 },
67 {
68 name: 'Secondary Container',
69 background: '--mat-sys-secondary-container',
70 text: '--mat-sys-on-secondary-container',
71 },
72 {
73 name: 'Tertiary',
74 background: '--mat-sys-tertiary',
75 text: '--mat-sys-on-tertiary',
76 },
77 {
78 name: 'Tertiary Container',
79 background: '--mat-sys-tertiary-container',
80 text: '--mat-sys-on-tertiary-container',
81 },
82 {
83 name: 'Error Container',
84 background: '--mat-sys-error-container',
85 text: '--mat-sys-on-error-container',
86 },
87 ];
88
89 surfaceColors: Color[] = [
90 {
91 name: 'Surface Dim',
92 background: '--mat-sys-surface-dim',
93 text: '--mat-sys-on-surface',
94 hideText: true,
95 },
96 {
97 name: 'Surface Bright',
98 background: '--mat-sys-surface-bright',
99 text: '--mat-sys-on-surface',
100 hideText: true,
101 },
102 {
103 name: 'Surface Container Lowest',
104 background: '--mat-sys-surface-container-lowest',
105 text: '--mat-sys-on-surface',
106 hideText: true,
107 },
108 {
109 name: 'Surface Container Low',
110 background: '--mat-sys-surface-container-low',

Callers

nothing calls this directly

Calls 1

getAppStateFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…