Skip to content

Commit

Permalink
load catppuccin themes from CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhosny committed Dec 16, 2024
1 parent f0ec9b5 commit 5963b8c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 375 deletions.
13 changes: 5 additions & 8 deletions src/livecodes/editor/codejar/prism-themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
prismOfficialThemesBaseUrl,
prismThemesBaseUrl,
prismThemesLaserWaveUrl,
vendorsBaseUrl,
} from '../../vendors';

const changeLineNumberColor = (color: string) =>
Expand All @@ -24,26 +25,22 @@ export const prismThemes: Array<{
{
name: 'catppuccin-latte',
title: 'Catppuccin Latte',
// https://github.com/catppuccin/prismjs/blob/main/themes/latte.css
url: 'data:text/css;charset=UTF-8;base64,Y29kZVtjbGFzcyo9Imxhbmd1YWdlLSJdLApwcmVbY2xhc3MqPSJsYW5ndWFnZS0iXSB7Cgljb2xvcjogIzRjNGY2OTsKfQoKOm5vdChwcmUpID4gY29kZVtjbGFzcyo9Imxhbmd1YWdlLSJdLApwcmVbY2xhc3MqPSJsYW5ndWFnZS0iXSB7CgliYWNrZ3JvdW5kOiAjZTZlOWVmOwp9CgovKiBodHRwczovL3ByaXNtanMuY29tL3Rva2Vucy5odG1sICovCgoudG9rZW4ua2V5d29yZCB7Cgljb2xvcjogIzg4MzllZjsKfQoKLnRva2VuLmJ1aWx0aW4gewoJY29sb3I6ICNkMjBmMzk7Cn0KCi50b2tlbi5jbGFzcy1uYW1lIHsKCWNvbG9yOiAjZGY4ZTFkOwp9CgoudG9rZW4uZnVuY3Rpb24gewoJY29sb3I6ICMxZTY2ZjU7Cn0KCi50b2tlbi5ib29sZWFuLAoudG9rZW4ubnVtYmVyIHsKCWNvbG9yOiAjZmU2NDBiOwp9CgoudG9rZW4uc3RyaW5nLAoudG9rZW4uY2hhciB7Cgljb2xvcjogIzQwYTAyYjsKfQoKLnRva2VuLnN5bWJvbCB7Cgljb2xvcjogI2Rm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tlbi5pbXBvcnRhbnQsCi50b2tlbi5ib2xkIHsKCWZvbnQtd2VpZ2h0OiBib2xkOwp9Ci50b2tlbi5pdGFsaWMgewoJZm9udC1zdHlsZTogaXRhbGljOwp9Cg==',
url: vendorsBaseUrl + 'catppuccin/prism/latte.css',
},
{
name: 'catppuccin-frappe',
title: 'Catppuccin Frappe',
// https://github.com/catppuccin/prismjs/blob/main/themes/frappe.css
url: 'data:text/css;charset=UTF-8;base64,Y29kZVtjbGFzcyo9Imxhbmd1YWdlLSJdLApwcmVbY2xhc3MqPSJsYW5ndWFnZS0iXSB7Cgljb2xvcjogI2M2ZDBmNTsKfQoKOm5vdChwcmUpID4gY29kZVtjbGFzcyo9Imxhbmd1YWdlLSJdLApwcmVbY2xhc3MqPSJsYW5ndWFnZS0iXSB7CgliYWNrZ3JvdW5kOiAjMjkyYzNjOwp9CgovKiBodHRwczovL3ByaXNtanMuY29tL3Rva2Vucy5odG1sICovCgoudG9rZW4ua2V5d29yZCB7Cgljb2xvcjogI2NhOWVlNjsKfQoKLnRva2VuLmJ1aWx0aW4gewoJY29sb3I6ICNlNzgyODQ7Cn0KCi50b2tlbi5jbGFzcy1uYW1lIHsKCWNvbG9yOiAjZTVjODkwOwp9CgoudG9rZW4uZnVuY3Rpb24gewoJY29sb3I6ICM4Y2FhZWU7Cn0KCi50b2tlbi5ib29sZWFuLAoudG9rZW4ubnVtYmVyIHsKCWNvbG9yOiAjZWY5Zjc2Owp9CgoudG9rZW4uc3RyaW5nLAoudG9rZW4uY2hhciB7Cgljb2xvcjogI2E2ZDE4OTsKfQoKLnRva2VuLnN5bWJvbCB7Cgljb2xvcjogI2U1Yzg5MDsKfQoKLnRva2VuLnJlZ2V4IHsKCWNvbG9yOiAjZjRiOGU0Owp9CgoudG9rZW4udXJsIHsKCWNvbG9yOiAjYTZkMTg5Owp9CgoudG9rZW4ub3BlcmF0b3IgewoJY29sb3I6ICM5OWQxZGI7Cn0KCi50b2tlbi52YXJpYWJsZSB7Cg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Catppuccin Macchiato',
// https://github.com/catppuccin/prismjs/blob/main/themes/macchiato.css
url: 'data:text/css;charset=UTF-8;base64,Y29kZVtjbGFzcyo9Imxhbmd1YWdlLSJdLApwcmVbY2xhc3MqPSJsYW5ndWFnZS0iXSB7Cgljb2xvcjogI2NhZDNmNTsKfQoKOm5vdChwcmUpID4gY29kZVtjbGFzcyo9Imxhbmd1YWdlLSJdLApwcmVbY2xhc3MqPSJsYW5ndWFnZS0iXSB7CgliYWNrZ3JvdW5kOiAjMWUyMDMwOwp9CgovKiBodHRwczovL3ByaXNtanMuY29tL3Rva2Vucy5odG1sICovCgoudG9rZW4ua2V5d29yZCB7Cgljb2xvcjogI2M2YTBmNjsKfQoKLnRva2VuLmJ1aWx0aW4gewoJY29sb3I6ICNlZDg3OTY7Cn0KCi50b2tlbi5jbGFzcy1uYW1lIHsKCWNvbG9yOiAjZWVkNDlmOwp9CgoudG9rZW4uZnVuY3Rpb24gewoJY29sb3I6ICM4YWFkZjQ7Cn0KCi50b2tlbi5ib29sZWFuLAoudG9rZW4ubnVtYmVyIHsKCWNvbG9yOiAjZjVhOTdmOwp9CgoudG9rZW4uc3RyaW5nLAoudG9rZW4uY2hhciB7Cgljb2xvcjogI2E2ZGE5NTsKfQoKLnRva2VuLnN5bWJvbCB7Cgljb2xvcjogI2VlZDQ5ZjsKfQoKLnRva2VuLnJlZ2V4IHsKCWNvbG9yOiAjZjViZGU2Owp9CgoudG9rZW4udXJsIHsKCWNvbG9yOiAjYTZkYTk1Owp9CgoudG9rZW4ub3BlcmF0b3IgewoJY29sb3I6ICM5MWQ3ZTM7Cn0KCi50b2tlbi52YXJpYWJsZSB7Cgljb2xvcjogI2NhZDNmNTsKfQoKLnRva2VuLmNvbnN0YW50IHsKCWNvbG9yOiAjZjVhOTdmOwp9CgoudG9rZW4ucHJvcGVydHkgewoJY29sb3I6ICM4YWFkZjQ7Cn0KCi50b2tlbi5wdW5jdHVhdGlvbiB7Cgljb2xvcjogIzkzOWFiNzsKfQoKLnRva2VuLmltcG9ydGFudCB7Cgljb2xvcjogI2M2YTBmNjsKfQoKLnRva2VuLmNvbW1lbnQgewoJY29sb3I6ICM5MzlhYjc7Cn0KCi50b2tlbi50YWcgewoJY29sb3I6ICM4YWFkZjQ7Cn0KCi50b2tlbi5hdHRyLW5hbWUgewoJY29sb3I6ICNlZWQ0OWY7Cn0KCi50b2tlbi5hdHRyLXZhbHVlIHsKCWNvbG9yOiAjYTZkYTk1Owp9CgoudG9rZW4ubmFtZXNwYWNlIHsKCWNvbG9yOiAjZWVkNDlmOwp9CgoudG9rZW4ucHJvbG9nLAoudG9rZW4uZG9jdHlwZSB7Cgljb2xvcjogI2M2YTBmNjsKfQoKLnRva2VuLmNkYXRhIHsKCWNvbG9yOiAjOGJkNWNhOwp9CgoudG9rZW4uZW50aXR5IHsKCWNvbG9yOiAjZWQ4Nzk2Owp9CgoudG9rZW4uYXRydWxlIHsKCWNvbG9yOiAjYzZhMGY2Owp9CgoudG9rZW4uc2VsZWN0b3IgewoJY29sb3I6ICM4YWFkZjQ7Cn0KCi8qIERpZmYgKi8KCi50b2tlbi5kZWxldGVkIHsKCWNvbG9yOiAjZWQ4Nzk2Owp9CgoudG9rZW4uaW5zZXJ0ZWQgewoJY29sb3I6ICNhNmRhOTUKfQoKLyogT3RoZXIgKi8KCi50b2tlbi5pbXBvcnRhbnQsCi50b2tlbi5ib2xkIHsKCWZvbnQtd2VpZ2h0OiBib2xkOwp9Ci50b2tlbi5pdGFsaWMgewoJZm9udC1zdHlsZTogaXRhbGljOwp9Cg==',
url: vendorsBaseUrl + 'catppuccin/prism/macchiato.css',
},
{
name: 'catppuccin-mocha',
title: 'Catppuccin Mocha',
// https://github.com/catppuccin/prismjs/blob/main/themes/mocha.css
url: 'data:text/css;charset=UTF-8;base64,Y29kZVtjbGFzcyo9Imxhbmd1YWdlLSJdLApwcmVbY2xhc3MqPSJsYW5ndWFnZS0iXSB7Cgljb2xvcjogI2NkZDZmNDsKfQoKOm5vd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b3I6ICNmOWUyYWY7Cn0KCi50b2tlbi5hdHRyLXZhbHVlIHsKCWNvbG9yOiAjYTZlM2ExOwp9CgoudG9rZW4ubmFtZXNwYWNlIHsKCWNvbG9yOiAjZjllMmFmOwp9CgoudG9rZW4ucHJvbG9nLAoudG9rZW4uZG9jdHlwZSB7Cgljb2xvcjogI2NiYTZmNzsKfQoKLnRva2VuLmNkYXRhIHsKCWNvbG9yOiAjOTRlMmQ1Owp9CgoudG9rZW4uZW50aXR5IHsKCWNvbG9yOiAjZjM4YmE4Owp9CgoudG9rZW4uYXRydWxlIHsKCWNvbG9yOiAjY2JhNmY3Owp9CgoudG9rZW4uc2VsZWN0b3IgewoJY29sb3I6ICM4OWI0ZmE7Cn0KCi8qIERpZmYgKi8KCi50b2tlbi5kZWxldGVkIHsKCWNvbG9yOiAjZjM4YmE4Owp9CgoudG9rZW4uaW5zZXJ0ZWQgewoJY29sb3I6ICNhNmUzYTEKfQoKLyogT3RoZXIgKi8KCi50b2tlbi5pbXBvcnRhbnQsCi50b2tlbi5ib2xkIHsKCWZvbnQtd2VpZ2h0OiBib2xkOwp9Ci50b2tlbi5pdGFsaWMgewoJZm9udC1zdHlsZTogaXRhbGljOwp9Cg==',
url: vendorsBaseUrl + 'catppuccin/prism/mocha.css',
},
{ name: 'cb', title: 'CB', url: prismThemesBaseUrl + 'prism-cb.css' },
{
Expand Down
121 changes: 9 additions & 112 deletions src/livecodes/editor/codemirror/codemirror-themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
cm6ThemeSolarizedLightUrl,
ddietrCmThemesBaseUrl,
thememirrorBaseUrl,
vendorsBaseUrl,
} from '../../vendors';

export const codemirrorThemes: Array<{
Expand Down Expand Up @@ -79,18 +80,26 @@ export const codemirrorThemes: Array<{
{
name: 'catppuccin-latte',
title: 'Catppuccin Latte',
url: vendorsBaseUrl + 'catppuccin/codemirror/codemirror-theme-catppuccin.js',
exportName: 'catppuccinLatte',
},
{
name: 'catppuccin-frappe',
title: 'Catppuccin Frappe',
url: vendorsBaseUrl + 'catppuccin/codemirror/codemirror-theme-catppuccin.js',
exportName: 'catppuccinFrappe',
},
{
name: 'catppuccin-macchiato',
title: 'Catppuccin Macchiato',
url: vendorsBaseUrl + 'catppuccin/codemirror/codemirror-theme-catppuccin.js',
exportName: 'catppuccinMacchiato',
},
{
name: 'catppuccin-mocha',
title: 'Catppuccin Mocha',
url: vendorsBaseUrl + 'catppuccin/codemirror/codemirror-theme-catppuccin.js',
exportName: 'catppuccinMocha',
},
{
name: 'clouds',
Expand Down Expand Up @@ -298,116 +307,4 @@ export const customThemes = {
},
styles: [],
}),
'catppuccin-latte': createTheme({
variant: 'light',
settings: {
background: '#eff1f5', // base
foreground: '#4c4f69', // text
caret: '#dc8a78', // rosewater
selection: '#ccd0da', // surface0
gutterBackground: '#e6e9ef', // mantle
gutterForeground: '#4c4f69', // text
lineHighlight: '#ccd0da', // surface0
},
styles: [
{ tag: t.keyword, color: '#8839ef' }, // mauve
{ tag: t.operator, color: '#04a5e5' }, // sky
{ tag: t.string, color: '#40a02b' }, // green
{ tag: t.comment, color: '#8c8fa1', fontStyle: 'italic' }, // overlay1
{ tag: t.function(t.variableName), color: '#1e66f5' }, // blue
{ tag: t.number, color: '#fe640b' }, // peach
{ tag: t.bool, color: '#fe640b' }, // peach
{ tag: t.className, color: '#df8e1d' }, // yellow
{ tag: t.constant(t.variableName), color: '#fe640b' }, // peach
{ tag: t.variableName, color: '#4c4f69' }, // text
{ tag: t.punctuation, color: '#04a5e5' }, // sky
{ tag: t.bracket, color: '#04a5e5' }, // sky
{ tag: t.typeName, color: '#1e66f5' }, // blue
{ tag: t.attributeName, color: '#df8e1d' }, // red
],
}),
'catppuccin-frappe': createTheme({
variant: 'dark',
settings: {
background: '#303446', // base
foreground: '#c6d0f5', // text
caret: '#f2d5cf', // rosewater
selection: '#51576d', // surface0
gutterBackground: '#292c3c', // mantle
gutterForeground: '#c6d0f5', // text
lineHighlight: '#414559', // surface0
},
styles: [
{ tag: t.keyword, color: '#ca9ee6' }, // mauve
{ tag: t.operator, color: '#99d1db' }, // sky
{ tag: t.string, color: '#a6d189' }, // green
{ tag: t.comment, color: '#838ba7', fontStyle: 'italic' }, // overlay1
{ tag: t.function(t.variableName), color: '#8caaee' }, // blue
{ tag: t.number, color: '#ef9f76' }, // peach
{ tag: t.bool, color: '#ef9f76' }, // peach
{ tag: t.className, color: '#e5c890' }, // yellow
{ tag: t.constant(t.variableName), color: '#ef9f76' }, // peach
{ tag: t.variableName, color: '#c6d0f5' }, // text
{ tag: t.punctuation, color: '#99d1db' }, // sky
{ tag: t.bracket, color: '#99d1db' }, // sky
{ tag: t.typeName, color: '#8caaee' }, // blue
{ tag: t.attributeName, color: '#e5c890' }, // red
],
}),
'catppuccin-macchiato': createTheme({
variant: 'dark',
settings: {
background: '#24273a', // base
foreground: '#cad3f5', // text
caret: '#f4dbd6', // rosewater
selection: '#494d64', // surface0
gutterBackground: '#1e2030', // mantle
gutterForeground: '#cad3f5', // text
lineHighlight: '#363a4f', // surface0
},
styles: [
{ tag: t.keyword, color: '#c6a0f6' }, // mauve
{ tag: t.operator, color: '#91d7e3' }, // sky
{ tag: t.string, color: '#a6da95' }, // green
{ tag: t.comment, color: '#9ca0b0', fontStyle: 'italic' }, // overlay1
{ tag: t.function(t.variableName), color: '#8aadf4' }, // blue
{ tag: t.number, color: '#f5a97f' }, // peach
{ tag: t.bool, color: '#f5a97f' }, // peach
{ tag: t.className, color: '#eed49f' }, // yellow
{ tag: t.constant(t.variableName), color: '#f5a97f' }, // peach
{ tag: t.variableName, color: '#cad3f5' }, // text
{ tag: t.punctuation, color: '#91d7e3' }, // sky
{ tag: t.bracket, color: '#91d7e3' }, // sky
{ tag: t.typeName, color: '#8aadf4' }, // blue
{ tag: t.attributeName, color: '#eed49f' }, // red
],
}),
'catppuccin-mocha': createTheme({
variant: 'dark',
settings: {
background: '#1e1e2e', // base
foreground: '#cdd6f4', // text
caret: '#f5e0dc', // rosewater
selection: '#45475a', // surface0
gutterBackground: '#181825', // mantle
gutterForeground: '#cdd6f4', // text
lineHighlight: '#313244', // surface0
},
styles: [
{ tag: t.keyword, color: '#cba6f7' }, // mauve
{ tag: t.operator, color: '#89dceb' }, // sky
{ tag: t.string, color: '#a6e3a1' }, // green
{ tag: t.comment, color: '#9399b2', fontStyle: 'italic' }, // overlay1
{ tag: t.function(t.variableName), color: '#89b4fa' }, // blue
{ tag: t.number, color: '#fab387' }, // peach
{ tag: t.bool, color: '#fab387' }, // peach
{ tag: t.className, color: '#f9e2af' }, // yellow
{ tag: t.constant(t.variableName), color: '#fab387' }, // peach
{ tag: t.variableName, color: '#cdd6f4' }, // text
{ tag: t.punctuation, color: '#89dceb' }, // sky
{ tag: t.bracket, color: '#89dceb' }, // sky
{ tag: t.typeName, color: '#89b4fa' }, // blue
{ tag: t.attributeName, color: '#f9e2af' }, // red
],
}),
};
Loading

0 comments on commit 5963b8c

Please sign in to comment.