summaryrefslogtreecommitdiff
path: root/themes/theme/source/css/font.styl
diff options
context:
space:
mode:
authorsomhairle <[email protected]>2026-04-21 20:40:27 +0800
committerSomhairle H. Marisol <[email protected]>2026-05-24 17:24:57 +0800
commitad8f9f55ea79a4d587aecc69698808da82de3d62 (patch)
treed25c0db712e6f015d850627ff957edea44c64f94 /themes/theme/source/css/font.styl
downloadblog-ad8f9f55ea79a4d587aecc69698808da82de3d62.tar.gz
二〇二六年四月二十一日
Diffstat (limited to 'themes/theme/source/css/font.styl')
-rw-r--r--themes/theme/source/css/font.styl105
1 files changed, 105 insertions, 0 deletions
diff --git a/themes/theme/source/css/font.styl b/themes/theme/source/css/font.styl
new file mode 100644
index 00000000..4ca10b78
--- /dev/null
+++ b/themes/theme/source/css/font.styl
@@ -0,0 +1,105 @@
+text-style(n)
+ font-family $font-family
+ font-weight 400
+
+ if n == 'body-default'
+ font-size $font-size-body
+ line-height $line-height-body
+ color $color-text-primary
+
+ else if n == 'body-bold'
+ font-size $font-size-body
+ line-height $line-height-body
+ color $color-text-primary
+
+ else if n == 'body-italic'
+ font-size $font-size-body
+ font-style italic
+ line-height $line-height-body
+ color $color-text-primary
+
+ else if n == 'body-delete'
+ font-size $font-size-body
+ line-height $line-height-body
+ text-decoration line-through
+ color $color-text-primary
+
+ else if n == 'code-default'
+ font-family $font-family
+ font-size $font-size-code
+ line-height $line-height-code
+ color $color-code-default
+
+ else if n == 'code-highlight'
+ font-family $font-family
+ font-size $font-size-code
+ line-height $line-height-code
+ color $color-code-highlight
+
+ else if n == 'code-marker'
+ font-family $font-family
+ font-size $font-size-code
+ line-height $line-height-code
+ color $color-code-marker
+
+ else if n == 'heading-h1'
+ font-size $font-size-heading-h1
+ line-height $line-height-heading-h1
+ color $color-text-primary
+
+ else if n == 'heading-h2'
+ font-size $font-size-heading-h2
+ line-height $line-height-heading-h2
+ color $color-text-primary
+
+ else if n == 'heading-h3'
+ font-size $font-size-heading-h3
+ line-height $line-height-heading-h3
+ color $color-text-primary
+
+ else if n == 'heading-h4'
+ font-size $font-size-heading-h4
+ line-height $line-height-heading-h4
+ color $color-text-primary
+
+ else if n == 'heading-h5'
+ font-size $font-size-heading-h5
+ line-height $line-height-heading-h5
+ color $color-text-primary
+
+ else if n == 'heading-h6'
+ font-size $font-size-heading-h6
+ line-height $line-height-heading-h6
+ color $color-text-primary
+
+ else if n == 'footer'
+ font-size $font-size-footer
+ line-height $line-height-footer
+ color $color-text-secondary
+
+ else if n == 'header'
+ font-size $font-size-header
+ line-height $line-height-header
+ color $color-text-primary
+
+ else if n == 'post-date'
+ font-size $font-size-post-date
+ line-height $line-height-post-date
+ color $color-text-secondary
+
+ else if n == 'year-title'
+ font-size $font-size-year-title
+ line-height $line-height-year-title
+ color $color-text-third
+
+ else if n == 'post-tag'
+ font-size $font-size-post-tag
+ line-height $line-height-post-tag
+ color $color-text-secondary
+
+ else if n == 'search-result-message'
+ font-family $font-family
+ font-size $font-size-code
+ line-height $line-height-code
+ color $color-text-third
+ text-transform lowercase