Files
supabase/apps/studio/styles/fonts.css
Alaister YoungandAlaister Young cf223ae74a [FE-3106] (part 13) – chore(studio): remove next entry files and config (#53222)
Removes the Next-only entry files and config now that every page lives
in `routes/**` (FE-3106). `routes/__root.tsx` already mirrors
`pages/_app.tsx` (dayjs plugins, providers, telemetry, error boundary,
favicons). Part 13 of the stack.

**Depends on:** #53221

**Changed:**
- `components/interfaces/App/{NotFoundPage,ServerErrorPage}.tsx` – the
404/500 pages, rendered by `__root.tsx`, now with native
`Link`/`useNavigate` and `<img>`
- `routes/api/{status-page,scoped-access-token-permissions}.ts` – App
Router handlers from `app/api/**` moved in (`NextResponse.json` →
`Response.json`); `buildAPIPermissionScopeMap` moves to `lib/api/`
- `package.json`, `tsconfig.json` – no `next typegen` step or
`.next/types` include
- `packages/ui-patterns/.../InstructionBlocks.tsx` – asset map typed
`StaticImageData | string`: under Vite a png import is a URL string,
which Next's global image types used to hide
- `vite.config.ts`, `knip.jsonc`, `turbo.jsonc` and comments across
studio – Next build references removed

**Removed:**
- `pages/{_app,_document,404,500}.tsx`, `pages/_error.jsx`,
`pages/README.md`, `app/**`, `next.config.ts`, `proxy.ts`,
`instrumentation{,-client}.ts`, `sentry.{server,edge}.config.ts`,
`fonts/index.ts` (next/font), `BootTimeoutFallback`,
`postcss.config.cjs`, the `next/server` shim
- `@next/bundle-analyzer`, `raw-loader`, `postcss`,
`@tailwindcss/postcss` dev dependencies

Addresses
[FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages).

## To test

- Open an unknown URL – the 404 page renders with working "Head back"
- `/api/status-page` and `/api/scoped-access-token-permissions` on
platform – same JSON and `Cache-Control`
- Fonts (Inter, Manrope, Source Code Pro) still load

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-17 17:33:02 +09:00

76 lines
2.5 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Font setup. The CSS var names MUST match what the theme/Tailwind consume:
* --font-sans -> body (Inter) [theme.css: --font-sans]
* --font-heading -> headings (Manrope) [globals.css @theme inline]
* --font-source-code-pro -> mono (Source Code Pro)
*
* All three families are vendored under fonts/ so nothing depends on the
* Google Fonts CDN at runtime — important for self-hosted / offline studio.
* Weight ranges: Inter 100–900, Source Code Pro 200–900, Manrope 200–800
* (Manrope has no italic).
*/
/* Inter — body (--font-sans) */
@font-face {
font-family: 'Inter';
src: url('../fonts/inter/InterVariable.woff2') format('woff2');
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Inter';
src: url('../fonts/inter/InterVariable-Italic.woff2') format('woff2');
font-weight: 100 900;
font-style: italic;
font-display: swap;
}
/* Manrope — headings (--font-heading). Latin + Latin-ext subsets, standard
* Google Fonts unicode-ranges. No italic axis. */
@font-face {
font-family: Manrope;
src: url('../fonts/manrope/manrope-latin-wght-normal.woff2') format('woff2');
font-weight: 200 800;
font-style: normal;
font-display: swap;
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: Manrope;
src: url('../fonts/manrope/manrope-latin-ext-wght-normal.woff2') format('woff2');
font-weight: 200 800;
font-style: normal;
font-display: swap;
unicode-range:
U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Source Code Pro — mono (--font-source-code-pro) */
@font-face {
font-family: 'Source Code Pro';
src: url('../fonts/source-code-pro/SourceCodePro-Variable.woff2') format('woff2');
font-weight: 200 900;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Source Code Pro';
src: url('../fonts/source-code-pro/SourceCodePro-Variable-Italic.woff2') format('woff2');
font-weight: 200 900;
font-style: italic;
font-display: swap;
}
:root {
--font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
--font-heading: 'Manrope', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
--font-source-code-pro: 'Source Code Pro', 'Office Code Pro', Menlo, monospace;
}