2023-11-07 09:36:31 +13:00
|
|
|
import type { UserConfig } from 'unocss';
|
2023-03-26 10:52:47 +13:00
|
|
|
import { defineConfig, presetTypography, presetUno } from 'unocss';
|
2022-10-07 10:53:35 +13:00
|
|
|
|
|
|
|
export default defineConfig({
|
2023-11-07 11:55:13 +13:00
|
|
|
content: {
|
|
|
|
filesystem: ['src/**/*.tsx', 'contentlayer.config.ts', '../../packages/ui/src/lib/components/**/*.tsx'],
|
|
|
|
},
|
2022-10-07 10:53:35 +13:00
|
|
|
theme: {
|
|
|
|
colors: {
|
|
|
|
blurple: {
|
|
|
|
50: '#e0e3ff',
|
|
|
|
100: '#cdd2ff',
|
|
|
|
200: '#9ea7ff',
|
|
|
|
300: '#7782fa',
|
|
|
|
DEFAULT: '#5865F2',
|
|
|
|
500: '#3d48c3',
|
|
|
|
600: '#293294',
|
|
|
|
700: '#1a2165',
|
|
|
|
800: '#0e1137',
|
|
|
|
900: '#020208',
|
|
|
|
},
|
|
|
|
},
|
2023-03-26 01:44:35 +13:00
|
|
|
fontFamily: {
|
2023-03-26 10:52:47 +13:00
|
|
|
sans: 'var(--font-inter)',
|
|
|
|
mono: 'var(--font-mono)',
|
2023-03-26 01:44:35 +13:00
|
|
|
},
|
2022-10-07 10:53:35 +13:00
|
|
|
},
|
|
|
|
presets: [
|
|
|
|
presetUno({ dark: 'class' }),
|
|
|
|
presetTypography({
|
|
|
|
cssExtend: {
|
|
|
|
pre: {
|
|
|
|
padding: '1em',
|
|
|
|
'line-height': '1.5',
|
|
|
|
'border-radius': '4px',
|
|
|
|
},
|
|
|
|
code: {
|
|
|
|
'font-size': '1em',
|
|
|
|
'font-weight': 'unset',
|
|
|
|
},
|
|
|
|
':where(:not(pre) > code)::before': {
|
|
|
|
content: '""',
|
|
|
|
},
|
|
|
|
':where(:not(pre) > code)::after': {
|
|
|
|
content: '""',
|
|
|
|
},
|
|
|
|
a: {
|
|
|
|
color: '#5865F2',
|
|
|
|
'text-decoration': 'none',
|
|
|
|
},
|
|
|
|
'a > img': {
|
|
|
|
display: 'inline-block',
|
|
|
|
},
|
2023-05-06 07:21:09 +12:00
|
|
|
'a > img[height="44"]': {
|
|
|
|
height: '44px',
|
|
|
|
},
|
2022-10-08 16:15:02 +13:00
|
|
|
h1: {
|
2023-04-30 06:05:22 +12:00
|
|
|
display: 'flex',
|
|
|
|
'place-items': 'center',
|
2022-10-08 16:15:02 +13:00
|
|
|
'scroll-margin-top': '6.5rem',
|
|
|
|
},
|
2022-10-07 10:53:35 +13:00
|
|
|
h2: {
|
2023-04-30 06:10:06 +12:00
|
|
|
display: 'flex',
|
|
|
|
'place-items': 'center',
|
2022-10-07 10:53:35 +13:00
|
|
|
'margin-top': '1.25em',
|
2022-10-08 16:15:02 +13:00
|
|
|
'scroll-margin-top': '6.5rem',
|
2022-10-07 10:53:35 +13:00
|
|
|
},
|
|
|
|
h3: {
|
2023-04-30 06:10:06 +12:00
|
|
|
display: 'flex',
|
|
|
|
'place-items': 'center',
|
2022-10-08 16:15:02 +13:00
|
|
|
'margin-top': '1.25em',
|
|
|
|
'scroll-margin-top': '6.5rem',
|
2022-10-07 10:53:35 +13:00
|
|
|
},
|
2022-10-09 02:44:00 +13:00
|
|
|
h4: {
|
2023-04-30 06:10:06 +12:00
|
|
|
display: 'flex',
|
|
|
|
'place-items': 'center',
|
2022-10-09 02:44:00 +13:00
|
|
|
'margin-top': '1.25em',
|
|
|
|
'scroll-margin-top': '6.5rem',
|
|
|
|
},
|
2022-10-07 10:53:35 +13:00
|
|
|
// eslint-disable-next-line id-length
|
|
|
|
p: {
|
|
|
|
margin: '.5em 0',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
2023-11-07 09:36:31 +13:00
|
|
|
}) as UserConfig;
|