Add CSS styling with primary and secondary color to the layout files
This commit is contained in:
@@ -8,6 +8,11 @@ interface Props {
|
||||
|
||||
const pageSettings = Astro.props.settings.searchEngine;
|
||||
const settings = await getSettings();
|
||||
|
||||
const css = {
|
||||
"--ptc": settings.website.colors.primary,
|
||||
"--stc": settings.website.colors.secondary ?? settings.website.colors.primary
|
||||
};
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
@@ -67,7 +72,7 @@ const settings = await getSettings();
|
||||
|
||||
<!-- Scripts and Style -->
|
||||
</head>
|
||||
<body>
|
||||
<body style={ css }>
|
||||
<slot name="content" />
|
||||
</body>
|
||||
</html>
|
||||
@@ -8,6 +8,11 @@ interface Props {
|
||||
|
||||
const pageSettings = Astro.props.settings.searchEngine;
|
||||
const settings = await getSettings();
|
||||
|
||||
const css = {
|
||||
"--ptc": settings.website.colors.primary,
|
||||
"--stc": settings.website.colors.secondary ?? settings.website.colors.primary
|
||||
};
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
@@ -67,7 +72,7 @@ const settings = await getSettings();
|
||||
|
||||
<!-- Scripts and Style -->
|
||||
</head>
|
||||
<body>
|
||||
<body style={ css }>
|
||||
<slot name="content" />
|
||||
</body>
|
||||
</html>
|
||||
@@ -8,6 +8,11 @@ interface Props {
|
||||
|
||||
const pageSettings = Astro.props.settings.searchEngine;
|
||||
const settings = await getSettings();
|
||||
|
||||
const css = {
|
||||
"--ptc": settings.website.colors.primary,
|
||||
"--stc": settings.website.colors.secondary ?? settings.website.colors.primary
|
||||
};
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
@@ -64,7 +69,7 @@ const settings = await getSettings();
|
||||
|
||||
<!-- Scripts and Style -->
|
||||
</head>
|
||||
<body>
|
||||
<body style={ css }>
|
||||
<slot name="content" />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user