noctemyth 0.0.36

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.
Files changed (104) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +60 -0
  3. package/dist/css/noctemyth-skelton.css +11880 -0
  4. package/dist/css/noctemyth-skelton.css.map +1 -0
  5. package/dist/css/noctemyth-skelton.min.css +11880 -0
  6. package/dist/css/noctemyth-skelton.min.css.map +1 -0
  7. package/dist/css/noctemyth-utilities.css +142390 -0
  8. package/dist/css/noctemyth-utilities.css.map +1 -0
  9. package/dist/css/noctemyth-utilities.min.css +142390 -0
  10. package/dist/css/noctemyth-utilities.min.css.map +1 -0
  11. package/dist/css/noctemyth.css +51864 -0
  12. package/dist/css/noctemyth.css.map +1 -0
  13. package/dist/css/noctemyth.min.css +26439 -0
  14. package/dist/css/noctemyth.min.css.map +1 -0
  15. package/package.json +61 -0
  16. package/src/animations/fade.scss +41 -0
  17. package/src/animations/index.scss +1 -0
  18. package/src/backgrounds/dot.scss +55 -0
  19. package/src/backgrounds/gingham.scss +56 -0
  20. package/src/backgrounds/index.scss +5 -0
  21. package/src/backgrounds/rhombus.scss +49 -0
  22. package/src/backgrounds/stripe.scss +45 -0
  23. package/src/backgrounds/zigzag.scss +71 -0
  24. package/src/base/dub.scss +9 -0
  25. package/src/base/element.scss +5 -0
  26. package/src/base/index.scss +3 -0
  27. package/src/base/normalize.scss +394 -0
  28. package/src/components/accordion.scss +179 -0
  29. package/src/components/badge.scss +109 -0
  30. package/src/components/blockquote.scss +92 -0
  31. package/src/components/breadcrumbs.scss +47 -0
  32. package/src/components/button.scss +157 -0
  33. package/src/components/card.scss +89 -0
  34. package/src/components/dialogue.scss +452 -0
  35. package/src/components/div.scss +7 -0
  36. package/src/components/footer.scss +21 -0
  37. package/src/components/hamburger.scss +157 -0
  38. package/src/components/header.scss +36 -0
  39. package/src/components/heading.scss +40 -0
  40. package/src/components/image.scss +10 -0
  41. package/src/components/index.scss +26 -0
  42. package/src/components/input.scss +338 -0
  43. package/src/components/label.scss +17 -0
  44. package/src/components/link.scss +29 -0
  45. package/src/components/list.scss +16 -0
  46. package/src/components/loader.scss +72 -0
  47. package/src/components/main.scss +8 -0
  48. package/src/components/message.scss +53 -0
  49. package/src/components/modal.scss +41 -0
  50. package/src/components/nav.scss +387 -0
  51. package/src/components/paragraph.scss +12 -0
  52. package/src/components/progress.scss +43 -0
  53. package/src/components/section.scss +7 -0
  54. package/src/components/span.scss +7 -0
  55. package/src/css-variables/animation.scss +11 -0
  56. package/src/css-variables/border.scss +16 -0
  57. package/src/css-variables/color.scss +604 -0
  58. package/src/css-variables/components/breadcrumbs.scss +5 -0
  59. package/src/css-variables/components/button.scss +6 -0
  60. package/src/css-variables/components/dialogue.scss +15 -0
  61. package/src/css-variables/components/header.scss +7 -0
  62. package/src/css-variables/components/heading.scss +5 -0
  63. package/src/css-variables/components/index.scss +5 -0
  64. package/src/css-variables/index.scss +7 -0
  65. package/src/css-variables/miscellaneous.scss +8 -0
  66. package/src/css-variables/typography.scss +24 -0
  67. package/src/functions/index.scss +1 -0
  68. package/src/functions/string.scss +31 -0
  69. package/src/icons/check.scss +21 -0
  70. package/src/icons/chevron.scss +30 -0
  71. package/src/icons/index.scss +2 -0
  72. package/src/layouts/centering.scss +13 -0
  73. package/src/layouts/columns.scss +97 -0
  74. package/src/layouts/container.scss +59 -0
  75. package/src/layouts/index.scss +3 -0
  76. package/src/mixins/animation.scss +80 -0
  77. package/src/mixins/color.scss +33 -0
  78. package/src/mixins/element.scss +5 -0
  79. package/src/mixins/index.scss +5 -0
  80. package/src/mixins/responsive.scss +222 -0
  81. package/src/noctemyth-skelton.scss +12 -0
  82. package/src/noctemyth-utilities.scss +3 -0
  83. package/src/noctemyth.scss +9 -0
  84. package/src/utilities/border.scss +46 -0
  85. package/src/utilities/color.scss +327 -0
  86. package/src/utilities/decoration.scss +16 -0
  87. package/src/utilities/index.scss +7 -0
  88. package/src/utilities/positioning.scss +90 -0
  89. package/src/utilities/sizing.scss +142 -0
  90. package/src/utilities/spacing.scss +154 -0
  91. package/src/utilities/typography.scss +109 -0
  92. package/src/variables/animation.scss +8 -0
  93. package/src/variables/border.scss +81 -0
  94. package/src/variables/color.scss +1371 -0
  95. package/src/variables/components/breadcrumbs.scss +3 -0
  96. package/src/variables/components/button.scss +3 -0
  97. package/src/variables/components/dialogue.scss +12 -0
  98. package/src/variables/components/header.scss +3 -0
  99. package/src/variables/components/heading.scss +3 -0
  100. package/src/variables/components/index.scss +5 -0
  101. package/src/variables/index.scss +8 -0
  102. package/src/variables/layout.scss +28 -0
  103. package/src/variables/miscellaneous.scss +14 -0
  104. package/src/variables/typography.scss +26 -0
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "noctemyth",
3
+ "version": "0.0.36",
4
+ "description": "design system by kaminoctem",
5
+ "main": "src/noctemyth.scss",
6
+ "scripts": {
7
+ "build": "npm run build-lib",
8
+ "build-lib": "npm run build-lib-clean && npm run build-lib-main && npm run build-lib-utilities && npm run build-lib-skelton",
9
+ "build-lib-main": "npm run build-lib-sass && npm run build-lib-copy-css && npm run build-lib-copy-map && npm run build-lib-postcss && npm run build-lib-postcss-min",
10
+ "build-lib-utilities": "npm run build-lib-utilities-sass && npm run build-lib-utilities-copy-css && npm run build-lib-utilities-copy-map && npm run build-lib-utilities-postcss && npm run build-lib-utilities-postcss-min",
11
+ "build-lib-skelton": "npm run build-lib-skelton-sass && npm run build-lib-skelton-copy-css && npm run build-lib-skelton-copy-map && npm run build-lib-skelton-postcss && npm run build-lib-skelton-postcss-min",
12
+ "build-lib-clean": "rimraf dist",
13
+ "build-lib-sass": "sass src/noctemyth.scss dist/css/noctemyth.css",
14
+ "build-lib-copy-css": "node -e \"require('fs').copyFileSync('./dist/css/noctemyth.css', './dist/css/noctemyth.min.css')\"",
15
+ "build-lib-copy-map": "node -e \"require('fs').copyFileSync('./dist/css/noctemyth.css.map', './dist/css/noctemyth.min.css.map')\"",
16
+ "build-lib-postcss": "postcss --output dist/css/noctemyth.css dist/css/noctemyth.css",
17
+ "build-lib-postcss-min": "postcss --output dist/css/noctemyth.min.css dist/css/noctemyth.min.css",
18
+ "build-lib-utilities-sass": "sass src/noctemyth-utilities.scss dist/css/noctemyth-utilities.css",
19
+ "build-lib-utilities-copy-css": "node -e \"require('fs').copyFileSync('./dist/css/noctemyth-utilities.css', './dist/css/noctemyth-utilities.min.css')\"",
20
+ "build-lib-utilities-copy-map": "node -e \"require('fs').copyFileSync('./dist/css/noctemyth-utilities.css.map', './dist/css/noctemyth-utilities.min.css.map')\"",
21
+ "build-lib-utilities-postcss": "postcss --output dist/css/noctemyth-utilities.css dist/css/noctemyth-utilities.css",
22
+ "build-lib-utilities-postcss-min": "postcss --output dist/css/noctemyth-utilities.min.css dist/css/noctemyth-utilities.min.css",
23
+ "build-lib-skelton-sass": "sass src/noctemyth-skelton.scss dist/css/noctemyth-skelton.css",
24
+ "build-lib-skelton-copy-css": "node -e \"require('fs').copyFileSync('./dist/css/noctemyth-skelton.css', './dist/css/noctemyth-skelton.min.css')\"",
25
+ "build-lib-skelton-copy-map": "node -e \"require('fs').copyFileSync('./dist/css/noctemyth-skelton.css.map', './dist/css/noctemyth-skelton.min.css.map')\"",
26
+ "build-lib-skelton-postcss": "postcss --output dist/css/noctemyth-skelton.css dist/css/noctemyth-skelton.css",
27
+ "build-lib-skelton-postcss-min": "postcss --output dist/css/noctemyth-skelton.min.css dist/css/noctemyth-skelton.min.css",
28
+ "prepublishOnly": "npm run build",
29
+ "prepare": "npm run build"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/kaminoctem/noctemyth.git"
34
+ },
35
+ "keywords": [
36
+ "kaminoctem",
37
+ "sass",
38
+ "scss",
39
+ "css"
40
+ ],
41
+ "files": [
42
+ "dist",
43
+ "src",
44
+ "LICENSE",
45
+ "README.md"
46
+ ],
47
+ "author": "kaminoctem",
48
+ "license": "MIT",
49
+ "bugs": {
50
+ "url": "https://github.com/kaminoctem/noctemyth/issues"
51
+ },
52
+ "homepage": "https://github.com/kaminoctem/noctemyth#readme",
53
+ "devDependencies": {
54
+ "autoprefixer": "^10.4.20",
55
+ "cssnano": "^7.0.6",
56
+ "postcss": "^8.4.49",
57
+ "postcss-cli": "^11.0.0",
58
+ "rimraf": "^6.0.1",
59
+ "sass": "^1.82.0"
60
+ }
61
+ }
@@ -0,0 +1,41 @@
1
+ @use "../mixins/index.scss" as mixins;
2
+
3
+ //#region fade-in
4
+
5
+ // style
6
+ .fade-in {
7
+ @include mixins.animation() {
8
+ animation-name: fade-in;
9
+ }
10
+ }
11
+
12
+ // keyframes
13
+ @keyframes fade-in {
14
+ 0% {
15
+ opacity: 0;
16
+ }
17
+ 100% {
18
+ opacity: 1;
19
+ }
20
+ }
21
+ //#endregion fade-in
22
+
23
+ //#region fade-out
24
+
25
+ // style
26
+ .fade-out {
27
+ @include mixins.animation() {
28
+ animation-name: fade-out;
29
+ }
30
+ }
31
+
32
+ // keyframes
33
+ @keyframes fade-out {
34
+ 0% {
35
+ opacity: 1;
36
+ }
37
+ 100% {
38
+ opacity: 0;
39
+ }
40
+ }
41
+ //#endregion fade-out
@@ -0,0 +1 @@
1
+ @forward "./fade.scss";
@@ -0,0 +1,55 @@
1
+ @use "sass:map";
2
+ @use "../variables/index.scss" as variables;
3
+ @use "../mixins/index.scss" as mixins;
4
+
5
+ .dot {
6
+ --#{variables.$prefix}dot-color-fore: oklch(
7
+ var(--#{variables.$prefix}color-default-dot-fore-oklch) / 0.5
8
+ );
9
+ --#{variables.$prefix}dot-color-back: var(
10
+ --#{variables.$prefix}color-default-dot-back
11
+ );
12
+ --#{variables.$prefix}dot-size: 20%;
13
+
14
+ @include mixins.element();
15
+ background-color: var(--#{variables.$prefix}dot-color-back);
16
+ background-image: radial-gradient(
17
+ var(--#{variables.$prefix}dot-color-fore)
18
+ var(--#{variables.$prefix}dot-size),
19
+ transparent calc(var(--#{variables.$prefix}dot-size) + 3%)
20
+ ),
21
+ radial-gradient(
22
+ var(--#{variables.$prefix}dot-color-fore)
23
+ var(--#{variables.$prefix}dot-size),
24
+ transparent calc(var(--#{variables.$prefix}dot-size) + 3%)
25
+ );
26
+ background-position: 0 0, 1rem 1rem;
27
+ background-repeat: repeat;
28
+ background-size: 2rem 2rem;
29
+
30
+ &.is-coin {
31
+ --#{variables.$prefix}dot-size: 30%;
32
+ }
33
+
34
+ &.is-polka {
35
+ --#{variables.$prefix}dot-size: 20%;
36
+ }
37
+
38
+ &.is-pin {
39
+ --#{variables.$prefix}dot-size: 10%;
40
+ }
41
+
42
+ @if (not variables.$is-skelton) {
43
+ @each $color in variables.$colors {
44
+ $colorName: map.get($color, "name");
45
+ &.is-#{$colorName} {
46
+ --#{variables.$prefix}dot-color-fore: oklch(
47
+ var(--#{variables.$prefix}color-#{$colorName}-dot-fore-oklch) / 0.5
48
+ );
49
+ --#{variables.$prefix}dot-color-back: var(
50
+ --#{variables.$prefix}color-#{$colorName}-dot-back
51
+ );
52
+ }
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,56 @@
1
+ @use "sass:map";
2
+ @use "../variables/index.scss" as variables;
3
+ @use "../mixins/index.scss" as mixins;
4
+
5
+ .gingham {
6
+ --#{variables.$prefix}gingham-color-fore: oklch(
7
+ var(--#{variables.$prefix}color-default-gingham-fore-oklch) / 0.5
8
+ );
9
+ --#{variables.$prefix}gingham-color-back: var(
10
+ --#{variables.$prefix}color-default-gingham-back
11
+ );
12
+ --#{variables.$prefix}gingham-degree: 0deg;
13
+
14
+ @include mixins.element();
15
+ background-size: auto auto;
16
+ background-color: var(--#{variables.$prefix}gingham-color-back);
17
+ background-image: repeating-linear-gradient(
18
+ var(--#{variables.$prefix}gingham-degree),
19
+ transparent,
20
+ transparent 0.75rem,
21
+ var(--#{variables.$prefix}gingham-color-fore)
22
+ 0.75rem,
23
+ var(--#{variables.$prefix}gingham-color-fore)
24
+ 1.5rem
25
+ ),
26
+ repeating-linear-gradient(
27
+ calc(var(--#{variables.$prefix}gingham-degree) + 90deg),
28
+ transparent,
29
+ transparent 0.75rem,
30
+ var(--#{variables.$prefix}gingham-color-fore)
31
+ 0.75rem,
32
+ var(--#{variables.$prefix}gingham-color-fore)
33
+ 1.5rem
34
+ );
35
+
36
+ @for $n from 0 through 6 {
37
+ $degree: $n * 15deg;
38
+ &.is-#{$degree} {
39
+ --#{variables.$prefix}gingham-degree: #{$degree};
40
+ }
41
+ }
42
+
43
+ @if (not variables.$is-skelton) {
44
+ @each $color in variables.$colors {
45
+ $colorName: map.get($color, "name");
46
+ &.is-#{$colorName} {
47
+ --#{variables.$prefix}gingham-color-fore: oklch(
48
+ var(--#{variables.$prefix}color-#{$colorName}-gingham-fore-oklch) / 0.5
49
+ );
50
+ --#{variables.$prefix}gingham-color-back: var(
51
+ --#{variables.$prefix}color-#{$colorName}-gingham-back
52
+ );
53
+ }
54
+ }
55
+ }
56
+ }
@@ -0,0 +1,5 @@
1
+ @forward "./dot.scss";
2
+ @forward "./gingham.scss";
3
+ @forward "./rhombus.scss";
4
+ @forward "./stripe.scss";
5
+ @forward "./zigzag.scss";
@@ -0,0 +1,49 @@
1
+ @use "sass:map";
2
+ @use "../variables/index.scss" as variables;
3
+ @use "../mixins/index.scss" as mixins;
4
+
5
+ @mixin rhombus($fore, $back) {
6
+ }
7
+
8
+ .rhombus {
9
+ --#{variables.$prefix}rhombus-color-fore: oklch(
10
+ var(--#{variables.$prefix}color-default-rhombus-fore-oklch) / 0.5
11
+ );
12
+ --#{variables.$prefix}rhombus-color-back: var(
13
+ --#{variables.$prefix}color-default-rhombus-back
14
+ );
15
+ --#{variables.$prefix}rhombus-size: 1rem;
16
+
17
+ @include mixins.element();
18
+
19
+ background-color: var(--#{variables.$prefix}rhombus-color-back);
20
+ background-image: linear-gradient(135deg, var(--#{variables.$prefix}rhombus-color-fore) 25%, transparent 25%),
21
+ linear-gradient(225deg, var(--#{variables.$prefix}rhombus-color-fore) 25%, transparent 25%),
22
+ linear-gradient(45deg, var(--#{variables.$prefix}rhombus-color-fore) 25%, transparent 25%),
23
+ linear-gradient(315deg, var(--#{variables.$prefix}rhombus-color-fore) 25%, var(--#{variables.$prefix}rhombus-color-back) 25%);
24
+ background-position: var(--#{variables.$prefix}rhombus-size) 0, var(--#{variables.$prefix}rhombus-size) 0, 0 0, 0 0;
25
+ background-size: var(--#{variables.$prefix}rhombus-size) var(--#{variables.$prefix}rhombus-size);
26
+ background-repeat: repeat;
27
+
28
+ &.is-small {
29
+ --#{variables.$prefix}rhombus-size: 0.5rem;
30
+ }
31
+
32
+ &.is-large {
33
+ --#{variables.$prefix}rhombus-size: 2rem;
34
+ }
35
+
36
+ @if (not variables.$is-skelton) {
37
+ @each $color in variables.$colors {
38
+ $colorName: map.get($color, "name");
39
+ &.is-#{$colorName} {
40
+ --#{variables.$prefix}rhombus-color-fore: oklch(
41
+ var(--#{variables.$prefix}color-#{$colorName}-rhombus-fore-oklch) / 0.5
42
+ );
43
+ --#{variables.$prefix}rhombus-color-back: var(
44
+ --#{variables.$prefix}color-#{$colorName}-rhombus-back
45
+ );
46
+ }
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,45 @@
1
+ @use "sass:map";
2
+ @use "../variables/index.scss" as variables;
3
+ @use "../mixins/index.scss" as mixins;
4
+
5
+ .stripe {
6
+ --#{variables.$prefix}stripe-color-fore: oklch(
7
+ var(--#{variables.$prefix}color-default-stripe-fore-oklch) / 0.5
8
+ );
9
+ --#{variables.$prefix}stripe-color-back: var(
10
+ --#{variables.$prefix}color-default-stripe-back
11
+ );
12
+ --#{variables.$prefix}stripe-degree: 0deg;
13
+
14
+ @include mixins.element();
15
+ background-size: auto auto;
16
+ background-color: var(--#{variables.$prefix}stripe-color-back);
17
+ background-image: repeating-linear-gradient(
18
+ var(--#{variables.$prefix}stripe-degree),
19
+ transparent,
20
+ transparent 0.75rem,
21
+ var(--#{variables.$prefix}stripe-color-fore) 0.75rem,
22
+ var(--#{variables.$prefix}stripe-color-fore) 1.5rem
23
+ );
24
+
25
+ @for $n from 0 through 24 {
26
+ $degree: $n * 15deg;
27
+ &.is-#{$degree} {
28
+ --#{variables.$prefix}stripe-degree: #{$degree};
29
+ }
30
+ }
31
+
32
+ @if (not variables.$is-skelton) {
33
+ @each $color in variables.$colors {
34
+ $colorName: map.get($color, "name");
35
+ &.is-#{$colorName} {
36
+ --#{variables.$prefix}stripe-color-fore: oklch(
37
+ var(--#{variables.$prefix}color-#{$colorName}-stripe-fore-oklch) / 0.5
38
+ );
39
+ --#{variables.$prefix}stripe-color-back: var(
40
+ --#{variables.$prefix}color-#{$colorName}-stripe-back
41
+ );
42
+ }
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,71 @@
1
+ @use "sass:map";
2
+ @use "../variables/index.scss" as variables;
3
+ @use "../mixins/index.scss" as mixins;
4
+
5
+ .zigzag {
6
+ --#{variables.$prefix}zigzag-size: 1rem;
7
+ --#{variables.$prefix}zigzag-color-fore: oklch(
8
+ var(--#{variables.$prefix}color-default-zigzag-fore-oklch) / 0.5
9
+ );
10
+ --#{variables.$prefix}zigzag-color-back: var(
11
+ --#{variables.$prefix}color-default-zigzag-back
12
+ );
13
+
14
+ @include mixins.element();
15
+
16
+ background-color: var(--#{variables.$prefix}zigzag-color-back);
17
+ background-image: linear-gradient(
18
+ calc(45deg * 3),
19
+ var(--#{variables.$prefix}zigzag-color-fore) 25%,
20
+ transparent 25%
21
+ ),
22
+ linear-gradient(
23
+ calc(45deg * 5),
24
+ var(--#{variables.$prefix}zigzag-color-fore) 25%,
25
+ transparent 25%
26
+ ),
27
+ linear-gradient(
28
+ 45deg,
29
+ var(--#{variables.$prefix}zigzag-color-fore) 25%,
30
+ transparent 25%
31
+ ),
32
+ linear-gradient(
33
+ calc(45deg * 7),
34
+ var(--#{variables.$prefix}zigzag-color-fore) 25%,
35
+ var(--#{variables.$prefix}zigzag-color-back) 25%
36
+ );
37
+ background-position: var(--#{variables.$prefix}zigzag-size) 0,
38
+ var(--#{variables.$prefix}zigzag-size) 0, 0 0, 0 0;
39
+ background-size: calc(var(--#{variables.$prefix}zigzag-size) * 2)
40
+ calc(var(--#{variables.$prefix}zigzag-size) * 2);
41
+ background-repeat: repeat;
42
+
43
+ &.is-small {
44
+ --#{variables.$prefix}zigzag-size: 0.5rem;
45
+ }
46
+
47
+ &.is-large {
48
+ --#{variables.$prefix}zigzag-size: 4rem;
49
+ }
50
+
51
+ @for $n from 0 through 24 {
52
+ $degree: $n * 15deg;
53
+ &.is-#{$degree} {
54
+ --#{variables.$prefix}zigzag-degree: #{$degree};
55
+ }
56
+ }
57
+
58
+ @if (not variables.$is-skelton) {
59
+ @each $color in variables.$colors {
60
+ $colorName: map.get($color, "name");
61
+ &.is-#{$colorName} {
62
+ --#{variables.$prefix}zigzag-color-fore: oklch(
63
+ var(--#{variables.$prefix}color-#{$colorName}-zigzag-fore-oklch) / 0.5
64
+ );
65
+ --#{variables.$prefix}zigzag-color-back: var(
66
+ --#{variables.$prefix}color-#{$colorName}-zigzag-back
67
+ );
68
+ }
69
+ }
70
+ }
71
+ }
@@ -0,0 +1,9 @@
1
+ @use "../variables/index.scss" as variables;
2
+
3
+ .dub {
4
+ color: var(--#{variables.$prefix}color-default-fore);
5
+ background-color: var(--#{variables.$prefix}color-default-back);
6
+ font-family: var(--#{variables.$prefix}font-family-main);
7
+ z-index: var(--#{variables.$prefix}z-index-tabula);
8
+ text-size-adjust: 100%;
9
+ }
@@ -0,0 +1,5 @@
1
+ @use "../mixins/index.scss" as mixins;
2
+
3
+ .element {
4
+ @include mixins.element();
5
+ }
@@ -0,0 +1,3 @@
1
+ @forward "./normalize.scss";
2
+ @forward "./dub.scss";
3
+ @forward "./element.scss";