Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-preset-mantine

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-preset-mantine - npm Package Compare versions

Comparing version 1.11.1 to 1.12.0

dist/css-variables.js

4

dist/preset.js

@@ -5,4 +5,6 @@ "use strict";

const remEm = require('./postcss-rem-em');
const colorMixAlpha = require('./postcss-color-mix');
const lightDark = require('./postcss-light-dark');
const converters = require('./converters');
const theme = require('./postcss-mantine-theme');
function colorSchemeMixin(colorScheme) {

@@ -69,3 +71,5 @@ return {

lightDark(),
theme(),
nested(),
colorMixAlpha(),
remEm(),

@@ -72,0 +76,0 @@ mixins({

7

package.json
{
"name": "postcss-preset-mantine",
"version": "1.11.1",
"version": "1.12.0",
"description": "PostCSS preset for Mantine (7.0+) applications",

@@ -49,3 +49,4 @@ "main": "dist/preset.js",

"author": "rtivital@gmail.com",
"license": "MIT"
}
"license": "MIT",
"packageManager": "yarn@4.0.2"
}

@@ -209,2 +209,42 @@ # postcss-preset-mantine

## alpha function
`alpha` function can be used to add alpha channel to color. Note that it uses [color-mix](https://caniuse.com/mdn-css_types_color_color-mix) which is not supported in some older browsers.
```scss
.demo {
color: alpha(var(--mantine-color-red-4), 0.5);
border: 1px solid alpha(#ffc, 0.2);
}
```
Will be transformed to:
```scss
.demo {
color: color-mix(in srgb, var(--mantine-color-red-4), transparent 50%);
border: 1px solid color-mix(in srgb, #ffc, transparent 80%);
}
```
## lighten and darken functions
`lighten` and `darken` functions work similar to `alpha` function, but instead of adding alpha channel they add white or black color to the color with [color-mix](https://caniuse.com/mdn-css_types_color_color-mix).
```scss
.demo {
color: lighten(var(--mantine-color-red-4), 0.5);
border: 1px solid darken(#ffc, 0.2);
}
```
Will be transformed to:
```scss
.demo {
color: color-mix(in srgb, var(--mantine-color-red-4), white 50%);
border: 1px solid color-mix(in srgb, #ffc, black 20%);
}
```
## hover mixin

@@ -211,0 +251,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc