gerryhjs / gerry-themes

This repo is mainly used as issue tracker for plugins Gerry Themes and Gerry Themes Pro, also serves as archive for Gerry Themes v2022.1.x.
https://plugins.jetbrains.com/plugin/18922-gerry-themes
Apache License 2.0
18 stars 2 forks source link

Different tag color for Web tags and Client/Server Components #38

Closed LouisLecouturier closed 4 days ago

LouisLecouturier commented 1 month ago

It would be nice to have different colors for Web Components

And to also differentiate Client/Server components like in the basic JetBrains Theme (like in example)

Screenshot 2024-07-24 at 14 18 04
gerryhjs commented 1 month ago

Thanks for your feedback. Would you like to share screenshot code if possible. I will check that.

LouisLecouturier commented 1 month ago

Sure, same piece of code with Gerry's Violet

image
gerryhjs commented 1 month ago

Could your paste the code text :) Just part of this code is enough.

gerryhjs commented 1 month ago

I think I found the custom tag ("Server"). But I didn't find out how to deal with "Button" tag. I will check with it in IDE later.

LouisLecouturier commented 1 month ago

Client component

"use client"

export const Client = () => {
return <div>Client</div>
}

Server component

export const Server = () => {
return <div>Server</div>
}

Test script

import { Client } from "./client.jsx"
import { Server } from "./server.jsx"

export const Test = () => {

return (
<div>
    <Client/>
    <Server/>
</div>)
}

Should do the job ;)

gerryhjs commented 1 month ago

I check the Test script in IDE with default themes, the colors of Page Title and Button keywords are same color. image Gerry Violet Modified: image

I will upgrade an EAP version later.

LouisLecouturier commented 1 month ago

Beautiful :)

Yeah I think this is specific when there is a NextJS config or something...

gerryhjs commented 1 month ago

Completed. Please check EAP version here: Gerry Themes: https://plugins.jetbrains.com/plugin/18922-gerry-themes/versions/eap or Gerry Themes Pro: https://plugins.jetbrains.com/plugin/19668-gerry-themes-pro/versions/eap