Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
a25edc6
feat(react): add prefix selector for scoped styles
chakrihacker Feb 11, 2026
82228a3
feat(react): implement css scoping
chakrihacker Feb 13, 2026
39784e4
Merge remote-tracking branch 'origin/main' into feat/css-scoping
chakrihacker Feb 16, 2026
797282f
feat(examples): add styles to react spa npm
chakrihacker Feb 16, 2026
d726b5a
Merge remote-tracking branch 'origin/main' into feat/css-scoping
chakrihacker Feb 18, 2026
d1a69bf
feat(examples): make tailwind work in next-rwa
chakrihacker Feb 18, 2026
2d827ee
fix(examples): clean up imports and remove unused theme styles
chakrihacker Feb 18, 2026
ca17d3c
feat(react): implement css scoping and update global styles
chakrihacker Feb 19, 2026
3f7a9f5
feat(react): implement portal context for radix portals
chakrihacker Feb 20, 2026
5ecd2fe
Merge remote-tracking branch 'origin/main' into feat/css-scoping
chakrihacker Feb 20, 2026
c4e6c89
feat: add styling docs
chakrihacker Feb 20, 2026
27b82ec
feat: fix css scoping for styles.css
chakrihacker Feb 20, 2026
efcd841
feat: next rwa example with css scoping
chakrihacker Feb 23, 2026
3038918
feat: react spa npm for css scoping
chakrihacker Feb 23, 2026
38032a2
feat(react): add jsdoc for portal context
chakrihacker Feb 24, 2026
c288b9a
feat(example): next rwa example with css scoping
chakrihacker Feb 24, 2026
e29a275
feat(example): react spa npm for css scoping
chakrihacker Feb 24, 2026
7514815
fix(react): sso provider test fix
chakrihacker Feb 24, 2026
24e536f
fix(examples): minor style fix for next example
chakrihacker Feb 24, 2026
25094f1
fix(examples): remove unnecessary styles
chakrihacker Feb 24, 2026
d62be85
fix(examples): remove unnecessary styles
chakrihacker Feb 24, 2026
948aeef
Merge remote-tracking branch 'origin/main' into feat/css-scoping
chakrihacker Feb 26, 2026
90fd5c4
fix: added deep scoping for styles.css
rax7389 Mar 2, 2026
eb0022f
feat(docs): add css documentation
chakrihacker Mar 2, 2026
4a8eb4f
fix(react): set default theme to 'default' if not provided
chakrihacker Mar 2, 2026
f7b5858
refactor(docs): remove unused import
chakrihacker Mar 2, 2026
123b64d
feat(docs): update docs for css scoping
chakrihacker Mar 3, 2026
433fe02
fix(examples): next app sidebar height fixed
chakrihacker Mar 3, 2026
8278d7c
feat(react): simplify theme-provider
chakrihacker Mar 3, 2026
cc3435f
fix(react): remove unused custom variant for dark mode
chakrihacker Mar 5, 2026
b22d151
Merge remote-tracking branch 'origin/main' into feat/css-scoping
chakrihacker Mar 5, 2026
181be08
chore: bump version to 1.0.0-beta.14 for core and react packages
chakrihacker Mar 5, 2026
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
2 changes: 2 additions & 0 deletions docs-site/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import OrganizationDetailsEditDocs from './pages/OrganizationDetailsEditDocs';
import SsoProviderCreateDocs from './pages/SsoProviderCreateDocs';
import SsoProviderEditDocs from './pages/SsoProviderEditDocs';
import SsoProviderTableDocs from './pages/SsoProviderTableDocs';
import Styling from './pages/Styling';
import UserMFAMgmtDocs from './pages/UserMFAMgmtDocs';

