-
Notifications
You must be signed in to change notification settings - Fork 223
Frequently Asked Questions (FAQ)
Definitely possible, see instructions in Getting Started guide.
Short answer: A personal preference that I’ve noticed working with my clients.
Long(er) answer: The reason for choosing Vue.js over React or some other library is how easy it is to learn. If you know HTML, CSS, and a bit of JavaScript you’re ready to start using this tool and getting involved. This becomes especially important when we want to involve designers more into the process and move further away from static design tools. In addition, static site generators like Jekyll give you a bit too much freedom, which makes it harder for people to follow specific guidelines or a workflow.
Compared to Atomic Design, this setup doesn’t include molecule/page levels. They’re omitted to help reduce the complexity of the system for its end-users.
Organizations that have more than just Vue.js based applications can benefit from Vue Design System as well. Tokens which store visual design attributes are universal and can be used on any platform.
Definitely. See Theo’s docs. It allows you to convert the tokens to almost any format you can think of. The formats used are being configured in package.json.
It is, but currently you’ll have to use Git Bash or something else that can run shell scripts. See instructions in Getting Started.
Vue Design System uses a customized version of Vue Styleguidist for the styleguide part which already supports something similar. You can for example define multiple examples in markdown format in the component’s <docs>
section. See the documentation for Vue Styleguidist and React Styleguidist’s explanation on the differences between Storybook and Styleguidist.
Icons are inside src/assets/icons
directory, so you can just add any icons that you need. Use for example SVG files from Font Awesome.
Vue Design System uses Typekit’s Web Font Loader which is easy to configure. To load your own font files, see Getting Started with WebFontLoader. Currently, the app is loading Fira Sans and a few different weights from Google Fonts. See src/utils/webFontLoader.js
for an example.
Definitely! First, import tokens inside the component you want to use them in:
<script>
import designTokens from "@/assets/tokens/tokens.raw.json";
</script>
Then, pass the data:
<script>
export default {
data() {
return {
tokens: designTokens.props
};
}
};
</script>
Once done, you can utilize tokens inside <template>
like this:
<template>
<a-thing :style="{color: tokens.color_vermilion.value}" />
</template>
Vue Design System is not a front-end component library and never will be. Instead it tries to provide you and your team a set of organized tools, patterns & practices to build upon, so that you can get started with the actual design system faster.
.wrapper {
padding: $space-large;
@media #{$media-query-large} {
padding: $space-x-large;
}
}
Definitely. Change the autoOpenBrowser
setting in config to false
.
- Getting Started: How to install and run Vue Design System.
- Terminology: Introduction to the system concepts and its hierarchy.
- Naming of Things: Naming is hard, so it’s good to have clear guidelines.
- Directory Structure: What goes where and why.
-
Working with the System: Concrete examples on how to work with
Tokens
,Elements
,Patterns
andTemplates
. - Editing Living Documentation: How to customize the living system documentation.
- Spacing: A framework for creating a predictable and harmonious spacing.
- Component Status: Clear labels that reflect the state of completion.
- Component QA: How to review new components and keep the quality high.
- Contributing: A set of guidelines for contributing to the system.
- Code of Conduct: By participating you agree to abide by its terms.
- Frequently Asked Questions: How to use icons, how to use font-face, etc.
- Changelog: See releases pafge for the full changelog.