0.10.0 • Published 4 years ago

@colorline/colorline-designsystem v0.10.0

Weekly downloads
129
License
MIT
Repository
github
Last release
4 years ago

Color Line Design System

Color Line Design System is an open source tool for building UI Design Systems with Vue.js. It provides you and your team a set of organized tools, patterns & practices that work as the foundation for your application development.

Built on Vue Design System. This tool is built on top of Vue.js, Vue Styleguidist, Webpack, and Theo and is aimed for designers and front-end developers who have at least basic knowledge of component based workflows + HTML, SCSS & JavaScript.

Usage

import {
  ColorLineUiLibrary,
  config,
  DateHelper, //optional
  DOMHelper, //optional
  JSONManipulator, //optional
  SmoothScroll, //optional
} from '@colorline/colorline-designsystem'
import '@colorline/colorline-designsystem/dist/system/system.css'
import '@colorline/colorline-designsystem/dist/system/fonts/fonts.css'
// Fonts are optional. Remember to set up your bundler to include the font files.

config.setValue('svgPath', 'path_to_public_svg_icon_folder')

Vue.use(ColorLineUiLibrary)

Tokens in JavaScript

Tokens in JavaScript use underscore as word separator

import tokens from '@colorline/colorline-designsystem/dist/system/tokens/tokens.json'

console.log(tokens['radius_circle']) /* 50% */

Tokens in SCSS

Tokens in SCSS use hyphen as word separator

@import '../node_modules/@colorline/colorline-designsystem/dist/system/tokens/tokens.scss';

.circle {
  border-radius: $radius-circle; /* 50% */
}

Option: Using single components instead of entire system

You can optionally only use the components you need. To do this you should skip importing and using ColorLineUiLibrary, and instead import the components directly.

// In your Vue component's script section:
import InfoMessage from '@colorline/colorline-designsystem/dist/system/elements/InfoMessage'
export default {
  name: 'YourComponent',
  components: {
    InfoMessage,
  },
}

If you opt to not include the global CSS system.css you will also need to import the component CSS in your component's style section. Be aware that the styles need to be imported in a clean CSS or SCSS style block, as module and scoped blocks break imported style definitions.

@import '../node_modules/@colorline/colorline-designsystem/dist/system/elements/InfoMessage.css';

Vue Design System

Features

  • A set of interconnected patterns & practices for you and your team.
  • A well thought-out terminology, naming conventions, and hierarchy.
  • Get an automated overview of how your design system progresses over time.
  • Global design tokens in YAML format that you can use inside any component.
  • Automatic generation of living, user editable documentation.
  • Easily export and use your Design System as an NPM dependency in another Vue.js or Nuxt.js project.
  • Create a token, an element, or a pattern, and it’s immediately available across all components.
  • Pre-configured Prettier setup for auto-formatting code on both save and before commit.
  • Live Reloading, Autoprefixing, SCSS, and helper functions + simple and sane defaults for SVG and Webfont usage out-of-the-box.
  • Documentation and the app logic are separated, so you can have public docs while the app itself stays private.
  • And more…

Documentation

0.10.0

4 years ago

0.9.19

4 years ago

0.9.16

4 years ago

0.9.17

4 years ago

0.9.18

4 years ago

0.9.15

4 years ago

0.9.13

4 years ago

0.9.14

4 years ago

0.9.12

4 years ago

0.9.11

4 years ago

0.9.10

4 years ago

0.9.9

4 years ago

0.9.8

4 years ago

0.9.7

4 years ago

0.9.4

4 years ago

0.9.6

4 years ago

0.9.5

4 years ago

0.9.3

4 years ago

0.9.2

4 years ago

0.9.0

4 years ago

0.9.1

4 years ago

0.8.8

4 years ago

0.8.7

4 years ago

0.8.6

4 years ago

0.8.5

4 years ago

0.8.4

4 years ago

0.8.3

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.20

4 years ago

0.7.19

4 years ago

0.7.18

4 years ago

0.7.17

4 years ago

0.7.16

4 years ago

0.7.15

4 years ago

0.7.13

4 years ago

0.7.14

4 years ago

0.7.12

4 years ago

0.7.11

4 years ago

0.7.10

4 years ago

0.7.9

4 years ago

0.7.8

4 years ago

0.7.7

4 years ago

0.7.4

4 years ago

0.7.6

4 years ago

0.7.5

4 years ago

0.7.3

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.9

4 years ago

0.6.8

4 years ago

0.6.7

4 years ago

0.6.6

4 years ago

0.6.5

4 years ago

0.6.4

4 years ago

0.6.3

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.4

4 years ago

0.5.3

4 years ago

0.5.5

4 years ago

0.5.2

4 years ago

0.5.0

4 years ago

0.5.1

4 years ago

0.4.30

4 years ago

0.4.29

4 years ago

0.4.28

4 years ago

0.4.27

4 years ago

0.4.26

4 years ago

0.4.25

4 years ago

0.4.24

4 years ago

0.4.23

4 years ago

0.4.22

4 years ago

0.4.21

4 years ago

0.4.20

4 years ago

0.4.19

4 years ago

0.4.18

4 years ago

0.4.17

4 years ago

0.4.16

4 years ago

0.4.15

4 years ago

0.4.14

4 years ago

0.4.13

4 years ago

0.4.12

4 years ago

0.4.11

4 years ago

0.4.10

4 years ago

0.4.9

4 years ago

0.4.8

4 years ago

0.4.7

4 years ago

0.4.6

4 years ago

0.4.5

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago