Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@esri/calcite-base
Advanced tools
Changelog
1.2.0
Readme
The calcite-base repository holds the variables and mixins used in Calcite Web. This includes resources regarding:
If you use npm, installation is as easy as:
npm install @esri/calcite-base
You can also download the latest release manually.
In a Sass project, simply import calcite-base into your project and use the variables/mixins:
@import "./node_modules/@esri/calcite-base/dist/_index.scss";
.myClass {
@include font-size(-1);
}
If you only require certain mixins, you can import each section directly as well:
@import "./node_modules/@esri/calcite-base/dist/_type.scss";
.myClass {
@include avenir-light();
@include font-size(-1);
@include leading(2);
@include tracking(166);
@include word-spacing(200);
}
If you are using PostCSS (or standard CSS) there are a series of files which declare the variables utilizing custom properties (CSS Variables). You can use these along with something like the postcss-custom-properties library to utilize the base colors, styles, etc in your postcss project:
@import "./node_modules/@esri/calcite-base/dist/variables.css";
.myClass {
box-shadow: var(--shadow-1);
}
If you need some of these values and are using a CSS-in-JS approach, you can import them from the JavaScript file using ES6 modules:
import {avenirLight} from "@esri/calcite-base";
console.log(avenirLight); // '"Avenir Next", "Avenir", "Helvetica Neue", sans-serif'
Note when using partial imports like this, the hyphenated variables become camel case.
COPYRIGHT © 2019 Esri
All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
This material is licensed for use under the Esri Master License Agreement (MLA), and is bound by the terms of that agreement. You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
For additional information, contact: Environmental Systems Research Institute, Inc. Attn: Contracts and Legal Services Department 380 New York Street Redlands, California, USA 92373 USA
email: contracts@esri.com
Please read the contribute document.
FAQs
Tokens, mixins, and other Sass utilities for Esri's Calcite Design System
The npm package @esri/calcite-base receives a total of 556 weekly downloads. As such, @esri/calcite-base popularity was classified as not popular.
We found that @esri/calcite-base demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 33 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.