💄(frontend) add generic favicon

The favicons were still with the dsfr color.
We added the generic favicon in the assets folder.
The favicon can be a url loaded from the theme,
so when Drive will be running, we will be able
to store the dsfr favicons there, and remove them
from the repo.
This commit is contained in:
Anthony LC
2025-04-11 17:10:55 +02:00
parent b5f0f06ea3
commit c9d053d1c0
10 changed files with 42 additions and 9 deletions

View File

@@ -36,10 +36,6 @@ const customColors = {
'yellow-500': '#B7A73F',
'yellow-600': '#66673D',
};
tokens.themes.default.theme.colors = {
...tokens.themes.default.theme.colors,
...customColors,
};
tokens.themes.default.theme = {
...tokens.themes.default.theme,
@@ -50,6 +46,10 @@ tokens.themes.default.theme = {
widthHeader: '',
widthFooter: '',
},
colors: {
...tokens.themes.default.theme.colors,
...customColors,
},
},
};
@@ -60,6 +60,11 @@ tokens.themes.default.components = {
'home-proconnect': false,
beta: false,
'image-system-filter': '',
favicon: {
ico: '/assets/favicon-light.ico',
'png-light': '/assets/favicon-light.png',
'png-dark': '/assets/favicon-dark.png',
},
},
};
@@ -80,6 +85,11 @@ const dsfrTheme = {
'la-gaufre': true,
'home-proconnect': true,
beta: true,
favicon: {
ico: '/assets/favicon-dsfr.ico',
'png-light': '/assets/favicon-dsfr.png',
'png-dark': '/assets/favicon-dark-dsfr.png',
},
},
},
};