Files
supabase/apps/ui-library/styles/globals.css
Danny White 8a26dbedd0 feat(apps): adopt inline code defaults in learn lite-studio and ui-library (#51985)
## Problem

Learn, lite-studio and UI library still use separate inline-code styles.

## Solution

Import the shared styles from #51980 in all three apps. Remove duplicate
styles from MDX renderers and component previews. All eight apps now
import the shared stylesheet, so #51986 can remove the old definitions.

## Review instructions

This PR changes only Learn, lite-studio and UI library.

1. Open [password-based auth in UI
library](https://ui-library-git-dnywh-depr-707-code-remaining-apps-supabase.vercel.app/library/docs/nextjs/password-based-auth).
Check inline code, highlighted examples and copy controls.

Learn and lite-studio have no deployment links in the Vercel PR comment;
check them locally or just code-review, since neither are yet public
facing (and are both designed to consume core styles).

| Before | After |
| --- | --- |
| <img width="1418" height="1728" alt="CleanShot 2026-10-20 at 16 45
37@2x"
src="https://github.com/user-attachments/assets/1cf25017-f5ee-410a-8bec-46ea61414b7b"
/> | <img width="1438" height="1742" alt="CleanShot 2026-10-20 at 16 55
58@2x"
src="https://github.com/user-attachments/assets/b4a5f11b-98fd-4209-ac93-f13d5e31703d"
/> |
2026-10-22 00:48:58 +00:00

94 lines
2.0 KiB
CSS

@import 'config/tailwind.config.css';
@import 'config/inline-code.css';
@source '../app/**/*.{js,ts,jsx,tsx}';
@source '../components/**/*.{js,ts,jsx,tsx}';
@source '../registry/**/*.{js,ts,jsx,tsx}';
@source '../content/**/*.mdx';
@source './../../../packages/ui/src/**/*.{tsx,ts,js}';
@source './../../../packages/ui-patterns/src/**/*.{tsx,ts,js}';
@theme inline {
--font-sans:
var(--font-inter), Inter, Helvetica Neue, Helvetica, ui-sans-serif, system-ui, sans-serif;
--font-heading: var(--font-manrope, var(--font-sans));
--font-mono: var(--font-source-code-pro), 'Source Code Pro', ui-monospace, Menlo, monospace;
}
@theme {
--container-site: 96rem;
/* font sizing and weights optimized for Inter */
--text-base: 0.9375rem;
--text-lg: 1rem;
--text-xl: 1.125rem;
--text-2xl: 1.375rem;
--text-3xl: 1.75rem;
--text-4xl: 2.125rem;
--text-5xl: 2.875rem;
--text-6xl: 3.625rem;
--text-7xl: 4.375rem;
--text-8xl: 5.875rem;
--text-9xl: 7.875rem;
--font-weight-normal: 450;
}
@layer base {
* {
@apply border-border;
}
html {
@apply scroll-smooth scroll-pt-20;
}
body {
@apply bg-default text-foreground;
font-synthesis-weight: none;
text-rendering: optimizeLegibility;
}
.preview body {
background: none;
}
}
@layer utilities {
.step {
counter-increment: step;
}
.step:before {
@apply absolute w-9 h-9 bg-muted rounded-full font-mono font-medium text-center text-base inline-flex items-center justify-center -indent-px border-4 border-background;
@apply ml-[-50px] mt-[-4px];
content: counter(step);
}
.chunk-container {
@apply shadow-none;
}
.chunk-container::after {
content: '';
@apply absolute -inset-4 shadow-xl rounded-xl border;
}
}
@media (max-width: 640px) {
.container {
@apply px-4;
}
}
.preview * {
@apply border-border outline-ring/50;
}
.preview {
--primary: var(--foreground);
--primary-foreground: var(--background);
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}