-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs(colors): update colors guide page * docs(colors): remove extra info from colors config page * chore: typo fixes Co-authored-by: Vitaly <[email protected]> * fix: make getComputedColor writtable --------- Co-authored-by: Vitaly <[email protected]>
- Loading branch information
1 parent
6a77ad1
commit 91ba95f
Showing
18 changed files
with
279 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
const app = createApp(App) | ||
.use( | ||
createVuestic({ | ||
config: { | ||
colors: { | ||
variables: { | ||
primary: "#B456C0", | ||
custom: "#A35600", | ||
}, | ||
}, | ||
}, | ||
}) | ||
) | ||
.mount("#app"); | ||
createVuestic({ | ||
config: { | ||
colors: { | ||
presets: { | ||
light: { | ||
primary: '#f0f0f0', | ||
myCoolColor: '#f00f0f', | ||
} | ||
} | ||
}, | ||
}, | ||
}) |
File renamed without changes.
83 changes: 83 additions & 0 deletions
83
packages/docs/page-config/styles/colors/components/PaletteGrid.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<template> | ||
<div class="color-grid"> | ||
<div | ||
v-for="{ type, colors } in colorNames" | ||
:key="type" | ||
class="flex flex-wrap mb-8" | ||
> | ||
<div class="px-4"> | ||
<h6 class="va-text-capitalize">{{ type }}</h6> | ||
<p> | ||
{{ $t('colors.palette.' + type) }} | ||
</p> | ||
</div> | ||
<div | ||
v-for="name in colors" | ||
:key="type + name" | ||
class="color-grid__item-wrapper sm:w-1/2 w-full" | ||
> | ||
<ColorsGridCard | ||
class="color-grid__item" | ||
:value="getColor(name)" | ||
:name="name" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useColors } from "vuestic-ui"; | ||
import ColorsGridCard from "./components/PaletteGridCard.vue"; | ||
const { getColor } = useColors(); | ||
const colorNames = [ | ||
{ | ||
type: "accent", | ||
colors: ["primary", "secondary", "success", "warning", "danger", "info"], | ||
}, | ||
{ | ||
type: "background", | ||
colors: [ | ||
"backgroundPrimary", | ||
"backgroundSecondary", | ||
"backgroundElement", | ||
"backgroundBorder", | ||
], | ||
}, | ||
{ | ||
type: "text", | ||
colors: ["textPrimary", "textInverted"], | ||
}, | ||
{ | ||
type: "utility", | ||
colors: ["shadow", "focus"], | ||
}, | ||
]; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
$gap: 16px; | ||
.color-grid { | ||
display: flex; | ||
flex-wrap: wrap; | ||
margin: -$gap; | ||
padding: $gap 0; | ||
p { | ||
margin-bottom: 0.25rem; | ||
} | ||
&__item { | ||
box-sizing: border-box; | ||
border: 1px solid rgba(58, 58, 58, 0.307); | ||
border-radius: 5px; | ||
&-wrapper { | ||
padding: $gap; | ||
} | ||
} | ||
} | ||
</style> |
File renamed without changes.
55 changes: 0 additions & 55 deletions
55
packages/docs/page-config/styles/colors/components/components/colors-grid.vue
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
packages/docs/page-config/styles/colors/components/theme-examples.vue
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.