@new-ui/effects 0.1.8 → 0.1.9
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/README.md +8 -3
- package/dist/index.css.map +1 -1
- package/package.json +7 -7
- package/src/_variables.scss +10 -11
- package/src/index.scss +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# New UI Effects
|
|
2
2
|
|
|
3
3
|
## Install
|
|
4
|
+
|
|
4
5
|
Install New UI Effects from your terminal via npm.
|
|
5
6
|
|
|
6
7
|
```
|
|
@@ -11,15 +12,19 @@ To get started quickly, you can use the CDN files.
|
|
|
11
12
|
|
|
12
13
|
```html
|
|
13
14
|
<!-- Place this at the html head -->
|
|
14
|
-
<link
|
|
15
|
+
<link
|
|
16
|
+
rel="stylesheet"
|
|
17
|
+
href="https://cdn.jsdelivr.net/npm/@new-ui/effects@latest/dist/index.css"
|
|
18
|
+
/>
|
|
15
19
|
```
|
|
16
20
|
|
|
17
21
|
## Usage
|
|
18
22
|
|
|
19
23
|
```scss
|
|
20
24
|
// Place this at the top of your SCSS/CSS file
|
|
21
|
-
@use
|
|
25
|
+
@use '@new-ui/effects';
|
|
22
26
|
```
|
|
23
27
|
|
|
24
28
|
## Guides
|
|
25
|
-
|
|
29
|
+
|
|
30
|
+
- [Read our effects guide](https://new-ui.com/docs/foundations/effects)
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"ACAA,y3BCAA,mDAIA,oCAIA,sCAIA,oCAIA,4CAIA,0CAIA","sources":["index.css","src/_variables.scss","src/_utilities.scss"],"sourcesContent":[":root {\n --dialog-strong: 0px 16px 48px #00000029;\n --dialog: 0px 0px 0px .5px #0000000f, 0px 12px 24px #00000014, 0px 2px 3px #0000000a;\n --content: 0px 2px 3px #0000000f;\n --canvas: 0px 0px 0px #0000;\n --keyboard-key: 0 2px 0px var(--grey4);\n --focus-default: 0px 0px 0px 2px var(--blue5);\n --focus-accent: 0px 0px 0px 2px var(--blue8);\n --focus-inverse: 0px 0px 0px 2px var(--white);\n --radius-xs: .125rem;\n --radius-sm: .25rem;\n --radius-md: .375rem;\n --radius-lg: .5rem;\n --radius-xl: .75rem;\n --radius-2xl: 1rem;\n --radius-3xl: 1.5rem;\n --radius-4xl: 2rem;\n --blur-xs: .25rem;\n --blur-sm: .5rem;\n --blur-md: .75rem;\n --blur-lg: 1rem;\n --blur-xl: 1.5rem;\n --blur-2xl: 2.5rem;\n --blur-3xl: 4rem;\n --perspective-dramatic: 6.25rem;\n --perspective-near: 18.75rem;\n --perspective-normal: 31.25rem;\n --perspective-midrange: 50rem;\n --perspective-distant: 75rem;\n --aspect-video: 16 / 9;\n --default-transition-duration: .15s;\n --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n}\n\n.sh-dialog--strong {\n box-shadow: var(--dialog-strong);\n}\n\n.sh-dialog {\n box-shadow: var(--dialog);\n}\n\n.sh-content {\n box-shadow: var(--content);\n}\n\n.sh-canvas {\n box-shadow: var(--canvas);\n}\n\n.sh-default {\n box-shadow: var(--focus-default);\n}\n\n.sh-accent {\n box-shadow: var(--focus-accent);\n}\n\n.sh-inverse {\n box-shadow: var(--focus-inverse);\n}\n/*# sourceMappingURL=index.css.map */\n",":root {\n // Shadows\n --dialog-strong: 0px 16px 48px
|
|
1
|
+
{"mappings":"ACAA,y3BCAA,mDAIA,oCAIA,sCAIA,oCAIA,4CAIA,0CAIA","sources":["index.css","src/_variables.scss","src/_utilities.scss"],"sourcesContent":[":root {\n --dialog-strong: 0px 16px 48px #00000029;\n --dialog: 0px 0px 0px .5px #0000000f, 0px 12px 24px #00000014, 0px 2px 3px #0000000a;\n --content: 0px 2px 3px #0000000f;\n --canvas: 0px 0px 0px #0000;\n --keyboard-key: 0 2px 0px var(--grey4);\n --focus-default: 0px 0px 0px 2px var(--blue5);\n --focus-accent: 0px 0px 0px 2px var(--blue8);\n --focus-inverse: 0px 0px 0px 2px var(--white);\n --radius-xs: .125rem;\n --radius-sm: .25rem;\n --radius-md: .375rem;\n --radius-lg: .5rem;\n --radius-xl: .75rem;\n --radius-2xl: 1rem;\n --radius-3xl: 1.5rem;\n --radius-4xl: 2rem;\n --blur-xs: .25rem;\n --blur-sm: .5rem;\n --blur-md: .75rem;\n --blur-lg: 1rem;\n --blur-xl: 1.5rem;\n --blur-2xl: 2.5rem;\n --blur-3xl: 4rem;\n --perspective-dramatic: 6.25rem;\n --perspective-near: 18.75rem;\n --perspective-normal: 31.25rem;\n --perspective-midrange: 50rem;\n --perspective-distant: 75rem;\n --aspect-video: 16 / 9;\n --default-transition-duration: .15s;\n --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n}\n\n.sh-dialog--strong {\n box-shadow: var(--dialog-strong);\n}\n\n.sh-dialog {\n box-shadow: var(--dialog);\n}\n\n.sh-content {\n box-shadow: var(--content);\n}\n\n.sh-canvas {\n box-shadow: var(--canvas);\n}\n\n.sh-default {\n box-shadow: var(--focus-default);\n}\n\n.sh-accent {\n box-shadow: var(--focus-accent);\n}\n\n.sh-inverse {\n box-shadow: var(--focus-inverse);\n}\n/*# sourceMappingURL=index.css.map */\n",":root {\n // Shadows\n --dialog-strong: 0px 16px 48px rgb(0 0 0 / 16%);\n --dialog:\n 0px 0px 0px 0.5px rgb(0 0 0 / 6%), 0px 12px 24px rgb(0 0 0 / 8%),\n 0px 2px 3px rgb(0 0 0 / 4%);\n --content: 0px 2px 3px rgb(0 0 0 / 6%);\n --canvas: 0px 0px 0px rgb(0 0 0 / 0%);\n --keyboard-key: 0 2px 0px var(--grey4);\n\n // Focus\n --focus-default: 0px 0px 0px 2px var(--blue5);\n --focus-accent: 0px 0px 0px 2px var(--blue8);\n --focus-inverse: 0px 0px 0px 2px var(--white);\n\n // Radius\n --radius-xs: 0.125rem;\n --radius-sm: 0.25rem;\n --radius-md: 0.375rem;\n --radius-lg: 0.5rem;\n --radius-xl: 0.75rem;\n --radius-2xl: 1rem;\n --radius-3xl: 1.5rem;\n --radius-4xl: 2rem;\n\n // Blur\n --blur-xs: 0.25rem;\n --blur-sm: 0.5rem;\n --blur-md: 0.75rem;\n --blur-lg: 1rem;\n --blur-xl: 1.5rem;\n --blur-2xl: 2.5rem;\n --blur-3xl: 4rem;\n\n // Perspective\n --perspective-dramatic: 6.25rem;\n --perspective-near: 18.75rem;\n --perspective-normal: 31.25rem;\n --perspective-midrange: 50rem;\n --perspective-distant: 75rem;\n\n // Aspect Video\n --aspect-video: 16 / 9;\n\n // Transition Duration\n --default-transition-duration: 150ms;\n --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n",".sh-dialog--strong {\n box-shadow: var(--dialog-strong);\n}\n\n.sh-dialog {\n box-shadow: var(--dialog);\n}\n\n.sh-content {\n box-shadow: var(--content);\n}\n\n.sh-canvas {\n box-shadow: var(--canvas);\n}\n\n.sh-default {\n box-shadow: var(--focus-default);\n}\n\n.sh-accent {\n box-shadow: var(--focus-accent);\n}\n\n.sh-inverse {\n box-shadow: var(--focus-inverse);\n}\n"],"names":[],"version":3,"file":"index.css.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@new-ui/effects",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Layering, elevations, and effects styles",
|
|
5
5
|
"source": "src/index.scss",
|
|
6
6
|
"main": "dist/index.css",
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "git+https://github.com/
|
|
22
|
+
"url": "git+https://github.com/create-new-ui/foundations.git"
|
|
23
23
|
},
|
|
24
24
|
"author": "@planetabhi",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"bugs": {
|
|
27
|
-
"url": "https://github.com/
|
|
27
|
+
"url": "https://github.com/create-new-ui/foundations/issues"
|
|
28
28
|
},
|
|
29
|
-
"homepage": "https://github.com/
|
|
29
|
+
"homepage": "https://github.com/create-new-ui/foundations#readme",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@parcel/transformer-sass": "^2.16.
|
|
32
|
-
"autoprefixer": "^10.4.
|
|
33
|
-
"parcel": "^2.16.
|
|
31
|
+
"@parcel/transformer-sass": "^2.16.3",
|
|
32
|
+
"autoprefixer": "^10.4.23",
|
|
33
|
+
"parcel": "^2.16.3"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/src/_variables.scss
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
// Shadows
|
|
3
|
-
--dialog-strong: 0px 16px 48px
|
|
4
|
-
--dialog:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
--content: 0px 2px 3px
|
|
8
|
-
--canvas: 0px 0px 0px
|
|
3
|
+
--dialog-strong: 0px 16px 48px rgb(0 0 0 / 16%);
|
|
4
|
+
--dialog:
|
|
5
|
+
0px 0px 0px 0.5px rgb(0 0 0 / 6%), 0px 12px 24px rgb(0 0 0 / 8%),
|
|
6
|
+
0px 2px 3px rgb(0 0 0 / 4%);
|
|
7
|
+
--content: 0px 2px 3px rgb(0 0 0 / 6%);
|
|
8
|
+
--canvas: 0px 0px 0px rgb(0 0 0 / 0%);
|
|
9
9
|
--keyboard-key: 0 2px 0px var(--grey4);
|
|
10
10
|
|
|
11
11
|
// Focus
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
--blur-xs: 0.25rem;
|
|
28
28
|
--blur-sm: 0.5rem;
|
|
29
29
|
--blur-md: 0.75rem;
|
|
30
|
-
--blur-lg:
|
|
30
|
+
--blur-lg: 1rem;
|
|
31
31
|
--blur-xl: 1.5rem;
|
|
32
32
|
--blur-2xl: 2.5rem;
|
|
33
|
-
--blur-3xl:
|
|
33
|
+
--blur-3xl: 4rem;
|
|
34
34
|
|
|
35
35
|
// Perspective
|
|
36
36
|
--perspective-dramatic: 6.25rem;
|
|
37
37
|
--perspective-near: 18.75rem;
|
|
38
38
|
--perspective-normal: 31.25rem;
|
|
39
|
-
--perspective-midrange:
|
|
40
|
-
--perspective-distant:
|
|
39
|
+
--perspective-midrange: 50rem;
|
|
40
|
+
--perspective-distant: 75rem;
|
|
41
41
|
|
|
42
42
|
// Aspect Video
|
|
43
43
|
--aspect-video: 16 / 9;
|
|
@@ -46,4 +46,3 @@
|
|
|
46
46
|
--default-transition-duration: 150ms;
|
|
47
47
|
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
48
48
|
}
|
|
49
|
-
|
package/src/index.scss
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@use 'variables';
|
|
2
|
-
@use 'utilities';
|
|
2
|
+
@use 'utilities';
|