-
Notifications
You must be signed in to change notification settings - Fork 2
Home
The UI should use the basic colors and the seven rainbow colors. This is because many color themes do so. By following this principle, your app can easily apply a myriad of color themes.
Background color, text color (foreground), selection color, comment color. Added to these are seven rainbow colors.
Basic colors - Color themes has basic colors. It is 4-5 colors.
- Background : Normal Background
- Current Line : Background (Current line and selection may not be separated)
- Selection : Background (Same)
- Foreground
- Comment (Gray) : Foreground
Basically, there are background color, foreground color and comment color (foreground, less noticeable). Also, as background color, have selection color. There may not have a current line color.
If selection color is too dark (too light), current line color is the best as second background color.
If the colors are too close together, monitors with fewer colors will render them as the same color. Please make it easy to distinguish. Background color, current line and selected color.
The selection color may create its own color. The color should be slightly yellowish. The effect is that the text or background is glowing.
Prism colors - Color themes has prism colors. It is 7-8 colors.
- Pink/Magenta (Optional)
- Red
- Orange
- Yellow
- Green
- Aqua/Cyan
- Blue (Optional, below)
- Purple/Violet
- Dracula :Blue
- Tomorrow, gruvbox, ayu : Pink
Some color themes have 8 rainbow colors. Some themes are in seven colors. The missing colors are blue or pink. And missing parts should be blue or pink. Assign colors automatically. When there is no blue, pink will be assigned. Or the reverse. Blue and pink are very different. Think it's a problem.
I do not know this is the best (incomplete theory). Adjust if there are too many colors.
-
Red - Error, Number(bold)
-
Orange - Argument
-
Yellow -
-
Green - String 2
-
Aqua/Cyan - String
-
Purple/Violet - Core keyword(bold)
-
Blue/Pink(Magenta) - Other Important (e.g. Label, Package)
Magic blue : #0089DB
(decimal : 0, 139, 219). Magic blue is visible on dark/light.