Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions app/utils/file-icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,12 @@ export const FILENAME_ICONS: Record<string, string> = {
'CONTRIBUTING.md': 'vscode-icons-file-type-markdown',
'contributing.md': 'vscode-icons-file-type-markdown',
'CODE_OF_CONDUCT.md': 'vscode-icons-file-type-markdown',
'LICENSE': 'vscode-icons-file-type-license',
'LICENSE.md': 'vscode-icons-file-type-license',
'LICENSE.txt': 'vscode-icons-file-type-license',
'license': 'vscode-icons-file-type-license',
'license.md': 'vscode-icons-file-type-license',
'license.txt': 'vscode-icons-file-type-license',
'LICENSE': 'custom-license-minified',
'LICENSE.md': 'custom-license-minified',
'LICENSE.txt': 'custom-license-minified',
'license': 'custom-license-minified',
'license.md': 'custom-license-minified',
'license.txt': 'custom-license-minified',

// Node
'.npmrc': 'vscode-icons-file-type-npm',
Expand Down
27 changes: 27 additions & 0 deletions assets/media/custom-icons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"agent-skills": {
"body": "<svg viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M16 0.5L29.4234 8.25V23.75L16 31.5L2.57661 23.75V8.25L16 0.5Z' fill='currentColor'/><path d='M16 6L24.6603 11V21L16 26L7.33975 21V11L16 6Z' fill='none' stroke='currentColor' stroke-width='3'/></svg>",
"width": 32,
"height": 32
},
"tangled": {
"body": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 25'><path fill='currentColor' d='M16.346 24.11c-.785-.007-1.384-.235-2.034-.632-.932-.49-1.643-1.314-2.152-2.222-.808 1.003-1.888 1.611-3.097 1.955-.515.15-1.416.301-2.911-.24-2.154-.724-3.723-2.965-3.545-5.25-.033-.946.313-1.875.802-2.674-1.305-.7-2.37-1.876-2.777-3.318-.248-.79-.237-1.64-.146-2.452.327-1.916 1.764-3.582 3.615-4.182.738-1.683 2.35-2.938 4.176-3.193a5.54 5.54 0 0 1 3.528.7C13.351.89 16.043.383 18.1 1.436c1.568.75 2.69 2.312 2.962 4.015 1.492.598 2.749 1.817 3.242 3.365.33.958.34 2.013.127 2.997-.382 1.536-1.465 2.842-2.868 3.557.003.273.901 2.243.751 3.73-.033 1.858-1.211 3.62-2.846 4.475-.954.557-2.085.546-3.12.535m-4.47-5.35c1.322-.148 2.19-1.3 2.862-2.339.319-.473.562-1.002.803-1.506.314.287.58.828 1.075.957.522.163 1.133.03 1.453-.443.611-1.14.31-2.517-.046-3.699-.22-.679-.507-1.375-1.054-1.856.116-.823-.372-1.66-1.065-2.09-.592.47-1.491.468-2.061-.037-1.093 1.115-2.095 1.078-3.063.195-.217-.199-.632 1.212-2.088.413-.837.7-1.485 1.375-2.06 2.346-.559 1.046-1.143 1.976-1.194 3.113-.024.664.495 1.36 1.198 1.306.703.063 1.182-.63 1.714-.917.08.928.169 1.924.482 2.829.36 1.171 1.627 1.916 2.825 1.745zm.687-3.498c-.644-.394-.334-1.25-.36-1.871.064-.75.115-1.538.453-2.221.356-.487 1.226-.3 1.265.326-.026.628-.314 1.254-.28 1.905-.075.544.054 1.155-.186 1.653-.198.275-.6.355-.892.208m-2.81-.358c-.605-.329-.413-1.156-.508-1.73.08-.666.014-1.51.571-1.978.545-.38 1.287.271 1.03.869-.276.755-.096 1.58-.09 2.346a.712.712 0 0 1-1.002.493'/></svg>",
"width": 25,
"height": 25
},
"vlt": {
"body": "<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M7.9991 5.03666C7.9991 5.46387 7.93211 5.87545 7.80808 6.26145C7.45933 7.34674 7.1975 8.58253 7.7669 9.57009L10.389 14.1177C10.7072 14.6697 11.3617 14.9108 11.9989 14.9108V14.9108V14.9108C12.6352 14.9108 13.2886 14.6699 13.6064 14.1187L16.2301 9.5682C16.7993 8.58097 16.5379 7.34565 16.1895 6.26064C16.0656 5.87488 15.9987 5.46358 15.9987 5.03666C15.9987 2.82777 17.7894 1.03711 19.9983 1.03711C22.2071 1.03711 23.9978 2.82777 23.9978 5.03666C23.9978 7.24555 22.2071 9.03621 19.9983 9.03621V9.03621C19.3609 9.03621 18.7062 9.27733 18.3878 9.82951L15.7661 14.3766C15.1967 15.3642 15.4586 16.6001 15.8074 17.6854C15.9314 18.0715 15.9984 18.4831 15.9984 18.9104C15.9984 21.1193 14.2078 22.9099 11.9989 22.9099C9.79001 22.9099 7.99935 21.1193 7.99935 18.9104C7.99935 18.4834 8.06626 18.072 8.19016 17.6862C8.53863 16.6012 8.80017 15.3657 8.23092 14.3785L5.60752 9.8285C5.28961 9.27712 4.63601 9.03621 3.99955 9.03621V9.03621C1.79066 9.03621 0 7.24555 0 5.03666C0 2.82777 1.79066 1.03711 3.99955 1.03711C6.20844 1.03711 7.9991 2.82777 7.9991 5.03666Z' fill='currentColor'></path></svg>",
"width": 24,
"height": 24
},
"a11y": {
"body": "<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='10'/><circle cx='12' cy='6' r='1'/><path d='m9 18 3-5 3 5'/><path d='m8 10 8 0'/><path d='M12 10v4'/></svg>",
"width": 24,
"height": 24
},
"license-minified": {
"body": "<svg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M9.9732 16.695C10.9737 18.4278 12.6877 19.4989 14.553 19.7648L14.8871 20.7614L15.3994 20.6191L18.4885 29.8189L19.1237 30.2027L20.6026 29.7899L20.7383 29.2897C20.7383 29.2897 21.821 28.314 21.8917 28.2485L21.7888 27.9428L21.2221 27.9805L21.0069 27.3405L21.5004 27.084L21.2065 26.2073L20.6097 26.1575L20.4209 25.5945L20.8852 25.2498L20.7511 24.8506L20.1681 24.8412L19.889 24.009L20.3669 23.7047L20.3066 23.525C20.1579 23.4992 20.0253 23.4436 19.9178 23.362C19.8103 23.2804 19.7305 23.1746 19.6838 23.0519C19.6435 22.943 19.6433 22.8185 19.6833 22.693C19.7233 22.5674 19.8019 22.4459 19.9098 22.3426L19.7369 21.8344C19.5364 21.787 19.359 21.7019 19.2149 21.5839C19.0708 21.4659 18.9629 21.3176 18.8978 21.1475C18.8425 20.9962 18.8383 20.825 18.8858 20.6507C18.9333 20.4764 19.0307 20.3052 19.1683 20.154L18.9884 19.6188L19.7044 19.42L19.4052 18.5273C22.0253 16.5943 22.8594 13.0146 21.2315 10.195C19.4794 7.16029 15.5388 6.15527 12.4299 7.9502C9.32104 9.74512 8.22112 13.6603 9.9732 16.695ZM13.6196 10.0107C12.8424 10.4595 12.5674 11.4383 13.0054 12.1969C13.4434 12.9556 14.4286 13.2069 15.2058 12.7581C15.983 12.3094 16.258 11.3306 15.82 10.5719C15.382 9.81326 14.3968 9.56201 13.6196 10.0107Z' fill='#E3B234'/><path d='M12.4798 8.03646C15.5428 6.26802 19.4219 7.25987 21.1452 10.2447C22.7464 13.018 21.9268 16.5421 19.3458 18.4463L19.2876 18.4901L19.3105 18.5592L19.5756 19.3522L18.9615 19.523L18.8604 19.5509L18.8935 19.6513L19.0559 20.1338C18.9297 20.2839 18.8365 20.4513 18.7892 20.6249C18.7372 20.8163 18.7407 21.0086 18.8038 21.1814L18.8048 21.1831C18.8763 21.3698 18.9948 21.5328 19.152 21.6615C19.295 21.7785 19.4673 21.8625 19.6581 21.9151L19.7952 22.3185C19.7001 22.4214 19.6274 22.5385 19.5879 22.6626C19.5421 22.8064 19.5411 22.9539 19.5902 23.0864L19.5907 23.0873C19.6442 23.2279 19.7355 23.3492 19.8574 23.4418C19.9634 23.5223 20.0898 23.5771 20.2279 23.6091L20.2465 23.6626L19.8352 23.9249L19.769 23.9665L19.794 24.0411L20.0737 24.8731L20.0957 24.9405L20.1662 24.9415L20.6781 24.9493L20.7661 25.2131L20.3615 25.5143L20.3029 25.5572L20.3258 25.6263L20.5145 26.1894L20.5357 26.2516L20.6013 26.2577L21.1316 26.3011L21.3782 27.0349L20.9611 27.252L20.8847 27.2916L20.9124 27.3726L21.1271 28.0121L21.1516 28.0859L21.2287 28.0808L21.7181 28.0475L21.7755 28.2173C21.6761 28.3074 21.4473 28.5164 21.222 28.7195C21.0823 28.8456 20.944 28.9697 20.8414 29.0622C20.7904 29.1082 20.7478 29.1461 20.7181 29.1729C20.7032 29.1863 20.6912 29.1971 20.6832 29.2043C20.6793 29.2078 20.6766 29.2108 20.6745 29.2127C20.6736 29.2135 20.673 29.2145 20.6725 29.215L20.6716 29.2155L20.6492 29.2352L20.6417 29.2632L20.5193 29.7094L19.1888 30.0806L15.6784 19.3774L15.4887 19.4396L18.9446 29.978L18.5705 29.752L15.4942 20.5877L15.4643 20.4968L15.373 20.5224L14.9513 20.6396L14.648 19.7333L14.6287 19.6745L14.5673 19.666C12.7306 19.4042 11.0436 18.3498 10.0594 16.6451C8.33615 13.6602 9.41672 9.8049 12.4798 8.03646ZM13.5696 9.92412C12.7465 10.3993 12.4525 11.4385 12.9193 12.247C13.3861 13.0553 14.4326 13.3196 15.2556 12.8444C16.0786 12.3693 16.373 11.3308 15.9064 10.5224C15.4396 9.71393 14.3927 9.44892 13.5696 9.92412Z' stroke='#212121' stroke-width='0.2'/><path fill-rule='evenodd' clip-rule='evenodd' d='M7.99805 13.3448C7.99805 15.3458 8.94693 17.1303 10.4294 18.2932L10.2204 19.3235L10.7353 19.4563L8.81055 28.9682L9.16876 29.6181L10.6559 30L11.0235 29.6347C11.0235 29.6347 12.449 29.3311 12.543 29.3097L12.6067 28.9935L12.0971 28.7428L12.2308 28.081L12.7864 28.1055L12.9702 27.1994L12.4783 26.8578L12.5963 26.2759L13.1707 26.2095L13.2542 25.7968L12.754 25.4971L12.9284 24.6368L13.4944 24.6123L13.532 24.4265C13.4161 24.3298 13.3291 24.2154 13.2768 24.0909C13.2246 23.9665 13.2083 23.835 13.2292 23.7054C13.2487 23.5909 13.3108 23.4831 13.4083 23.3943C13.5057 23.3055 13.6345 23.2396 13.7795 23.2041L13.884 22.6775C13.734 22.5363 13.6229 22.3738 13.5571 22.1996C13.4913 22.0254 13.4721 21.843 13.5007 21.6631C13.5284 21.5045 13.6105 21.3541 13.7387 21.2269C13.867 21.0997 14.0369 21.0001 14.2317 20.938L14.3435 20.3846L15.063 20.5704L15.2502 19.6476C18.4858 19.2837 20.998 16.6006 20.998 13.3448C20.998 9.84068 18.0879 7 14.498 7C10.9082 7 7.99805 9.84068 7.99805 13.3448ZM14.498 9.37931C13.6006 9.37931 12.873 10.0895 12.873 10.9655C12.873 11.8416 13.6006 12.5517 14.498 12.5517C15.3955 12.5517 16.123 11.8416 16.123 10.9655C16.123 10.0895 15.3955 9.37931 14.498 9.37931Z' fill='#E3B234'/><path d='M14.498 7.09961C18.0349 7.09961 20.8984 9.89811 20.8984 13.3447C20.8984 16.5471 18.4266 19.1892 15.2393 19.5479L15.167 19.5566L15.1523 19.6279L14.9854 20.4473L14.3682 20.2881L14.2666 20.2617L14.2451 20.3652L14.1445 20.8643C13.9602 20.9312 13.7957 21.0295 13.668 21.1562C13.5272 21.296 13.4341 21.4643 13.4023 21.6455V21.6475C13.371 21.8449 13.392 22.0453 13.4639 22.2354C13.5292 22.4082 13.6364 22.5671 13.7754 22.708L13.6924 23.126C13.5586 23.1675 13.4371 23.2326 13.3408 23.3203C13.2293 23.4219 13.1547 23.5492 13.1309 23.6885V23.6895C13.1069 23.8381 13.1253 23.9887 13.1846 24.1299C13.2361 24.2525 13.3182 24.3632 13.4219 24.46L13.4111 24.5156L12.9238 24.5371L12.8457 24.54L12.8301 24.6172L12.6562 25.4775L12.6416 25.5469L12.7021 25.583L13.1416 25.8457L13.0859 26.1182L12.585 26.1768L12.5127 26.1846L12.498 26.2559L12.3799 26.8379L12.3672 26.9023L12.4209 26.9404L12.8584 27.2432L12.7051 28.002L12.2354 27.9814L12.1494 27.9775L12.1328 28.0615L11.999 28.7227L11.9834 28.7988L12.0527 28.833L12.4932 29.0488L12.458 29.2246C12.3268 29.253 12.0242 29.3195 11.7275 29.3828C11.5435 29.4221 11.3617 29.4605 11.2266 29.4893C11.1594 29.5036 11.1035 29.5151 11.0645 29.5234C11.0449 29.5276 11.029 29.531 11.0186 29.5332C11.0134 29.5343 11.0095 29.5356 11.0068 29.5361C11.0055 29.5364 11.0046 29.537 11.0039 29.5371H11.0029L10.9736 29.543L10.9531 29.5635L10.624 29.8887L9.28613 29.5449L11.5977 18.5205L11.4023 18.4795L9.12598 29.334L8.91504 28.9512L10.833 19.4766L10.8525 19.3828L10.7607 19.3594L10.3369 19.25L10.5273 18.3135L10.54 18.2529L10.4912 18.2148C9.03142 17.0697 8.09766 15.3131 8.09766 13.3447C8.09771 9.89811 10.9612 7.09961 14.498 7.09961ZM14.498 9.2793C13.5476 9.2793 12.7734 10.0323 12.7734 10.9658C12.7736 11.8992 13.5478 12.6514 14.498 12.6514C15.4483 12.6514 16.2225 11.8992 16.2227 10.9658C16.2227 10.0323 15.4484 9.2793 14.498 9.2793Z' stroke='#212121' stroke-width='0.2'/><path d='M16.5 1.59961C19.4823 1.59961 21.9004 4.01766 21.9004 7C21.9004 8.11634 21.5606 9.15284 20.9805 10.0137C20.6262 9.46909 20.2023 8.99435 19.7256 8.5957C19.9641 8.11445 20.0996 7.57321 20.0996 7C20.0996 5.01177 18.4882 3.40039 16.5 3.40039C14.5118 3.40039 12.9004 5.01177 12.9004 7C12.9004 7.05794 12.9016 7.11556 12.9043 7.17285C12.9137 7.37202 12.9389 7.56734 12.9795 7.75684C13.1251 8.43693 13.4627 9.04652 13.9326 9.52441C14.0952 9.68974 14.274 9.8391 14.4658 9.9707C14.7832 10.1885 15.1379 10.3554 15.5176 10.4629C15.5895 10.5412 15.6554 10.6275 15.7109 10.7236C15.858 10.9784 15.9195 11.2589 15.9062 11.5322C15.7767 11.8375 15.5462 12.0907 15.2539 12.2539C14.4976 12.0752 13.8023 11.739 13.2061 11.2793L12.9531 11.0723C12.2728 10.4779 11.7386 9.71165 11.4238 8.84668C11.3167 8.55215 11.2345 8.24561 11.1797 7.92969C11.1273 7.62785 11.0996 7.31695 11.0996 7C11.0996 4.01766 13.5177 1.59961 16.5 1.59961Z' fill='#E3B234' stroke='#212121' stroke-width='0.2'/></svg>",
"width": 32,
"height": 32
}
}
17 changes: 10 additions & 7 deletions scripts/generate-file-tree-sprite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,22 @@ import {
COMPOUND_EXTENSIONS,
DEFAULT_ICON,
} from '../app/utils/file-icons.ts'
import customIcons from '../assets/media/custom-icons.json' with { type: 'json' }

