Skip to content

Commit ee4b497

Browse files
committed
🚧 Configuration du style et de l'onboarding de l'app
1 parent 10e66a2 commit ee4b497

File tree

4 files changed

+42
-15
lines changed

4 files changed

+42
-15
lines changed

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100;300;400;500;600;700&display=swap" rel="stylesheet">
1717
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
1818
</head>
19-
<body class="font-sans text-slate-500 antialiased">
20-
<app-root></app-root>
19+
<body class="font-sans antialiased text-slate-500">
20+
<cosna-root></cosna-root>
2121
</body>
2222
</html>

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Sentry.init({
1010
dsn: environment.sentryDsn,
1111
integrations: [
1212
new BrowserTracing({
13-
tracingOrigins: ['localhost', environment.baseUrl],
13+
tracingOrigins: ['localhost', environment.apiUrl],
1414
routingInstrumentation: Sentry.routingInstrumentation,
1515
}),
1616
],

src/sass/_material.scss

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,32 @@
1-
/**
2-
* Material Custom style
3-
* @see https://material.io/guidelines/style/color.html#color-color-palette
4-
*/
5-
.mat-tab-labels {
6-
background-color: theme('colors.slate.50') !important;
7-
}
8-
9-
.mat-tab-group.mat-primary .mat-ink-bar, .mat-tab-nav-bar.mat-primary .mat-ink-bar {
10-
background-color: theme('colors.green.600') !important;
11-
}
1+
// Custom Theming for Angular Material
2+
// For more information: https://material.angular.io/guide/theming
3+
@use '@angular/material' as mat;
4+
5+
// Include the common styles for Angular Material. We include this here so that you only
6+
// have to load a single css file for Angular Material in your app.
7+
// Be sure that you only ever include this mixin once!
8+
@include mat.core();
9+
10+
// Define the palettes for your theme using the Material Design palettes available in palette.scss
11+
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
12+
// hue. Available color palettes: https://material.io/design/color/
13+
$cosna-admin-primary: mat.define-palette(mat.$green-palette);
14+
$cosna-admin-accent: mat.define-palette(mat.$orange-palette);
15+
16+
// The warn palette is optional (defaults to orange).
17+
$cosna-admin-warn: mat.define-palette(mat.$amber-palette);
18+
19+
// Create the theme object. A theme consists of configurations for individual
20+
// theming systems such as "color" or "typography".
21+
$cosna-admin-theme: mat.define-light-theme((
22+
color: (
23+
primary: $cosna-admin-primary,
24+
accent: $cosna-admin-accent,
25+
warn: $cosna-admin-warn,
26+
)
27+
));
28+
29+
// Include theme styles for core and each component used in your app.
30+
// Alternatively, you can import and @include the theme mixins for each component
31+
// that you are using.
32+
@include mat.all-component-themes($cosna-admin-theme);

tailwind.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
important: true,
66
darkMode: 'class',
77
content: [
8-
"./src/**/*.{html,ts}",
8+
'./src/**/*.{html,ts}',
99
],
1010
theme: {
1111
extend: {
@@ -40,6 +40,12 @@ module.exports = {
4040
fontFamily: {
4141
sans: ['Inter var', ...fontFamily.sans],
4242
mono: ['Roboto Mono', ...fontFamily.mono],
43+
},
44+
maxWidth: {
45+
'8xl': '90rem',
46+
},
47+
screens: {
48+
'2xl': '1536px',
4349
}
4450
},
4551
},

0 commit comments

Comments
 (0)