Skip to content

Commit

Permalink
feat: theme-provider
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-ivanovvv committed May 6, 2024
1 parent 014938b commit 91cf355
Show file tree
Hide file tree
Showing 27 changed files with 498 additions and 9 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
6 changes: 3 additions & 3 deletions ui/theme/src/theme.provider.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +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>
</>
<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 91cf355

Please sign in to comment.