OneC Theme
Publisher: Andrei ChernyakThemes in package: 4
The color theme for Visual Studio Code
The color theme for Visual Studio Code
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown, variable.legacy.builtin.python | #D4D4D4 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #6A9955 | — |
| constant.language | #569CD6 | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #B5CEA8 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #569CD6 | — |
| entity.name.tag.css, entity.name.tag.less | #D7BA7D | — |
| entity.other.attribute-name | #9CDCFE | — |
| entity.other.attribute-name.class.css, source.css entity.other.attribute-name.class, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.parent.less, source.css entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #D7BA7D | — |
| invalid | #F44747 | — |
| markup.underline | — | underline |
| markup.bold | #569CD6 | bold |
| markup.heading | #569CD6 | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #B5CEA8 | — |
| markup.deleted | #CE9178 | — |
| markup.changed | #569CD6 | — |
| punctuation.definition.quote.begin.markdown | #6A9955 | — |
| punctuation.definition.list.begin.markdown | #6796E6 | — |
| markup.inline.raw | #CE9178 | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor, entity.name.function.preprocessor | #569CD6 | — |
| meta.preprocessor.string | #CE9178 | — |
| meta.preprocessor.numeric | #B5CEA8 | — |
| meta.structure.dictionary.key.python | #9CDCFE | — |
| meta.diff.header | #569CD6 | — |
| storage | #569CD6 | — |
| storage.type | #569CD6 | — |
| storage.modifier, keyword.operator.noexcept | #569CD6 | — |
| string, meta.embedded.assembly | #CE9178 | — |
| string.tag | #CE9178 | — |
| string.value | #CE9178 | — |
| string.regexp | #D16969 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #569CD6 | — |
| meta.template.expression | #D4D4D4 | — |
| support.type.vendored.property-name, support.type.property-name, source.css variable, source.coffee.embedded | #9CDCFE | — |
| keyword | #569CD6 | — |
| keyword.control | #569CD6 | — |
| keyword.operator | #D4D4D4 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #569CD6 | — |
| keyword.other.unit | #B5CEA8 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #569CD6 | — |
| support.function.git-rebase | #9CDCFE | — |
| constant.sha.git-rebase | #B5CEA8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #D4D4D4 | — |
| variable.language | #569CD6 | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #DCDCAA | — |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #4EC9B0 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class, punctuation.separator.namespace.ruby | #4EC9B0 | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.directive.using, keyword.other.operator, entity.name.operator | #C586C0 | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable, constant.other.placeholder | #9CDCFE | — |
| variable.other.constant, variable.other.enummember | #4FC1FF | — |
| meta.object-literal.key | #9CDCFE | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #CE9178 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #CE9178 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #D16969 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #DCDCAA | — |
| keyword.operator.quantifier.regexp | #D7BA7D | — |
| constant.character, constant.other.option | #569CD6 | — |
| constant.character.escape | #D7BA7D | — |
| entity.name.label | #C8C8C8 | — |
| comment | #5C725FC0 | — |
| punctuation.definition.comment | #5C725FC0 | — |
| string | #7E8A79B6 | — |
| meta.embedded.assembly | #7E8A79B6 | — |
| keyword - keyword.operator | #926868 | — |
| keyword.control | #926868 | — |
| storage | #926868 | — |
| storage.type | #926868 | — |
| constant.numeric | #52657D | — |
| entity.name.type | #52657D | — |
| entity.name.class | #52657D | — |
| support.type | #52657D | — |
| support.class | #52657D | — |
| entity.name.function | #52657D | — |
| support.function | #52657D | — |
| variable | #52657D | — |
| entity.name.variable | #52657D | — |
| keyword.operator, keyword.operator.expression, keyword.operator.new, constant.language, constant.numeric, storage.modifier, entity.other.attribute-name, variable.other.enummember, entity.name.type, entity.name.tag, support.variable.property, support.function, support.class, support.variable, variable.other | #596E87 | — |
| constant.numeric | #7B9681 | — |
| entity.name.type.interface, entity.name.namespace, entity.name.function.preprocessor, entity.other.inherited-class | #82588E | — |
| storage.type, storage.modifier | #926868 | — |
| support.type.property-name, punctuation.definition.array.begin, punctuation.definition.array.end, punctuation.definition.dictionary.begin, punctuation.definition.dictionary.end | #3737AD | — |
| constant.character.escape, punctuation.definition.group.regexp, punctuation.definition.character-class.regexp, constant.other.character-class.regexp, constant.other.character-class.set.regexp, keyword.operator.quantifier.regexp, meta.block, string.quoted.single, string.quoted.double | #4CA49C | — |
| source.bsl, punctuation.bracket.begin.bsl, punctuation.bracket.end.bsl | #596E87 | — |
| entity.name.function | #979469 | — |
| variable.assignment.bsl | #6F88A7 | — |
| string.quoted.double.bsl, constant.numeric.bsl, constant.other.date.bsl | #A19679B3 | — |
| keyword.other.preprocessor.bsl, keyword.other.section.bsl, keyword.control.import.bsl, keyword.control.native.bsl, storage.modifier.directive.bsl, storage.type.annotation.bsl, entity.name.section.bsl | #82588E | — |
| constant.language.bsl, keyword.operator.logical.bsl | #926868 | — |
| keyword.control.sdbl, support.function.sdbl, support.type.sdbl | #5C82ADBF | — |
| source.sdbl, constant.numeric.sdbl, constant.language.sdbl, keyword.operator.sdbl, keyword.operator.logical.sdbl, keyword.operator.comparison.sdbl, keyword.control.conditional.sdbl, keyword.operator.arithmetic.sdbl | #5C82ADBF | — |
| string.quoted.double.sdbl | #A19679B3 | — |
| variable.parameter.sdbl | #6E8773 | — |
| source.xbsl, source.sbsl, storage.modifier.import, storage.type.xbsl, variable.parameter.method.xbsl, keyword.other.operator.xbsl | #596E87 | — |
| meta.preprocessor | #82588E | — |
| constant.language.xbsl, keyword.operator.logical.xbsl, storage.type.var.xbsl, storage.type.bsl | #926868 | — |
| keyword.control.import.xbsl | #963200 | — |
| keyword.control.less.xbsl, keyword.sql.xbsl, string.quoted.double.xbsl, string.other.query.xbsl, string.query.xbsl, constant.character.escape.xbsl, variable.parameter.xbsl, punctuation.definition.string.begin.bsl, punctuation.definition.string.begin.bsl | #A19679B3 | — |
| keyword.other.DML.II.sql, keyword.other.DML.sql, keyword.other.DDL.create.II.sql, keyword.other.LUW.sql, keyword.other.alias.sql, keyword.other.authorization.sql, keyword.other.cascade.sql, keyword.other.create.sql, keyword.other.data-integrity.sql, keyword.other.object-comments.sql, keyword.other.order.sql, keyword.other.table.sql, entity.name.function.sql, keyword.other.sql | #926868 | — |
| string.interpolated.sql, string.other.quoted.brackets.sql, string.quoted.double.sql, string.quoted.other.backtick.sql, string.quoted.single.sql, string.regexp.modr.sql, string.regexp.sql | #A19679B3 | — |
| comment.block, comment.line.double-dash.sql | #5C725FC0 | — |
| source.sql, keyword.operator.comparison.sql, keyword.operator.concatenator.sql, keyword.operator.math.sql, keyword.operator.star.sql, storage.modifier.sql, storage.type.sql, constant.character.escape.slash.sql, constant.character.escape.sql, constant.numeric.sql, constant.other.database-name.sql, constant.other.table-name.sql, keyword.other.sql | #596E87 | — |
| support.type.property-name.json, punctuation.definition.array.begin.json, punctuation.definition.array.end.json, punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.separator.array.json, punctuation.separator.dictionary.key-value.json, punctuation.separator.dictionary.pair.json, punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json | #596E87 | — |
| string.quoted.double.json | #A19679B3 | — |
| constant.character.escape.json, constant.language.json, constant.numeric.json | #A19679B3 | — |
| punctuation.definition.tag.xml, entity.name.tag.xml, entity.name.tag.localname.xml, entity.other.attribute-name.xml, entity.other.attribute-name.localname.xml | #596E87 | — |
| string.quoted.double.xml, string.unquoted.cdata.xml | #5C725FC0 | — |
| text.xml, constant.character.entity.xml | #A19679B3 | — |
| markup.heading.markdown, string.other.link.title.markdown, punctuation.definition.link.title.begin.markdown, punctuation.definition.link.title.end.markdown, markup.inline.raw.string.markdown | #A19679B3 | — |
| markup.heading, text.html.markdown, markup.quote.markdown, markup.bold.markdown, constant.character.escape.markdown, markup.list.unnumbered.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #596E87 | — |
| markup.underline.link.markdown | #5C725FC0 | — |
| keyword.language.gherkin.feature, keyword.language.gherkin.feature.scenario, string.language.gherkin.scenario.title.title, string.language.gherkin.feature.title | #82588E | — |
| string.language.gherkin.scenario.title.title, string.language.gherkin.feature.title | #979469 | — |
| text.gherkin.feature | #596E87 | — |
| keyword.language.gherkin.feature.step | #926868 | — |
| keyword.control.cucumber.table, string.quoted.single, string.quoted.double | #A19679B3 | — |
| keyword.control.cucumber.table | #4B5F57 | — |
| keyword.control.conditional.batchfile, keyword.other.special-method.batchfile, keyword.command.batchfile, keyword.operator.logical.batchfile | #926868 | — |
| comment.line.colon.batchfile, comment.line.rem.batchfile | #5C725FC0 | — |
| keyword.command.rem.batchfile, keyword.operator.at.batchfile | #647567 | — |
| source.batchfile, keyword.control.repeat.batchfile, keyword.control.repeat.do.batchfile, keyword.control.repeat.in.batchfile, keyword.control.statement.batchfile, keyword.operator.arithmetic.batchfile, keyword.operator.assignment.augmented.batchfile, keyword.operator.assignment.batchfile, keyword.operator.comparison.batchfile, keyword.operator.conditional.batchfile, keyword.operator.pipe.batchfile, keyword.operator.redirection.batchfile, meta.block.repeat.batchfile | #596E87 | — |
| source.shell, keyword.control.powershell, keyword.other.powershell, keyword.other.array.begin.powershell, keyword.other.hashtable.begin.powershell, storage.type.powershell, entity.name.command.shell, constant.other.option, constant.character.escape.powershell, constant.numeric.integer.shell, variable.language.special.shell, variable.language.powershell, variable.other.member.powershell, keyword.operator.pattern.case.shell, constant.character.escape.shell, punctuation.section.embedded.substatement.begin.powershell, interpolated.complex.source.powershell | #596E87 | — |
| string.unquoted.argument.shell, string.unquoted.shell, string.regexp.unquoted.shell, constant.numeric.integer.powershell, constant.numeric.hex.powershell, constant.character.escape.ansi-c.shell | #A19679B3 | — |
| punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml, punctuation.definition.block.sequence.item.yaml, punctuation.definition.directive.begin.yaml, punctuation.definition.key-value.begin.yaml, punctuation.definition.mapping.begin.yaml, punctuation.definition.mapping.end.yaml, punctuation.definition.sequence.begin.yaml, punctuation.definition.sequence.end.yaml, punctuation.definition.string.begin.yaml, punctuation.definition.string.end.yaml, punctuation.separator.map.value.yaml, punctuation.separator.key-value.mapping.yaml, punctuation.separator.mapping.yaml, punctuation.separator.sequence.yaml, punctuation.whitespace.comment.leading.yaml | #596E87 | — |
| punctuation.definition.comment.yaml | #5C725FC0 | — |
| constant.character.escape.single-quote.yaml, constant.character.escape.unicode.16-bit.yaml, constant.character.escape.unicode.32-bit.yaml, constant.character.escape.unicode.8-bit.yaml, constant.character.escape.yaml, constant.language.boolean.yaml, constant.language.null.yaml, constant.numeric.float.inf.yaml, constant.numeric.float.nan.yaml, constant.numeric.float.yaml, constant.numeric.indentation-indicator.yaml, constant.numeric.integer.decimal.yaml, constant.numeric.integer.hexadecimal.yaml, constant.numeric.integer.octal.yaml, constant.numeric.yaml-version.yaml | #A19679B3 | — |
| keyword.control.$1.makefile, keyword.control.define.makefile, keyword.control.else.makefile, keyword.control.include.makefile, keyword.control.override.makefile, keyword.control.vpath.makefile | #926868 | — |
| punctuation.definition.comment.makefile, punctuation.definition.variable.makefile, punctuation.separator.delimeter.comma.makefile, punctuation.separator.key-value.makefile, punctuation.whitespace.comment.leading.makefile, variable.language.makefile, variable.other.makefile, meta.scope.condition.makefile, meta.scope.conditional.makefile, meta.scope.function-call.makefile, meta.scope.prerequisites.makefile, meta.scope.recipe.makefile, meta.scope.target.makefile | #596E87 | — |
| support.function.$1.makefile, support.function.target.$1.makefile, entity.name.function.target.makefile | #979469 | — |
| constant.character.escape.continuation.makefile, constant.other.placeholder.makefile | #A19679B3 | — |
| meta.diff.header.command, meta.diff.header.from-file, meta.diff.header.git, meta.diff.header.to-file | #979469 | — |
| markup.inserted.diff | #4B5F57 | — |
| markup.deleted.diff | #8F6C6C | — |
| meta.diff.index, meta.diff.index.git, meta.diff.only-in, meta.diff.range.context, meta.diff.range.normal, meta.diff.range.unified, meta.separator.diff, meta.toc-list.file-name.diff, meta.toc-list.line-number.diff | #A19679B3 | — |
| source.diff | #596E87 | — |
| entity.name.section.group-title.ini, keyword.other.definition.ini | #926868 | — |
| source.ini | #596E87 | — |
| text.log | #596E87 | — |
| log.debug, log.info | #7E9CAD | — |
| log.warning | #978169 | — |
| log.error, log.exception | #966A6A | — |
| log.constant, log.date | #A19679B3 | — |
| punctuation.definition.comment.begin.js, punctuation.definition.comment.end.js, punctuation.definition.comment.html, punctuation.definition.comment.js | #5C725FC0 | — |
| string.other.inline-data.html, string.quoted.double.html, string.quoted.single.html, string.unquoted.html, text.html.basic, text.html.derivative | #A19679B3 | — |
| text.html.jinja, keyword.control.jinja, variable.other.jinja | #646464 | — |
| punctuation.definition.entity.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.html, punctuation.separator.key-value.html, punctuation.whitespace.comment.leading.js, punctuation.whitespace.embedded.leading.html, punctuation.whitespace.embedded.trailing.html | #596E87 | — |
| entity.name.function.namespace-prefix.css, entity.name.tag.css, entity.name.tag.custom.css, entity.name.tag.wildcard.css, entity.other.attribute-name.class.css, entity.other.attribute-name.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, entity.other.keyframe-offset.css, entity.other.keyframe-offset.percentage.css, entity.other.namespace-prefix.css | #926868 | — |
| constant.character.escape.codepoint.css, constant.character.escape.css, constant.character.escape.newline.css, constant.numeric.css, constant.numeric.other.density.css, constant.other.color.rgb-value.hex.css, constant.other.unicode-range.css, support.constant.color.current.css, support.constant.color.w3c-extended-color-name.css, support.constant.color.w3c-standard-color-name.css, support.constant.font-name.css, support.constant.language-range.css, support.constant.media.css, support.constant.parity.css, support.constant.property-value.css, support.constant.property-value.list-style-type.css, support.constant.step-direction.css, support.constant.text-direction.css, support.constant.vendored.property-value.css, meta.property-list.css, meta.property-list.font-feature.css, meta.property-name.css, meta.property-value.css, keyword.other.important.css, keyword.other.unit.${2:/downcase}.css, keyword.other.unit.percentage.css, keyword.other.unit.rem.css, keyword.other.unit.vw.css, keyword.other.unit.px.css, keyword.other.unit.em.css, variable.argument.css, variable.css, variable.font-feature.css, variable.parameter.document-rule.css, variable.parameter.font-name.css, variable.parameter.keyframe-list.css, variable.parameter.misc.css, variable.parameter.style-name.css, variable.parameter.url.css | #A19679B3 | — |
| support.type.property-name.css, support.type.property-name.media.css, support.type.vendored.property-name.css, support.type.vendored.property-name.media.css | #596E87 | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #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}!`;
}