Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(fonts): package json exports #4525

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/shiny-lamps-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ultraviolet/fonts": patch
---

Fix package.json exports
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
12 changes: 11 additions & 1 deletion packages/fonts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@
],
"type": "module",
"exports": {
"./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"
}
}
}
Loading