summaryrefslogtreecommitdiff
path: root/scss/tests/files/general/maps-example-lists.scss
blob: 00cf9ba17b6570614876f25bfd7b45c438adb880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@option style:legacy;

// Taken from the Ruby CHANGELOG
$themes: (
  mist (
    header #DCFAC0,
    text   #00968B,
    border #85C79C
  ),
  spring (
    header #F4FAC7,
    text   #C2454E,
    border #FFB158
  ),
  // ...
);

@mixin themed-header($theme-name) {
  h1 {
    color: map-get(map-get($themes, $theme-name), header);
  }
}

div {
  @include themed-header(spring);
}