Daruka Theme
Publisher: Onur TaskiranThemes in package: 1
A modern dark theme with a balanced color palette for enhanced focus and readability.
A modern dark theme with a balanced color palette for enhanced focus and readability.
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 |
|---|---|---|
| text.html.php | #C4B9FE | — |
| variable.other.php | #CE78B0 | — |
| support.type.object.module.ts | #CE78B0 | — |
| entity.name.tag.ts | #C4B9FE | — |
| entity.other.attribute-name.ts | #82AAFF | — |
| support.class.component.ts | #C4B9FE | — |
| storage.type.ts | #82AAFF | — |
| storage.type.type.ts | #82AAFF | — |
| storage.type.interface.ts | #82AAFF | — |
| storage.type.enum.ts | #82AAFF | — |
| entity.name.type.enum.ts | #C4B9FE | — |
| entity.name.type.ts | #C4B9FE | — |
| entity.name.type.interface.ts | #C4B9FE | — |
| entity.name.function.ts | #96D0FF | bold |
| storage.type.function.ts | #82AAFF | — |
| meta.object-literal.key.ts | #C4B9FE | — |
| meta.type.annotation.ts | #C4B9FE | — |
| meta.type.parameters.ts | #CE78B0 | — |
| variable.parameter.ts | #C4B9FE | — |
| storage.modifier.async.ts | #C4B9FE | — |
| punctuation.definition.block.ts, punctuation.definition.parameters.begin.ts, punctuation.definition.parameters.end.ts, meta.brace.round.ts, meta.brace.square.ts, meta.brace.curly.ts | #82AAFF | — |
| meta.block.ts | #C4B9FE | — |
| meta.function.expression.ts | #96D0FF | — |
| meta.export.default.ts | #FFCC66 | — |
| meta.decorator.ts | #82AAFF | — |
| variable.other.readwrite.ts | #C4B9FE | — |
| support.type.primitive.ts | #CE78B0 | — |
| support.type.object.module.js | #CE78B0 | — |
| variable.other.php | #CE78B0 | — |
| entity.name.tag.js | #C4B9FE | — |
| entity.other.attribute-name.js | #82AAFF | — |
| support.class.component.js | #C4B9FE | — |
| storage.type.js | #82AAFF | — |
| entity.name.function.js | #96D0FF | — |
| storage.type.function.js | #82AAFF | — |
| variable | #C4B9FE | — |
| meta.object-literal.key.js | #C4B9FE | — |
| meta.jsx.children.js | #C4B9FE | — |
| variable.parameter.js | #C4B9FE | — |
| storage.modifier.async.js | #C4B9FE | — |
| parameter | #FFCC66 | — |
| comment, punctuation.definition.comment | #7C7C7C | normal |
| string | #CE78B0 | — |
| constant.numeric | #B5CEA8 | — |
| keyword | #82AAFF | bold |
| entity.name.class | #4EC9B0 | — |
| punctuation | #82AAFF | — |
| punctuation.definition.block.js, punctuation.definition.parameters.begin.js, punctuation.definition.parameters.end.js, meta.brace.round.js, meta.brace.square.js, meta.brace.curly.js | #82AAFF | — |
| meta.block.js | #C4B9FE | — |
| meta.function.expression.js | #96D0FF | — |
| meta.export.default.js | #FFCC66 | — |
| attr-name | #FFCC66 | — |
| attr-value | #CE78B0 | — |
| function | #96D0FF | — |
| entity.name.type.namespace.cs | #C4B9FE | — |
| entity.name.type.cs | #96D0FF | — |
| entity.name.type.class.cs | #CE78B0 | — |
| storage.modifier.private.cs | #96D0FF | — |
| storage.modifier.public.cs | #C4B9FE | — |
| storage.type.namespace.cs | #C4B9FE | — |
| storage.type.class.cs | #96D0FF | — |
| entity.name.function.python | #96D0FF | — |
| meta.function.python | #CE78B0 | — |
| meta.function-call.arguments.python | #C4B9FE | — |
| meta.fstring.python | #FFCC66 | — |
| meta.function-call.python | #C4B9FE | — |
| entity.name.function.cs | #96D0FF | — |
| entity.name.variable.local.cs | #CE78B0 | — |
| storage.type.var.cs | #C4B9FE | — |
| entity.name.variable.parameter.cs | #FFCC66 | — |
| entity.name.function.python | #96D0FF | — |
| meta.function.python | #CE78B0 | — |
| keyword.operator.expression.keyof.ts, keyword.operator.expression.typeof.ts, keyword.operator.expression.infer.ts | #82AAFF | bold |
| meta.type.parameters.ts, meta.type.parameters.ts punctuation | #CE78B0 | — |
| keyword.operator.type.ts, keyword.operator.optional.ts, keyword.operator.definiteassignment.ts | #C4B9FE | — |
| variable.other.enummember.ts | #C4B9FE | — |
| punctuation.decorator.ts | #82AAFF | — |
| meta.type.annotation.ts, meta.type.annotation.ts entity.name.type.ts | #4EC9B0 | — |
| storage.modifier.implements.ts, storage.modifier.extends.ts | #82AAFF | bold |
| meta.template.expression.ts, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts | #CE78B0 | — |
| support.type.utility.ts | #82AAFF | — |
| meta.type.annotation.ts keyword.operator.type.annotation.ts | #82AAFF | — |
| punctuation.definition.typeparameters.begin.ts, punctuation.definition.typeparameters.end.ts | #82AAFF | — |
| entity.name.tag.tsx | #C4B9FE | — |
| storage.type.interface.ts, storage.type.type.ts | #82AAFF | bold |
| keyword.operator.ternary.ts, keyword.operator.conditional.ts | #82AAFF | — |
| keyword.control.flow.ts, keyword.control.promise.ts | #82AAFF | — |
| keyword.operator.expression.is.ts, keyword.operator.expression.as.ts | #82AAFF | — |
| variable.other.object.ts | #CE78B0 | — |
| variable.other.property.ts | #FFCC66 | — |
| variable.other.constant.ts | #FF9966 | — |
| variable.other.readwrite.alias.ts | #C4B9FE | — |
| variable.other.readwrite.tsx | #C4B9FE | — |
| entity.name.function.tsx | #96D0FF | bold |
| variable.other.object.tsx | #CE78B0 | — |
| variable.parameter.tsx | #FFCC66 | — |
| meta.arrow.ts entity.name.function.ts | #96D0FF | bold |
| meta.definition.function.ts entity.name.function.ts | #96D0FF | bold |
| meta.definition.method.ts entity.name.function.ts | #96D0FF | bold |
| meta.method.declaration.ts entity.name.function.ts | #96D0FF | bold |
| meta.interface.ts entity.name.type.interface.ts | #4EC9B0 | bold |
| meta.class.ts entity.name.type.class.ts | #4EC9B0 | bold |
| entity.other.attribute-name.tsx | #82AAFF | — |
| meta.tag.attributes.tsx | #C4B9FE | — |
| meta.tag.tsx | #96D0FF | — |
| meta.embedded.expression.tsx | #CE78B0 | — |
| meta.jsx.children.tsx | #FFCC66 | — |
| meta.tag.without-attributes.tsx | #C4B9FE | — |
| meta.block.tsx | #CE78B0 | — |
| meta.function.tsx | #96D0FF | — |
| source.tsx | #C4B9FE | — |
| style.tsx | #82AAFF | bold |
| prop.tsx | #FFCC66 | — |
| constant.tsx | #FF9966 | — |
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}!`;
}