Skip to content

Commit 250590a

Browse files
committed
cursorとselectionの色を変更
1 parent af257ac commit 250590a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

app/globals.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,16 @@ mycdark:
110110
.ace_bracket {
111111
border: 1px solid var(--color-primary) !important;
112112
}
113+
.ace_cursor {
114+
color: var(--color-primary) !important;
115+
}
116+
.ace_selection {
117+
background: var(--color-primary) !important;
118+
opacity: 0.4;
119+
}
120+
.ace_selected-word {
121+
border: 1px solid var(--color-primary) !important;
122+
}
113123

114124
/* CDNからダウンロードするURLを指定したらなんかエラー出るので、npmでインストールしてlayout.tsxでimportすることにした */
115125
@theme {

app/terminal/terminal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function computeTerminalTheme() {
6161
// DaisyUIの変数を使用してテーマを設定している
6262
background: fromCSS("--color-base-300"),
6363
foreground: fromCSS("--color-base-content"),
64-
cursor: fromCSS("--color-base-content"),
64+
cursor: fromCSS("--color-primary"),
6565
selectionBackground: fromCSS("--color-primary"),
6666
selectionForeground: fromCSS("--color-primary-content"),
6767
black: fromCSS("--color-black"),
@@ -125,6 +125,7 @@ export function useTerminal(props: TerminalProps) {
125125
cursorBlink: true,
126126
convertEol: true,
127127
cursorStyle: "bar",
128+
cursorWidth: 2,
128129
cursorInactiveStyle: "none",
129130
fontSize: parseFloat(
130131
getComputedStyle(document.documentElement).fontSize

0 commit comments

Comments
 (0)