Skip to content

Conversation

@SamVerschueren
Copy link
Contributor

While documenting the editor, I found some things that couldn't be styled. And I also renamed a couple. I'll comment inline.

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@changeset-bot
Copy link

changeset-bot bot commented Jun 27, 2024

⚠️ No Changeset found

Latest commit: f2bec5f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

},
'.cm-tooltip.cm-tooltip-autocomplete ul li[aria-selected]': {
background: 'var(--cm-tooltip-backgroundColorSelected)',
color: 'var(--cm-tooltip-textColorSelected)',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was not possible to set the text color for the text in the tooltip.

/* Cursor */
--cm-cursor-width: 2px;
--cm-cursor-backgroundColor: var(--tk-elements-editor-cursor-textColor, var(--tk-text-primary));
--cm-cursor-backgroundColor: var(--tk-elements-editor-cursorColor, var(--tk-text-primary));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, cursorColor makes more sense.

@cloudflare-workers-and-pages
Copy link

Deploying tutorialkit-demo-page with  Cloudflare Pages  Cloudflare Pages

Latest commit: f2bec5f
Status: ✅  Deploy successful!
Preview URL: https://3e3c20b3.tutorialkit-demo-page.pages.dev
Branch Preview URL: https://fix-theming-editor.tutorialkit-demo-page.pages.dev

View logs

Comment on lines +25 to +28
--cm-selection-backgroundColorFocused: var(--tk-elements-editor-selection-backgroundColor, #42b4ff);
--cm-selection-backgroundOpacityFocused: var(--tk-elements-editor-selection-backgroundOpacity, 0.3);
--cm-selection-backgroundColorBlured: var(--tk-elements-editor-selection-inactiveBackgroundColor, #c9e9ff);
--cm-selection-backgroundOpacityBlured: var(--tk-elements-editor-selection-inactiveBackgroundOpacity, 0.3);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I renamed these to match a bit closer to how the terminal does the styling for the selection (--tk-elements-terminal-selection-backgroundColor). And renamed blured to inactive which matches more closely with others which we named activeBackgroundColor for instance.

Feel free to make suggestions, or we can also revert them.

Copy link
Member

@Nemikolh Nemikolh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good! 🎉

@Nemikolh Nemikolh merged commit 0f5dd45 into main Jun 27, 2024
@Nemikolh Nemikolh deleted the fix/theming/editor branch June 27, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants