List of Style Options #204
-
Are there a way to get all style options available to a specific style? |
Beta Was this translation helpful? Give feedback.
Answered by
FlorianKoerner
Mar 24, 2022
Replies: 1 comment
-
Hi @mauricioluz Each avatar style also includes a JSONSchema that we use ourselves to evaluate the available options. import { schema as coreSchema } from '@dicebear/avatars';
import { schema as styleSchema } from '@dicebear/adventurer';
console.log(coreSchema, styleSchema); We use this information in the CLI, for example:
And also in the documentation: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
FlorianKoerner
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @mauricioluz
Each avatar style also includes a JSONSchema that we use ourselves to evaluate the available options.
We use this information in the CLI, for example:
dicebear/packages/dicebear/src/utils/command/makeCreateStyleCommand.ts
Lines 14 to 39 in 88c396f