summaryrefslogtreecommitdiff
path: root/docs/.vuepress/components/colors/grays.vue
blob: 555399c6129f2a54f0df9dbbb682913bfa214b23 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<template>
  <div>
    <div class="color-tile-container">
      <div v-for="color in colors">
        <div
          :style="{ backgroundColor: color.hex }"
          :class="{ 'color-tile--border': color.border }"
          class="color-tile"
        ></div>
        <dl class="color-tile-desc">
          <dt>Color variable:</dt>
          <dd>${{ color.variable }}</dd>
        </dl>
        <dl class="color-tile-desc">
          <dt>Hex:</dt>
          <dd>{{ color.hex }}</dd>
        </dl>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      colors: [
        {
          variable: 'gray-100',
          hex: '#fafafa',
          border: true
        },
        {
          variable: 'gray-200',
          hex: '#f4f4f4'
        },
        {
          variable: 'gray-300',
          hex: '#dcdee0'
        },
        {
          variable: 'gray-400',
          hex: '#cccccc'
        },
        {
          variable: 'gray-500',
          hex: '#b3b3b3'
        },
        {
          variable: 'gray-600',
          hex: '#999999'
        },
        {
          variable: 'gray-700',
          hex: '#666666'
        },
        {
          variable: 'gray-800',
          hex: '#333333'
        },
        {
          variable: 'gray-900',
          hex: '#161616'
        }
      ]
    };
  }
};
</script>

<style lang="scss">
  @import "./colors.scss";
</style>