Roshan Theme
Publisher: SattariThemes in package: 1
The ultimate legible light theme
The ultimate legible light theme
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 | #a7a5a0 | — |
| comment markup.link | #a0a1a7 | — |
| entity.name.type | #c18401 | — |
| entity.other.inherited-class | #50a14f | |
| variable.parameter.function | #D87400 | — |
| keyword | #D622D0 | — |
| keyword.control | #D622D0 | — |
| keyword.operator | #0A36E6 | — |
| keyword.other.special-method | #4078f2 | — |
| keyword.other.unit | #986801 | — |
| storage | #9743F7 | |
| storage.type | #9743F7 | |
| storage.modifier.package, storage.modifier.import | #383a42 | — |
| constant | #986801 | — |
| constant.variable | #986801 | — |
| constant.character.escape | #0184bc | — |
| constant.numeric | #e79111 | — |
| constant.other.color | #0184bc | — |
| constant.other.symbol | #0184bc | — |
| variable | #E30305 | — |
| variable.interpolation | #ca1243 | — |
| variable.parameter | #383a42 | — |
| string | #38A334 | — |
| string.regexp | #0184bc | — |
| string.regexp source.ruby.embedded | #c18401 | — |
| string.other.link | #D47B01 | — |
| punctuation.definition.comment | #a0a1a7 | — |
| punctuation.definition.method-parameters, punctuation.definition.function-parameters, punctuation.definition.parameters, punctuation.definition.separator, punctuation.definition.seperator, punctuation.definition.array | #383a42 | — |
| punctuation.definition.heading, punctuation.definition.identity | #4078f2 | — |
| punctuation.definition.bold | #c18401 | bold |
| punctuation.definition.italic | #D622D0 | italic |
| punctuation.section.embedded | #ca1243 | — |
| punctuation.section.method, punctuation.section.class, punctuation.section.inner-class | #383a42 | — |
| support.class | #c18401 | — |
| support.type | #0184bc | — |
| support.function | #0184bc | — |
| support.function.any-method | #427BFF | — |
| entity.name.function | #4078f2 | — |
| entity.name.class, entity.name.type.class | #c14701 | — |
| entity.name.section | #4078f2 | — |
| entity.name.tag | #D47B01 | — |
| entity.other.attribute-name | #986801 | — |
| entity.other.attribute-name.id | #4078f2 | — |
| meta.class | #dd6502 | — |
| meta.class.body | #383a42 | — |
| meta.method-call, meta.method | #383a42 | — |
| meta.definition.variable | #D47B01 | — |
| meta.link | #986801 | — |
| meta.require | #4078f2 | — |
| meta.selector | #D622D0 | — |
| meta.separator | #383a42 | — |
| meta.tag | #383a42 | — |
| underline | — | underline |
| none | #383a42 | — |
| invalid.deprecated | #000000 | — |
| invalid.illegal | red | — |
| markup.bold | #986801 | bold |
| markup.changed | #D622D0 | — |
| markup.deleted | #D47B01 | — |
| markup.italic | #D622D0 | italic |
| markup.heading | #D47B01 | — |
| markup.heading punctuation.definition.heading | #4078f2 | — |
| markup.link | #0184bc | — |
| markup.inserted | #50a14f | — |
| markup.quote | #986801 | — |
| markup.raw | #50a14f | — |
| source.c keyword.operator | #D622D0 | — |
| source.cpp keyword.operator | #D622D0 | — |
| source.cs keyword.operator | #D622D0 | — |
| source.css property-name, source.css property-value | #696c77 | — |
| source.css property-name.support, source.css property-value.support | #383a42 | — |
| source.gfm markup | — | — |
| source.gfm link entity | #4078f2 | — |
| source.go storage.type.string | #D622D0 | — |
| source.ini keyword.other.definition.ini | #D47B01 | — |
| source.java storage.modifier.import | #c18401 | — |
| source.java storage.type | #c18401 | — |
| source.java keyword.operator.instanceof | #D622D0 | — |
| source.java-properties meta.key-pair | #D47B01 | — |
| source.java-properties meta.key-pair > punctuation | #383a42 | — |
| source.js keyword.operator | #0184bc | — |
| source.js keyword.operator.delete, source.js keyword.operator.in, source.js keyword.operator.of, source.js keyword.operator.instanceof, source.js keyword.operator.new, source.js keyword.operator.typeof, source.js keyword.operator.void | #D622D0 | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #D47B01 | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #D47B01 | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json, source.json meta.structure.array.json > value.json > string.quoted.json, source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation, source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #50a14f | — |
| source.json meta.structure.dictionary.json > constant.language.json, source.json meta.structure.array.json > constant.language.json | #0184bc | — |
| source.python keyword.operator.logical.python | #D622D0 | — |
| source.python variable.parameter | #EB8006 | — |
| support.type.property-name | #383a42 | — |
| string.quoted.double punctuation | #0184bc | — |
| support.constant | #986801 | — |
| support.type.property-name.json | #D47B01 | — |
| support.type.property-name.json punctuation | #D47B01 | — |
| punctuation.separator.key-value.ts, punctuation.separator.key-value.js | #56B6C2 | — |
| source.js.embedded.html keyword.operator, source.ts.embedded.html keyword.operator | #56B6C2 | — |
| variable.other.readwrite.js, variable.other.readwrite.ts | #383a42 | — |
| support.variable.dom.js, support.variable.dom.ts | #D47B01 | — |
| support.variable.property.dom.js, support.variable.property.dom.ts | #D47B01 | — |
| meta.template.expression.js punctuation.definition, meta.template.expression.ts punctuation.definition | #BE5046 | — |
| source.ts punctuation.definition.typeparameters, source.js punctuation.definition.typeparameters | #383a42 | — |
| source.ts punctuation.definition.block, source.js punctuation.definition.block | #383a42 | — |
| source.ts punctuation.separator.comma, source.js punctuation.separator.comma | #383a42 | — |
| support.constant.property-value.css | #383a42 | — |
| punctuation.definition.constant.css | #986801 | — |
| punctuation.separator.key-value.scss | #D47B01 | — |
| punctuation.definition.constant.scss | #986801 | — |
| meta.property-list.scss punctuation.separator.key-value.scss | #383a42 | — |
| storage.type.primitive.array.java | #c18401 | — |
| meta.function-call.python | #08A3FFFA | — |
| meta.function-call.arguments.python | #3D3E40FA | — |
| meta.function.decorator.python | #5DAEF2 | — |
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}!`;
}