ReUI
Publisher: Alex BaretskyThemes in package: 10
A VS Code theme based on React's website colors
A VS Code theme based on React's website colors
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, storage.type.class, storage.modifier, storage.type, variable.language, entity.other.attribute-name, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.json.comments, keyword.operator.new, comment, punctuation.definition.comment, comment.line, comment.line.double-slash, entity.name.class.decorator, variable.other.readwrite.decorator, meta.selector.css, constant.language.dart | — | italic |
| storage.type.function.arrow, meta.function.arrow, keyword.operator | — | normal |
| variable, meta.jsx.children, text.html, support.constant.property-value.css, variable.parameter, variable.other.readwrite, meta.object-literal.key, meta.definition.variable.ts variable.other.constant, meta.definition.variable.tsx variable.other.constant, source.dart, keyword.operator.comparison.dart | #ffffff | — |
| comment, punctuation.definition.comment, comment.line, comment.line.double-slash | #797979 | — |
| keyword, storage.type.class, storage.modifier, storage.type, variable.language, entity.other.attribute-name | #c5a5c5 | — |
| entity.name.tag.open.jsx, entity.name.tag.close.jsx, entity.name.tag.tsx, constant.numeric, punctuation.terminator.statement, support.variable.property.dom, keyword.operator, keyword.operator.new, punctuation.decorator.ts, entity.name.tag.html, entity.name.tag.localname.xml | #f38e9a | — |
| constant.character.entity, entity.name.exception | #d67c9b | — |
| markup.heading.1 punctuation.definition.heading | #ff0000 | — |
| meta.selector.css, entity.name.tag.nesting.css, entity.name.tag.reference.scss | #ff6e6e | — |
| string | #8dc891 | — |
| meta.object-literal.key, string.unquoted, meta.at-rule.keyframes.body.css, constant.other.object.key | #8adf69 | — |
| meta.var.expr meta.objectliteral meta.object.member meta.objectliteral meta.object.member meta.object-literal.key | #caffb5 | — |
| type, support.type, source.css, 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, support.type.property-name.css, support.type.vendored.property-name, support.class, support.class.component, entity.other.inherited-class, entity.name.type, entity.name.class | #fac863 | — |
| constant.language.boolean, constant.language.json, constant.language.infinity, constant.language.nan, constant.language.undefined, constant.language.null, constant.language.dart | #ff8b50 | — |
| punctuation, punctuation.definition.tag, punctuation.section.embedded, meta.brace.round, meta.array.literal, entity.name.class.decorator, meta.decorator.ts, variable.other.readwrite.decorator, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, meta.decorator meta.function-call entity.name.function | #88c6be | — |
| variable.parameter.keyframe-list.css, support.constant.property-value.misc.css, meta.property-list, meta.brace.square, variable.other.constant.property, variable.other.constant | #27e2f1 | — |
| variable.other.class, meta.property.class | #a4ffff | — |
| variable.other.property, source.css.scss entity.name.tag | #beedff | — |
| function, support.constant.media.css, meta.definition.function, meta.definition.method, entity.name.function, variable.function, keyword.other.special-method, support.function, support.class.builtin, keyword.other.name-of-parameter, constructor, meta.function-call entity.name.function, meta.object.member meta.function-call entity.name.function | #79b6f2 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #fac863 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF92DF | — |
| 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 | #8BE9FD | — |
| 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 | #f79d70 | — |
| 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 | #c5a5c5 | — |
| 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 | #F38E9A | — |
| 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 | #88c6be | — |
| 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 | #82aaff | — |
| 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 | #FF6E6E | — |
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}!`;
}