const rootDir = process.cwd()
const outputDevPath = path.join(rootDir, 'public', 'file-tree-sprite.svg')
const outputStagePath = path.join(rootDir, 'public-dev', 'file-tree-sprite.svg')
const outputProdPath = path.join(rootDir, 'public-prod', 'file-tree-sprite.svg')
const outputDevPath = path.join(rootDir, 'public-dev', 'file-tree-sprite.svg')
const outputStagePath = path.join(rootDir, 'public-staging', 'file-tree-sprite.svg')
const outputProdPath = path.join(rootDir, 'public', 'file-tree-sprite.svg')

const COLLECTION_NAMES = ['lucide', 'simple-icons', 'svg-spinners', 'vscode-icons']
const ICONIFY_COLLECTION_NAMES = ['lucide', 'simple-icons', 'svg-spinners', 'vscode-icons']

const COLLECTION_REGEXP = new RegExp(`^(${COLLECTION_NAMES.join('|')})-(.+)$`)
const COLLECTION_REGEXP = new RegExp(`^(${ICONIFY_COLLECTION_NAMES.join('|')}|custom)-(.+)$`)

async function loadCollections() {
const collections: { [key: string]: IconifyJSON } = {}
for (const name of COLLECTION_NAMES) {
const collections: { [key: string]: IconifyJSON } = {
custom: { icons: customIcons, prefix: 'custom' },
}
for (const name of ICONIFY_COLLECTION_NAMES) {
const filePathUrl = import.meta.resolve(`@iconify-json/${name}/icons.json`)
const filePath = fileURLToPath(filePathUrl)
const raw = await fs.readFile(filePath, 'utf8')
Expand Down
16 changes: 4 additions & 12 deletions uno.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,7 @@ import {
import { presetRtl } from './uno-preset-rtl'
import { presetA11y } from './uno-preset-a11y'
import { theme } from './uno.theme'

const customIcons = {
'agent-skills':
'<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 0.5L29.4234 8.25V23.75L16 31.5L2.57661 23.75V8.25L16 0.5Z" fill="currentColor"/><path d="M16 6L24.6603 11V21L16 26L7.33975 21V11L16 6Z" fill="none" stroke="currentColor" stroke-width="3"/></svg>',
'tangled':
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25"><path fill="currentColor" d="M16.346 24.11c-.785-.007-1.384-.235-2.034-.632-.932-.49-1.643-1.314-2.152-2.222-.808 1.003-1.888 1.611-3.097 1.955-.515.15-1.416.301-2.911-.24-2.154-.724-3.723-2.965-3.545-5.25-.033-.946.313-1.875.802-2.674-1.305-.7-2.37-1.876-2.777-3.318-.248-.79-.237-1.64-.146-2.452.327-1.916 1.764-3.582 3.615-4.182.738-1.683 2.35-2.938 4.176-3.193a5.54 5.54 0 0 1 3.528.7C13.351.89 16.043.383 18.1 1.436c1.568.75 2.69 2.312 2.962 4.015 1.492.598 2.749 1.817 3.242 3.365.33.958.34 2.013.127 2.997-.382 1.536-1.465 2.842-2.868 3.557.003.273.901 2.243.751 3.73-.033 1.858-1.211 3.62-2.846 4.475-.954.557-2.085.546-3.12.535m-4.47-5.35c1.322-.148 2.19-1.3 2.862-2.339.319-.473.562-1.002.803-1.506.314.287.58.828 1.075.957.522.163 1.133.03 1.453-.443.611-1.14.31-2.517-.046-3.699-.22-.679-.507-1.375-1.054-1.856.116-.823-.372-1.66-1.065-2.09-.592.47-1.491.468-2.061-.037-1.093 1.115-2.095 1.078-3.063.195-.217-.199-.632 1.212-2.088.413-.837.7-1.485 1.375-2.06 2.346-.559 1.046-1.143 1.976-1.194 3.113-.024.664.495 1.36 1.198 1.306.703.063 1.182-.63 1.714-.917.08.928.169 1.924.482 2.829.36 1.171 1.627 1.916 2.825 1.745zm.687-3.498c-.644-.394-.334-1.25-.36-1.871.064-.75.115-1.538.453-2.221.356-.487 1.226-.3 1.265.326-.026.628-.314 1.254-.28 1.905-.075.544.054 1.155-.186 1.653-.198.275-.6.355-.892.208m-2.81-.358c-.605-.329-.413-1.156-.508-1.73.08-.666.014-1.51.571-1.978.545-.38 1.287.271 1.03.869-.276.755-.096 1.58-.09 2.346a.712.712 0 0 1-1.002.493"/></svg>',
'vlt':
'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.9991 5.03666C7.9991 5.46387 7.93211 5.87545 7.80808 6.26145C7.45933 7.34674 7.1975 8.58253 7.7669 9.57009L10.389 14.1177C10.7072 14.6697 11.3617 14.9108 11.9989 14.9108V14.9108V14.9108C12.6352 14.9108 13.2886 14.6699 13.6064 14.1187L16.2301 9.5682C16.7993 8.58097 16.5379 7.34565 16.1895 6.26064C16.0656 5.87488 15.9987 5.46358 15.9987 5.03666C15.9987 2.82777 17.7894 1.03711 19.9983 1.03711C22.2071 1.03711 23.9978 2.82777 23.9978 5.03666C23.9978 7.24555 22.2071 9.03621 19.9983 9.03621V9.03621C19.3609 9.03621 18.7062 9.27733 18.3878 9.82951L15.7661 14.3766C15.1967 15.3642 15.4586 16.6001 15.8074 17.6854C15.9314 18.0715 15.9984 18.4831 15.9984 18.9104C15.9984 21.1193 14.2078 22.9099 11.9989 22.9099C9.79001 22.9099 7.99935 21.1193 7.99935 18.9104C7.99935 18.4834 8.06626 18.072 8.19016 17.6862C8.53863 16.6012 8.80017 15.3657 8.23092 14.3785L5.60752 9.8285C5.28961 9.27712 4.63601 9.03621 3.99955 9.03621V9.03621C1.79066 9.03621 0 7.24555 0 5.03666C0 2.82777 1.79066 1.03711 3.99955 1.03711C6.20844 1.03711 7.9991 2.82777 7.9991 5.03666Z" fill="currentColor"></path></svg>',
'a11y':
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="6" r="1"/><path d="m9 18 3-5 3 5"/><path d="m8 10 8 0"/><path d="M12 10v4"/></svg>',
}
import customIcons from './assets/media/custom-icons.json'

export default defineConfig({
// og-image uses hardcoded classes we don't want bundled into main app
Expand All @@ -45,7 +35,9 @@ export default defineConfig({
warn: true,
scale: 1.2,
collections: {
custom: customIcons,
custom: Object.fromEntries(
Object.entries(customIcons).map(([key, { body }]) => [key, body]),
),
},
}),
presetTypography(),
Expand Down
Loading