Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<template>
<div>
<div class="color-tile-container">
<div v-for="item in baseColors">
<div v-for="item in baseColors" :key="item.variable">
<div
:style="{ backgroundColor: item.hex }"
:class="{ 'color-tile--border': item.border }"
class="color-tile"
></div>
<dl class="color-tile-desc">
<dt>Variable:</dt>
<dd>${{ item.name }}</dd>
<dd>{{ '$' + item.name }}</dd>
</dl>
<dl class="color-tile-desc">
<dt>Color Variable:</dt>
Expand All @@ -20,11 +20,9 @@
</div>
</template>

<script>
export default {
data() {
return {
baseColors: [
<script setup>
import { ref } from 'vue';
const baseColors = ref([
{
name: 'blue',
variable: '$blue-500',
Expand All @@ -45,12 +43,9 @@ export default {
variable: '$yellow-500',
hex: '#efc100'
}
]
};
}
};
])
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "./colors.scss";
</style>
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<template>
<div>
<div class="color-tile-container">
<div v-for="color in colors">
<div v-for="color in colors" :key="color.variable">
<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>
<dd>{{ '$' + color.variable }}</dd>
</dl>
<dl class="color-tile-desc">
<dt>Hex:</dt>
Expand All @@ -20,21 +20,16 @@
</div>
</template>

<script>
export default {
data() {
return {
colors: [
<script setup>
import { ref } from 'vue';
const colors = ref([
{
variable: 'blue-500',
hex: '#2d60e5'
}
]
};
}
};
]);
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "./colors.scss";
</style>
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<template>
<div>
<div class="color-tile-container">
<div v-for="color in colors">
<div v-for="color in colors" :key="color.variable">
<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>
<dd>{{ '$' + color.variable }}</dd>
</dl>
<dl class="color-tile-desc">
<dt>Hex:</dt>
Expand All @@ -20,11 +20,9 @@
</div>
</template>

<script>
export default {
data() {
return {
colors: [
<script setup>
import { ref } from 'vue';
const colors = ref([
{
variable: 'gray-100',
hex: '#f4f4f4',
Expand Down Expand Up @@ -62,12 +60,9 @@ export default {
variable: 'gray-900',
hex: '#161616'
}
]
};
}
};
])
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "./colors.scss";
</style>
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<template>
<div>
<div class="color-tile-container">
<div v-for="color in colors">
<div v-for="color in colors" :key="color.variable">
<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>
<dd>{{ '$' + color.variable }}</dd>
</dl>
<dl class="color-tile-desc">
<dt>Hex:</dt>
Expand All @@ -20,21 +20,16 @@
</div>
</template>

<script>
export default {
data() {
return {
colors: [
<script setup>
import { ref } from 'vue';
const colors = ref([
{
variable: 'green-500',
hex: '#0a7d06'
}
]
};
}
};
])
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "./colors.scss";
</style>
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<template>
<div>
<div class="color-tile-container">
<div v-for="color in colors">
<div v-for="color in colors" :key="color.variable">
<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>
<dd>{{ '$' + color.variable }}</dd>
</dl>
<dl class="color-tile-desc">
<dt>Hex:</dt>
Expand All @@ -20,21 +20,15 @@
</div>
</template>

<script>
export default {
data() {
return {
colors: [
<script setup>
const colors = ref([
{
variable: 'red-500',
hex: '#da1416'
}
]
};
}
};
])
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "./colors.scss";
</style>
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
<template>
<div>
<div class="color-tile-container">
<div v-for="item in themeColors">
<div v-for="item in themeColors" :key="item.variable">
<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>
<dd>{{ '$' + item.name }}</dd>
</dl>
<dl class="color-tile-desc">
<dt>Color variable:</dt>
<dd>${{ item.variable }}</dd>
<dd>{{ '$' + item.variable }}</dd>
</dl>
</div>
</div>
</div>
</template>

<script>
export default {
data() {
return {
themeColors: [
<script setup>
import { ref } from 'vue';
const themeColors = ref([
{
name: "primary",
variable: "blue",
Expand Down Expand Up @@ -66,12 +64,9 @@ export default {
variable: 'red',
hex: '#da1416'
}
]
};
}
};
])
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "./colors.scss";
</style>
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<template>
<div>
<div class="color-tile-container">
<div v-for="color in colors">
<div v-for="color in colors" :key="color.variable">
<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>
<dd>{{ '$' + color.variable }}</dd>
</dl>
<dl class="color-tile-desc">
<dt>Hex:</dt>
Expand All @@ -21,20 +21,14 @@
</template>

<script>
export default {
data() {
return {
colors: [
const colors = ref([
{
variable: 'yellow-500',
hex: '#efc100'
}
]
};
}
};
])
</script>

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