![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@gradient-js/css
Advanced tools
@gradient-js/css
gradient-js
module for css gradient generation
yarn add @gradient-js/css
npm install --save @gradient-js/css
<script src="https://unpkg.com/gradient-js/css@x.x.x/css.js">
import { Css } from '@gradient-js/css';
const css = new Css();
const gradient = css.get(colors, config);
In order to create a gradient you will need to pass an array of colors
and an options
object to the Css' get
method. colors
should be an array of strings in any valid css format (rgb(a), hex or hsl(a)). options
object consists of the CoreOptions and following properties:
type CssOptions = CoreOptions & {
type: 'linear' | 'radial';
angle?: number;
left?: number;
top?: number;
shape?: 'ellipse' | 'circle';
extentKeyword?: 'none' | 'closest-side' | 'closest-corner' | 'farthest-side' | 'farthest-corner';
};
Where each property can be described as it follows:
Option | Type | Description |
---|---|---|
type | 'linear' or 'radial' | CSS gradient type - linear or radial |
angle | number | Applied to linear gradients only |
left | number | Applied to radial gradients only |
top | number | Applied to radial gradients only |
shape | 'ellipse' or 'circle' | Applied to radial gradients only |
extentKeyword | 'none' or 'closest-side' or 'closest-corner' or 'farthest-side' or 'farthest-corner' | Applied to radial gradients only |
FAQs
Gradient-js css generation module
We found that @gradient-js/css 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.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.