mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat: add og image gen
This commit is contained in:
116
unocss.config.ts
Normal file
116
unocss.config.ts
Normal file
@@ -0,0 +1,116 @@
|
||||
import { defineConfig, presetTypography, presetUno, presetWebFonts } from 'unocss';
|
||||
|
||||
export default defineConfig({
|
||||
theme: {
|
||||
colors: {
|
||||
blurple: {
|
||||
50: '#e0e3ff',
|
||||
100: '#cdd2ff',
|
||||
200: '#9ea7ff',
|
||||
300: '#7782fa',
|
||||
DEFAULT: '#5865F2',
|
||||
500: '#3d48c3',
|
||||
600: '#293294',
|
||||
700: '#1a2165',
|
||||
800: '#0e1137',
|
||||
900: '#020208',
|
||||
},
|
||||
},
|
||||
},
|
||||
presets: [
|
||||
presetUno({ dark: 'class' }),
|
||||
presetWebFonts({
|
||||
provider: 'bunny',
|
||||
fonts: {
|
||||
mono: ['JetBrains Mono:400,600,700'],
|
||||
'source-sans-pro': [
|
||||
'Source Sans Pro:300,400,500,600',
|
||||
{ name: 'ui-sans-serif', provider: 'none' },
|
||||
{ name: 'system-ui', provider: 'none' },
|
||||
{ name: '-apple-system', provider: 'none' },
|
||||
{ name: 'BlinkMacSystemFont', provider: 'none' },
|
||||
{ name: 'Segoe UI', provider: 'none' },
|
||||
{ name: 'Roboto', provider: 'none' },
|
||||
{ name: 'Helvetica Neue', provider: 'none' },
|
||||
{ name: 'Arial', provider: 'none' },
|
||||
{ name: 'sans-serif', provider: 'none' },
|
||||
{ name: 'Apple Color Emoji', provider: 'none' },
|
||||
{ name: 'Segoe UI Emoji', provider: 'none' },
|
||||
{ name: 'Segoe UI Symbol', provider: 'none' },
|
||||
{ name: 'Noto Color Emoji', provider: 'none' },
|
||||
],
|
||||
},
|
||||
}),
|
||||
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',
|
||||
},
|
||||
h1: {
|
||||
'scroll-margin-top': '6.5rem',
|
||||
},
|
||||
'.level-h1': {
|
||||
margin: '1rem 0',
|
||||
},
|
||||
h2: {
|
||||
'margin-top': '1.25em',
|
||||
'scroll-margin-top': '6.5rem',
|
||||
},
|
||||
'.level-h2': {
|
||||
margin: '1.25em 0',
|
||||
},
|
||||
h3: {
|
||||
'margin-top': '1.25em',
|
||||
'scroll-margin-top': '6.5rem',
|
||||
},
|
||||
'.level-h3': {
|
||||
margin: '1.25em 0',
|
||||
},
|
||||
h4: {
|
||||
'margin-top': '1.25em',
|
||||
'scroll-margin-top': '6.5rem',
|
||||
},
|
||||
'.level-h4': {
|
||||
margin: '1.25em 0',
|
||||
},
|
||||
// eslint-disable-next-line id-length
|
||||
p: {
|
||||
margin: '.5em 0',
|
||||
},
|
||||
},
|
||||
}),
|
||||
],
|
||||
include: [
|
||||
/.vue$/,
|
||||
/.vue?vue/,
|
||||
/.svelte$/,
|
||||
/.[jt]sx$/,
|
||||
/.mdx?$/,
|
||||
/.astro$/,
|
||||
/.elm$/,
|
||||
/.html$/,
|
||||
// eslint-disable-next-line prefer-named-capture-group, unicorn/no-unsafe-regex
|
||||
/.*\/ui\.js(.*)?$/,
|
||||
// eslint-disable-next-line prefer-named-capture-group, unicorn/no-unsafe-regex
|
||||
/.*\/ui\.mjs(.*)?$/,
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user