Skip to content

Commit

Permalink
feat: icons test
Browse files Browse the repository at this point in the history
  • Loading branch information
flornkm committed Dec 23, 2023
1 parent b638d9f commit 712c083
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 6 deletions.
3 changes: 3 additions & 0 deletions design-system/assets/icons/edit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions design-system/assets/icons/expand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions design-system/assets/icons/folder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions design-system/assets/icons/textfile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion pages/archive/copyables/+Page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Button, { InlineLink } from "#components/Button"
import File from "~icons/eva/folder-outline"
import File from "~icons/central-icon-system/textfile"
import Vectorfiles from "./assets/vectorfiles.json"
import { useState } from "preact/hooks"
import README from "#components/README"
Expand Down
2 changes: 1 addition & 1 deletion pages/archive/index/+Page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Folder from "~icons/eva/folder-outline"
import Folder from "~icons/central-icon-system/folder"
import * as m from "#lang/paraglide/messages"
import README from "#components/README"
import { userScrolledDown } from "#hooks/userScrolledDown"
Expand Down
2 changes: 1 addition & 1 deletion pages/archive/projects/index/+Page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Button, { InlineLink } from "#components/Button"
import { InlineInfo } from "#components/Inline"
import Tooltip from "#components/Tooltip"
import File from "~icons/eva/folder-outline"
import File from "~icons/central-icon-system/textfile"
import * as m from "#lang/paraglide/messages"
import README from "#components/README"
import { userScrolledDown } from "#hooks/userScrolledDown"
Expand Down
2 changes: 1 addition & 1 deletion pages/archive/short-projects/index/+Page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Button, { InlineLink } from "#components/Button"
import { InlineInfo } from "#components/Inline"
import Tooltip from "#components/Tooltip"
import File from "~icons/eva/folder-outline"
import File from "~icons/central-icon-system/textfile"
import * as m from "#lang/paraglide/messages"
import README from "#components/README"
import { userScrolledDown } from "#hooks/userScrolledDown"
Expand Down
12 changes: 10 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import preact from "@preact/preset-vite"
import ssr from "vike/plugin"
import Icons from "unplugin-icons/vite"
import path from "path"
import { FileSystemIconLoader } from "unplugin-icons/loaders"
import { defineConfig } from "vite"
import { fileURLToPath } from "url"

Expand Down Expand Up @@ -51,7 +51,15 @@ export default defineConfig(() => ({
ssr({
prerender: true,
}),
Icons({ compiler: "jsx", jsx: "preact" }),
Icons({
compiler: "jsx",
jsx: "preact",
customCollections: {
"central-icon-system": FileSystemIconLoader(
"./design-system/assets/icons"
),
},
}),
],
optimizeDeps: {
include: [
Expand Down

1 comment on commit 712c083

@vercel
Copy link

@vercel vercel bot commented on 712c083 Dec 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.