Yazılım Yolu
Publisher: yazilim-yoluThemes in package: 4
Four color themes (Dark, Extra Dark, Light, Soft Light) in Yazılım Yolu's purple, teal and navy, with a rich, readable syntax palette for 20+ languages.
Four color themes (Dark, Extra Dark, Light, Soft Light) in Yazılım Yolu's purple, teal and navy, with a rich, readable syntax palette for 20+ languages.
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, comment.block, comment.line | #8086A0 | italic |
| comment.block.documentation, comment.line.documentation, string.quoted.docstring | #727995 | italic |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc, keyword.other.phpdoc, storage.type.class.phpdoc | #6E25EB | italic |
| entity.name.type.instance.jsdoc, variable.other.jsdoc | #0E7083 | italic |
| string, string.quoted, string.unquoted, punctuation.definition.string, string.quoted.single, string.quoted.double | #1A8361 | — |
| string.template, string.interpolated, punctuation.definition.string.template, string.quoted.template | #10766D | — |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.embedded, punctuation.section.embedded.begin, punctuation.section.embedded.end | #8927D0 | — |
| constant.character.escape, constant.character.string.escape, constant.other.placeholder, constant.character.entity.html | #A75218 | — |
| string.regexp, constant.other.character-class.regexp, punctuation.definition.character-class.regexp | #0C7C8D | — |
| keyword.control.anchor.regexp, keyword.operator.quantifier.regexp, keyword.operator.or.regexp, punctuation.definition.group.regexp | #A35511 | — |
| constant.numeric, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan, constant.language.infinity, support.constant, constant.other.unicode-range | #A35511 | — |
| keyword, keyword.other, storage, storage.type, storage.modifier, keyword.operator.new, keyword.operator.delete, keyword.operator.expression, keyword.operator.logical, keyword.operator.logical.python, keyword.other.using, keyword.other.rust, keyword.type.go, keyword.function.go | #6E25EB | — |
| keyword.control, keyword.control.flow, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.conditional, keyword.control.loop, keyword.control.trycatch, keyword.control.exception, keyword.control.directive, keyword.package, keyword.import, keyword.control.at-rule | #8927D0 | — |
| variable.language.this, variable.language.super, variable.language.self, variable.language.special.self, constant.language.self, keyword.other.this | #B23557 | italic |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.relational, keyword.operator.bitwise, keyword.operator.ternary, keyword.operator.spread, keyword.operator.optional, storage.type.function.arrow | #5B6288 | — |
| punctuation.separator, punctuation.terminator, punctuation.accessor, meta.delimiter, punctuation.definition.parameters, punctuation.definition.arguments | #62678A | — |
| punctuation.definition.block, punctuation.section, punctuation.definition.array, punctuation.section.brackets, punctuation.section.parens, punctuation.section.braces, meta.brace | #62678A | — |
| entity.name.function, meta.function-call.generic, meta.function-call, variable.function, entity.name.function.member, entity.name.function.call, entity.name.function.target.makefile | #225BC5 | — |
| support.function, support.function.builtin, support.function.magic.python, support.function.builtin.shell, support.function.builtin.go | #2661CC | — |
| entity.name.type, entity.name.class, entity.name.type.class, entity.other.inherited-class, support.type, support.class, entity.name.type.struct, entity.name.type.enum, storage.type.class, meta.type.name | #0C7961 | — |
| entity.name.type.interface, entity.name.type.alias | #0A776C | — |
| support.type.primitive, entity.name.type.primitive, entity.name.type.parameter, meta.type.parameters, meta.type.annotation, storage.type.built-in, storage.type.primitive | #0A776C | — |
| entity.name.namespace, entity.name.module, entity.name.scope-resolution, entity.name.package, storage.modifier.import, storage.modifier.package | #0C7961 | — |
| variable, variable.other, variable.other.readwrite, meta.definition.variable, variable.other.assignment | #484D64 | — |
| variable.parameter, meta.parameter, variable.parameter.function-call, variable.parameter.function.language.python | #7F2CD4 | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key, variable.other.member, variable.other.readwrite.instance.ruby, variable.other.makefile | #0E7083 | — |
| variable.other.constant, variable.other.enummember, variable.other.constant.property, constant.other.symbol.ruby, constant.other.key | #A35511 | — |
| punctuation.definition.variable, variable.other.php, variable.other.normal.shell, variable.other.env | #0E7083 | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.yaml | #B23557 | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #62678A | — |
| support.class.component, entity.name.tag.jsx, entity.name.tag.tsx | #0C7961 | — |
| entity.other.attribute-name, entity.other.attribute-name.html | #8E6200 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css | #225BC5 | — |
| entity.other.attribute-name.id.css | #6E25EB | — |
| entity.name.tag.css, entity.name.tag.scss, entity.name.tag.less | #B23557 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #2661CC | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less | #0E7083 | — |
| support.constant.property-value.css, support.constant.property-value.scss, meta.property-value.css | #484D64 | — |
| keyword.other.unit | #A35511 | — |
| constant.other.color, constant.other.color.rgb-value | #A75218 | — |
| variable.scss, variable.other.less, variable.declaration.scss, variable.parameter.url.scss | #7F2CD4 | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator, meta.function.decorator.python, storage.type.annotation.java, storage.type.annotation | #8E6200 | — |
| entity.name.function.macro, support.macro, meta.attribute.rust, entity.name.function.preprocessor, meta.preprocessor, keyword.control.import.define, punctuation.definition.directive | #8E6200 | — |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust, punctuation.definition.lifetime.rust | #A75218 | — |
| support.type.property-name.json, support.type.property-name.toml, meta.object-literal.key.json | #225BC5 | — |
| source.json meta.structure.dictionary.value string | #1A8361 | — |
| entity.name.section.toml, entity.name.section.group-title.ini, keyword.other.definition.ini | #0C7961 | — |
| punctuation.definition.anchor.yaml, variable.other.alias.yaml, entity.name.type.anchor.yaml | #A35511 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql, keyword.other.data-integrity.sql | #6E25EB | — |
| keyword.type.graphql, entity.name.fragment.graphql, variable.graphql, support.type.graphql, entity.name.type.graphql | #0C7961 | — |
| keyword.other.special-method.dockerfile, keyword.other.dockerfile, source.makefile keyword.control | #6E25EB | — |
| entity.name.label, keyword.other.definition, punctuation.definition.entity | #6E25EB | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #225BC5 | bold |
| markup.bold, punctuation.definition.bold | #A35511 | bold |
| markup.italic, punctuation.definition.italic | #8927D0 | italic |
| markup.inline.raw, markup.fenced_code.block, markup.raw, punctuation.definition.raw.markdown | #0C7C8D | — |
| markup.quote, punctuation.definition.quote.begin.markdown | #636986 | italic |
| markup.underline.link, string.other.link, constant.other.reference.link.markdown, markup.underline.link.image.markdown | #0C798A | — |
| punctuation.definition.list.begin.markdown, markup.list.numbered.markdown beginning.punctuation.definition.list | #6E25EB | — |
| meta.separator.markdown, punctuation.definition.table.markdown | #A9AEC4 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted.diff | #0C7961 | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted.diff | #BE2B4B | — |
| markup.changed, meta.diff.range | #8E6200 | — |
| invalid, invalid.illegal | #BE2B4B | — |
| invalid.deprecated | #BE2B4B | 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}!`;
}