Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production release v0.2.9 #84

Merged
merged 2 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/src/styles/fonts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const cal = localFont({
});

export const crimsonBold = Crimson_Text({
weight: "700",
weight: "600",
variable: "--font-title",
subsets: ["latin"],
});
Expand All @@ -18,7 +18,7 @@ export const inter = Inter({
});

export const inconsolataBold = Inconsolata({
weight: "700",
weight: "600",
variable: "--font-title",
subsets: ["latin"],
});
Expand Down
24 changes: 22 additions & 2 deletions packages/core/src/styles/prosemirror.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.ProseMirror {
@apply novel-p-12 novel-px-8 sm:novel-px-12;
@apply novel-p-12 novel-px-8 sm:novel-px-12 novel-text-base novel-leading-normal;
}

.ProseMirror .is-editor-empty:first-child::before {
Expand Down Expand Up @@ -58,7 +58,6 @@
}

/* Custom TODO list checkboxes – shoutout to this awesome tutorial: https://moderncss.dev/pure-css-custom-checkbox-style/ */

ul[data-type="taskList"] li > label {
margin-right: 0.2rem;
user-select: none;
Expand Down Expand Up @@ -127,6 +126,27 @@ div[contenteditable="false"]
}
}

/* Overwrite bold styles */
.ProseMirror strong {
font-weight: 600;
}

/* Overwrite heading styles */
.ProseMirror h1 {
font-size: 1.5rem;
font-weight: 600;
}

.ProseMirror h2 {
font-size: 1.25rem;
font-weight: 600;
}

.ProseMirror h3 {
font-size: 1.125rem;
font-weight: 600;
}

/* Overwrite table styles */

.ProseMirror table * p {
Expand Down
7 changes: 7 additions & 0 deletions packages/core/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,11 @@ module.exports = {
corePlugins: {
preflight: false,
},
theme: {
extend: {
lineHeight: {
normal: '180%',
}
}
}
};