function AppContent() {
Expand All @@ -18,6 +19,7 @@ function AppContent() {
<Routes>
<Route path="/" element={<GettingStarted />} />
<Route path="/getting-started" element={<GettingStarted />} />
<Route path="/styling" element={<Styling />} />
<Route path="/my-account" element={<MyAccountIntroduction />} />
<Route path="/my-account/user-mfa-management" element={<UserMFAMgmtDocs />} />
<Route path="/my-organization" element={<MyOrganizationIntroduction />} />
Expand Down
7 changes: 7 additions & 0 deletions docs-site/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
Zap,
Github,
BookOpenText,
Palette,
} from 'lucide-react';
import type { ReactNode } from 'react';
import { Link, useLocation } from 'react-router-dom';
Expand Down Expand Up @@ -68,6 +69,12 @@ export default function Layout({ children }: LayoutProps) {
color: 'text-purple-500',
href: '/',
},
{
title: 'Styling',
icon: Palette,
color: 'text-violet-500',
href: '/styling',
},
{
title: 'My Account',
icon: User,
Expand Down
74 changes: 74 additions & 0 deletions docs-site/src/pages/GettingStarted.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,80 @@ export default function OrganizationManagementPage() {
)}
</section>

{/* Styling */}
<section className="space-y-6">
<h2 className="text-2xl font-semibold text-gray-900">Styling</h2>
<p className="text-gray-600">
The package ships two stylesheets. Pick the one that matches how your application handles
CSS.
</p>

<div className="grid md:grid-cols-2 gap-6">
<div className="bg-white border border-gray-200 rounded-lg p-6 space-y-3">
<div className="flex items-center gap-2">
<span className="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-violet-100 text-violet-800">
Recommended
</span>
</div>
<h3 className="text-lg font-semibold text-gray-900">
<code className="text-sm bg-gray-100 px-2 py-1 rounded">styles.css</code>
</h3>
<p className="text-gray-600 text-sm">
A self-contained stylesheet with all Tailwind utilities pre-compiled and scoped to
Auth0 components. No Tailwind installation required.
</p>
<CodeBlock code={`import '@auth0/universal-components-react/styles';`} language="tsx" />
</div>

<div className="bg-white border border-gray-200 rounded-lg p-6 space-y-3">
<div className="flex items-center gap-2">
<span className="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">
Tailwind apps
</span>
</div>
<h3 className="text-lg font-semibold text-gray-900">Tailwind v4 theme variables</h3>
<p className="text-gray-600 text-sm">
If your app already uses Tailwind v4, import the Auth0 CSS alongside Tailwind and
define standard design tokens in your <code className="text-xs">:root</code> /{' '}
<code className="text-xs">.dark</code> blocks (e.g.{' '}
<code className="text-xs">--background</code>,{' '}
<code className="text-xs">--primary</code>).
</p>
<CodeBlock
code={`/* app.css */
@import "tailwindcss";
@import "@auth0/universal-components-react/tailwind";

:root {
--background: oklch(1 0 0);
--primary: oklch(0.205 0 0);
/* ... see Styling page for full list */
}`}
language="css"
/>
</div>
</div>

<div className="bg-blue-50 border border-blue-200 rounded-lg p-4">
<p className="text-sm text-blue-800">
<strong>When to use which:</strong> If your app does not use Tailwind, import{' '}
<code className="text-xs">styles.css</code> — it is self-contained and works without
Tailwind. If your app uses Tailwind v4, import{' '}
<code className="text-xs">@auth0/universal-components-react/tailwind</code> and define
the standard tokens in your <code className="text-xs">:root</code> /{' '}
<code className="text-xs">.dark</code> blocks instead.
</p>
</div>

<p className="text-gray-600">
For full details on CSS variables, theming, and color modes, see the{' '}
<a href="/styling" className="text-blue-600 hover:underline font-medium">
Styling &amp; Theming
</a>{' '}
page.
</p>
</section>

{/* Provider Configuration */}
<section className="space-y-6">
<h2 className="text-2xl font-semibold text-gray-900">
Expand Down
Loading
Loading