Configure some css variables
This commit is contained in:
13
src/components/common/CustomStyles.astro
Normal file
13
src/components/common/CustomStyles.astro
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
import '@fontsource/inter/variable.css';
|
||||
---
|
||||
|
||||
<style is:inline is:global>
|
||||
:root {
|
||||
--aw-font-sans: 'InterVariable';
|
||||
--aw-font-serif: var(--ph-font-sans);
|
||||
--aw-font-heading: 'InterVariable';
|
||||
|
||||
--aw-color-primary: '';
|
||||
}
|
||||
</style>
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
import '@fontsource/inter/variable.css';
|
||||
---
|
||||
|
||||
<!-- Or Google Fonts -->
|
@ -5,10 +5,10 @@ import { getImage } from '@astrojs/image';
|
||||
|
||||
import { SITE } from '~/config.mjs';
|
||||
import { MetaSEO } from '~/types';
|
||||
import { getCanonical, getAsset } from '~/utils/permalinks';
|
||||
import { getCanonical, getAsset } from '~/utils/permalinks';
|
||||
import { getRelativeUrlByFilePath } from '~/utils/directories';
|
||||
|
||||
import Fonts from '~/components/common/Fonts.astro';
|
||||
import CustomStyles from '~/components/common/CustomStyles.astro';
|
||||
import SplitbeeAnalytics from './SplitbeeAnalytics.astro';
|
||||
|
||||
export interface Props extends MetaSEO {
|
||||
@ -82,7 +82,7 @@ const image =
|
||||
}}
|
||||
/>
|
||||
|
||||
<Fonts />
|
||||
<CustomStyles />
|
||||
|
||||
<!-- Google Site Verification -->
|
||||
{SITE.googleSiteVerificationId && <meta name="google-site-verification" content={SITE.googleSiteVerificationId} />}
|
||||
|
Reference in New Issue
Block a user