Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
More styles to slate, added fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Nov 29, 2021
1 parent ff7bb55 commit 40ae6ab
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ export default function applyConfig(config) {
{ cssClass: 'red-text', label: 'Red text' },
{ cssClass: 'yellow-text', label: 'Yellow text' },
{ cssClass: 'grey-text', label: 'Grey text' },

// font-sizes
{ cssClass: 'x-large', label: 'x-large' },
{ cssClass: 'xx-large', label: 'xx-large' },
{ cssClass: 'xxx-large', label: 'xxx-large' },
];
// config.settings.slate.styleMenu.blockStyles = [
// ...config.settings.slate.styleMenu.blockStyles,
Expand Down
14 changes: 14 additions & 0 deletions src/slate-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,17 @@
.black-gainsboro-text {
color: #e3e3e3;
}

/* font sizes */

.x-large {
font-size: x-large;
}

.xx-large {
font-size: xx-large;
}

.xxx-large {
font-size: xxx-large;
}

0 comments on commit 40ae6ab

Please sign in to comment.