<commit_before>:root {
  @each $color in map-keys($palettes) {
    @each $color-type in map-keys(map-get($palettes, $color)) {
        --#{$color}_#{$color-type}: colors(#{$color}, $color-type)
      }
  }
}

html {
  touch-action: manipulation;
}

body {
  margin: base(18) base(24);
  margin-top: 0;
  transition: 0.3s;

  @include mobile {
    margin: $base;
  }
}

section {
  &.labelled {
    margin: base(24) 0;
    position: relative;
    padding-left: base(9);
    border-left: 0.1rem solid colors(gray, light);

    @include mobile {
      border: none;
      padding-left: 0;
    }

    &::before {
      content: attr(data-type);
      writing-mode: vertical-lr;
      transform: rotate(180deg);
      color: colors(gray);
      font-size: base(3);
      font-weight: 400;
      font-family: "Source Serif Pro", serif;
      display: inline-block;
      position: absolute;
      left: - base(6);
      top: 0.2rem;

      @include mobile {
        display: block;
        writing-mode: initial;
        transform: none;
        left: 0;
        top: - base(6);
        font-size: base(2);
      }
    }
  }

  &.palette {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
}

.color {
  background-color: white;
  width: base(35);
  box-shadow: 0 0.2rem 0 $border-color;
  margin-top: base(3);
  margin-bottom: base(3);
  margin-right: base(6);
  border-radius: base();
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: flex-end;

  &, & * {
    transition: height 0.3s, width 0.3s;
  }

  @include mobile {
    width: base(22);
  }
}

.swatch {
  height: base(22);
  width: auto;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin: base(2);
  display: flex;
  justify-content: center;

  &.is-dark { 
    color: colors(light);
  }

  p.hex { 
    opacity: 0.6;
    align-self: flex-end;
    font-size: base(2);
    @include mobile { align-self: center; margin-bottom: 0; }
  }

  & ~ & {
    margin-top: 0;
  }

  @include mobile {
    cursor: default;
    height: base(12);
  }


  &:hover .flasher {
    transform: translateY(0);
  }
<commit_msg>Demo styling<commit_after>:root {
  @each $color in map-keys($palettes) {
    @each $color-type in map-keys(map-get($palettes, $color)) {
        --#{$color}_#{$color-type}: colors(#{$color}, $color-type)
      }
  }
}

html {
  touch-action: manipulation;
}

body {
  margin: base(18) base(24);
  margin-top: 0;
  transition: 0.3s;

  @include mobile {
    margin: base(4);
  }
}

section {
  &.labelled {
    margin: base(24) 0;
    position: relative;
    padding-left: base(9);
    border-left: 0.1rem solid colors(gray, light);

    @include mobile {
      border: none;
      padding-left: 0;
    }

    &::before {
      content: attr(data-type);
      writing-mode: vertical-lr;
      transform: rotate(180deg);
      color: colors(gray);
      font-size: base(3);
      font-weight: 400;
      font-family: "Source Serif Pro", serif;
      display: inline-block;
      position: absolute;
      left: - base(6);
      top: 0.2rem;

      @include mobile {
        display: block;
        writing-mode: initial;
        transform: none;
        left: 0;
        top: - base(6);
        font-size: base(2);
      }
    }
  }

  &.palette {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
}

.color {
  background-color: white;
  width: base(35);
  box-shadow: 0 0.2rem 0 $border-color;
  margin-top: base(3);
  margin-bottom: base(3);
  margin-right: base(6);
  border-radius: base();
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: flex-end;

  &, & * {
    transition: height 0.3s, width 0.3s;
  }

  @include mobile {
    width: base(22);
  }
}

.swatch {
  height: base(22);
  width: auto;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin: base(2);
  display: flex;
  justify-content: center;

  @include mobile {
    cursor: default;
    height: base(12);
    margin: 0;
    &:first-child {
      border-top-left-radius: base();
      border-top-right-radius: base();
    }
  }

  &.is-dark { 
    color: colors(light);
  }

  p.hex { 
    opacity: 0.6;
    align-self: flex-end;
    font-size: base(2);
    @include mobile { align-self: center; margin-bottom: 0; }
  }

  & ~ & {
    margin-top: 0;
  }



  &:hover .flasher {
    transform: translateY(0);
  }

{'fraction_non_alphanumeric': 0.15875912408759124, 'fraction_numerical': 0.024635036496350366, 'mean_word_length': 2.2994732881866065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1821597', 'n_tokens_mistral': 1688, 'n_tokens_neox': 1591, 'n_words': 358}