Skip to content

Commit

Permalink
fix: fonts export and examples usages
Browse files Browse the repository at this point in the history
  • Loading branch information
matthprost committed Dec 2, 2024
1 parent 0dc5fe8 commit 9c0430e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
1 change: 1 addition & 0 deletions examples/next-advanced/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Footer from '../components/Footer'
import GlobalStyle from '../components/GlobalStyle'
import Head from '../components/Head'
import Header from '../components/Header'
import '@ultraviolet/fonts/fonts.css'

type Themes = 'light' | 'dark'

Expand Down
4 changes: 0 additions & 4 deletions examples/next-advanced/src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ class MyDocument extends Document {
name="twitter:image"
content="https://ultraviolet.scaleway.com/social.png"
/>
<link
href="https://fonts.googleapis.com/css2?family=Asap:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<link
rel="icon"
type="image/svg+xml"
Expand Down
1 change: 1 addition & 0 deletions examples/next-login/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Button } from '@ultraviolet/ui'
import { darkTheme, normalize, theme } from '@ultraviolet/ui'
import type { AppProps } from 'next/app'
import { useState } from 'react'
import '@ultraviolet/fonts/fonts.css'

const globalStyles = (mode: 'light' | 'dark') => () =>
css`
Expand Down
4 changes: 0 additions & 4 deletions examples/next-login/src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ class MyDocument extends Document {
name="twitter:image"
content="https://ultraviolet.scaleway.com/social.png"
/>
<link
href="https://fonts.googleapis.com/css2?family=Asap:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<link
rel="icon"
type="image/svg+xml"
Expand Down
1 change: 1 addition & 0 deletions examples/next-simple/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ThemeProvider } from '@emotion/react'
import { theme } from '@ultraviolet/ui'
import type { AppProps } from 'next/app'
import '@ultraviolet/fonts/fonts.css'

const App = ({ Component, pageProps }: AppProps) => (
<ThemeProvider theme={theme}>
Expand Down
4 changes: 0 additions & 4 deletions examples/next-simple/src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ class MyDocument extends Document {
name="twitter:image"
content="https://ultraviolet.scaleway.com/social.png"
/>
<link
href="https://fonts.googleapis.com/css2?family=Asap:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<link
rel="icon"
type="image/svg+xml"
Expand Down
13 changes: 11 additions & 2 deletions packages/fonts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,16 @@
],
"type": "module",
"exports": {
".": { "style": "./dist/fonts.css" },
"./fonts.css": "./dist/fonts.css"
".": {
"require": "./dist/fonts.css",
"import": "./dist/fonts.css",
"default": "./dist/fonts.css",
"style": "./dist/fonts.css"
},
"./fonts.css": {
"require": "./dist/fonts.css",
"import": "./dist/fonts.css",
"default": "./dist/fonts.css"
}
}
}

0 comments on commit 9c0430e

Please sign in to comment.