Soil Theme
Publisher: CodesbiomeThemes in package: 2
A relaxing theme for Visual Studio Code to put crazy ideas into existence
A relaxing theme for Visual Studio Code to put crazy ideas into existence
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 |
|---|---|---|
| keyword.operator.logical.soil | #CF7C7C | — |
| function.parameter.type.soil | #CF7C9F | — |
| comment, punctuation.definition.comment | #928a83 | italic |
| variable.other.object.cs | #83b364 | — |
| variable, string constant.other.placeholder, variable.other.object | #92b4b1 | — |
| constant.other.color | #aca490 | — |
| invalid, invalid.illegal | #e3798b | — |
| comment.block.documentation keyword.other | #9a836f | — |
| punctuation | #9c9c9c | — |
| punctuation.section.embedded, meta.tag.metadata.doctype entity.name.tag | #3a9c93 | — |
| punctuation.definition.variable, punctuation.definition.string, keyword.operator.heredoc, constant.other.color.rgb-value.hex, variable.other.property, meta.return.type entity.name, variable.scss, variable.other.object.property.cs | #3a9c93 | — |
| keyword, storage.type, storage.modifier, support.function, keyword.other, source.css keyword.operator.logical, keyword.operator.expression.typeof | #cf7c9f | — |
| keyword.operator | #858585 | — |
| entity.name.type.namespace, support.other.namespace, meta.attribute.name entity.other.attribute-name, keyword.operator.new | #d39a69 | — |
| entity.other.inherited-class | #59ae8b | — |
| storage.type.function, support.function.magic | #cf7c7c | — |
| constant.other.color, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, keyword.other.template, keyword.other.substitution, support.type.vendored.property-name | #9c9c9c | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #cf7c9f | — |
| entity.name.function, meta.function-call, variable.function, keyword.other.special-method, meta.attribute.data-x entity.other.attribute-name, meta.attribute.unrecognized entity.other.attribute-name, meta.tag.metadata.doctype entity.other.attribute-name, entity.other.attribute-name.id, entity.other.attribute-name.id punctuation.definition.entity | #c1a860 | — |
| meta.block variable.other, meta.arrow variable.parameter | #92b4b1 | — |
| support.other.variable, string.other.link | #92b4b1 | — |
| constant.numeric | #de7e50 | — |
| constant.language, support.constant, constant.character, constant.escape, constant.other, keyword.other.unit | #cf7c7c | — |
| string, constant.other.symbol, constant.other.key, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, punctuation.definition.string, entity.other.attribute-name.placeholder, meta.attribute-selector | #53ab62 | — |
| entity.name, support.type, support.class, meta.use.php, markup.changed.git_gutter, support.type.sys-types, meta.function.parameter.typehinted storage.type, meta.function storage.type | #59ae8b | — |
| support.type | #59ae8b | — |
| 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 | #92B4B1 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #FF5370 | — |
| variable.language.this punctuation.definition.variable | #B16286 | — |
| variable.language | #CF7C9F | — |
| entity.name.method.js | #82AAFF | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #82AAFF | — |
| entity.other.attribute-name | #cf7c7c | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #FFCB6B | italic |
| entity.other.attribute-name.class, punctuation.definition.entity | #59ae8b | — |
| source.sass keyword.control | #82AAFF | — |
| markup.inserted | #C3E88D | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #C792EA | — |
| string.regexp | #cf7c7c | — |
| constant.character.escape | #cf7c7c | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #82AAFF | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #FF5370 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #92b4b1 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #c1a860 | — |
| 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 | #de7e50 | — |
| 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 | #cf7c9f | — |
| 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 | #d39a69 | — |
| 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 | #59ae8b | — |
| 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 | #cf7c7c | — |
| 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 | #3a9c93 | — |
| 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 | #92b4b1 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #aca490 | — |
| text.html.markdown markup.inline.raw.markdown | #cf7c9f | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown, markup.inline.raw punctuation.definition.raw | #9c9c9c | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, markup.inline.raw.string | #c1a860 | — |
| markup.italic | #92b4b1 | italic |
| markup.bold, markup.bold string | #92b4b1 | 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 | #92b4b1 | bold |
| markup.underline | #92b4b1 | underline |
| markup.quote punctuation.definition.quote | #b16286 | — |
| markup.quote | #ACA490 | — |
| string.other.link.title.markdown | #c1a860 | — |
| string.other.link.description.title.markdown | #53ab62 | — |
| constant.other.reference.link.markdown | #c1a860 | — |
| markup.raw.block | #cf7c9f | — |
| markup.raw.block.fenced.markdown | #aca490 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #aca490 | — |
| variable.language.fenced.markdown | #92b4b1 | — |
| meta.separator | #9c9c9c | bold |
| markup.list punctuation.definition.list | #3a9c93 | — |
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}!`;
}