Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cosmic-vue
Advanced tools
Cosmic-vue is a implementation of cosmic, which is a meta component framework.
Cosmic-vue is a implementation of cosmic, which is a meta component framework.
🚧ing...welcome to contribute!
You should set resolve.alias
option in your vite.config.js or other build config, such as:
// vite.config.js
{
resolve: {
alias: {
'cosmic-ui': 'cosmic-ui-alpha', // default ui of cosmic
// 'cosmic-ui': resolve('../local-ui-folder'),
}
}
}
Default Cosmic UI packages provides the following:
.
├── dist
│ ├── style.css # CSS of all components
│ ├── variables.css # Design Tokens
│ ├── utilities.css # Default utilities class
│ ├── ui.css # Bundle CSS = style.css + variables.css + utilities.css
│ ├── index.es.js # exports of all css modules in es module
│ └── index.umd.js # exports of all css modules in umd
└── ...
Generally, you should import ui.css
in your project.
If you need to decide some design token yourself, you can import them separately:
@import 'cosmic-ui/style.css';
@import 'cosmic-ui/utilities.css';
@import './your-variables.css';
It is not necessary to import utilities.css
if using utility-first CSS framework (Windi Css / Tailwind CSS) in your project.
<script>
import { button, buttonRouned } from 'cosmic-ui';
import { buttonCustomed } from './button-customed.css';
</script>
<template>
<Button />
<Button :styles="button" />
<Button :styles="buttonRouned" />
<Button :styles="buttonCustomed" />
<template>
FAQs
Cosmic-vue is a implementation of cosmic, which is a meta component framework.
The npm package cosmic-vue receives a total of 11 weekly downloads. As such, cosmic-vue popularity was classified as not popular.
We found that cosmic-vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.