OneDark Pro Roblox Theme(Beta)
Publisher: HerogrameThemes in package: 1
OneDark Pro Roblox Theme with support for Luau scripts and optimized for Victor Mono font
OneDark Pro Roblox Theme with support for Luau scripts and optimized for Victor Mono font
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 |
|---|---|---|
| Global settings | #abb2bf | |
| comment, comment.line, comment.block, punctuation.definition.comment | #5c6370 | italic |
| variable.other.constant, variable.other.constant.declaration, constant.language.luau, constant.numeric, constant.boolean, constant.character, constant.other, support.constant | #d19a66 | bold |
| variable.other.property, variable.object.property, meta.object-literal.key, meta.field.declaration | #e06c75 | |
| entity.name.type, support.type, meta.type.annotation, meta.type.generic, storage.type.generic, storage.type.annotation, storage.type, keyword.operator.type, punctuation.definition.type | #e5c07b | italic |
| variable.parameter.type | #e5c07b | italic |
| entity.name.function, meta.function.declaration, meta.function, support.function, keyword.function, storage.type.function | #61afef | italic bold |
| meta.function-call, variable.function, meta.method-call entity.name.function | #61afef | |
| variable.parameter, meta.function.parameters | #e06c75 | italic |
| support.class.roblox, support.function.roblox, variable.language.roblox, support.function.service.roblox, meta.function-call.roblox | #56b6c2 | bold |
| string.quoted, string.template, punctuation.definition.string, string.interpolated | #98c379 | |
| keyword.control, keyword.operator, storage.modifier, keyword.local, keyword.return, keyword.if, keyword.else, keyword.elseif, keyword.end, keyword.while, keyword.for, keyword.do, keyword.break, keyword.continue, keyword.in, keyword.import, keyword.export | #c678dd | italic |
| punctuation.definition.directive.luau, keyword.directive.luau | #c678dd | italic bold |
| variable.declaration, variable.name, variable.other, variable.language | #abb2bf | — |
| variable.other.global | #e5c07b | italic bold |
| entity.name.class, new.expr entity.name.type, meta.class entity.name.type, entity.other.inherited-class | #e5c07b | bold |
| meta.import, meta.require | #61afef | italic |
| keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison, keyword.operator.concat.luau | #56b6c2 | |
| punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.definition.parameters, punctuation.definition.block | #abb2bf | — |
| meta.metatable.key | #98c379 | italic bold |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #d19a66 | |
| constant.language.boolean | #d19a66 | italic bold |
| variable.language.self, variable.language.this | #e06c75 | italic bold |
| support.function.luau, support.function.library | #56b6c2 | bold |
| support.constant.luau, support.constant.math, support.constant | #d19a66 | italic |
| support.function.error, keyword.control.exception | #e06c75 | italic bold |
| punctuation.section.brackets, punctuation.section.parens, punctuation.section.block | #abb2bf | — |
| meta.field.declaration entity.name.field, meta.type.declaration | #e06c75 | — |
| keyword.control.export, meta.export | #61afef | italic bold |
| storage.modifier.type | #c678dd | italic |
| support.type.property-name.json, meta.structure.dictionary.key.json | #e06c75 | |
| string.quoted.double.json, punctuation.definition.string.begin.json, punctuation.definition.string.end.json | #98c379 | |
| constant.numeric.json | #d19a66 | |
| constant.language.json | #d19a66 | italic bold |
| punctuation.separator.dictionary.key-value.json, punctuation.separator.array.json, punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, punctuation.definition.array.begin.json, punctuation.definition.array.end.json | #abb2bf | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #61afef | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json | #56b6c2 | — |
| source.json.comments support.type.property-name, source.json support.type.property-name | #e06c75 | — |
| comment.line.double-slash.js, comment.block.json | #5c6370 | italic |
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}!`;
}