Kiro Dark Theme
Publisher: mkdesilvaThemes in package: 1
Colour theme that matches Kiro
Colour theme that matches Kiro
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 | #FFFFFF99 | — |
| comment.line, comment.block.documentation | #FFFFFF99 | italic |
| constant.language.boolean.false | #FF8080 | — |
| constant.language.boolean.true | #FF8080 | — |
| constant.language.import-export-all | #8DC8FB | — |
| constant.language.null | #FF8080 | — |
| constant.language.symbol | #FF80B5 | — |
| constant.numeric | #FFAFD1 | — |
| entity.name.tag | #8DC8FB | — |
| entity.name.tag.reference | #E2D3FE | — |
| entity.name.tag.yaml | #FFCF99 | — |
| entity.name.type.module | #FFCF99 | — |
| entity.name.function | #8DC8FB | — |
| entity.other.attribute-name.id | #FFCF99 | — |
| entity.other.attribute-name.class | #FFF2B3 | — |
| entity.other.attribute-name | #FFCF99 | — |
| keyword | #E2D3FE | — |
| keyword.control, keyword.control.import, keyword.control.from, keyword.control.flow | #C2A0FD | — |
| keyword.operator, keyword.operator.logical | #FFFFFFCC | — |
| keyword.unit, keyword.other.unit | #FFAFD1 | — |
| markup.bold | #C2A0FD | — |
| markup.italic | #8DC8FB | italic |
| markup.fenced_code | #FFFFFFCC | — |
| markup.heading | #FFFFFFCC | bold |
| markup.quote | #FFFFFFCC | italic |
| markup.underline_link | #80F4FF | — |
| meta.class | #FF80B5 | — |
| meta.jsx.children | #FFFFFFCC | — |
| meta.object | #80F4FF | — |
| meta.property-name.css | #808AFF | — |
| meta.property-value.css | #808AFF | — |
| meta.selector | #80FFB5 | — |
| meta.structure.dictionary | #808AFF | — |
| meta.tag.attributes | #80F4FF | — |
| meta.type.parameters | #AFB6FF | — |
| meta.var.expr | #AFB6FF | — |
| punctuation.accessor, punctuation.definition.array, punctuation.definition.block, punctuation.definition.dictionary, punctuation.definition.parameters, punctuation.definition.tag, punctuation.definition.typeparameters, punctuation.separator | #FFFFFFCC | — |
| punctuation.definition.heading | #FFCF99 | — |
| punctuation.definition.string | #80FFB5 | — |
| punctuation.definition.template-expression | #FF8080 | — |
| punctuation.selection, punctuation.terminator | #FFFFFF99 | — |
| storage | #C2A0FD | — |
| string | #80FFB5 | — |
| support.class, support.class.component | #FF80B5 | — |
| support.constant.color, support.constant.font-name, support.constant.property-value | #BDDFFD | — |
| support.function | #AFB6FF | — |
| support.type.property-name | #E2D3FE | — |
| support.type.property-name.css | #FFFFFFCC | — |
| support.type.vendored | #FFF2B3 | — |
| variable | #80F4FF | — |
| variable.language.super | #AFFFD1 | italic |
| variable.language.this | #AFF8FF | italic |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}