diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-18 02:03:51 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-18 02:03:51 +0900 |
| commit | 510623ee1b7158578dd6f14adfb2e5bc2af67832 (patch) | |
| tree | 9e18e9ff98563944b7d02ab2a99efd6f54c54b39 /frontend | |
| parent | 714a64fb30eafcb8f9e4fa340c77cc322da71f3f (diff) | |
| download | iosdc-japan-2025-albatross-510623ee1b7158578dd6f14adfb2e5bc2af67832.tar.gz iosdc-japan-2025-albatross-510623ee1b7158578dd6f14adfb2e5bc2af67832.tar.zst iosdc-japan-2025-albatross-510623ee1b7158578dd6f14adfb2e5bc2af67832.zip | |
feat(frontend): bundle swift highlight
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/app/shiki.bundle.ts | 3 | ||||
| -rw-r--r-- | frontend/app/tailwind.css | 9 | ||||
| -rw-r--r-- | frontend/package.json | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/frontend/app/shiki.bundle.ts b/frontend/app/shiki.bundle.ts index 1d03de3..22b0ce2 100644 --- a/frontend/app/shiki.bundle.ts +++ b/frontend/app/shiki.bundle.ts @@ -10,12 +10,13 @@ import { } from '@shikijs/core' import { createJavaScriptRegexEngine } from '@shikijs/engine-javascript' -type BundledLanguage = 'php' +type BundledLanguage = 'php' | 'swift' type BundledTheme = 'github-light' type Highlighter = HighlighterGeneric<BundledLanguage, BundledTheme> const bundledLanguages = { php: () => import('@shikijs/langs/php'), + swift: () => import('@shikijs/langs/swift'), } as Record<BundledLanguage, DynamicImportLanguageRegistration> const bundledThemes = { diff --git a/frontend/app/tailwind.css b/frontend/app/tailwind.css index 1151645..ada2c29 100644 --- a/frontend/app/tailwind.css +++ b/frontend/app/tailwind.css @@ -5,5 +5,12 @@ } @utility bg-iosdc-japan { - background-image: linear-gradient(to right, #e03468, #ff523d, #f060b2, #a05cff, #008ccf); + background-image: linear-gradient( + to right, + #e03468, + #ff523d, + #f060b2, + #a05cff, + #008ccf + ); } diff --git a/frontend/package.json b/frontend/package.json index 52c6f04..fd4710a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -11,7 +11,7 @@ "check:ts": "react-router typegen && tsc", "dev": "react-router dev", "openapi-typescript": "openapi-typescript --output ./app/api/schema.d.ts ../openapi/api-server.yaml", - "shiki-codegen": "shiki-codegen --langs php --themes github-light --engine javascript ./app/shiki.bundle.ts", + "shiki-codegen": "shiki-codegen --langs php,swift --themes github-light --engine javascript ./app/shiki.bundle.ts", "start": "react-router-serve ./build/server/index.js" }, "dependencies": { |
