Skip to content

Commit

Permalink
edit: Change Title Font
Browse files Browse the repository at this point in the history
  • Loading branch information
BorhanSaflo committed Sep 7, 2023
1 parent 693fdf5 commit 2bd8e3d
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"aspectRatio": "16/9",
"fonts": {
"sans": "Inter",
"title": "Gilroy",
"title": "Helvetica Neue,Robot",
"mono": "Fira Code"
}
}
Expand Down
7 changes: 7 additions & 0 deletions slides.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
theme: ./theme
fonts:
# basically the text
sans: 'Robot'
# use with `font-serif` css class from windicss
serif: 'Robot Slab'
# for code blocks, inline code, etc.
mono: 'Fira Code'
background: >-
https://images.unsplash.com/photo-1616941482131-489295011919?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=1080&ixid=MnwxfDB8MXxyYW5kb218MHw5NDczNDU2Nnx8fHx8fHwxNjkzNjEwMTU1&ixlib=rb-4.0.3&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1920
class: text-center
Expand Down
2 changes: 1 addition & 1 deletion theme/layouts/intro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<style>
.slidev-layout.intro {
h1 {
@apply text-6xl leading-20 font-display font-extrabold text-primary;
@apply text-6xl leading-20 font-extrabold text-primary;
}
h1 + p {
Expand Down
12 changes: 0 additions & 12 deletions theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@
"slidev",
"slidev-penguin"
],
"slidev": {
"colorSchema": "both",
"highlighter": "shiki",
"default": {
"aspectRatio": "16/9",
"fonts": {
"sans": "Inter",
"title": "Gilroy",
"mono": "Fira Code"
}
}
},
"scripts": {
"dev": "slidev example.md --open",
"build": "slidev build example.md",
Expand Down
Binary file removed theme/public/fonts/Gilroy-ExtraBold.otf
Binary file not shown.
Binary file removed theme/public/fonts/Gilroy-ExtraBold.woff
Binary file not shown.
Binary file removed theme/public/fonts/Gilroy-ExtraBold.woff2
Binary file not shown.
8 changes: 0 additions & 8 deletions theme/styles/fonts.css

This file was deleted.

1 change: 0 additions & 1 deletion theme/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// inherit from base layouts, remove it to get full customizations
import '@slidev/client/styles/layouts-base.css'
import '@alvarosabu/ui/styles'
import './fonts.css'
import './layout.scss'
2 changes: 1 addition & 1 deletion theme/styles/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
h2,
h3,
h4 {
@apply font-display font-bold;
@apply font-bold;
}

a {
Expand Down

0 comments on commit 2bd8e3d

Please sign in to comment.