css-utility-functions 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +3 -1
- package/dist/index.min.css +13 -0
- package/package.json +4 -4
package/dist/index.css
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* CSS Utility Functions
|
|
2
|
+
* CSS Utility Functions v1.0.4
|
|
3
|
+
* Author: Yair Even-Or
|
|
4
|
+
* Repository: https://github.com/yairEO/css-utility-functions
|
|
3
5
|
*
|
|
4
6
|
* A collection of reusable CSS custom functions using the @function syntax.
|
|
5
7
|
* Import this file to use all utility functions in your project.
|
package/dist/index.min.css
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSS Utility Functions v1.0.4
|
|
3
|
+
* Author: Yair Even-Or
|
|
4
|
+
* Repository: https://github.com/yairEO/css-utility-functions
|
|
5
|
+
*
|
|
6
|
+
* A collection of reusable CSS custom functions using the @function syntax.
|
|
7
|
+
* Import this file to use all utility functions in your project.
|
|
8
|
+
*
|
|
9
|
+
* ⚠️ Note: CSS @function is experimental. Check browser support before production use.
|
|
10
|
+
*
|
|
11
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/@function
|
|
12
|
+
*/
|
|
13
|
+
|
|
1
14
|
@function --alpha(--color <color>, --opacity <number>: 0.5) returns <color>{result:oklch(from var(--color) l c h/var(--opacity))}@function --lighten(--color <color>, --amount <number>: 0.1) returns <color>{result:oklch(from var(--color) calc(l + var(--amount)) c h)}@function --darken(--color <color>, --amount <number>: 0.1) returns <color>{result:oklch(from var(--color) calc(l - var(--amount)) c h)}@function --saturate(
|
|
2
15
|
--color <color>,
|
|
3
16
|
--amount <number>: 0.2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "css-utility-functions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A collection of reusable CSS custom native functions using the @function syntax",
|
|
5
5
|
"main": "dist/index.css",
|
|
6
6
|
"style": "dist/index.css",
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
"README.md"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "postcss src/index.css -o dist/index.css",
|
|
14
|
-
"build:min": "postcss src/index.css -o dist/index.min.css --env production && cp dist/index.min.css docs/index.min.css",
|
|
13
|
+
"build": "postcss src/index.css -o dist/index.css && node add-header.js dist/index.css",
|
|
14
|
+
"build:min": "postcss src/index.css -o dist/index.min.css --env production && node add-header.js dist/index.min.css && cp dist/index.min.css docs/index.min.css",
|
|
15
15
|
"build:html": "node build-html.js",
|
|
16
16
|
"build:all": "npm run build:html && npm run build && npm run build:min",
|
|
17
17
|
"watch": "nodemon --watch src --ext css --exec \"npm run build\"",
|
|
18
18
|
"watch:html": "node build-html.js --watch",
|
|
19
19
|
"dev": "concurrently \"npm run watch:html\" \"npm run watch\"",
|
|
20
20
|
"prebuild": "npm run build:html",
|
|
21
|
-
"
|
|
21
|
+
"postversion": "npm run build:all"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|
|
24
24
|
"css",
|