Skip to content

Commit

Permalink
radix theme 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
kyo-young committed Jul 9, 2024
1 parent 26dec8c commit 9258fc6
Show file tree
Hide file tree
Showing 4 changed files with 1,372 additions and 82 deletions.
17 changes: 17 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "never"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"[javascript][typescript][typescriptreact]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
},
"[typescriptreact]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
}
}
7 changes: 4 additions & 3 deletions pages/options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
},
"dependencies": {
"@chrome-extension-boilerplate/shared": "workspace:*",
"@chrome-extension-boilerplate/storage": "workspace:*"
"@chrome-extension-boilerplate/storage": "workspace:*",
"@radix-ui/themes": "^3.1.1"
},
"devDependencies": {
"@chrome-extension-boilerplate/hmr": "workspace:*",
"@chrome-extension-boilerplate/tailwindcss-config": "workspace:*",
"@chrome-extension-boilerplate/tsconfig": "workspace:*",
"@chrome-extension-boilerplate/hmr": "workspace:*"
"@chrome-extension-boilerplate/tsconfig": "workspace:*"
}
}
10 changes: 9 additions & 1 deletion pages/options/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
import { createRoot } from 'react-dom/client';
import '@src/index.css';
import Options from '@src/Options';
import '@radix-ui/themes/styles.css';
import { Theme } from '@radix-ui/themes';

function init() {
const appContainer = document.querySelector('#app-container');
if (!appContainer) {
throw new Error('Can not find #app-container');
}

const root = createRoot(appContainer);
root.render(<Options />);

root.render(
<Theme>
<Options />
</Theme>,
);
}

init();
Loading

0 comments on commit 9258fc6

Please sign in to comment.