Strange Theme
Publisher: Oelyn StudioThemes in package: 1
A dark theme for VS Code & Cursor with Vue SFC section differentiation and semantic highlighting.
A dark theme for VS Code & Cursor with Vue SFC section differentiation and semantic highlighting.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
| key | HEX | RGB | RGBA |
|---|---|---|---|
activityBar.background | |||
activityBar.foreground | |||
activityBar.inactiveForeground | |||
chat.requestBackground | |||
chat.requestForeground | |||
chat.responseBackground | |||
chat.responseForeground | |||
chat.slashCommandBackground | |||
chat.slashCommandForeground | |||
commandCenter.background | |||
commandCenter.border | |||
commandCenter.foreground | |||
editor.background | |||
editor.findMatchHighlightBackground | |||
editor.foreground | |||
editor.hoverHighlightBackground | |||
editor.inactiveSelectionBackground | |||
editor.lineHighlightBackground | |||
editor.selectionBackground | |||
editor.selectionHighlightBackground | |||
editorBracketMatch.background | |||
editorBracketMatch.border | |||
editorBracketPairGuide.activeBackground1 | |||
editorBracketPairGuide.activeBackground2 | |||
editorBracketPairGuide.activeBackground3 | |||
editorBracketPairGuide.activeBackground4 | |||
editorBracketPairGuide.activeBackground5 | |||
editorBracketPairGuide.activeBackground6 | |||
editorBracketPairGuide.background1 | |||
editorBracketPairGuide.background2 | |||
editorBracketPairGuide.background3 | |||
editorBracketPairGuide.background4 | |||
editorBracketPairGuide.background5 | |||
editorBracketPairGuide.background6 | |||
editorCursor.foreground | |||
editorGroupHeader.tabsBackground | |||
editorGroupHeader.tabsBorder | |||
editorIndentGuide.activeBackground | |||
editorIndentGuide.activeBackground1 | |||
editorIndentGuide.background | |||
editorIndentGuide.background1 | |||
editorLineNumber.activeForeground | |||
editorLineNumber.foreground | |||
list.activeSelectionBackground | |||
list.hoverBackground | |||
list.inactiveSelectionBackground | |||
quickInput.background | |||
quickInput.foreground | |||
sideBar.background | |||
sideBarTitle.foreground | |||
statusBar.background | |||
tab.activeBackground | |||
tab.activeBorderTop | |||
tab.activeForeground | |||
tab.inactiveBackground | |||
tab.inactiveForeground | |||
titleBar.activeBackground | |||
titleBar.inactiveBackground | |||
welcomePage.background |
Foregrounds this theme assigns to the token scope catalog. A rule with only a font style is skipped, and a longer matching scope wins. Italic and bold rules are not listed — the preview above shows them in the code.
| scope | HEX | RGB | RGBA |
|---|---|---|---|
comment | |||
comment.block | |||
comment.block.documentation | |||
comment.line | |||
constant | |||
constant.character | |||
constant.character.escape | |||
constant.numeric | |||
constant.numeric.integer | |||
constant.numeric.float | |||
constant.numeric.hex | |||
constant.numeric.octal | |||
entity | |||
entity.name | |||
entity.name.section | |||
entity.name.tag | |||
entity.other | |||
entity.other.attribute-name | |||
keyword | |||
keyword.control | |||
keyword.control.flow | |||
keyword.operator | |||
keyword.other | |||
markup | |||
markup.bold | |||
markup.heading | |||
markup.inline.raw | |||
markup.italic | |||
markup.list | |||
markup.raw | |||
meta | |||
meta.selector | |||
punctuation.definition.comment | |||
punctuation.definition.string.begin | |||
punctuation.definition.string.end | |||
punctuation.separator | |||
storage | |||
storage.modifier | |||
storage.type | |||
string | |||
string.other | |||
string.quoted | |||
string.quoted.double | |||
string.quoted.other | |||
string.quoted.single | |||
string.quoted.triple | |||
string.regexp | |||
string.template | |||
support | |||
support.constant | |||
support.function | |||
support.type | |||
support.type.property-name | |||
variable | |||
variable.language | |||
variable.other |
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}