Skip to content

Instantly share code, notes, and snippets.

@nucleogenesis
Created June 23, 2020 23:50
Show Gist options
  • Save nucleogenesis/62a1a32337338193c36df567b3e16470 to your computer and use it in GitHub Desktop.
Save nucleogenesis/62a1a32337338193c36df567b3e16470 to your computer and use it in GitHub Desktop.
KIconDebug.vue
<template>
<div class="screen-owner" style="position: fixed; top: 0; overflow-y:scroll; left: 0; right: 0; bottom: 0; height: 100vh; width: 100vw; background: white; padding: 12.5%; z-index: 9999;">
<h1> Icons </h1>
<KGrid>
<KGridItem
v-for="aliases in blackIcons"
:key="aliases[0]"
:layout4="{ span: 2 }"
:layout8="{ span: 4 }"
:layout12="{ span: 4 }"
>
<div>
<KIcon :icon="aliases[0]" />
<span style="margin-left: 8px">{{ aliases.join(", ") }}</span>
</div>
</KGridItem>
</KGrid>
<h1> Icons with Color Tokens </h1>
<KGrid>
<KGridItem
v-for="aliases in coloredIcons"
:key="aliases[0]"
:layout4="{ span: 2 }"
:layout8="{ span: 4 }"
:layout12="{ span: 4 }"
>
<div>
<KIcon :icon="aliases[0]" />
<span style="margin-left: 8px">{{ aliases.join(", ") }}</span>
</div>
</KGridItem>
</KGrid>
</div>
</template>
<script>
import { themeTokens } from '../styles/theme';
import { sortedBlackIcons, sortedColoredIcons } from './iconDefinitions';
export default {
name: 'KIconDebug',
computed: {
blackIcons() {
return sortedBlackIcons;
},
coloredIcons() {
return sortedColoredIcons;
},
},
};
</script>
<style scoped lang="scss">
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment