Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions recipes-app/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@
}
],
"styles": [
"@angular/material/prebuilt-themes/rose-red.css",
"src/styles.scss"
],
"scripts": [],
"server": false,
"prerender": false,
"ssr": false
"scripts": []
},
"configurations": {
"production": {
Expand Down Expand Up @@ -94,9 +92,13 @@
}
],
"styles": [
"@angular/material/prebuilt-themes/rose-red.css",
"src/styles.scss"
],
"scripts": []
"scripts": [],
"server": false,
"prerender": false,
"ssr": false
}
}
}
Expand Down
40 changes: 37 additions & 3 deletions recipes-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion recipes-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
"private": true,
"dependencies": {
"@angular/animations": "^21.0.7",
"@angular/cdk": "^21.0.7",
"@angular/common": "^21.0.7",
"@angular/compiler": "^21.0.7",
"@angular/core": "^21.0.7",
"@angular/forms": "^21.0.7",
"@angular/material": "^21.0.7",
"@angular/platform-browser": "^21.0.7",
"@angular/platform-browser-dynamic": "^21.0.7",
"@angular/router": "^21.0.7",
Expand All @@ -35,4 +37,4 @@
"karma-jasmine-html-reporter": "~2.1.0",
"typescript": "~5.9.3"
}
}
}
4 changes: 3 additions & 1 deletion recipes-app/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<body class="mat-typography">
<app-root></app-root>
</body>
</html>
29 changes: 28 additions & 1 deletion recipes-app/src/styles.scss
Original file line number Diff line number Diff line change
@@ -1 +1,28 @@
/* You can add global styles to this file, and also import other style files */
@use '@angular/material' as mat;

@include mat.core();

$theme: mat.define-theme((
color: (
theme-type: light,
primary: mat.$rose-palette,
tertiary: mat.$red-palette,
),
typography: (
brand-family: 'Roboto, "Helvetica Neue", sans-serif',
plain-family: 'Roboto, "Helvetica Neue", sans-serif',
),
));

html {
@include mat.all-component-themes($theme);
}

html, body {
height: 100%;
}

body {
margin: 0;
font-family: Roboto, "Helvetica Neue", sans-serif;
}