ThemeMeBabe
Publisher: ThemeMeBabe by DikshaThemes in package: 4
A VS Code extension that changes your theme based on your coding mood — focused, tired, neutral, or frustrated. Mood-based vibes, automatically.
A VS Code extension that changes your theme based on your coding mood — focused, tired, neutral, or frustrated. Mood-based vibes, automatically.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, punctuation.definition.comment | #546e7a | italic |
| variable, string constant.other.placeholder | #e1f5fe | — |
| keyword, storage.type, storage.modifier | #ff6b6b | — |
| keyword.control | #ff8a65 | — |
| entity.name.function, meta.function-call, variable.function, support.function | #4ecdc4 | — |
| entity.name.class, entity.name.type, support.type, support.class | #45b7d1 | — |
| string | #96ceb4 | — |
| constant.numeric | #feca57 | — |
| constant.language, constant.character | #ff9ff3 | — |
| variable.other.property, support.type.property-name, entity.other.attribute-name | #54a0ff | — |
| entity.name.method, variable.function.constructor | #5f27cd | — |
| entity.name.tag | #ff3838 | — |
| entity.other.attribute-name.html | #ff6348 | — |
| keyword.operator | #ff7675 | — |
| punctuation | #a4b0be | — |
| keyword.control.import, keyword.control.from | #00d2d3 | — |
| entity.name.function.decorator, punctuation.decorator | #ff9f43 | — |
| string.regexp | #ff6b81 | — |
| constant.character.escape | #70a1ff | — |
| support.type.property-name.json | #7bed9f | — |
| entity.name.tag.css, entity.other.attribute-name.class.css | #2ed573 | — |
| support.type.property-name.css | #3742fa | — |
| support.constant.property-value.css | #f1c40f | — |
| markup.heading | #ff4757 | bold |
| markup.bold | #ffa502 | bold |
| markup.italic | #3c40c6 | italic |
| markup.inline.raw | #05c46b | — |
| invalid, invalid.illegal | #ff3838 | underline |
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}!`;
}