mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 03:32:51 +02:00
Merge branch 'master' into giscus
This commit is contained in:
commit
4b270755bf
356 changed files with 21152 additions and 3604 deletions
|
@ -1,3 +1,4 @@
|
|||
import type { Preset } from 'unocss'
|
||||
import {
|
||||
defineConfig,
|
||||
presetAttributify,
|
||||
|
@ -18,39 +19,58 @@ export default defineConfig({
|
|||
presetTheme({
|
||||
theme: {
|
||||
dark: {
|
||||
colors: dark,
|
||||
colors: {
|
||||
...dark,
|
||||
highlight: 'oklch(0.93 0.195089 103.2532 / 0.2)', // rgba(255,235,0,0.5)
|
||||
note: 'oklch(70.7% 0.165 254.624 / 0.8)', // blue-400
|
||||
tip: 'oklch(76.5% 0.177 163.223 / 0.8)', // emerald-400
|
||||
important: 'oklch(71.4% 0.203 305.504 / 0.8)', // purple-400
|
||||
warning: 'oklch(82.8% 0.189 84.429 / 0.8)', // amber-400
|
||||
caution: 'oklch(70.4% 0.191 22.216 / 0.8)', // red-400
|
||||
},
|
||||
},
|
||||
},
|
||||
}) as Preset<object>,
|
||||
],
|
||||
theme: {
|
||||
colors: light,
|
||||
colors: {
|
||||
...light,
|
||||
highlight: 'oklch(0.93 0.195089 103.2532 / 0.5)', // rgba(255,235,0,0.5)
|
||||
note: 'oklch(48.8% 0.243 264.376 / 0.8)', // blue-700
|
||||
tip: 'oklch(50.8% 0.118 165.612 / 0.8)', // emerald-700
|
||||
important: 'oklch(49.6% 0.265 301.924 / 0.8)', // purple-700
|
||||
warning: 'oklch(55.5% 0.163 48.998 / 0.8)', // amber-700
|
||||
caution: 'oklch(50.5% 0.213 27.518 / 0.8)', // red-700
|
||||
},
|
||||
fontFamily: {
|
||||
title: ['Snell-Black', 'EarlySummer-Subset', 'EarlySummer', 'ui-serif', 'Georgia', 'Cambria', 'Times New Roman', 'Times', 'serif'],
|
||||
navbar: ['STIX-Italic', 'EarlySummer-Subset', 'EarlySummer', 'ui-serif', 'Georgia', 'Cambria', 'Times New Roman', 'Times', 'serif'],
|
||||
time: ['Snell-Bold', 'ui-serif', 'Georgia', 'Cambria', 'Times New Roman', 'Times', 'serif'],
|
||||
serif: ['STIX', 'EarlySummer', 'Georgia', 'ui-serif', 'Georgia', 'Cambria', 'Times New Roman', 'Times', 'serif'],
|
||||
serif: ['STIX', 'EarlySummer', 'ui-serif', 'Georgia', 'Cambria', 'Times New Roman', 'Times', 'serif'],
|
||||
},
|
||||
},
|
||||
shortcuts: {
|
||||
'uno-desktop-column': 'fixed w-14rem right-[max(5.625rem,calc(50vw-34.375rem))]',
|
||||
'uno-tags-style': 'inline-block whitespace-nowrap border border-secondary/25 rounded-full px-3.2 py-0.7 c-secondary transition-colors hover:(border-secondary/75 text-primary)',
|
||||
'uno-decorative-line': 'h-0.25 w-10 bg-secondary/25 mb-4.5 lg:(w-11 mb-6)',
|
||||
'uno-tags-wrapper': 'w-95% flex flex-wrap gap-x-3 gap-y-3.2 lg:w-100%',
|
||||
},
|
||||
rules: [
|
||||
['scrollbar-hidden', {
|
||||
'scrollbar-width': 'none',
|
||||
'-ms-overflow-style': 'none',
|
||||
}],
|
||||
['ios-flash-fix', {
|
||||
'backface-visibility': 'hidden',
|
||||
'-webkit-backface-visibility': 'hidden',
|
||||
}],
|
||||
['force-gpu', {
|
||||
'transform': 'translateZ(0)',
|
||||
'-webkit-transform': 'translateZ(0)',
|
||||
}],
|
||||
],
|
||||
shortcuts: {
|
||||
'uno-desktop-column': 'fixed right-[max(5rem,calc(50vw-35rem))] w-14rem',
|
||||
'uno-tags-style': 'inline-block whitespace-nowrap border border-secondary/25 rounded-full px-3.2 py-0.7 c-secondary transition-colors ease-out hover:(border-secondary/80 text-primary)',
|
||||
'uno-decorative-line': 'mb-4.5 h-0.25 w-10 bg-secondary/25 lg:(mb-6 w-11)',
|
||||
'uno-tags-wrapper': 'flex flex-wrap gap-x-3 gap-y-3.2',
|
||||
'uno-round-border': 'border border-secondary/5 rounded border-solid',
|
||||
},
|
||||
variants: [
|
||||
(matcher) => {
|
||||
if (!matcher.startsWith('cjk:'))
|
||||
return matcher
|
||||
return {
|
||||
matcher: matcher.slice(4),
|
||||
selector: s => `${s}:is(:lang(zh), :lang(ja), :lang(ko))`,
|
||||
}
|
||||
},
|
||||
],
|
||||
transformers: [
|
||||
transformerDirectives(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue