Skip to content

Commit

Permalink
Add Bluloco light and dark + Rajoyish
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Dec 18, 2023
1 parent c2442be commit 979ece6
Show file tree
Hide file tree
Showing 6 changed files with 3,344 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@vueuse/core": "^8.2.6",
"autoprefixer": "^10.4.2",
"chroma-js": "^2.4.2",
"collect.js": "^4.29.0",
"collect.js": "^4.36.1",
"core-js": "^3.15.1",
"cssjson": "^2.1.3",
"detect-browser": "^5.2.1",
Expand Down
12 changes: 9 additions & 3 deletions plugins/shiki.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import {
getHighlighter,
BUNDLED_THEMES,
BUNDLED_LANGUAGES,
IThemeRegistration,
} from '@stevebauman/shiki';
import collect from 'collect.js';

setCDN('/shiki/');
setWasm('/shiki/dist/onig.wasm');
Expand All @@ -22,6 +24,8 @@ const preloadedLangs = [
'php-html',
];

const customThemes = ['bluloco-light', 'bluloco-dark', 'rajoyish'];

const langAliases = ['bash', 'shell'];
const excludedLangs = ['php-html', 'html-derivative'];

Expand Down Expand Up @@ -73,9 +77,11 @@ export default async (context, inject) => {
},

themes() {
return BUNDLED_THEMES.filter(
(theme) => !['slack-ochin', 'css-variables'].some((t) => theme.includes(t))
);
return collect(BUNDLED_THEMES)
.filter((theme) => !['slack-ochin', 'css-variables'].some((t) => theme.includes(t)))
.merge(customThemes)
.sort()
.toArray();
},

themeIsLoaded(theme) {
Expand Down
Loading

0 comments on commit 979ece6

Please sign in to comment.