Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@colorline/colorline-designsystem
Advanced tools
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.
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 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 use hyphen as word separator
@import '../node_modules/@colorline/colorline-designsystem/dist/system/tokens/tokens.scss';
.circle {
border-radius: $radius-circle; /* 50% */
}
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';
Tokens
, Elements
, Patterns
and Templates
.FAQs
Color Line Design System
The npm package @colorline/colorline-designsystem receives a total of 0 weekly downloads. As such, @colorline/colorline-designsystem popularity was classified as not popular.
We found that @colorline/colorline-designsystem demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.