Skip to content

Commit

Permalink
Customize the sample markdown buttons' typography
Browse files Browse the repository at this point in the history
  • Loading branch information
santoso-wijaya committed Mar 2, 2024
1 parent d496e4f commit a84d0a1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ minimal_mistakes_skin: "air"

head_scripts:
- /assets/js/material.rollup.js # Generated by `npm run build:js`
- https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap

# For customizing minimal-mistakes theme features in this file, see:
# https://mmistakes.github.io/minimal-mistakes/docs/configuration/
Expand Down
10 changes: 9 additions & 1 deletion assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,12 @@

/*--- custom style resets ---*/
@import "reset";
/*--- end custom style resets ---*/
/*--- end custom style resets ---*/

/*--- material web customizations --- */
:root {
--md-ref-typeface-brand: Roboto;
--md-ref-typeface-plain: system-ui;
}
/*--- end material web customizations --- */

1 change: 0 additions & 1 deletion assets/js/_material.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
import '@material/web/button/filled-button.js';
import '@material/web/button/outlined-button.js';
import '@material/web/checkbox/checkbox.js';
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,5 @@ tag: node.js
tag: web component
---

<label>
Material 3
<md-checkbox checked></md-checkbox>
</label>

<md-outlined-button>Back</md-outlined-button>
<md-filled-button>Next</md-filled-button>

0 comments on commit a84d0a1

Please sign in to comment.