Skip to content

Commit 262d63b

Browse files
committed
Replace Atom Dark and Darcula themes with Coldark variants, add Duotone and Material Light themes, swap Material Oceanic for Lucario, replace VS Light with Xonokai, update theme count to 21 in documentation
1 parent ae5700e commit 262d63b

45 files changed

Lines changed: 2523 additions & 907 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CLAUDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Always `require` the generated `.asset.php` manifest before enqueueing block scr
5151

5252
**Editor canvas styling**`enqueue_editor_canvas_styles()` extracts only `background` and `color` from the active Prism theme CSS and re-injects them with `.block-editor-block-list__layout` prepended to win the specificity race against the editor's own `pre` styles. Layout properties are intentionally excluded.
5353

54+
**Themes (21):** A11y Dark, Coldark Cold, Coldark Dark, Dracula, Duotone Dark, Duotone Light, GitHub Light, Gruvbox Dark, Gruvbox Light, Lucario, Material Dark, Material Light, Night Owl, Nord, One Dark, One Light, Shades of Purple, Solarized Dark, Synthwave '84, VS Code Dark+, Xonokai (Monokai).
55+
5456
**Default color scheme:** `prism-onedark`
5557

5658
**If you change block attributes in JS**, update `render_code_block()` in `class-blocks.php` and the defaults flow as well.

build-prism.js

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ const themes = [
1515
dest: 'includes/assets/prism-a11y-dark.css',
1616
},
1717
{
18-
src: 'node_modules/prism-themes/themes/prism-atom-dark.css',
19-
dest: 'includes/assets/prism-atom-dark.css',
18+
src: 'node_modules/prism-themes/themes/prism-coldark-cold.css',
19+
dest: 'includes/assets/prism-coldark-cold.css',
2020
},
2121
{
22-
src: 'node_modules/prism-themes/themes/prism-darcula.css',
23-
dest: 'includes/assets/prism-darcula.css',
22+
src: 'node_modules/prism-themes/themes/prism-coldark-dark.css',
23+
dest: 'includes/assets/prism-coldark-dark.css',
2424
},
2525
{
2626
src: 'node_modules/prism-themes/themes/prism-dracula.css',
@@ -43,8 +43,8 @@ const themes = [
4343
dest: 'includes/assets/prism-material-dark.css',
4444
},
4545
{
46-
src: 'node_modules/prism-themes/themes/prism-material-oceanic.css',
47-
dest: 'includes/assets/prism-material-oceanic.css',
46+
src: 'node_modules/prism-themes/themes/prism-lucario.css',
47+
dest: 'includes/assets/prism-lucario.css',
4848
},
4949
{
5050
src: 'node_modules/prism-themes/themes/prism-night-owl.css',
@@ -75,8 +75,20 @@ const themes = [
7575
dest: 'includes/assets/prism-synthwave84.css',
7676
},
7777
{
78-
src: 'node_modules/prism-themes/themes/prism-vs.css',
79-
dest: 'includes/assets/prism-vs.css',
78+
src: 'node_modules/prism-themes/themes/prism-duotone-dark.css',
79+
dest: 'includes/assets/prism-duotone-dark.css',
80+
},
81+
{
82+
src: 'node_modules/prism-themes/themes/prism-duotone-light.css',
83+
dest: 'includes/assets/prism-duotone-light.css',
84+
},
85+
{
86+
src: 'node_modules/prism-themes/themes/prism-material-light.css',
87+
dest: 'includes/assets/prism-material-light.css',
88+
},
89+
{
90+
src: 'node_modules/prism-themes/themes/prism-xonokai.css',
91+
dest: 'includes/assets/prism-xonokai.css',
8092
},
8193
{
8294
src: 'node_modules/prism-themes/themes/prism-vsc-dark-plus.css',

includes/admin/class-settings.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,26 @@ class Settings {
2929
*/
3030
public static array $color_schemes = array(
3131
'prism-a11y-dark' => 'A11y Dark',
32-
'prism-atom-dark' => 'Atom Dark',
33-
'prism-darcula' => 'Darcula',
32+
'prism-coldark-cold' => 'Coldark Cold (Light)',
33+
'prism-coldark-dark' => 'Coldark Dark',
3434
'prism-dracula' => 'Dracula',
35+
'prism-duotone-dark' => 'Duotone Dark',
36+
'prism-duotone-light' => 'Duotone Light',
3537
'prism-ghcolors' => 'GitHub (Light)',
3638
'prism-gruvbox-dark' => 'Gruvbox Dark',
3739
'prism-gruvbox-light' => 'Gruvbox Light',
40+
'prism-lucario' => 'Lucario',
3841
'prism-material-dark' => 'Material Dark',
39-
'prism-material-oceanic' => 'Material Oceanic',
42+
'prism-material-light' => 'Material Light',
4043
'prism-night-owl' => 'Night Owl',
4144
'prism-nord' => 'Nord',
4245
'prism-onedark' => 'One Dark',
4346
'prism-one-light' => 'One Light',
4447
'prism-shades-of-purple' => 'Shades of Purple',
4548
'prism-solarized-dark-atom' => 'Solarized Dark',
4649
'prism-synthwave84' => 'Synthwave \'84',
47-
'prism-vs' => 'VS (Light)',
4850
'prism-vsc-dark-plus' => 'VS Code Dark+',
51+
'prism-xonokai' => 'Xonokai (Monokai)',
4952
);
5053

5154
/**

includes/assets/prism-atom-dark-rtl.min.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

includes/assets/prism-atom-dark.min.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)