Unsafe Dark
Publisher: UnsafezeroThemes in package: 1
A sleek, modern dark theme with neutral backgrounds
A sleek, modern dark theme with neutral backgrounds
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 | #6B6B6B | italic |
| invalid, invalid.illegal | #FF375F | — |
| keyword, storage.type, storage.modifier, keyword.control, keyword.control.flow, keyword.other.template, keyword.other.substitution | #FF6B6B | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.assignment, keyword.operator.new, keyword.operator.delete | #C0C0C0 | — |
| punctuation, punctuation.separator.inheritance.php, punctuation.section.embedded | #666666 | — |
| meta.tag, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.begin.jsx, punctuation.definition.tag.end.jsx | #777777 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method, entity.name.method.js, meta.class-method.js entity.name.function.js, variable.function.constructor | #64B5F6 | — |
| string, constant.other.symbol, constant.other.key, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, string.other.link | #CE8C6A | — |
| constant.numeric, support.constant, constant.character, constant.escape, keyword.other.unit | #f77462 | — |
| constant.language | #FF9F0A | — |
| entity.name, support.class, support.type, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, support.type.sys-types, entity.name.type, entity.name.class, markup.changed.git_gutter | #E8A857 | — |
| variable, string constant.other.placeholder, meta.block variable.other, support.other.variable, entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #C0C0C0 | — |
| variable.parameter | #A8A8A8 | — |
| variable.language | #FF6B6B | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #FF6B6B | — |
| text.html, text.html.basic, text.html.derivative, meta.jsx.children, meta.tsx.children | #C0C0C0 | — |
| entity.other.attribute-name, text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #f77462 | — |
| support.type.property-name, source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name, source.js support.type.property-name, source.ts support.type.property-name, source.tsx support.type.property-name, source.jsx support.type.property-name | #E8A857 | — |
| entity.other.attribute-name.class | #f77462 | — |
| source.sass keyword.control | #FF6B6B | — |
| markup.inserted | #30D158 | — |
| markup.deleted | #FF375F | — |
| markup.changed | #f77462 | — |
| entity.other.inherited-class, markup.heading | #64B5F6 | — |
| constant.other.color | #E8E9EB | — |
| string.regexp | #FF9F0A | — |
| constant.character.escape | #FF9F0A | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #FF6B6B | — |
| source.js constant.other.object.key.js string.unquoted.label.js | #C0C0C0 | — |
| meta.object-literal.key, meta.object-literal.key string, variable.other.object.property, entity.name.label, meta.objectliteral meta.object.member meta.object-literal.key | #f77462 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #FF6B6B | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #64B5F6 | — |
| 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 | #E8A857 | — |
| 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 | #f77462 | — |
| 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 | #CE8C6A | — |
| 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 | #FF6B6B | — |
| 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 | #64B5F6 | — |
| 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 | #E8A857 | — |
| 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 | #f77462 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #8A8A8A | — |
| text.html.markdown markup.inline.raw.markdown | #CE8C6A | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #6B6B6B | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, punctuation.definition.heading.markdown | #64B5F6 | bold |
| markup.italic | #888888 | italic |
| markup.bold, markup.bold string | #C0C0C0 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #C0C0C0 | bold italic |
| markup.underline | #888888 | underline |
| markup.quote punctuation.definition.blockquote.markdown | #6B6B6B | — |
| markup.quote | #6B6B6B | — |
| string.other.link.title.markdown | #64B5F6 | — |
| string.other.link.description.title.markdown | #E8A857 | — |
| constant.other.reference.link.markdown | #CE8C6A | — |
| markup.raw.block | #CE8C6A | — |
| markup.raw.block.fenced.markdown | #8A8A8A | — |
| punctuation.definition.fenced.markdown | #6B6B6B | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #8A8A8A | — |
| variable.language.fenced.markdown | #E8A857 | — |
| meta.separator | #6B6B6B | bold |
| markup.table | #8A8A8A | — |
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}!`;
}