Kubesong
Publisher: KubesThemes in package: 1
Dark theme inspired by Earthsong
Dark theme inspired by Earthsong
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 | #7A7267 | — |
| string, constant.numeric, meta.structure.dictionary.json string.quoted.double.json, meta.property-value, support.constant.property-value, constant.other.color, meta.structure.dictionary.value.json string.quoted.double.json, variable.parameter.function.coffee, markup.raw.inline.markdown, variable.language.this.ts, entity.name.type.ts | #F8BB39 | — |
| constant.character, constant.language, constant.other, entity.other.inherited-class, storage, keyword, entity.other.attribute-name, support.constant, support.type, support.class, meta.structure.dictionary.json string.quoted.double.json, meta.structure.dictionary.json string.quoted.double.json, entity.name.section.markdown, punctuation.definition.heading.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #DB784D | — |
| entity.name.class | #DB784D | underline |
| variable | — | |
| entity.name.function, entity.name.function-call.elixir, variable.other.global.php | #60A365 | |
| support.other.variable | — | |
| invalid, invalid.deprecated | #CF433E | |
| meta.diff, meta.diff.header | #7A7267 | — |
| markup.deleted | #E61F44 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #F7B83D | — |
| constant.numeric.line-number.find-in-files - match | #8FBE00A0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| keyword.other | #A0988E | — |
| meta.property-name support.type.property-name | — | italic |
| keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as, markup.underline.link.markdown, markup.underline.link.image.markdown, meta.image.inline.markdown, markup.bold.markdown, markup.italic.markdown, storage.type, entity.name.tag, support.function, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, punctuation.definition.tag.begin.js.jsx, punctuation.definition.tag.end.js.jsx | #95CC5E | — |
| meta.use support.class.builtin, meta.other.inherited-class support.class.builtin | #95CC5E | italic |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| markup.raw.block.markdown | #664E4D | — |
| markup.deleted.git_gutter | #E61F44 | — |
| markup.inserted.git_gutter | #A7DA1E | — |
| markup.changed.git_gutter | #F7B83D | — |
| meta.template.expression, meta.embedded.block.html, variable.parameter, meta.property-value punctuation.separator.key-value, source.elixir | #EBD1B7 | — |
| source.elixir, source.go | #E5AB91 | — |
| constant.language.json.comments, variable.language.this.js, variable.other | #E5AB91 | italic |
| punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.begin.svelte, punctuation.definition.tag.end.svelte, meta.attribute.class.svelte, expression.embedded.vue, variable.other.readwrite.ts, variable.other.constant.ts, variable.parameter.ts, variable.language.super.ts, meta.object-literal.key.ts, variable.other.readwrite.alias.ts, variable.other.readwrite.alias.js, entity.name.type.class.ts, variable.object.property.ts, entity.name.tag.html, entity.name.tag.block.any.html, entity.name.tag.other.html, entity.name.tag.script.html, entity.name.tag.style.html, entity.name.tag.css, entity.name.tag.custom.css, punctuation.section.embedded.elixir, constant.language.symbol.elixir, entity.name.tag | #77851C | — |
| #528491 | — | |
| entity.name.type.module.elixir, variable.other.anonymous.elixir, keyword.operator.assignment | #5aa395 | — |
| entity.name.package | #8fbf7d | — |
| entity.name.import | #B9BB25 | — |
| variable.other.object.property.ts, variable.other.property.ts, variable.other.object.ts, variable.other.property.ts, variable.other.readwrite.ts, variable.other.object.js, variable.other.object.property.js, variable.other.property.js, meta.object-literal.key.js, variable.other.constant.elixir, parameter.variable.function.elixir, variable.other.php, keyword.package, keyword.import, keyword.function | #B34233 | — |
| punctuation.separator, punctuation.section.embedded, meta.function, meta.brace.round, punctuation.terminator.statement, punctuation.definition.block, punctuation.other, punctuation.definition.begin.bracket.curly, punctuation.definition.end.bracket.curly, punctuation.definition.begin.bracket.round, punctuation.definition.end.bracket.round, punctuation.definition.begin.bracket.square, punctuation.definition.end.bracket.square | #fe7f1b | — |
| keyword.control.conditional | #f8ba39 | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token, keyword.operator.other.elixir, punctuation.separator.object.elixir | #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}!`;
}