summaryrefslogtreecommitdiff
path: root/docs/.vuepress/components/colors/theme.vue
blob: 6a9d551fa5cb1482af45f07e8835c8cd9fea81fe (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
74
75
76
77
<template>
  <div>
    <div class="color-tile-container">
      <div v-for="item in themeColors">
        <div
          :style="{ backgroundColor: item.hex }"
          :class="{ 'color-tile--border': item.border }"
          class="color-tile"
        ></div>
        <dl class="color-tile-desc">
          <dt>Color variable:</dt>
          <dd>${{ item.name }}</dd>
        </dl>
        <dl class="color-tile-desc">
          <dt>Color variable:</dt>
          <dd>${{ item.variable }}</dd>
        </dl>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      themeColors: [
        {
          name: "primary",
          variable: "blue",
          hex: "#2d60e5"
        },
        {
          name: "secondary",
          variable: "gray-800",
          hex: "#333333"
        },
        {
          name: 'light',
          variable: 'gray-100',
          hex: '#fafafa',
          border: true
        },
        {
          name: 'dark',
          variable: 'gray-900',
          hex: '#161616'
        },
        {
          name: 'info',
          variable: 'blue',
          hex: '#2d60e5'
        },
        {
          name: 'success',
          variable: 'green',
          hex: '#0a7d06'
        },
        {
          name: 'warning',
          variable: 'yellow',
          hex: '#efc100'
        },
        {
          name: 'danger',
          variable: 'red',
          hex: '#da1416'
        }
      ]
    };
  }
};
</script>

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