Skip to content

Commit

Permalink
docs(examples): update examples to include primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack committed Jan 9, 2025
1 parent e1aeb1e commit 5b1abb6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/app-router/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
8 changes: 8 additions & 0 deletions examples/app-router/src/app/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@import '@primer/primitives/dist/css/primitives.css';
@import '@primer/primitives/dist/css/functional/themes/light.css';
@import '@primer/primitives/dist/css/functional/themes/dark.css';

body {
color: var(--fgColor-default);
background-color: var(--bgColor-default);
}
1 change: 1 addition & 0 deletions examples/app-router/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import './global.css'
import {BaseStyles, ThemeProvider} from '@primer/react'
import {StyledComponentsRegistry} from './registry'

Expand Down
2 changes: 1 addition & 1 deletion examples/codesandbox/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Button} from '@primer/react'

function App() {
return <Button>Hello</Button>
return <Button>Hello World</Button>
}

export default App
8 changes: 8 additions & 0 deletions examples/codesandbox/src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@import '@primer/primitives/dist/css/primitives.css';
@import '@primer/primitives/dist/css/functional/themes/light.css';
@import '@primer/primitives/dist/css/functional/themes/dark.css';

body {
color: var(--fgColor-default);
background-color: var(--bgColor-default);
}

0 comments on commit 5b1abb6

Please sign in to comment.