Shyama
Publisher: Rahul SinghThemes in package: 2
A premium obsidian dark developer theme named Shyama (teal), with electric teal, orange, and lavender highlights, featuring cursive imports.
A premium obsidian dark developer theme named Shyama (teal), with electric teal, orange, and lavender highlights, featuring cursive imports.
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 | #52787c | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical | #00f5d4 | italic |
| storage.type, storage.modifier | #00f5d4 | italic |
| keyword.control.import, keyword.control.export, keyword.control.from, meta.import keyword.control, meta.export keyword.control | #e2e8f0 | |
| meta.import punctuation.section.block, meta.import punctuation.definition.binding-pattern, meta.import punctuation.section.braces, meta.import meta.block punctuation.definition.block, meta.import punctuation.separator, meta.import punctuation | #e2e8f0 | |
| meta.import string.quoted, meta.import string.quoted.single, meta.import string.quoted.double | #fdba74 | |
| meta.import variable.other.readwrite, meta.import variable.other.readwrite.alias, variable.other.readwrite.alias.ts, variable.other.readwrite.alias.tsx, variable.other.readwrite.alias.js, variable.other.readwrite.alias.jsx, meta.import entity.name.type, meta.import support.class | #00f5d4 | bold italic |
| entity.name.function, support.function, meta.function-call, variable.function | #ff9f43 | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.name.namespace, entity.other.inherited-class | #00f5d4 | italic |
| string, punctuation.definition.string | #a6f3d0 | — |
| constant.numeric | #fb923c | — |
| constant.language, support.constant | #f472b6 | — |
| variable, variable.other.readwrite, variable.other.object, variable.other.property, meta.definition.variable | #e2e8f0 | — |
| variable.parameter, variable.other.type.parameter | #d2e5e4 | italic |
| punctuation, meta.brace, punctuation.separator, punctuation.terminator | #93aead | — |
| meta.decorator, entity.name.function.decorator | #ff9f43 | italic |
| entity.name.tag.jsx, entity.name.tag.tsx, entity.name.tag.js, entity.name.tag.ts, entity.name.tag, meta.tag.js entity.name.tag, meta.tag.tsx entity.name.tag, meta.tag.ts entity.name.tag | #38bdf8 | — |
| support.class.component.js, support.class.component.tsx, support.class.component.ts, entity.name.tag.component.js, entity.name.tag.component.tsx, entity.name.tag.component.ts, entity.name.tag.keyword, entity.name.tag.custom | #ff7a00 | — |
| entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, entity.other.attribute-name.js, entity.other.attribute-name.ts, entity.other.attribute-name, meta.tag.js entity.other.attribute-name, meta.tag.tsx entity.other.attribute-name, meta.tag.ts entity.other.attribute-name | #cba6f7 | italic |
| meta.jsx.children, meta.tsx.children | #e2e8f0 | — |
| entity.name.tag | #38bdf8 | — |
| entity.other.attribute-name, meta.attribute-name | #cba6f7 | italic |
| entity.other.attribute-name.class, entity.other.attribute-name.id | #00f5d4 | — |
| support.type.property-name | #2dd4bf | — |
| markup.heading | #ff9f43 | bold |
| string.other.link.title, markup.underline.link | #00e5ff | — |
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}!`;
}