Kanagawa Flat
Publisher: dabidsilloThemes in package: 3
A flat, single-background adaptation of the Kanagawa color scheme (Wave, Dragon and Lotus), faithful to the original color roles from rebelot/kanagawa.nvim.
A flat, single-background adaptation of the Kanagawa color scheme (Wave, Dragon and Lotus), faithful to the original color roles from rebelot/kanagawa.nvim.
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, string.comment | #8a8980 | italic |
| keyword.codetag.notation, comment.line.double-slash keyword | #c84053 | italic |
| variable, variable.other, variable.other.readwrite, meta.definition.variable.name | #545464 | — |
| variable.language, variable.language.this, variable.other.constant.object | #c84053 | italic |
| variable.parameter, meta.function.parameters, meta.parameter | #5d57a3 | — |
| variable.other.property, variable.other.object.property, variable.other.member, support.variable.property, meta.object-literal.key | #77713f | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #cc6d00 | — |
| variable.other.constant, support.constant, entity.name.constant | #cc6d00 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, keyword.other.unit | #b35b79 | — |
| constant.character, constant.character.escape, constant.other.character-class | #6693bf | — |
| string, string.quoted, string.template, constant.other.symbol, constant.other.key | #6f894e | — |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.template.expression | #4e8ca2 | — |
| string.regexp, constant.other.character-class.regexp | #836f4a | — |
| keyword, keyword.control, keyword.other, keyword.operator.new, keyword.operator.expression | #624c83 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #624c83 | — |
| storage, storage.type, storage.modifier, keyword.declaration | #624c83 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical | #836f4a | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.definition.parameters, meta.brace.round, meta.brace.square, punctuation.section | #4e8ca2 | — |
| entity.name.function, meta.function-call, meta.function-call entity.name.function, variable.function, support.function | #4d699b | — |
| support.function.builtin, entity.name.function.macro, meta.function.decorator, meta.decorator | #6693bf | — |
| meta.decorator entity.name.function, punctuation.decorator, entity.name.function.decorator | #6693bf | italic |
| entity.name.type, entity.name.class, entity.name.namespace, entity.other.inherited-class, support.type, support.class, storage.type.class, storage.type.interface | #597b75 | — |
| support.type.primitive, keyword.type, storage.type.primitive | #597b75 | italic |
| entity.name.type.enum, variable.other.enummember, entity.name.function.constructor | #cc6d00 | — |
| meta.preprocessor, keyword.control.directive, entity.name.function.preprocessor, meta.preprocessor.macro | #c84053 | — |
| entity.name.tag, meta.tag, punctuation.definition.tag | #624c83 | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.class | #77713f | — |
| support.class.component, entity.name.tag.reference | #597b75 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less | #77713f | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #4d699b | — |
| support.constant.property-value.css, constant.numeric.css, keyword.other.unit.css | #cc6d00 | — |
| support.type.property-name.json, meta.structure.dictionary.json support.type.property-name.json | #77713f | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #4d699b | bold |
| markup.bold | #cc6d00 | bold |
| markup.italic | #624c83 | italic |
| markup.inline.raw, markup.raw.block, markup.fenced_code.block | #6f894e | — |
| string.other.link.title.markdown, constant.other.reference.link.markdown | #4d699b | — |
| markup.underline.link, string.other.link.description.markdown | #6693bf | underline |
| punctuation.definition.list.begin.markdown, markup.list | #c84053 | — |
| markup.quote | #8a8980 | italic |
| markup.inserted | #6e915f | — |
| markup.deleted | #d7474b | — |
| markup.changed | #de9800 | — |
| invalid, invalid.illegal | #e82424 | — |
| invalid.deprecated, entity.name.function.deprecated | #8a8980 | strikethrough |
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}!`;
}