@rokkit/themes 1.0.0-next.54 → 1.0.0-next.56

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokkit/themes",
3
- "version": "1.0.0-next.54",
3
+ "version": "1.0.0-next.56",
4
4
  "description": "Themes for use with rokkit components.",
5
5
  "author": "Jerry Thomas <me@jerrythomas.name>",
6
6
  "license": "MIT",
@@ -16,12 +16,12 @@
16
16
  "@vitest/coverage-v8": "^0.34.6",
17
17
  "@vitest/ui": "~0.34.6",
18
18
  "jsdom": "^22.1.0",
19
- "svelte": "^4.2.1",
19
+ "svelte": "^4.2.2",
20
20
  "typescript": "^5.2.2",
21
- "vite": "^4.4.9",
21
+ "vite": "^4.5.0",
22
22
  "vitest": "~0.34.6",
23
- "@rokkit/core": "1.0.0-next.54",
24
- "shared-config": "1.0.0-next.54"
23
+ "@rokkit/core": "1.0.0-next.56",
24
+ "shared-config": "1.0.0-next.56"
25
25
  },
26
26
  "files": [
27
27
  "src"
@@ -49,7 +49,7 @@ summary p {
49
49
 
50
50
  /* Overlay styles */
51
51
  overlay {
52
- @apply bg-skin-inset bg-opacity-50;
52
+ @apply bg-neutral-inset bg-opacity-50;
53
53
  }
54
54
 
55
55
  /* Checkbox styles */
@@ -3,7 +3,7 @@ input-range range-track {
3
3
  @apply h-1 mt-3 relative;
4
4
  }
5
5
  input-range range-track span {
6
- @apply bg-skin-subtle border-skin-muted rounded-full;
6
+ @apply bg-neutral-subtle border-neutral-muted rounded-full;
7
7
  }
8
8
  input-range range-track selected {
9
9
  @apply top-0px bottom-0px;
@@ -38,7 +38,7 @@ input-range tick {
38
38
  @apply h-6;
39
39
  }
40
40
  input-range tick span {
41
- @apply border-skin-500 h-full;
41
+ @apply border-neutral-500 h-full;
42
42
  }
43
43
  input-range tick p {
44
44
  @apply items-top;
@@ -93,7 +93,7 @@ input-field select,
93
93
  input-field > field > :not(icon) {
94
94
  @apply px-3;
95
95
  @apply flex-grow outline-none min-h-9 leading-loose;
96
- @apply bg-skin-subtle text-skin-800;
96
+ @apply bg-neutral-subtle text-neutral-800;
97
97
  }
98
98
  input-field > label {
99
99
  @apply uppercase text-xs;
@@ -109,7 +109,7 @@ radio-group label {
109
109
  }
110
110
  /* Progress bar styles */
111
111
  progress-bar {
112
- @apply bg-skin-muted border border-skin-subtle;
112
+ @apply bg-neutral-muted border border-neutral-subtle;
113
113
  }
114
114
  progress-bar value-bar {
115
115
  @apply bg-primary;
@@ -34,7 +34,7 @@ input-field field {
34
34
  @apply gap-1px;
35
35
  }
36
36
  input-field field icon {
37
- @apply w-9 h-9 bg-skin-subtle text-skin-800;
37
+ @apply w-9 h-9 bg-neutral-subtle text-neutral-800;
38
38
  }
39
39
 
40
40
  input-field > field > input-select {
@@ -47,7 +47,7 @@ drop-down > button > span > icon {
47
47
  }
48
48
  input-select > selected-item,
49
49
  drop-down > button > span {
50
- /* @apply bg-skin-base pl-3; */
50
+ /* @apply bg-neutral-base pl-3; */
51
51
  @apply pl-3 min-h-9 gap-2 items-center normal-case;
52
- @apply rounded text-skin-800;
52
+ @apply rounded text-neutral-800;
53
53
  }
package/src/markdown.css CHANGED
@@ -24,7 +24,7 @@
24
24
  .markdown-body h5 .octicon-link,
25
25
  .markdown-body h6 .octicon-link {
26
26
  /* color: #1b1f23; */
27
- @apply text-skin-500;
27
+ @apply text-neutral-500;
28
28
  vertical-align: middle;
29
29
  visibility: hidden;
30
30
  }
@@ -260,7 +260,7 @@
260
260
  }
261
261
  .markdown-body ul li::before {
262
262
  content: '';
263
- @apply absolute bg-skin-muted mt-2 -ml-5 w-1.5 h-1.5 rounded-sm;
263
+ @apply absolute bg-neutral-muted mt-2 -ml-5 w-1.5 h-1.5 rounded-sm;
264
264
  /* opacity: 0.7; */
265
265
  }
266
266
 
@@ -687,7 +687,7 @@
687
687
  .markdown-body h1,
688
688
  .markdown-body h2 {
689
689
  /* padding-bottom: 0.3em; */
690
- @apply border-b border-skin-subtle mt-16;
690
+ @apply border-b border-neutral-subtle mt-16;
691
691
  /* border-bottom: 1px solid #eaecef; */
692
692
  }
693
693
 
@@ -714,7 +714,7 @@
714
714
 
715
715
  .markdown-body h6 {
716
716
  font-size: 0.85em;
717
- @apply text-skin-500;
717
+ @apply text-neutral-500;
718
718
  /* color: #6a737d; */
719
719
  }
720
720
 
@@ -774,17 +774,17 @@
774
774
  .markdown-body table th {
775
775
  padding: 6px 13px;
776
776
  /* border: 1px solid #dfe2e5; */
777
- @apply border border-skin-base;
777
+ @apply border border-neutral-base;
778
778
  }
779
779
 
780
780
  .markdown-body table tr {
781
781
  /* background-color: #fff; */
782
- @apply border-t border-skin-subtle;
782
+ @apply border-t border-neutral-subtle;
783
783
  /* border-top: 1px solid #c6cbd1; */
784
784
  }
785
785
 
786
786
  .markdown-body table tr:nth-child(2n) {
787
- @apply bg-skin-zebra;
787
+ @apply bg-neutral-zebra;
788
788
  /* background-color: #f6f8fa; */
789
789
  }
790
790
 
@@ -1,10 +1,10 @@
1
1
  @import '../base.css';
2
2
 
3
3
  .material icon[role='button'] {
4
- @apply text-skin-muted focus:rounded hover:text-primary focus:outline-primary focus:m-1px;
4
+ @apply text-neutral-muted focus:rounded hover:text-primary focus:outline-primary focus:m-1px;
5
5
  }
6
6
  .material icon.disabled[role='button'] {
7
- @apply text-skin-subtle hover:text-skin-subtle cursor-not-allowed;
7
+ @apply text-neutral-subtle hover:text-neutral-subtle cursor-not-allowed;
8
8
  }
9
9
 
10
10
  .material * {
@@ -4,7 +4,7 @@
4
4
 
5
5
  .material button,
6
6
  .material .button {
7
- @apply py-2 px-4 rounded bg-skin-subtle uppercase;
7
+ @apply py-2 px-4 rounded bg-neutral-subtle uppercase;
8
8
  }
9
9
  .material button-group {
10
10
  @apply flex justify-center rounded-sm shadow;
@@ -14,9 +14,9 @@
14
14
  }
15
15
 
16
16
  .material button-group > button {
17
- @apply border-skin-400 border-none rounded-none;
18
- @apply bg-skin-subtle focus:outline-none;
19
- @apply uppercase text-sm text-skin-800;
17
+ @apply border-neutral-400 border-none rounded-none;
18
+ @apply bg-neutral-subtle focus:outline-none;
19
+ @apply uppercase text-sm text-neutral-800;
20
20
  }
21
21
  .material button-group > button:not(:last-child) {
22
22
  @apply border-r;
@@ -2,8 +2,8 @@
2
2
  @apply border-box focus:outline-none;
3
3
  }
4
4
  .material input-field {
5
- @apply box-border border border-skin-muted rounded;
6
- @apply text-skin-800 leading-loose relative pb-0;
5
+ @apply box-border border border-neutral-muted rounded;
6
+ @apply text-neutral-800 leading-loose relative pb-0;
7
7
  }
8
8
  .material input-field.empty label {
9
9
  @apply absolute top-0 my-3.5 align-middle;
@@ -20,7 +20,7 @@
20
20
 
21
21
  .material input-field label,
22
22
  .material input-field:focus-within label {
23
- @apply bg-skin-base absolute block z-1;
23
+ @apply bg-neutral-base absolute block z-1;
24
24
  @apply -top-2 left-3 my-0 px-1 leading-tight opacity-100;
25
25
  }
26
26
 
@@ -28,13 +28,13 @@
28
28
  @apply rounded cursor-pointer select-none;
29
29
  }
30
30
  .material input-select > selected-item {
31
- @apply h-10 pl-4 pr-0 items-center bg-skin-base normal-case;
32
- @apply rounded border border-skin-muted text-skin-800;
33
- @apply hover:bg-skin-muted hover:border-secondary-600;
31
+ @apply h-10 pl-4 pr-0 items-center bg-neutral-base normal-case;
32
+ @apply rounded border border-neutral-muted text-neutral-800;
33
+ @apply hover:bg-neutral-muted hover:border-secondary-600;
34
34
  }
35
35
 
36
36
  .material input-select:hover square-icon {
37
- @apply border-skin-500;
37
+ @apply border-neutral-500;
38
38
  }
39
39
  .material input-select scroll {
40
40
  @apply mt-2 shadow-lg;
@@ -51,7 +51,7 @@
51
51
  }
52
52
 
53
53
  .material rating {
54
- @apply text-skin-600 text-xl focus:outline-none;
54
+ @apply text-neutral-600 text-xl focus:outline-none;
55
55
  }
56
56
  .material rating > icon {
57
57
  @apply w-8;
@@ -3,7 +3,7 @@
3
3
  @apply rounded gap-1px;
4
4
  }
5
5
  .material list > item {
6
- @apply bg-skin-subtle;
6
+ @apply bg-neutral-subtle;
7
7
  }
8
8
  .material item {
9
9
  @apply flex leading-10 items-center gap-2 px-3;
@@ -49,7 +49,7 @@
49
49
  }
50
50
 
51
51
  .material accordion .is-expanded summary {
52
- @apply border-b border-skin-muted rounded-b-none sticky top-0 z-1;
52
+ @apply border-b border-neutral-muted rounded-b-none sticky top-0 z-1;
53
53
  }
54
54
 
55
55
  .material accordion .is-selected summary {
@@ -61,14 +61,14 @@
61
61
  } */
62
62
  .material node[aria-selected='true'],
63
63
  .material list item[aria-selected='true'] {
64
- @apply bg-primary-500 text-skin-base;
64
+ @apply bg-primary-500 text-neutral-base;
65
65
  }
66
66
  .material crumbs {
67
67
  @apply flex-grow gap-1 text-sm;
68
68
  }
69
69
 
70
70
  .material toggle-switch item[aria-selected='true'] {
71
- @apply bg-primary text-skin-50;
71
+ @apply bg-primary text-neutral-50;
72
72
  }
73
73
  .material crumbs crumb.is-selected {
74
74
  @apply text-secondary;
@@ -76,7 +76,7 @@
76
76
 
77
77
  .material toggle-switch {
78
78
  @apply min-w-12 min-h-6 rounded-full mx-auto;
79
- @apply bg-skin-subtle border border-skin-muted;
79
+ @apply bg-neutral-subtle border border-neutral-muted;
80
80
  @apply p-2px;
81
81
  }
82
82
  .material toggle-switch item {
@@ -1,8 +1,8 @@
1
1
  /* @import '../base.css'; */
2
2
 
3
3
  .minimal icon[role='button'] {
4
- @apply text-skin-muted focus:rounded hover:text-secondary-600 focus:outline-secondary-600 focus:m-1px;
4
+ @apply text-neutral-muted focus:rounded hover:text-secondary-600 focus:outline-secondary-600 focus:m-1px;
5
5
  }
6
6
  .minimal icon.disabled[role='button'] {
7
- @apply text-skin-subtle hover:text-skin-subtle cursor-not-allowed;
7
+ @apply text-neutral-subtle hover:text-neutral-subtle cursor-not-allowed;
8
8
  }
@@ -1,6 +1,6 @@
1
1
  .minimal button {
2
2
  @apply rounded leading-loose select-none px-4;
3
- @apply bg-skin-muted border border-skin-muted;
3
+ @apply bg-neutral-muted border border-neutral-muted;
4
4
  }
5
5
  .minimal button icon-left,
6
6
  .minimal button icon-right {
@@ -21,9 +21,9 @@
21
21
  @apply flex justify-center rounded-sm gap-1px;
22
22
  }
23
23
  .minimal button-group button {
24
- @apply border-skin-400 border-none rounded-none;
25
- @apply bg-skin-subtle shadow focus:outline-none;
26
- @apply uppercase text-sm text-skin-800 leading-8 px-2;
24
+ @apply border-neutral-400 border-none rounded-none;
25
+ @apply bg-neutral-subtle shadow focus:outline-none;
26
+ @apply uppercase text-sm text-neutral-800 leading-8 px-2;
27
27
  }
28
28
  .minimal button-group button:not(:last-child) {
29
29
  @apply border-r;
@@ -44,7 +44,7 @@
44
44
  }
45
45
  .minimal input-select > selected-item {
46
46
  @apply leading-8 gap-4 items-center pl-2 min-h-8 cursor-pointer select-none;
47
- @apply border-b-2 border-b-skin-muted;
47
+ @apply border-b-2 border-b-neutral-muted;
48
48
  @apply focus:border-b-secondary-600;
49
49
  }
50
50
  .minimal input-select:focus > selected-item {
@@ -57,7 +57,7 @@
57
57
  @apply flex-grow flex-wrap gap-2;
58
58
  }
59
59
  .minimal pill {
60
- @apply gap-2 rounded-full border border-skin-400 px-2;
60
+ @apply gap-2 rounded-full border border-neutral-400 px-2;
61
61
  }
62
62
  .minimal pill > item {
63
63
  @apply gap-2 leading-6;
@@ -75,7 +75,7 @@
75
75
 
76
76
  .minimal button[role='switch'] {
77
77
  @apply rounded-full p-0 min-h-6 h-8 w-16;
78
- @apply bg-skin-subtle border border-skin-subtle;
78
+ @apply bg-neutral-subtle border border-neutral-subtle;
79
79
  }
80
80
 
81
81
  .minimal button[role='switch'] > mark {
@@ -3,14 +3,14 @@
3
3
  .minimal textarea,
4
4
  .minimal select,
5
5
  .minimal fieldset {
6
- @apply rounded leading-loose px-2 border border-skin-muted outline-none;
6
+ @apply rounded leading-loose px-2 border border-neutral-muted outline-none;
7
7
  }
8
8
 
9
9
  .minimal fieldset {
10
10
  @apply p-4 pt-2 gap-2 rounded-md;
11
11
  }
12
12
  .minimal fieldset legend {
13
- @apply px-2 border-l border-r rounded-md leading-tight border-skin-muted hover:text-primary select-none;
13
+ @apply px-2 border-l border-r rounded-md leading-tight border-neutral-muted hover:text-primary select-none;
14
14
  }
15
15
  .minimal fieldset icon {
16
16
  @apply text-2xl;
@@ -21,14 +21,14 @@
21
21
  }
22
22
 
23
23
  .minimal input-field field {
24
- @apply box-border border-b-1 border-skin-muted min-h-9 overflow-hidden;
24
+ @apply box-border border-b-1 border-neutral-muted min-h-9 overflow-hidden;
25
25
  @apply focus-within:border-b-secondary-600;
26
26
  }
27
27
  .minimal input-field:focus-within label {
28
28
  @apply text-secondary-600;
29
29
  }
30
30
  .minimal input-field span {
31
- @apply border-r border-skin-muted bg-skin-base px-1 h-full aspect-square;
31
+ @apply border-r border-neutral-muted bg-neutral-base px-1 h-full aspect-square;
32
32
  }
33
33
  .minimal input-field input,
34
34
  .minimal input-field textarea,
@@ -38,10 +38,10 @@
38
38
  }
39
39
 
40
40
  .minimal input-field label {
41
- @apply leading-6 w-full uppercase text-sm text-skin-500;
41
+ @apply leading-6 w-full uppercase text-sm text-neutral-500;
42
42
  }
43
43
  .minimal input-field message {
44
- @apply px-2 py-1 bg-skin-base rounded;
44
+ @apply px-2 py-1 bg-neutral-base rounded;
45
45
  }
46
46
 
47
47
  .minimal input-field.fail {
@@ -52,7 +52,7 @@
52
52
  @apply h-1 mt-3 relative;
53
53
  }
54
54
  .minimal input-range range-track span {
55
- @apply bg-skin-subtle box-border border-skin-muted rounded-full;
55
+ @apply bg-neutral-subtle box-border border-neutral-muted rounded-full;
56
56
  }
57
57
  .minimal input-range range-track selected {
58
58
  @apply border -top-0px -bottom-0px border-secondary-500 bg-secondary-600 rounded-full;
@@ -82,7 +82,7 @@
82
82
  @apply h-6;
83
83
  }
84
84
  .minimal tick span {
85
- @apply border-skin-500 h-full;
85
+ @apply border-neutral-500 h-full;
86
86
  }
87
87
  .minimal tick p {
88
88
  @apply items-top;
@@ -10,14 +10,14 @@
10
10
  }
11
11
  .minimal list,
12
12
  .minimal accordion summary {
13
- @apply border-l-2px border-l-skin-muted;
13
+ @apply border-l-2px border-l-neutral-muted;
14
14
  }
15
15
  .minimal :not(accordion > div) list:focus-within {
16
16
  @apply outline outline-offset-3 outline-secondary-700;
17
17
  }
18
18
  .minimal list > item,
19
19
  .minimal accordion summary {
20
- @apply px-2 text-skin-700 bg-skin-base items-center leading-8;
20
+ @apply px-2 text-neutral-700 bg-neutral-base items-center leading-8;
21
21
  }
22
22
 
23
23
  .minimal item > a {
@@ -25,16 +25,16 @@
25
25
  }
26
26
 
27
27
  .minimal list item:hover {
28
- @apply -m-l-2px border-l-2px border-l-skin-subtle;
28
+ @apply -m-l-2px border-l-2px border-l-neutral-subtle;
29
29
  }
30
30
  .minimal accordion summary:hover {
31
- @apply border-l-skin-subtle;
31
+ @apply border-l-neutral-subtle;
32
32
  }
33
33
  .minimal list item.is-selected {
34
- @apply -m-l-2px border-l-2px border-l-secondary-600 text-secondary-600 bg-skin-subtle;
34
+ @apply -m-l-2px border-l-2px border-l-secondary-600 text-secondary-600 bg-neutral-subtle;
35
35
  }
36
36
  .minimal accordion .is-selected summary {
37
- @apply border-l-2px border-l-secondary-600 bg-skin-subtle;
37
+ @apply border-l-2px border-l-secondary-600 bg-neutral-subtle;
38
38
  }
39
39
 
40
40
  .minimal accordion .is-expanded summary {
@@ -100,11 +100,11 @@
100
100
  }
101
101
 
102
102
  .minimal .folder-tree {
103
- @apply h-full bg-skin-inset min-w-40;
103
+ @apply h-full bg-neutral-inset min-w-40;
104
104
  }
105
105
 
106
106
  .minimal node > span > i {
107
- @apply border-skin-muted;
107
+ @apply border-neutral-muted;
108
108
  }
109
109
 
110
110
  .minimal crumbs {
@@ -116,7 +116,7 @@
116
116
 
117
117
  .minimal toggle-switch {
118
118
  @apply min-w-12 min-h-6 rounded mx-auto;
119
- @apply bg-skin-subtle border border-skin-muted;
119
+ @apply bg-neutral-subtle border border-neutral-muted;
120
120
  @apply leading-loose p-2px;
121
121
  }
122
122
  .minimal toggle-switch item {
@@ -130,5 +130,5 @@
130
130
  @apply px-0 gap-0 rounded-full;
131
131
  }
132
132
  .minimal toggle-switch item[aria-selected='true'] {
133
- @apply bg-secondary text-skin-800;
133
+ @apply bg-secondary text-neutral-800;
134
134
  }
@@ -2,7 +2,7 @@
2
2
  @apply outline-none;
3
3
  }
4
4
  .minimal tabs {
5
- @apply box-border px-2 gap-2 border-b-2 border-skin-subtle cursor-pointer select-none;
5
+ @apply box-border px-2 gap-2 border-b-2 border-neutral-subtle cursor-pointer select-none;
6
6
  }
7
7
  .minimal tabs .tab {
8
8
  @apply leading-8 text-base px-2;
@@ -4,7 +4,7 @@ $theme-colors: (
4
4
  primary: #fb923c,
5
5
  secondary: #ef5da8,
6
6
  accent: #eb479c,
7
- skin: #262730
7
+ neutral: #262730
8
8
  );
9
9
 
10
10
  $lightness: (95%, 90%, 85%, 80%, 70%, 60%, 50%, 40%, 30%, 20%);
@@ -17,8 +17,8 @@ $lightness: (95%, 90%, 85%, 80%, 70%, 60%, 50%, 40%, 30%, 20%);
17
17
  --secondary-saturation: 80%;
18
18
  --accent-hue: 329;
19
19
  --accent-saturation: 80%;
20
- --skin-hue: 233;
21
- --skin-saturation: 11.9%;
20
+ --neutral-hue: 233;
21
+ --neutral-saturation: 11.9%;
22
22
 
23
23
  --tab-size: 2;
24
24
  }