Sobrio
Publisher: Elves SousaThemes in package: 2
A theme for VSCode with sober colors, hence the name.
A theme for VSCode with sober colors, hence the name.
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 | #3a3b3f | italic |
| string.quoted.double.json, string.unquoted.plain.out.yaml, meta.jsx.children | #fff | — |
| meta.object.member.tsx, string constant.other.placeholder, variable.other.constant.js, variable.other.constant.ts, variable.other.constant.tsx, variable.other.readwrite.js, variable.other.readwrite.tsx, variable | #ddd | — |
| constant.other.color | #ffffff | — |
| invalid.illegal, invalid | #fd6389 | — |
| keyword.other.fn.rust, keyword.other.rust, keyword.other.typedef.cpp, keyword.other.unit, keyword.other.using.directive.cpp, keyword, storage.modifier, storage.type | #fd6389 | italic |
| storage.type.built-in.primitive.cpp, storage.type.js, storage.type.namespace.directive.cpp, storage.type.ts, storage.type.tsx, storage.type.rust | #7cdce7 | italic |
| constant.other.color, keyword.control, keyword.operator.bitwise.shift, keyword.operator.cpp, keyword.other.substitution, keyword.other.template, meta.tag, punctuation.definition.keyword.scss, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.html, punctuation.definition.tag, punctuation.definition.variable.php, punctuation.section.embedded, punctuation.separator.inheritance.php, punctuation, source.js constant.other.object.key.js string.unquoted.label.js | #fd6389 | |
| entity.other.attribute-name.pseudo-class.css, keyword.operator.namespace.rust, meta.brace.round.tsx, meta.brace.square.tsx, punctuation.section.embedded, punctuation | #5f5f5f | |
| markup.deleted.git_gutter, meta.tag.sgml, punctuation.separator.key-value.html | #fd6389 | — |
| entity.name.tag | #fd6389 | bold |
| entity.name.tag.js, entity.name.tag.tsx, punctuation.definition.tag.begin.js, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.js, punctuation.definition.tag.end.tsx | #d7af87 | — |
| entity.name.tag.js, entity.name.tag.tsx | #d7af87 | bold |
| entity.name.function.definition.cpp, entity.name.function.js, entity.name.function.php, entity.name.function.rust, entity.name.function.ts, entity.name.function.tsx, entity.name.function, entity.name.type.class.js, entity.name.type.class.ts, entity.name.type.class.tsx, entity.name.type.interface.ts, entity.name.type.interface.tsx, entity.name.type.struct.rust, entity.name.type.class.php, meta.function-call.tsx, meta.function-call, meta.function.call.rust, meta.use.rust, variable.function | #ffffff | bold |
| entity.name.function.definition.cpp, meta.definition.function.tsx, meta.definition.function, source.sass keyword.control, support.class.component.js, support.class.component.tsx, support.function.magic.php, support.function.misc.scss, entity.other.inherited-class.php, support.function.constructor.php | #7cdce7 | bold |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #7cdce7 | — |
| entity.name.function.macro.rust, keyword.other.special-method, support.class.php, support.function.magic.python, support.function | #d7af87 | bold |
| meta.block variable.other, variable.other.object.property.js, variable.other.object.property.ts, variable.other.object.property.tsx | #afafaf | |
| meta.block variable.other | #eeeeee | — |
| punctuation.definition.entity.css, string.other.link, support.other.variable, variable.language.super.rust, variable.parameter.tsx, constant.language.symbol.elixir | #d7af87 | — |
| constant.character, constant.escape, constant.language, constant.numeric, keyword.other, support.constant, variable.parameter | #d7d7ff | — |
| constant.other.key, constant.other.symbol, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, punctuation.definition.string.rust, punctuation.definition.string.begin, punctuation.definition.string.end, string | #87afd7 | — |
| entity.name, markup.changed.git_gutter, meta.use.php, support.class, support.other.namespace.use.php, support.other.namespace.php, support.type.sys-types, support.type | #fd6389 | — |
| entity.name.type.primitive.rust, entity.name.type.ts, entity.name.type.tsx, entity.other.attribute-name.namespace.xml, entity.other.attribute-name.js, entity.other.attribute-name.tsx, meta.function.definition.rust, meta.type.annotation.tsx, support.type, variable.language.self.rust, variable.language.special.self.python, entity.name.type.module.elixir, variable.other.constant.elixir | #afafaf | italic |
| source.css support.type.property-name, source.less support.type.property-name, source.postcss support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.stylus support.type.property-name | #B2CCD6 | — |
| variable.language | #eeeeee | italic |
| entity.name.method.js | #82AAFF | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #7cdce7 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.localname.xml | #d7af87 | italic |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #d7af87 | italic |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class | #d7af87 | italic |
| entity.other.attribute-name.id.css | #7cdce7 | italic |
| support.type.property-name.css | #afafaf | — |
| markup.inserted | #7cdce7 | — |
| markup.deleted | #fd6389 | — |
| markup.changed | #C792EA | — |
| string.regexp | #89DDFF | — |
| constant.character.escape | #3a3b3f | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #7cdce7 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #d7af87 | bold |
| entity.name.tag.yaml | #d7af87 | italic |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #d7af87 | |
| 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 | #d7af87 | |
| 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 | #d7af87 | |
| 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 | #d7af87 | |
| 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 | #d7af87 | |
| 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 | #d7af87 | |
| 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 | #d7af87 | |
| 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 | #d7af87 | |
| text.html.markdown, punctuation.definition.list_item.markdown | #eeeeee | — |
| text.html.markdown markup.inline.raw.markdown | #C792EA | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #65737E | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #5f5f5f | — |
| markup.italic | #afafaf | italic |
| markup.bold, markup.bold string | #afafaf | bold |
| markup.bold markup.italic string, markup.bold markup.italic, markup.italic markup.bold string, markup.italic markup.bold, markup.quote markup.bold string, markup.quote markup.bold | #afafaf | bold |
| markup.underline | #87afd7 | underline |
| markup.quote punctuation.definition.blockquote.markdown | #5f5f5f | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #7cdce7 | — |
| string.other.link.description.title.markdown | #7cdce7 | — |
| constant.other.reference.link.markdown | #7cdce7 | — |
| markup.raw.block | #d7af87 | — |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #EEFFFF | — |
| variable.language.fenced.markdown | #65737E | — |
| meta.separator | #65737E | bold |
| markup.table | #eeeeee | — |
| entity.name.type.rust, entity.name.type.struct.rust | #fff | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}