React Modern
Publisher: goodbyteThemes in package: 3
React Color Theme
React Color 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 |
|---|---|---|
| text.html.markdown string.other.link, entity.name.tag, entity.other.keyframe-offset | #DFAB5C | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class | #FFD38F | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #FFE3B9 | — |
| markup.inserted, punctuation.definition.quote.begin.markdown, entity.name.tag.html, text.xml entity.name.tag, entity.name.function, punctuation.decorator, support.class.component, support.function | #86D9CA | — |
| markup.inline.raw, meta.preprocessor.string, string, string.regexp constant, string.regexp constant.other, string.regexp keyword, string.regexp keyword.operator | #725EAD | — |
| markup.changed, markup.heading, markup.underline.link, meta.diff.header, punctuation.definition.list.begin.markdown, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, entity.other.attribute-name, support.constant.media, support.type.property-name, support.type.vendored.property-name, meta.definition.variable variable.scss, meta.parameters entity.name.function, meta.parameters variable.language, variable.parameter, cast.expr meta.brace.angle, punctuation.definition.typeparameters, keyword, keyword.operator.expression, keyword.operator.new, keyword.operator.ternary, keyword.operator.type, storage, support.type.object.module, support.variable.property, variable.language, variable.object.property, variable.other.object.property, variable.other.property | #77B7D7 | — |
| keyword.control.at-rule, keyword.operator.logical.and.media, keyword.operator.logical.not.media, keyword.operator.logical.only.media | #D385C7 | — |
| constant, meta.preprocessor.numeric, storage.type.numeric | #C64030 | — |
| meta.embedded, constant.numeric.css, keyword.other.unit, meta.property-value constant.other, meta.definition.variable entity.name.function, keyword.operator, keyword.operator.type.annotation, punctuation.definition.template-expression, storage.type.function.arrow | #D4D4D4 | — |
| text.html.markdown string.other.link, entity.name.tag, entity.other.keyframe-offset | #DFAB5C | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class | #FFD38F | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #FFE3B9 | — |
| markup.inserted, punctuation.definition.quote.begin.markdown, entity.name.tag.html, text.xml entity.name.tag, entity.name.function, punctuation.decorator, support.class.component, support.function | #86D9CA | — |
| markup.inline.raw, meta.preprocessor.string, string, string.regexp constant, string.regexp constant.other, string.regexp keyword, string.regexp keyword.operator | #725EAD | — |
| markup.changed, markup.heading, markup.underline.link, meta.diff.header, punctuation.definition.list.begin.markdown, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, entity.other.attribute-name, support.constant.media, support.type.property-name, support.type.vendored.property-name, meta.definition.variable variable.scss, meta.parameters entity.name.function, meta.parameters variable.language, variable.parameter, cast.expr meta.brace.angle, punctuation.definition.typeparameters, keyword, keyword.operator.expression, keyword.operator.new, keyword.operator.ternary, keyword.operator.type, storage, support.type.object.module, support.variable.property, variable.language, variable.object.property, variable.other.object.property, variable.other.property | #77B7D7 | — |
| keyword.control.at-rule, keyword.operator.logical.and.media, keyword.operator.logical.not.media, keyword.operator.logical.only.media | #D385C7 | — |
| constant, meta.preprocessor.numeric, storage.type.numeric | #C64030 | — |
| meta.embedded, constant.numeric.css, keyword.other.unit, meta.property-value constant.other, meta.definition.variable entity.name.function, keyword.operator, keyword.operator.type.annotation, punctuation.definition.template-expression, storage.type.function.arrow | #D4D4D4 | — |
| emphasis, markup.italic | — | italic |
| header | #000080 | — |
| comment | #757575 | — |
| invalid | #F44747 | — |
| markup.underline | — | underline |
| strong, markup.bold, markup.heading | — | bold |
| markup.strikethrough | — | strikethrough |
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}!`;
}