// Licensed under the Apache License, Version 2.0 (the “License”); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an “AS IS” BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations under
// the License.

.source.json {
  // Root.
  .punctuation.section.dictionary {
    foreground: $purple-200;
  }

  // Level 1.
  .meta.structure.dictionary {
    .meta.structure.dictionary.key {
      .string {
        foreground: $cyan-300;
        background: $blue-gray-900;

        .punctuation.definition.string {
          foreground: $cyan-300;
        }
      }
    }
  }

  // Level 2.
  #{repeatString('.meta.structure.dictionary', 3)} {
    .punctuation.section.dictionary {
      foreground: $cyan-300;
    }

    .meta.structure.dictionary.key {
      .string {
        foreground: $light-green-300;
        background: $blue-gray-900;

        .punctuation.definition.string {
          foreground: $light-green-300;
        }
      }
    }
  }

  // Level 3.
  #{repeatString('.meta.structure.dictionary', 5)} {
    .punctuation.section.dictionary {
      foreground: $light-green-300;
    }

    .meta.structure.dictionary.key {
      .string {
        foreground: $deep-orange-300;
        background: $blue-gray-900;

        .punctuation.definition.string {
          foreground: $deep-orange-300;
        }
      }
    }
  }

  // Level 4.
  #{repeatString('.meta.structure.dictionary', 7)} {
    .punctuation.section.dictionary {
      foreground: $deep-orange-300;
    }

    .meta.structure.dictionary.key {
      .string {
        foreground: $teal-300;
        background: $blue-gray-900;

        .punctuation.definition.string {
          foreground: $teal-300;
        }
      }
    }
  }

  // Level 5.
  #{repeatString('.meta.structure.dictionary', 9)} {
    .punctuation.section.dictionary {
      foreground: $teal-300;
    }

    .meta.structure.dictionary.key {
      .string {
        foreground: $pink-300;
        background: $blue-gray-900;

        .punctuation.definition.string {
          foreground: $pink-300;
        }
      }
    }
  }

  // Level 6.
  #{repeatString('.meta.structure.dictionary', 11)} {
    .punctuation.section.dictionary {
      foreground: $pink-300;
    }

    .meta.structure.dictionary.key {
      .string {
        foreground: $purple-300;
        background: $blue-gray-900;

        .punctuation.definition.string {
          foreground: $purple-300;
        }
      }
    }
  }

  // Level 7.
  #{repeatString('.meta.structure.dictionary', 13)} {
    .punctuation.section.dictionary {
      foreground: $purple-300;
    }

    .meta.structure.dictionary.key {
      .string {
        foreground: $amber-300;
        background: $blue-gray-900;

        .punctuation.definition.string {
          foreground: $amber-300;
        }
      }
    }
  }

  // Level 8 - n.
  #{repeatString('.meta.structure.dictionary', 15)} {
    .punctuation.section.dictionary {
      foreground: $amber-300;
    }

    .meta.structure.dictionary.key {
      .string {
        foreground: $amber-300;
        background: $blue-gray-900;

        .punctuation.definition.string {
          foreground: $amber-300;
        }
      }
    }
  }
}
