Skip to content

Commit

Permalink
feat: theme-provider
Browse files Browse the repository at this point in the history
feat: theme-provider
  • Loading branch information
kirill-ivanovvv committed May 7, 2024
1 parent 14eae29 commit 067b674
Show file tree
Hide file tree
Showing 28 changed files with 505 additions and 6 deletions.
263 changes: 263 additions & 0 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"scripts": {
"prepare": "husky"
},
"dependencies": {
"@emotion/react": "11.11.4",
"react": "18.3.1"
},
"devDependencies": {
"@atls/code-service": "0.1.4",
"@atls/config-eslint": "0.0.12",
Expand All @@ -14,6 +18,7 @@
"@types/eslint": "^8",
"@types/jest": "29.5.12",
"@types/node": "20.12.8",
"@types/react": "^18",
"eslint": "8.57.0",
"husky": "9.0.11",
"prettier": "3.1.1",
Expand Down
1 change: 1 addition & 0 deletions ui/theme/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './theme.provider'
9 changes: 9 additions & 0 deletions ui/theme/src/theme.provider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as theme from './theme'

import { ThemeProvider as EmotionThemeProvider } from '@emotion/react'

import React from 'react'

export const ThemeProvider = ({ children }) => (
<EmotionThemeProvider theme={theme}>{children}</EmotionThemeProvider>
)
7 changes: 7 additions & 0 deletions ui/theme/src/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export * from './colors'
export * from './fontSizes'
export * from './radii'
export * from './fonts'
export * from './fontWeights'
export * from './lineHeights'
export * from './shadows'
Loading

0 comments on commit 067b674

Please sign in to comment.