Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.
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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.