diff --git a/canon-docs/src/app/(docs)/page.mdx b/canon-docs/src/app/(docs)/page.mdx index 35fbc482b2..b2abdefb12 100644 --- a/canon-docs/src/app/(docs)/page.mdx +++ b/canon-docs/src/app/(docs)/page.mdx @@ -17,7 +17,7 @@ building it incrementally with not conflict with the existing theming system. Install Canon using a package manager. - + ### 2. Import the css files @@ -28,19 +28,7 @@ import '@backstage/canon/css/core.css'; import '@backstage/canon/css/components.css'; ``` -### 3. Add the theme provider - -Add the theme provider to your application. - -```tsx -import { ThemeProvider } from '@backstage/canon'; - - - -; -``` - -### 4. Start building ✨ +### 3. Start building ✨ Now you can start building your plugin using the new design system. diff --git a/canon-docs/src/app/(docs)/theme/iconography/page.mdx b/canon-docs/src/app/(docs)/theme/iconography/page.mdx index 9083c93389..b4b1aa2183 100644 --- a/canon-docs/src/app/(docs)/theme/iconography/page.mdx +++ b/canon-docs/src/app/(docs)/theme/iconography/page.mdx @@ -9,7 +9,15 @@ selection for you to use in your application. The list of names is set down below. To use an icon, you can use the `Icon` component and pass the name of the icon you want to use. -`} /> +`} /> + +## Icon overrides + +You can override any icons in our library by using the `IconProvider` at the root of your application. + +
Custom Icon
}} />`} +/> ## Icon library diff --git a/canon-docs/src/app/(docs)/theme/responsive/page.mdx b/canon-docs/src/app/(docs)/theme/responsive/page.mdx index cdbd82533c..7eb4411333 100644 --- a/canon-docs/src/app/(docs)/theme/responsive/page.mdx +++ b/canon-docs/src/app/(docs)/theme/responsive/page.mdx @@ -105,19 +105,3 @@ the value, you add an object with the value and the breakpoint prefix. // Responsive value `} /> - -## How to update breakpoints - -The set of keys are not to be changed, but you can update the minimum width of -each breakpoint in the theme provider. - -`} -/> diff --git a/canon-docs/src/app/providers.tsx b/canon-docs/src/app/providers.tsx index 81a18136e8..b7e0bed167 100644 --- a/canon-docs/src/app/providers.tsx +++ b/canon-docs/src/app/providers.tsx @@ -1,13 +1,8 @@ 'use client'; import { ReactNode } from 'react'; -import { CanonProvider } from '../../../packages/canon/src/contexts/canon'; import { PlaygroundProvider } from '@/utils/playground-context'; export const Providers = ({ children }: { children: ReactNode }) => { - return ( - - {children} - - ); + return {children}; };