OneDark Zed
Publisher: meysamThemes in package: 1
A dark theme inspired by One Dark and Zed.
A dark theme inspired by One Dark and Zed.
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 | #5d636fff | — |
| punctuation.separator.key-value, keyword.operator.type.annotation, keyword.operator.type, keyword.operator.bitwise, keyword.operator.optional | #b1574bff | — |
| variable.object.property, support.variable.property, meta.object-literal.key, variable.other.property, meta.object-binding-pattern-variable meta.definition.variable, meta.embedded.expression variable.other.constant.property, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, constant.numeric.decimal.go, string.json, support.type.property-name.css, punctuation.definition.constant.css, constant.numeric.float.python, punctuation.definition.variable.shell variable.other.normal.shell, variable.parameter.positional.shell, punctuation.definition.variable.shell variable.language.special.shell, string.interpolated.makefile punctuation.definition.variable.makefile | #d07277ff | — |
| keyword, storage.type, storage.modifier, storage.type.boolean.go, keyword.operator.address.go, meta.shebang.shell | #b477cfff | — |
| keyword.operator.assignment, keyword.operator.assignment.compound, storage.type.function.arrow, storage.type.function.colon, keyword.control.anchor.regexp, entity.name.class, keyword.operator.ternary, keyword.operator.comparison, keyword.operator.relational, meta.type.annotation, keyword.operator.spread, meta.type.declaration., support.type.primitive, meta.group.regexp, new.expr entity.name.function, meta.function-call variable.other.object, keyword.operator.logical, constant.other.character-class.range.regexp, keyword.operator.negation.regexp, meta.block variable.other.readwrite, entity.name.type.go, entity.name.type.any.go, storage.type.numeric.go, storage.type.string.go, storage.type.boolean.go, keyword.operator.address.go, keyword.other.unit.px.css, keyword.other.unit.rem.css, keyword.other.unit.em.css, storage.type.sql, string.quoted.other.backtick.sql, keyword.operator.arithmetic.python, meta.function-call.generic.python, keyword.control.@.makefile | #6eb4bfff | — |
| punctuation.definition.group.regexp, punctuation.terminator.statement, punctuation.separator.key-value, punctuation.definition.block, punctuation.accessor, punctuation.separator.comma, punctuation.definition.typeparameters.end, punctuation.definition.typeparameters.begin, meta.tag meta.function-call variable.other.object, meta.var.expr meta.function-call variable.other.object, punctuation.definition.character-class.regexp, meta.type.annotation variable.parameter, variable.other.readwrite meta.array.literal, meta.object-binding-pattern-variable meta.definition.variable variable.other.constant, meta.tag.without-attributes variable.other.readwrite, meta.objectliteral meta.function-call variable.other.object, meta.var.expr meta.var.expr variable.other.readwrite, entity.name.type.package.go, punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, meta.function-call.arguments.python, variable.other.normal.shell, string.quoted.double.shell variable.parameter.positional.shell | #abb2bfff | — |
| constant.other.character-class.regexp, constant.character.numeric.regexp | #878e98ff | — |
| string.regexp, constant.numeric, keyword.operator.quantifier.regexp, support.type.builtin, constant.language.null, constant.language.boolean, variable.other.constant.go, constant.language.json, entity.other.attribute-name.class.css, support.constant.property-value.css, constant.other.color.rgb-value.hex.css, keyword.other.DDL.create.II.sql, constant.other.caps.python, string.unquoted.shell, string.quoted.double.shell variable.language.special.shell, support.function.target.PHONY.makefile | #bf956aff | — |
| string.quoted.double, string.template, string.quoted.raw.go, constant.numeric.sql, string.quoted.single.sql, string.quoted.single.python, string.interpolated.makefile | #a1c181ff | — |
| support.class.component, method, function, entity.other.attribute-name, meta.definition.function, meta.function-call, entity.name.tag, meta.var.expr variable.other.readwrite, variable.other.constant entity.name.function, entity.name.function.go, entity.name.function.support.go, support.function.misc.scss, entity.name.function.python, support.function.builtin.python, support.function.builtin.shell, meta.scope.recipe.makefile | #73ade9ff | — |
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}!`;
}