One Dark Cloud Theme
Publisher: Oleg MorozThemes in package: 1
Soft dark theme for VSCode
Soft dark theme for VSCode
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 |
|---|---|---|
| — | #abb2bf | — |
| meta.embedded.line, meta.function-call.arguments, punctuation.accessor, punctuation.separator, punctuation.separator.annotation, punctuation.definition.arguments, support.type.exception, variable.other, variable.other.object.property | #abb2bf | — |
| support.class, variable.parameter.function.language, variable.parameter.function-call | — | italic |
| constant.other.character-class, string, string.regexp.quoted | #98c379 | — |
| constant.character.escape, constant.other.placeholder, constant.escape, punctuation.section.embedded, storage.type.string, string.regexp, support.other.match | #c678dd | — |
| comment, string.quoted.docstring, punctuation.definition.comment | #626772d3 | — |
| *url*, *link*, *uri* | — | italic underline |
| constant.language, constant.other.symbol, keyword.const, keyword.operator, keyword.other, constant.character.format, punctuation.separator.statement, punctuation.terminator.statement, punctuation.definition.logical-expression | #c678dd | — |
| constant.numeric, punctuation.separator.object, punctuation.separator.annotation | #d19a66 | — |
| constant.other.caps, string.constant.other.placeholder, variable.parameter, variable.parameter.function.language.special.self, punctuation.definition.variable, variable.other.block, variable.other.readwrite.class, variable.other.readwrite.global, variable.other.readwrite.instance, variable.other.normal.shell | #e06c75 | — |
| punctuation.definition.decorator | #e06c75 | italic |
| keyword.control, keyword.control.import, keyword.package, keyword.control.pseudo-method, keyword.control.ruby, keyword.operator.other.ruby, keyword.other.special-method, keyword.other.substitution, keyword.other.template, keyword.interface, keyword.struct, constant.other.color | #d19a66 | — |
| entity.name.class, entity.name.type, entity.name.type.class | #61afef | — |
| support.constant, support.class.ruby, support.other.namespace, support.other.variable | #61afef | — |
| entity.other.inherited-class | #e5c07b | italic |
| keyword.var, keyword.function, keyword.control.class, keyword.control.def, keyword.control.module, keyword.type, storage.modifier, storage.type | #c678dd | — |
| entity.name.function, meta.function-call, support.class.ruby, support.function, variable.other.assignment.shell, variable.function, variable.other.constant.ruby | #61afef | — |
| support.type, support.type.python, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #abb2bf | italic |
| variable.language.self, variable.language.special, variable.parameter.function.language.special, variable.language.this | #d27b53 | italic |
| invalid | #f76d6f | — |
| invalid.deprecated | #523d14 | — |
| meta.tag | #abb2bf | — |
| entity.name.tag | #e5c07b | — |
| entity.other.attribute-name | #e06c75 | italic |
| keyword.other.sql, keyword.other.DML.sql | #d19a66 | — |
| storage.type.sql | #61afef | — |
| constant.numeric.sql | #d3735b | — |
| markup.heading | #d19a66 | — |
| punctuation.definition.heading | #e06c75 | — |
| markup.underline.link.markdown | #61afef | — |
| markup.deleted | #e06c75 | — |
| markup.inserted | #c3e88d | — |
| markup.changed | #61afef | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #e5c07b | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #d27b53 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #e06c75 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #d19a66 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #82aaff | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #c678dd | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #e5c07b | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #d27b53 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #e06c75 | — |
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}!`;
}