schema.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema",
  3. "$id": "angular-material-ng-add",
  4. "title": "Angular Material ng-add schematic",
  5. "type": "object",
  6. "properties": {
  7. "project": {
  8. "type": "string",
  9. "description": "Name of the project.",
  10. "$default": {
  11. "$source": "projectName"
  12. }
  13. },
  14. "theme": {
  15. "description": "The theme to apply",
  16. "type": "string",
  17. "default": "azure-blue",
  18. "x-prompt": {
  19. "message": "Choose a prebuilt theme name, or \"custom\" for a custom theme:",
  20. "type": "list",
  21. "items": [
  22. {
  23. "value": "azure-blue",
  24. "label": "Azure/Blue [Preview: https://material.angular.dev?theme=azure-blue]"
  25. },
  26. {
  27. "value": "rose-red",
  28. "label": "Rose/Red [Preview: https://material.angular.dev?theme=rose-red]"
  29. },
  30. {
  31. "value": "magenta-violet",
  32. "label": "Magenta/Violet [Preview: https://material.angular.dev?theme=magenta-violet]"
  33. },
  34. {
  35. "value": "cyan-orange",
  36. "label": "Cyan/Orange [Preview: https://material.angular.dev?theme=cyan-orange]"
  37. },
  38. {"value": "custom", "label": "Custom"}
  39. ]
  40. }
  41. },
  42. "typography": {
  43. "type": "boolean",
  44. "default": false,
  45. "description": "Whether to set up global typography styles.",
  46. "x-prompt": "Set up global Angular Material typography styles?"
  47. }
  48. },
  49. "required": []
  50. }