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.
Implementation of the Cora-UI Guidelines
yarn install
to install dependenciesyarn build
to compile scss to cssyarn start
to serve the example html, useful for creating and testing new stylesyarn release
follow prompts to publish to npmReference the package and most recent version directly in your html like so:
<link rel="stylesheet" href="https://unpkg.com/cora-ui@<version>/dist/index.css">
You can find the latest version hosted on npm
cora-
prefix to avoid conflictsscss/base.scss
.cora-h1
through cora-h7
and cora-p
cora-color-<name>--<type>
. The color palette is defined in /scss/colors.scss
. Colors can be used as follows:<div class="cora-color-blackOlive cora-color-eggShell--bg">
Black Olive text and Egg Shell background
</div>
name | class | background |
---|---|---|
Egg Shell | cora-color-eggShell | cora-color-eggShell--bg |
Desert Sand | cora-color-desertSand | cora-color-desertSand--bg |
Pastel Pink | cora-color-pastelPink | cora-color-pastelPink--bg |
Black Olive | cora-color-blackOlive | cora-color-blackOlive--bg |
Raisin Black | cora-color-raisinBlack | cora-color-raisinBlack--bg |
Aztec Gold | cora-color-aztecGold | cora-color-aztecGold--bg |
<div class="cora-colorScheme-primaryDark">
Egg Shell text and Black Olive background
</div>
name | class |
---|---|
Primary Light | cora-colorScheme-primaryLight |
Primary Dark | cora-colorScheme-primaryDark |
Alternate Light | cora-colorScheme-alternateLight |
Alternate Dark | cora-colorScheme-alternateDark |
Secondary Dark | cora-colorScheme-secondaryDark |
cora-btn
and cora-cta
classcora-btn-light
option and --disabled
modifier available<div class="cora-btn">Button</div>
<div class="cora-btn--disabled">Disabled Button</div>
<div class="cora-btn-light">Light Button</div>
<div class="cora-btn-light--disabled">Light Disabled Button</div>
<div class="cora-cta">Call to Action</div>
<div class="cora-cta--disabled">Disabled Call to Action</div>
@font-face {
font-family: 'ProximaNova-Regular';
src: asset-url('path/to/font');
}
@font-face {
font-family: 'ProximaNova-Semibold';
src: asset-url('path/to/font');
}
@font-face {
font-family: 'Monday';
src: asset-url('path/to/font');
}
<input>
elements can be styled with cora-input
and only have one variant which can be triggered with the --alternate
modifier<input class='cora-input' placeholder='Normal input' />
<input class='cora-input--alternate' placeholder='Alternate input' />
cora-alert
class.<div class="cora-alert">
Alert banner message
</div>
FAQs
UI guide for Cora
We found that cora-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.