{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string"
    },
    "output": {
      "description": "An array of output types. These are run in the order they are specified.",
      "default": [
        "css"
      ],
      "type": "array",
      "items": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "design-tokens",
                    "description": "The type of output file"
                  },
                  "dir": {
                    "default": "designsystemet/design-tokens",
                    "description": "The output directory",
                    "type": "string"
                  },
                  "cleanDir": {
                    "default": false,
                    "description": "Whether to delete the files in the output directory before generating files",
                    "type": "boolean"
                  }
                },
                "required": [
                  "type"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "css",
                    "description": "The type of output file"
                  },
                  "dir": {
                    "default": "designsystemet",
                    "description": "The output directory",
                    "type": "string"
                  },
                  "cleanDir": {
                    "default": false,
                    "description": "Whether to delete the files in the output directory before generating files",
                    "type": "boolean"
                  },
                  "tokensDir": {
                    "description": "The directory containing the design tokens to build CSS from. Defaults to `dir` of the `design-tokens` output. If neither is set, CSS is created directly from the themes",
                    "type": "string"
                  },
                  "tailwind": {
                    "default": false,
                    "description": "The Tailwind CSS major version to generate a theme file for, or `false` to not generate one",
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "v3"
                      },
                      {
                        "type": "string",
                        "const": "v4"
                      },
                      {
                        "type": "boolean",
                        "const": false
                      }
                    ]
                  }
                },
                "required": [
                  "type"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "types",
                    "description": "The type of output file"
                  },
                  "dir": {
                    "default": "designsystemet",
                    "description": "The output directory",
                    "type": "string"
                  },
                  "cleanDir": {
                    "default": false,
                    "description": "Whether to delete the files in the output directory before generating files",
                    "type": "boolean"
                  },
                  "tokensDir": {
                    "description": "The directory containing the design tokens to build type declarations from. Defaults to `dir` of the `design-tokens` output. If neither is set, type declarations are created directly from the themes",
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ]
              }
            ],
            "description": "An object representing an output file"
          },
          {
            "type": "string",
            "enum": [
              "design-tokens",
              "css",
              "types"
            ],
            "description": "An output type using its default settings"
          }
        ],
        "description": "An output file, either as an object or an output type using its default settings."
      }
    },
    "outDir": {
      "default": "design-tokens",
      "deprecated": true,
      "description": "Deprecated: use `output[].dir` instead. Path to the output directory for the created design tokens",
      "type": "string"
    },
    "clean": {
      "default": false,
      "deprecated": true,
      "description": "Deprecated: use `output[].cleanDir` instead. Delete the output directory before creating tokens",
      "type": "boolean"
    },
    "themes": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "colors": {
            "description": "Defines the colors for this theme",
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
              "description": "The name of a color, used in token paths and CSS variables."
            },
            "additionalProperties": {
              "description": "A hex color, which is used for creating a color scale.",
              "type": "string",
              "pattern": "^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{4}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8})$"
            }
          },
          "typography": {
            "anyOf": [
              {
                "default": {},
                "type": "object",
                "properties": {
                  "fontFamily": {
                    "default": "Inter",
                    "type": "string",
                    "description": "Sets the font-family for this theme"
                  }
                },
                "additionalProperties": false
              },
              {
                "default": {},
                "type": "object",
                "properties": {
                  "fonts": {
                    "default": {
                      "primary": {},
                      "secondary": {}
                    },
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "pattern": "^[a-z0-9-]+$"
                    },
                    "additionalProperties": {
                      "default": {},
                      "type": "object",
                      "properties": {
                        "fontFamily": {
                          "default": "Inter",
                          "type": "string",
                          "description": "Sets the font-family for this theme"
                        },
                        "fontWeight": {
                          "default": {},
                          "type": "object",
                          "properties": {
                            "medium": {
                              "default": "Medium",
                              "type": "string",
                              "description": "Sets the medium font-weight for this theme"
                            },
                            "semibold": {
                              "default": "Semi bold",
                              "type": "string",
                              "description": "Sets the semibold font-weight for this theme"
                            },
                            "regular": {
                              "default": "Regular",
                              "type": "string",
                              "description": "Sets the regular font-weight for this theme"
                            }
                          }
                        }
                      },
                      "description": "Defines a named typography set"
                    },
                    "description": "Named typography sets, e.g. \"primary\" and \"secondary\". The key becomes the set name."
                  },
                  "size": {
                    "default": {
                      "small": {},
                      "medium": {},
                      "large": {}
                    },
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "lineHeight": {
                          "default": {},
                          "type": "object",
                          "properties": {
                            "sm": {
                              "default": "130%",
                              "type": "string",
                              "description": "Sets the small line-height for this size mode"
                            },
                            "md": {
                              "default": "150%",
                              "type": "string",
                              "description": "Sets the medium line-height for this size mode"
                            },
                            "lg": {
                              "default": "170%",
                              "type": "string",
                              "description": "Sets the large line-height for this size mode"
                            }
                          }
                        },
                        "letterSpacing": {
                          "default": {},
                          "type": "object",
                          "properties": {
                            "1": {
                              "default": "-1%",
                              "type": "string",
                              "description": "Sets the letter-spacing for this size mode"
                            },
                            "2": {
                              "default": "-0.5%",
                              "type": "string",
                              "description": "Sets the letter-spacing for this size mode"
                            },
                            "3": {
                              "default": "-0.25%",
                              "type": "string",
                              "description": "Sets the letter-spacing for this size mode"
                            },
                            "4": {
                              "default": "-0.15%",
                              "type": "string",
                              "description": "Sets the letter-spacing for this size mode"
                            },
                            "5": {
                              "default": "0%",
                              "type": "string",
                              "description": "Sets the letter-spacing for this size mode"
                            },
                            "6": {
                              "default": "0.15%",
                              "type": "string",
                              "description": "Sets the letter-spacing for this size mode"
                            },
                            "7": {
                              "default": "0.25%",
                              "type": "string",
                              "description": "Sets the letter-spacing for this size mode"
                            },
                            "8": {
                              "default": "0.5%",
                              "type": "string",
                              "description": "Sets the letter-spacing for this size mode"
                            },
                            "9": {
                              "default": "1.5%",
                              "type": "string",
                              "description": "Sets the letter-spacing for this size mode"
                            }
                          }
                        }
                      },
                      "description": "Defines the line-heights and letter-spacings for a size mode"
                    },
                    "description": "Typography values per size mode, keyed by the step name from `size.steps`. Shared by all typography sets."
                  },
                  "fontSize": {
                    "default": {
                      "1": "12",
                      "2": "14",
                      "3": "16",
                      "4": "18",
                      "5": "21",
                      "6": "24",
                      "7": "30",
                      "8": "36",
                      "9": "48",
                      "10": "60"
                    },
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string",
                      "pattern": "^\\d+(\\.\\d+)?$"
                    },
                    "description": "The unitless font-size scale, keyed by scale number, at a font size of `size.steps.<step>.base`. Each size step multiplies it by `baseFontSize / base` and rounds to whole pixels, the same way the CSS scales font sizes."
                  },
                  "components": {
                    "default": {},
                    "type": "object",
                    "properties": {
                      "heading": {
                        "default": {},
                        "type": "object",
                        "properties": {
                          "2xl": {
                            "default": {},
                            "type": "object",
                            "properties": {
                              "fontFamily": {
                                "default": "{font-family}",
                                "type": "string"
                              },
                              "fontWeight": {
                                "default": "{font-weight.medium}",
                                "type": "string"
                              },
                              "lineHeight": {
                                "default": "{line-height.sm}",
                                "type": "string"
                              },
                              "fontSize": {
                                "default": "{font-size.10}",
                                "type": "string"
                              },
                              "letterSpacing": {
                                "default": "{letter-spacing.1}",
                                "type": "string"
                              }
                            }
                          },
                          "xl": {
                            "default": {},
                            "type": "object",
                            "properties": {
                              "fontFamily": {
                                "default": "{font-family}",
                                "type": "string"
                              },
                              "fontWeight": {
                                "default": "{font-weight.medium}",
                                "type": "string"
                              },
                              "lineHeight": {
                                "default": "{line-height.sm}",
                                "type": "string"
                              },
                              "fontSize": {
                                "default": "{font-size.9}",
                                "type": "string"
                              },
                              "letterSpacing": {
                                "default": "{letter-spacing.1}",
                                "type": "string"
                              }
                            }
                          },
                          "lg": {
                            "default": {},
                            "type": "object",
                            "properties": {
                              "fontFamily": {
                                "default": "{font-family}",
                                "type": "string"
                              },
                              "fontWeight": {
                                "default": "{font-weight.medium}",
                                "type": "string"
                              },
                              "lineHeight": {
                                "default": "{line-height.sm}",
                                "type": "string"
                              },
                              "fontSize": {
                                "default": "{font-size.8}",
                                "type": "string"
                              },
                              "letterSpacing": {
                                "default": "{letter-spacing.2}",
                                "type": "string"
                              }
                            }
                          },
                          "md": {
                            "default": {},
                            "type": "object",
                            "properties": {
                              "fontFamily": {
                                "default": "{font-family}",
                                "type": "string"
                              },
                              "fontWeight": {
                                "default": "{font-weight.medium}",
                                "type": "string"
                              },
                              "lineHeight": {
                                "default": "{line-height.sm}",
                                "type": "string"
                              },
                              "fontSize": {
                                "default": "{font-size.7}",
                                "type": "string"
                              },
                              "letterSpacing": {
                                "default": "{letter-spacing.3}",
                                "type": "string"
                              }
                            }
                          },
                          "sm": {
                            "default": {},
                            "type": "object",
                            "properties": {
                              "fontFamily": {
                                "default": "{font-family}",
                                "type": "string"
                              },
                              "fontWeight": {
                                "default": "{font-weight.medium}",
                                "type": "string"
                              },
                              "lineHeight": {
                                "default": "{line-height.sm}",
                                "type": "string"
                              },
                              "fontSize": {
                                "default": "{font-size.6}",
                                "type": "string"
                              },
                              "letterSpacing": {
                                "default": "{letter-spacing.5}",
                                "type": "string"
                              }
                            }
                          },
                          "xs": {
                            "default": {},
                            "type": "object",
                            "properties": {
                              "fontFamily": {
                                "default": "{font-family}",
                                "type": "string"
                              },
                              "fontWeight": {
                                "default": "{font-weight.medium}",
                                "type": "string"
                              },
                              "lineHeight": {
                                "default": "{line-height.sm}",
                                "type": "string"
                              },
                              "fontSize": {
                                "default": "{font-size.5}",
                                "type": "string"
                              },
                              "letterSpacing": {
                                "default": "{letter-spacing.6}",
                                "type": "string"
                              }
                            }
                          },
                          "2xs": {
                            "default": {},
                            "type": "object",
                            "properties": {
                              "fontFamily": {
                                "default": "{font-family}",
                                "type": "string"
                              },
                              "fontWeight": {
                                "default": "{font-weight.medium}",
                                "type": "string"
                              },
                              "lineHeight": {
                                "default": "{line-height.sm}",
                                "type": "string"
                              },
                              "fontSize": {
                                "default": "{font-size.4}",
                                "type": "string"
                              },
                              "letterSpacing": {
                                "default": "{letter-spacing.6}",
                                "type": "string"
                              }
                            }
                          }
                        },
                        "description": "Typography tokens for headings"
                      },
                      "body": {
                        "default": {},
                        "type": "object",
                        "properties": {
                          "xl": {
                            "default": {},
                            "type": "object",
                            "properties": {
                              "fontFamily": {
                                "default": "{font-family}",
                                "type": "string"
                              },
                              "fontWeight": {
                                "default": "{font-weight.regular}",
                                "type": "string"
                              },
                              "lineHeight": {
                                "default": "{line-height.md}",
                                "type": "string"
                              },
                              "fontSize": {
                                "default": "{font-size.6}",
                                "type": "string"
                              },
                              "letterSpacing": {
                                "default": "{letter-spacing.8}",
                                "type": "string"
                              }
                            }
                          },
                          "lg": {
                            "default": {},
                            "type": "object",
                            "properties": {
                              "fontFamily": {
                                "default": "{font-family}",
                                "type": "string"
                              },
                              "fontWeight": {
                                "default": "{font-weight.regular}",
                                "type": "string"
                              },
                              "lineHeight": {
                                "default": "{line-height.md}",
                                "type": "string"
                              },
                              "fontSize": {
                                "default": "{font-size.5}",
                                "type": "string"
                              },
                              "letterSpacing": {
                                "default": "{letter-spacing.8}",
                                "type": "string"
                              }
                            }
                          },
                          "md": {
                            "default": {},
                            "type": "object",
                            "properties": {
                              "fontFamily": {
                                "default": "{font-family}",
                                "type": "string"
                              },
                              "fontWeight": {
                                "default": "{font-weight.regular}",
                                "type": "string"
                              },
                              "lineHeight": {
                                "default": "{line-height.md}",
                                "type": "string"
                              },
                              "fontSize": {
                                "default": "{font-size.4}",
                                "type": "string"
                              },
                              "letterSpacing": {
                                "default": "{letter-spacing.8}",
                                "type": "string"
                              }
                            }
                          },
                          "sm": {
                            "default": {},
                            "type": "object",
                            "properties": {
                              "fontFamily": {
                                "default": "{font-family}",
                                "type": "string"
                              },
                              "fontWeight": {
                                "default": "{font-weight.regular}",
                                "type": "string"
                              },
                              "lineHeight": {
                                "default": "{line-height.md}",
                                "type": "string"
                              },
                              "fontSize": {
                                "default": "{font-size.3}",
                                "type": "string"
                              },
                              "letterSpacing": {
                                "default": "{letter-spacing.7}",
                                "type": "string"
                              }
                            }
                          },
                          "xs": {
                            "default": {},
                            "type": "object",
                            "properties": {
                              "fontFamily": {
                                "default": "{font-family}",
                                "type": "string"
                              },
                              "fontWeight": {
                                "default": "{font-weight.regular}",
                                "type": "string"
                              },
                              "lineHeight": {
                                "default": "{line-height.md}",
                                "type": "string"
                              },
                              "fontSize": {
                                "default": "{font-size.2}",
                                "type": "string"
                              },
                              "letterSpacing": {
                                "default": "{letter-spacing.6}",
                                "type": "string"
                              }
                            }
                          },
                          "short": {
                            "default": {},
                            "type": "object",
                            "properties": {
                              "xl": {
                                "default": {},
                                "type": "object",
                                "properties": {
                                  "fontFamily": {
                                    "default": "{font-family}",
                                    "type": "string"
                                  },
                                  "fontWeight": {
                                    "default": "{font-weight.regular}",
                                    "type": "string"
                                  },
                                  "lineHeight": {
                                    "default": "{line-height.sm}",
                                    "type": "string"
                                  },
                                  "fontSize": {
                                    "default": "{font-size.6}",
                                    "type": "string"
                                  },
                                  "letterSpacing": {
                                    "default": "{letter-spacing.8}",
                                    "type": "string"
                                  }
                                }
                              },
                              "lg": {
                                "default": {},
                                "type": "object",
                                "properties": {
                                  "fontFamily": {
                                    "default": "{font-family}",
                                    "type": "string"
                                  },
                                  "fontWeight": {
                                    "default": "{font-weight.regular}",
                                    "type": "string"
                                  },
                                  "lineHeight": {
                                    "default": "{line-height.sm}",
                                    "type": "string"
                                  },
                                  "fontSize": {
                                    "default": "{font-size.5}",
                                    "type": "string"
                                  },
                                  "letterSpacing": {
                                    "default": "{letter-spacing.8}",
                                    "type": "string"
                                  }
                                }
                              },
                              "md": {
                                "default": {},
                                "type": "object",
                                "properties": {
                                  "fontFamily": {
                                    "default": "{font-family}",
                                    "type": "string"
                                  },
                                  "fontWeight": {
                                    "default": "{font-weight.regular}",
                                    "type": "string"
                                  },
                                  "lineHeight": {
                                    "default": "{line-height.sm}",
                                    "type": "string"
                                  },
                                  "fontSize": {
                                    "default": "{font-size.4}",
                                    "type": "string"
                                  },
                                  "letterSpacing": {
                                    "default": "{letter-spacing.8}",
                                    "type": "string"
                                  }
                                }
                              },
                              "sm": {
                                "default": {},
                                "type": "object",
                                "properties": {
                                  "fontFamily": {
                                    "default": "{font-family}",
                                    "type": "string"
                                  },
                                  "fontWeight": {
                                    "default": "{font-weight.regular}",
                                    "type": "string"
                                  },
                                  "lineHeight": {
                                    "default": "{line-height.sm}",
                                    "type": "string"
                                  },
                                  "fontSize": {
                                    "default": "{font-size.3}",
                                    "type": "string"
                                  },
                                  "letterSpacing": {
                                    "default": "{letter-spacing.7}",
                                    "type": "string"
                                  }
                                }
                              },
                              "xs": {
                                "default": {},
                                "type": "object",
                                "properties": {
                                  "fontFamily": {
                                    "default": "{font-family}",
                                    "type": "string"
                                  },
                                  "fontWeight": {
                                    "default": "{font-weight.regular}",
                                    "type": "string"
                                  },
                                  "lineHeight": {
                                    "default": "{line-height.sm}",
                                    "type": "string"
                                  },
                                  "fontSize": {
                                    "default": "{font-size.2}",
                                    "type": "string"
                                  },
                                  "letterSpacing": {
                                    "default": "{letter-spacing.6}",
                                    "type": "string"
                                  }
                                }
                              }
                            },
                            "description": "Typography tokens for short body text"
                          },
                          "long": {
                            "default": {},
                            "type": "object",
                            "properties": {
                              "xl": {
                                "default": {},
                                "type": "object",
                                "properties": {
                                  "fontFamily": {
                                    "default": "{font-family}",
                                    "type": "string"
                                  },
                                  "fontWeight": {
                                    "default": "{font-weight.regular}",
                                    "type": "string"
                                  },
                                  "lineHeight": {
                                    "default": "{line-height.lg}",
                                    "type": "string"
                                  },
                                  "fontSize": {
                                    "default": "{font-size.6}",
                                    "type": "string"
                                  },
                                  "letterSpacing": {
                                    "default": "{letter-spacing.8}",
                                    "type": "string"
                                  }
                                }
                              },
                              "lg": {
                                "default": {},
                                "type": "object",
                                "properties": {
                                  "fontFamily": {
                                    "default": "{font-family}",
                                    "type": "string"
                                  },
                                  "fontWeight": {
                                    "default": "{font-weight.regular}",
                                    "type": "string"
                                  },
                                  "lineHeight": {
                                    "default": "{line-height.lg}",
                                    "type": "string"
                                  },
                                  "fontSize": {
                                    "default": "{font-size.5}",
                                    "type": "string"
                                  },
                                  "letterSpacing": {
                                    "default": "{letter-spacing.8}",
                                    "type": "string"
                                  }
                                }
                              },
                              "md": {
                                "default": {},
                                "type": "object",
                                "properties": {
                                  "fontFamily": {
                                    "default": "{font-family}",
                                    "type": "string"
                                  },
                                  "fontWeight": {
                                    "default": "{font-weight.regular}",
                                    "type": "string"
                                  },
                                  "lineHeight": {
                                    "default": "{line-height.lg}",
                                    "type": "string"
                                  },
                                  "fontSize": {
                                    "default": "{font-size.4}",
                                    "type": "string"
                                  },
                                  "letterSpacing": {
                                    "default": "{letter-spacing.8}",
                                    "type": "string"
                                  }
                                }
                              },
                              "sm": {
                                "default": {},
                                "type": "object",
                                "properties": {
                                  "fontFamily": {
                                    "default": "{font-family}",
                                    "type": "string"
                                  },
                                  "fontWeight": {
                                    "default": "{font-weight.regular}",
                                    "type": "string"
                                  },
                                  "lineHeight": {
                                    "default": "{line-height.lg}",
                                    "type": "string"
                                  },
                                  "fontSize": {
                                    "default": "{font-size.3}",
                                    "type": "string"
                                  },
                                  "letterSpacing": {
                                    "default": "{letter-spacing.7}",
                                    "type": "string"
                                  }
                                }
                              },
                              "xs": {
                                "default": {},
                                "type": "object",
                                "properties": {
                                  "fontFamily": {
                                    "default": "{font-family}",
                                    "type": "string"
                                  },
                                  "fontWeight": {
                                    "default": "{font-weight.regular}",
                                    "type": "string"
                                  },
                                  "lineHeight": {
                                    "default": "{line-height.lg}",
                                    "type": "string"
                                  },
                                  "fontSize": {
                                    "default": "{font-size.2}",
                                    "type": "string"
                                  },
                                  "letterSpacing": {
                                    "default": "{letter-spacing.6}",
                                    "type": "string"
                                  }
                                }
                              }
                            },
                            "description": "Typography tokens for long body text"
                          }
                        },
                        "description": "Typography tokens for body text"
                      }
                    },
                    "description": "Typography tokens for components, shared by all typography sets"
                  }
                },
                "description": "Defines the typography sets, size-mode typography and component typography for a given theme"
              }
            ],
            "description": "Defines the typography for a given theme"
          },
          "size": {
            "default": {
              "scale": {
                "0": "floor({step} * 0 * {baseFontSize} / {base})",
                "1": "floor({step} * 1 * {baseFontSize} / {base})",
                "2": "floor({step} * 2 * {baseFontSize} / {base})",
                "3": "floor({step} * 3 * {baseFontSize} / {base})",
                "4": "floor({step} * 4 * {baseFontSize} / {base})",
                "5": "floor({step} * 5 * {baseFontSize} / {base})",
                "6": "floor({step} * 6 * {baseFontSize} / {base})",
                "7": "floor({step} * 7 * {baseFontSize} / {base})",
                "8": "floor({step} * 8 * {baseFontSize} / {base})",
                "9": "floor({step} * 9 * {baseFontSize} / {base})",
                "10": "floor({step} * 10 * {baseFontSize} / {base})",
                "11": "floor({step} * 11 * {baseFontSize} / {base})",
                "12": "floor({step} * 12 * {baseFontSize} / {base})",
                "13": "floor({step} * 13 * {baseFontSize} / {base})",
                "14": "floor({step} * 14 * {baseFontSize} / {base})",
                "15": "floor({step} * 15 * {baseFontSize} / {base})",
                "18": "floor({step} * 18 * {baseFontSize} / {base})",
                "22": "floor({step} * 22 * {baseFontSize} / {base})",
                "26": "floor({step} * 26 * {baseFontSize} / {base})",
                "30": "floor({step} * 30 * {baseFontSize} / {base})"
              },
              "steps": {
                "small": {
                  "baseFontSize": 16,
                  "base": 18,
                  "step": 4
                },
                "medium": {
                  "baseFontSize": 18,
                  "base": 18,
                  "step": 4
                },
                "large": {
                  "baseFontSize": 21,
                  "base": 18,
                  "step": 4
                }
              }
            },
            "type": "object",
            "properties": {
              "steps": {
                "type": "object",
                "propertyNames": {
                  "type": "string",
                  "pattern": "^[a-z0-9-]+$"
                },
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "base": {
                      "type": "number",
                      "description": "The base value for the size scale"
                    },
                    "step": {
                      "type": "number",
                      "description": "The scale value between each step of the size scale"
                    },
                    "baseFontSize": {
                      "type": "number",
                      "description": "Unitless base font size for this size step"
                    }
                  },
                  "required": [
                    "base",
                    "step",
                    "baseFontSize"
                  ]
                },
                "description": "The steps for the size scale, e.g. \"small\", \"medium\", \"large\", etc. Each step needs a matching entry in `typography.size`."
              },
              "scale": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                },
                "description": "The scale values for the size scale"
              }
            },
            "required": [
              "steps",
              "scale"
            ],
            "description": "Defines the size values for this theme"
          },
          "borderRadius": {
            "description": "Defines the border-radius for this theme",
            "anyOf": [
              {
                "default": 4,
                "type": "number",
                "description": "Defines the border-radius for this theme"
              },
              {
                "default": {
                  "steps": {
                    "sm": "min({base}*0.5,{scale})",
                    "md": "min({base},{scale}*2)",
                    "lg": "min({base}*2,{scale}*5)",
                    "xl": "min({base}*3,{scale}*7)",
                    "default": "{base}",
                    "full": "9999"
                  },
                  "base": 4,
                  "scale": 4
                },
                "type": "object",
                "properties": {
                  "steps": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "The steps for the border-radius scale, e.g. \"sm\", \"md\", \"lg\", etc."
                  },
                  "base": {
                    "type": "number",
                    "description": "The base value for the border-radius scale"
                  },
                  "scale": {
                    "type": "number",
                    "description": "The scale value between each step of the border-radius scale"
                  }
                },
                "required": [
                  "steps",
                  "base",
                  "scale"
                ],
                "description": "Defines the border-radius values for this theme"
              }
            ]
          },
          "overrides": {
            "type": "object",
            "properties": {
              "colors": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "background-default",
                      "background-tinted",
                      "surface-default",
                      "surface-tinted",
                      "surface-hover",
                      "surface-active",
                      "border-subtle",
                      "border-default",
                      "border-strong",
                      "text-subtle",
                      "text-default",
                      "base-default",
                      "base-hover",
                      "base-active",
                      "base-contrast-subtle",
                      "base-contrast-default"
                    ]
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "light": {
                        "description": "A hex color that overrides light mode",
                        "type": "string",
                        "pattern": "^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{4}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8})$"
                      },
                      "dark": {
                        "description": "A hex color that overrides dark mode",
                        "type": "string",
                        "pattern": "^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{4}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8})$"
                      }
                    },
                    "description": "Override values for semantic color tokens like \"background-subtle\", \"border-default\", etc."
                  },
                  "description": "The name of the color to add overrides for, e.g. \"accent\""
                },
                "description": "An object with color names as keys"
              },
              "severity": {
                "description": "An object with severity color names as keys",
                "type": "object",
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "info",
                    "success",
                    "warning",
                    "danger"
                  ]
                },
                "additionalProperties": {
                  "description": "A hex color, which is used for creating a color scale",
                  "type": "string",
                  "pattern": "^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{4}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8})$"
                }
              },
              "linkVisited": {
                "type": "object",
                "properties": {
                  "light": {
                    "description": "A hex color that overrides light mode",
                    "type": "string",
                    "pattern": "^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{4}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8})$"
                  },
                  "dark": {
                    "description": "A hex color that overrides dark mode",
                    "type": "string",
                    "pattern": "^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{4}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8})$"
                  }
                },
                "description": "Deprecated: style .ds-link:visited instead. Overrides for the \"link-visited\" color",
                "deprecated": true,
                "deprecationMessage": "Style .ds-link:visited instead."
              },
              "focus": {
                "type": "object",
                "properties": {
                  "inner": {
                    "description": "Overrides for the \"focus-inner\" color",
                    "type": "object",
                    "properties": {
                      "light": {
                        "description": "A hex color that overrides light mode",
                        "type": "string",
                        "pattern": "^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{4}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8})$"
                      },
                      "dark": {
                        "description": "A hex color that overrides dark mode",
                        "type": "string",
                        "pattern": "^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{4}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8})$"
                      }
                    }
                  },
                  "outer": {
                    "description": "Overrides for the \"focus-outer\" color",
                    "type": "object",
                    "properties": {
                      "light": {
                        "description": "A hex color that overrides light mode",
                        "type": "string",
                        "pattern": "^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{4}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8})$"
                      },
                      "dark": {
                        "description": "A hex color that overrides dark mode",
                        "type": "string",
                        "pattern": "^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{4}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8})$"
                      }
                    }
                  }
                },
                "description": "Overrides for the focus colors"
              }
            },
            "description": "Overrides for generated design tokens. Currently only supports colors defined in your theme"
          },
          "borderWidth": {
            "default": {},
            "type": "object",
            "properties": {
              "default": {
                "default": "1px",
                "description": "The default border width for components",
                "type": "string",
                "pattern": "^(0|\\d*\\.?\\d+(px|rem|em))$"
              },
              "focus": {
                "default": "3px",
                "description": "The border outline for focus states",
                "type": "string",
                "pattern": "^(0|\\d*\\.?\\d+(px|rem|em))$"
              }
            }
          },
          "shadow": {
            "default": {
              "xs": [
                {
                  "color": "rgba(0,0,0,0.16)",
                  "x": "0",
                  "y": "0",
                  "blur": "1",
                  "spread": "0"
                },
                {
                  "x": "0",
                  "y": "1",
                  "blur": "2",
                  "spread": "0",
                  "color": "rgba(0,0,0,0.12)"
                }
              ],
              "sm": [
                {
                  "color": "rgba(0,0,0,0.15)",
                  "x": "0",
                  "y": "0",
                  "blur": "1",
                  "spread": "0"
                },
                {
                  "color": "rgba(0,0,0,0.12)",
                  "x": "0",
                  "y": "1",
                  "blur": "2",
                  "spread": "0"
                },
                {
                  "x": "0",
                  "y": "2",
                  "blur": "4",
                  "spread": "0",
                  "color": "rgba(0,0,0,0.1)"
                }
              ],
              "md": [
                {
                  "color": "rgba(0,0,0,0.14)",
                  "x": "0",
                  "y": "0",
                  "blur": "1",
                  "spread": "0"
                },
                {
                  "color": "rgba(0,0,0,0.12)",
                  "x": "0",
                  "y": "2",
                  "blur": "4",
                  "spread": "0"
                },
                {
                  "x": "0",
                  "y": "4",
                  "blur": "8",
                  "spread": "0",
                  "color": "rgba(0,0,0,0.12)"
                }
              ],
              "lg": [
                {
                  "color": "rgba(0,0,0,0.13)",
                  "x": "0",
                  "y": "0",
                  "blur": "1",
                  "spread": "0"
                },
                {
                  "color": "rgba(0,0,0,0.13)",
                  "x": "0",
                  "y": "3",
                  "blur": "5",
                  "spread": "0"
                },
                {
                  "x": "0",
                  "y": "6",
                  "blur": "12",
                  "spread": "0",
                  "color": "rgba(0,0,0,0.14)"
                }
              ],
              "xl": [
                {
                  "color": "rgba(0,0,0,0.12)",
                  "x": "0",
                  "y": "0",
                  "blur": "1",
                  "spread": "0"
                },
                {
                  "color": "rgba(0,0,0,0.16)",
                  "x": "0",
                  "y": "4",
                  "blur": "8",
                  "spread": "0"
                },
                {
                  "x": "0",
                  "y": "12",
                  "blur": "24",
                  "spread": "0",
                  "color": "rgba(0,0,0,0.16)"
                }
              ]
            },
            "type": "object",
            "properties": {
              "xs": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "color": {
                      "type": "string"
                    },
                    "x": {
                      "type": "string"
                    },
                    "y": {
                      "type": "string"
                    },
                    "blur": {
                      "type": "string"
                    },
                    "spread": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "color",
                    "x",
                    "y",
                    "blur",
                    "spread"
                  ]
                }
              },
              "sm": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "color": {
                      "type": "string"
                    },
                    "x": {
                      "type": "string"
                    },
                    "y": {
                      "type": "string"
                    },
                    "blur": {
                      "type": "string"
                    },
                    "spread": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "color",
                    "x",
                    "y",
                    "blur",
                    "spread"
                  ]
                }
              },
              "md": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "color": {
                      "type": "string"
                    },
                    "x": {
                      "type": "string"
                    },
                    "y": {
                      "type": "string"
                    },
                    "blur": {
                      "type": "string"
                    },
                    "spread": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "color",
                    "x",
                    "y",
                    "blur",
                    "spread"
                  ]
                }
              },
              "lg": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "color": {
                      "type": "string"
                    },
                    "x": {
                      "type": "string"
                    },
                    "y": {
                      "type": "string"
                    },
                    "blur": {
                      "type": "string"
                    },
                    "spread": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "color",
                    "x",
                    "y",
                    "blur",
                    "spread"
                  ]
                }
              },
              "xl": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "color": {
                      "type": "string"
                    },
                    "x": {
                      "type": "string"
                    },
                    "y": {
                      "type": "string"
                    },
                    "blur": {
                      "type": "string"
                    },
                    "spread": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "color",
                    "x",
                    "y",
                    "blur",
                    "spread"
                  ]
                }
              }
            },
            "required": [
              "xs",
              "sm",
              "md",
              "lg",
              "xl"
            ]
          },
          "opacity": {
            "default": {},
            "type": "object",
            "properties": {
              "disabled": {
                "default": "30%",
                "description": "The opacity used for disabled states",
                "type": "string",
                "pattern": "^\\d*\\.?\\d+%$"
              }
            }
          }
        },
        "required": [
          "colors"
        ],
        "description": "An object defining a theme. The property name holding the object becomes the theme name."
      },
      "description": "An object with one or more themes. Each property defines a theme, and the property name is used as the theme name. All themes must define the same color names, size configuration, shadows, border widths, opacities, border-radius step names and typography sets."
    }
  }
}