Skip to content

Commit

Permalink
fix: style of editor
Browse files Browse the repository at this point in the history
  • Loading branch information
CGQAQ committed Dec 6, 2023
1 parent 71858cc commit 0f8255a
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions web/core/lib/editor/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
@import '@/../node_modules/@radix-ui/colors/mauve.css';
@import '@/../node_modules/@radix-ui/colors/violet.css';

@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind screens;
.tiptap {
font-size: 1.1em;
}
Expand Down
11 changes: 7 additions & 4 deletions web/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"import": "./dist/main.js"
},
"./package.json": "./package.json",
"./style.css": "./dist/assets/style.css"
"./style.css": "./dist/assets/main.css"
},
"typesVersions": {
"*": {
Expand All @@ -41,8 +41,6 @@
"react-dom": "^18.2.0"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@radix-ui/colors": "^3.0.0",
"@radix-ui/popper": "^0.1.0",
"@radix-ui/react-accordion": "^1.1.2",
Expand Down Expand Up @@ -103,6 +101,8 @@
"prosemirror-changeset": "^2.2.1",
"prosemirror-keymap": "^1.2.2",
"prosemirror-view": "^1.32.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^13.5.0",
"react-select": "^5.8.0",
"react-spinners": "^0.13.8",
Expand All @@ -115,6 +115,9 @@
"devDependencies": {
"@types/prosemirror-keymap": "^1.2.0",
"@types/prosemirror-model": "^1.17.0",
"@types/prosemirror-view": "^1.24.0"
"@types/prosemirror-view": "^1.24.0",
"autoprefixer": "^10.0.1",
"postcss": "^8",
"tailwindcss": "^3.3.0"
}
}
6 changes: 6 additions & 0 deletions web/core/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
8 changes: 8 additions & 0 deletions web/core/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ['./lib/**/*.{js,jsx,ts,tsx}'],
theme: {
extend: {},
},
plugins: [],
};

0 comments on commit 0f8255a

Please sign in to comment.