Skip to content

Commit

Permalink
fix: theme syntax highlighting in message input box (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter authored Jun 17, 2024
1 parent 7d9808e commit e83ee16
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/catppuccin-frappe.theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@

@use "sass:math";
@use "@catppuccin/palette/scss/frappe" as *;
@use "@catppuccin/highlightjs/sass/theme";

$brand: $blue;

@import "theme";
.theme-dark {
@import "@catppuccin/highlightjs/sass/catppuccin-frappe";
@include theme.highlights("frappe", "hex");
}
5 changes: 3 additions & 2 deletions src/catppuccin-latte.theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

@use "sass:math";
@use "@catppuccin/palette/scss/latte" as *;
@use "@catppuccin/highlightjs/sass/theme";

$brand: $blue;

Expand Down Expand Up @@ -349,6 +350,6 @@ nav[class*="guilds-"].theme-dark {
}

@import "theme";
.theme-light {
@import "@catppuccin/highlightjs/sass/catppuccin-latte";
.theme-dark {
@include theme.highlights("latte", "hex");
}
3 changes: 2 additions & 1 deletion src/catppuccin-macchiato.theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@

@use "sass:math";
@use "@catppuccin/palette/scss/macchiato" as *;
@use "@catppuccin/highlightjs/sass/theme";

$brand: $blue;

@import "theme";
.theme-dark {
@import "@catppuccin/highlightjs/sass/catppuccin-macchiato";
@include theme.highlights("macchiato", "hex");
}
3 changes: 2 additions & 1 deletion src/catppuccin-mocha.theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@

@use "sass:math";
@use "@catppuccin/palette/scss/mocha" as *;
@use "@catppuccin/highlightjs/sass/theme";

$brand: $blue;

@import "theme";
.theme-dark {
@import "@catppuccin/highlightjs/sass/catppuccin-mocha";
@include theme.highlights("mocha", "hex");
}

0 comments on commit e83ee16

Please sign in to comment.