@rokkit/themes 1.0.0-next.124 → 1.0.0-next.127

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 (130) hide show
  1. package/README.md +118 -9
  2. package/package.json +31 -27
  3. package/src/base/breadcrumbs.css +46 -0
  4. package/src/base/button.css +243 -0
  5. package/src/base/card.css +36 -0
  6. package/src/base/carousel.css +122 -12
  7. package/src/base/connector.css +106 -0
  8. package/src/base/display.css +91 -0
  9. package/src/base/floating-action.css +388 -0
  10. package/src/base/floating-navigation.css +381 -0
  11. package/src/base/index.css +36 -0
  12. package/src/base/input.css +194 -39
  13. package/src/base/item.css +52 -0
  14. package/src/base/list.css +258 -0
  15. package/src/base/menu.css +322 -0
  16. package/src/base/pill.css +57 -0
  17. package/src/base/progress.css +28 -15
  18. package/src/base/range.css +121 -0
  19. package/src/base/rating.css +40 -0
  20. package/src/base/reveal.css +37 -0
  21. package/src/base/search-filter.css +132 -0
  22. package/src/base/select.css +411 -0
  23. package/src/base/shine.css +14 -0
  24. package/src/base/stepper.css +140 -0
  25. package/src/base/switch.css +152 -0
  26. package/src/base/table.css +143 -33
  27. package/src/base/tabs.css +171 -0
  28. package/src/base/tilt.css +14 -0
  29. package/src/base/timeline.css +84 -0
  30. package/src/base/toggle.css +134 -0
  31. package/src/base/toolbar.css +337 -0
  32. package/src/base/tree.css +156 -11
  33. package/src/glass/button.css +152 -0
  34. package/src/glass/floating-action.css +61 -0
  35. package/src/glass/floating-navigation.css +74 -0
  36. package/src/glass/index.css +23 -0
  37. package/src/glass/input.css +124 -0
  38. package/src/glass/list.css +122 -0
  39. package/src/glass/menu.css +92 -0
  40. package/src/glass/range.css +61 -0
  41. package/src/glass/search-filter.css +49 -0
  42. package/src/glass/select.css +178 -0
  43. package/src/glass/switch.css +28 -0
  44. package/src/glass/table.css +87 -0
  45. package/src/glass/tabs.css +58 -0
  46. package/src/glass/timeline.css +46 -0
  47. package/src/glass/toggle.css +48 -0
  48. package/src/glass/toolbar.css +84 -0
  49. package/src/glass/tree.css +104 -0
  50. package/src/index.css +18 -0
  51. package/src/index.js +25 -2
  52. package/src/material/button.css +153 -0
  53. package/src/material/floating-action.css +60 -0
  54. package/src/material/floating-navigation.css +74 -0
  55. package/src/material/index.css +23 -0
  56. package/src/material/input.css +118 -40
  57. package/src/material/list.css +90 -64
  58. package/src/material/menu.css +92 -0
  59. package/src/material/range.css +62 -0
  60. package/src/material/search-filter.css +49 -0
  61. package/src/material/select.css +170 -0
  62. package/src/material/switch.css +28 -0
  63. package/src/material/table.css +87 -0
  64. package/src/material/tabs.css +62 -0
  65. package/src/material/timeline.css +46 -0
  66. package/src/material/toggle.css +48 -0
  67. package/src/material/toolbar.css +84 -0
  68. package/src/material/tree.css +100 -0
  69. package/src/minimal/button.css +152 -0
  70. package/src/minimal/floating-action.css +59 -0
  71. package/src/minimal/floating-navigation.css +70 -0
  72. package/src/minimal/index.css +23 -0
  73. package/src/minimal/input.css +81 -120
  74. package/src/minimal/list.css +90 -104
  75. package/src/minimal/menu.css +88 -0
  76. package/src/minimal/range.css +61 -0
  77. package/src/minimal/search-filter.css +49 -0
  78. package/src/minimal/select.css +168 -0
  79. package/src/minimal/switch.css +28 -0
  80. package/src/minimal/table.css +87 -0
  81. package/src/minimal/tabs.css +53 -31
  82. package/src/minimal/timeline.css +45 -0
  83. package/src/minimal/toggle.css +48 -0
  84. package/src/minimal/toolbar.css +84 -0
  85. package/src/minimal/tree.css +100 -0
  86. package/src/rokkit/button.css +225 -0
  87. package/src/rokkit/connector.css +11 -0
  88. package/src/rokkit/floating-action.css +65 -0
  89. package/src/rokkit/floating-navigation.css +83 -0
  90. package/src/rokkit/index.css +24 -0
  91. package/src/rokkit/input.css +130 -0
  92. package/src/rokkit/list.css +141 -0
  93. package/src/rokkit/menu.css +123 -0
  94. package/src/rokkit/range.css +62 -0
  95. package/src/rokkit/search-filter.css +49 -0
  96. package/src/rokkit/select.css +185 -0
  97. package/src/rokkit/switch.css +28 -0
  98. package/src/rokkit/table.css +68 -38
  99. package/src/rokkit/tabs.css +82 -0
  100. package/src/rokkit/timeline.css +46 -0
  101. package/src/rokkit/toggle.css +36 -52
  102. package/src/rokkit/toolbar.css +84 -0
  103. package/src/rokkit/tree.css +123 -0
  104. package/src/base/alert.css +0 -30
  105. package/src/base/animation.css +0 -37
  106. package/src/base/atoms.css +0 -58
  107. package/src/base/core.css +0 -107
  108. package/src/base/layout.css +0 -65
  109. package/src/base/molecules.css +0 -109
  110. package/src/base/organisms.css +0 -66
  111. package/src/base/scrollbar.css +0 -16
  112. package/src/base/toggles.css +0 -17
  113. package/src/base.css +0 -13
  114. package/src/markdown.css +0 -955
  115. package/src/material/base.css +0 -12
  116. package/src/material/form.css +0 -30
  117. package/src/material.css +0 -9
  118. package/src/minimal/base.css +0 -8
  119. package/src/minimal/form.css +0 -87
  120. package/src/minimal.css +0 -11
  121. package/src/mixins/mixins.scss +0 -66
  122. package/src/mixins/palette.scss +0 -48
  123. package/src/prism.css +0 -102
  124. package/src/rokkit/alert.css +0 -4
  125. package/src/rokkit/atoms.css +0 -52
  126. package/src/rokkit/carousel.css +0 -19
  127. package/src/rokkit/layout.css +0 -17
  128. package/src/rokkit/molecules.css +0 -124
  129. package/src/rokkit/organisms.css +0 -307
  130. package/src/rokkit.css +0 -11
@@ -1,12 +0,0 @@
1
- @import '../base.css';
2
-
3
- [data-style='material'] rk-icon[role='button'] {
4
- @apply text-surface-z3 hover:text-primary focus:outline-primary focus:m-1px focus:rounded;
5
- }
6
- [data-style='material'] rk-icon.disabled[role='button'] {
7
- @apply text-surface-z2 hover:text-surface-z2 cursor-not-allowed;
8
- }
9
-
10
- [data-style='material'] * {
11
- @apply focus:outline-primary-400;
12
- }
@@ -1,30 +0,0 @@
1
- [data-style='material'] field-layout.vertical {
2
- @apply gap-5;
3
- }
4
-
5
- [data-style='material'] button,
6
- [data-style='material'] .button {
7
- @apply bg-surface-z2 rounded px-4 py-2 uppercase;
8
- }
9
- [data-style='material'] button-group {
10
- @apply flex justify-center rounded-sm shadow;
11
- }
12
- [data-style='material'] .is-primary {
13
- @apply bg-primary text-white;
14
- }
15
-
16
- [data-style='material'] button-group > button {
17
- @apply border-surface-400 rounded-none border-none;
18
- @apply bg-surface-z2 focus:outline-none;
19
- @apply text-surface-800 text-sm uppercase;
20
- }
21
- [data-style='material'] button-group > button:not(:last-child) {
22
- @apply border-r;
23
- }
24
- [data-style='material'] button-group > button.active {
25
- @apply bg-primary text-white;
26
- }
27
-
28
- [data-style='material'] field > toggle-switch {
29
- @apply mx-2 mb-2 mt-1;
30
- }
package/src/material.css DELETED
@@ -1,9 +0,0 @@
1
- @import './material/base.css';
2
- /* @import './base/tabs.css'; */
3
- /* @import './base/dropdown.css'; */
4
- /* @import './base/states.css'; */
5
- /* @import './base/calendar.css'; */
6
- @import './material/input.css';
7
- @import './material/list.css';
8
- @import './material/form.css';
9
- /* @import './base/outline.css'; */
@@ -1,8 +0,0 @@
1
- /* @import '../base.css'; */
2
-
3
- [data-style='minimal'] rk-icon[role='button'] {
4
- @apply text-surface-z3 hover:text-secondary-600 focus:outline-secondary-600 focus:m-1px focus:rounded;
5
- }
6
- [data-style='minimal'] button:disabled > rk-icon {
7
- @apply text-surface-z2 hover:text-surface-z2 cursor-not-allowed;
8
- }
@@ -1,87 +0,0 @@
1
- [data-style='minimal'] button {
2
- @apply select-none rounded px-4 leading-loose;
3
- @apply bg-surface-z3 border-surface-z3 border;
4
- }
5
- [data-style='minimal'] button rk-icon-left,
6
- [data-style='minimal'] button rk-icon-right {
7
- @apply flex aspect-square h-8 flex-col items-center justify-center;
8
- }
9
- [data-style='minimal'] button rk-icon {
10
- @apply text-2xl;
11
- }
12
-
13
- [data-style='minimal'] .is-primary {
14
- @apply bg-secondary text-white;
15
- }
16
- [data-style='minimal'] button p {
17
- @apply flex flex-grow px-2;
18
- }
19
-
20
- [data-style='minimal'] rk-button-group {
21
- @apply gap-1px flex justify-center rounded-sm;
22
- }
23
- [data-style='minimal'] rk-button-group button {
24
- @apply border-surface-400 rounded-none border-none;
25
- @apply bg-surface-z2 shadow focus:outline-none;
26
- @apply text-surface-800 px-2 text-sm uppercase leading-8;
27
- }
28
- [data-style='minimal'] rk-button-group button:not(:last-child) {
29
- @apply border-r;
30
- }
31
- [data-style='minimal'] rk-button-group button.active {
32
- @apply bg-secondary text-white;
33
- }
34
-
35
- [data-style='minimal'] rk-button-group button:first-child {
36
- @apply rounded-l-sm;
37
- }
38
- [data-style='minimal'] rk-button-group button:last-child {
39
- @apply rounded-r-sm;
40
- }
41
-
42
- [data-style='minimal'] rk-input-select {
43
- @apply focus:outline-none;
44
- }
45
- [data-style='minimal'] rk-input-select > selected-item {
46
- @apply min-h-8 cursor-pointer items-center gap-4 pl-2 leading-8;
47
- @apply border-b-surface-z3 border-b-2;
48
- @apply focus:border-b-secondary-600;
49
- }
50
- [data-style='minimal'] rk-input-select:focus > selected-item {
51
- @apply border-b-secondary-600 text-secondary-600;
52
- }
53
- [data-style='minimal'] rk-input-select:focus square-icon {
54
- @apply text-secondary-600;
55
- }
56
- [data-style='minimal'] rk-input-select > selected-item > items {
57
- @apply flex-grow flex-wrap gap-2;
58
- }
59
- [data-style='minimal'] rk-pill {
60
- @apply border-surface-400 gap-2 rounded-full border px-2;
61
- }
62
- [data-style='minimal'] rk-pill > rk-item {
63
- @apply gap-2 leading-6;
64
- }
65
- [data-style='minimal'] rk-pill > rk-item > img {
66
- @apply h-4 w-4;
67
- }
68
-
69
- [data-style='minimal'] rk-pill > rk-icon {
70
- @apply text-sm;
71
- }
72
- [data-style='minimal'] rk-input-select rk-scroll {
73
- @apply mt-1 shadow-lg;
74
- }
75
-
76
- [data-style='minimal'] button[role='switch'] {
77
- @apply h-8 min-h-6 w-16 rounded-full p-0;
78
- @apply bg-surface-z2 border-surface-z2 border;
79
- }
80
-
81
- [data-style='minimal'] button[role='switch'] > rk-mark {
82
- @apply bg-secondary top-0.75 h-6 w-6 rounded-full;
83
- }
84
-
85
- [data-style='minimal'] rk-progress-bar rk-value-bar {
86
- @apply bg-secondary;
87
- }
package/src/minimal.css DELETED
@@ -1,11 +0,0 @@
1
- @import './base.css';
2
-
3
- @import './minimal/base.css';
4
- /* @import './base/states.css'; */
5
- /* @import './base/calendar.css'; */
6
-
7
- @import './minimal/input.css';
8
- @import './minimal/list.css';
9
- @import './minimal/tabs.css';
10
- @import './minimal/form.css';
11
- /* @import './base/outline.css'; */
@@ -1,66 +0,0 @@
1
- @mixin set-theme-colors($theme-colors, $mode, $values: null) {
2
- @each $name, $color in $theme-colors {
3
- $hue: hue($color);
4
- $saturation: saturation($color);
5
- @if $values !== null {
6
- $start: if($mode === 'dark', length($values), 1);
7
- $offset: if($mode === 'dark', -1, 1);
8
- @for $i from 0 to length($values) - 1 {
9
- $index: $start + $offset * $i;
10
- $lightness: nth($values, $index);
11
- $variable: '--#{$name}-#{50 + ($i) * 100}';
12
- #{$variable}: hsl($hue, $saturation, $lightness);
13
- }
14
- } @else {
15
- @for $i from 0 to 9 {
16
- $lightness: if($mode === 'dark', $i * 10%, 100 - $i * 10%);
17
- $variable: '--#{$name}-#{50 + ($i) * 100}';
18
- #{$variable}: hsl($hue, $saturation, $lightness);
19
- }
20
- }
21
- }
22
- }
23
-
24
- /* light theme syntax colors */
25
- @mixin light-mode-syntax-colors {
26
- --code-bg: #f3f4f6;
27
- --code-fill: #f3f4f6;
28
- --code-normal: #333333; /*hsl(45, 7%, 45%)*/
29
- --code-string: hsl(41, 37%, 45%); /*#183691 */
30
- --code-number: hsl(102, 27%, 50%); /* #0086b3;*/
31
- --code-atrule: var(--code-string);
32
- --code-keyword: hsl(204, 58%, 45%); /* #795da3;*/
33
- --code-comment: #969896; /*hsl(210, 25%, 60%)*/
34
- --code-property: #63a35c;
35
- --code-selector: var(--code-keyword);
36
- --code-operator: hsl(19, 67%, 45%);
37
- --code-function: hsl(19, 67%, 45%); /* #a71d5d; */
38
-
39
- --code-gutter-marker: black;
40
- --code-gutter-z2: #999;
41
- --code-cursor: #24292e;
42
- --code-cursor-block: rgba(20, 255, 20, 0.5);
43
- --code-linenumbers: rgba(27, 31, 35, 0.3);
44
- }
45
-
46
- /* one dark theme syntax colors */
47
- @mixin dark-mode-syntax-colors {
48
- --code-bg: #282c34;
49
- --code-fill: #282c34;
50
- --code-normal: #e06c75; /*#ABB2BF;*/
51
- --code-string: #98c379;
52
- --code-number: #d19a66;
53
- --code-atrule: #61afef;
54
- --code-keyword: #c678dd;
55
- --code-comment: #5c6370;
56
- --code-property: #d19a66;
57
- --code-selector: #e06c75;
58
- --code-operator: #56b6c2;
59
- --code-function: #61afef;
60
-
61
- --code-gutter-marker: black;
62
- --code-gutter-z2: #999;
63
- --code-cursor: #24292e;
64
- --code-cursor-block: rgba(20, 255, 20, 0.5);
65
- --code-linenumbers: rgba(27, 31, 35, 0.3);
66
- }
@@ -1,48 +0,0 @@
1
- @import './mixins.scss';
2
-
3
- $theme-colors: (
4
- primary: #fb923c,
5
- secondary: #ef5da8,
6
- accent: #eb479c,
7
- surface: #262730
8
- );
9
-
10
- $lightness: (95%, 90%, 85%, 80%, 70%, 60%, 50%, 40%, 30%, 20%);
11
-
12
- @layer base {
13
- :root {
14
- --primary-hue: 25;
15
- --primary-saturation: 95%;
16
- --secondary-hue: 329;
17
- --secondary-saturation: 80%;
18
- --accent-hue: 329;
19
- --accent-saturation: 80%;
20
- --surface-hue: 233;
21
- --surface-saturation: 11.9%;
22
-
23
- --tab-size: 2;
24
- }
25
-
26
- .light {
27
- @include set-theme-colors($theme-colors, 'light', $lightness);
28
- @include light-mode-syntax-colors();
29
- }
30
- .dark {
31
- @include set-theme-colors($theme-colors, 'dark', $lightness);
32
- @include dark-mode-syntax-colors();
33
- }
34
-
35
- @media (prefers-color-scheme: light) {
36
- body:not(.dark) {
37
- @include set-theme-colors($theme-colors, 'light', $lightness);
38
- @include light-mode-syntax-colors();
39
- }
40
- }
41
-
42
- @media (prefers-color-scheme: dark) {
43
- body:not(.light) {
44
- @include set-theme-colors($theme-colors, 'dark', $lightness);
45
- @include dark-mode-syntax-colors();
46
- }
47
- }
48
- }
package/src/prism.css DELETED
@@ -1,102 +0,0 @@
1
- code,
2
- code[class*='language-'],
3
- pre[class*='language-'] {
4
- background-color: var(--code-fill);
5
- color: var(--code-normal);
6
- text-align: left;
7
- white-space: pre;
8
- word-spacing: normal;
9
- tab-size: 2;
10
- hyphens: none;
11
- font-variant-ligatures: common-lig-values; /* common-ligatures; */
12
- line-height: 1.4;
13
- direction: ltr;
14
- cursor: text;
15
- @apply font-mono text-xs;
16
- }
17
-
18
- pre[class*='language-'] {
19
- overflow: auto;
20
- padding: 1.2em;
21
- }
22
-
23
- /* p code,
24
- li code,
25
- table code {
26
- margin: 0;
27
- padding: 0.2em 0;
28
- } */
29
- p code:before,
30
- p code:after,
31
- li code:before,
32
- li code:after,
33
- table code:before,
34
- table code:after {
35
- letter-spacing: -0.2em;
36
- content: '\00a0';
37
- @apply rounded-sm;
38
- }
39
-
40
- :not(pre) > code {
41
- @apply rounded-md p-1;
42
- }
43
- :not(pre) > code[class*='language-'] {
44
- @apply rounded-sm;
45
- }
46
-
47
- .token.comment,
48
- .token.prolog,
49
- .token.doctype,
50
- .token.cdata {
51
- color: var(--code-comment);
52
- font-style: oblique;
53
- }
54
- .token.punctuation,
55
- .token.string,
56
- .token.attr-value {
57
- color: var(--code-string);
58
- }
59
-
60
- .token.property,
61
- .token.tag {
62
- color: var(--code-property);
63
- }
64
- .token.boolean,
65
- .token.number {
66
- color: var(--code-number);
67
- }
68
- .token.selector,
69
- .token.attr-name,
70
- .token.attr-value .punctuation:first-child,
71
- .token.regex,
72
- .token.important {
73
- color: var(--code-selector);
74
- }
75
-
76
- .token.operator,
77
- .token.entity,
78
- .token.url,
79
- .language-css .token.string {
80
- color: var(--code-operator);
81
- }
82
-
83
- .token.atrule {
84
- color: var(--code-atrule);
85
- }
86
- .token.keyword {
87
- color: var(--code-keyword);
88
- font-style: italic;
89
- }
90
- .token.function {
91
- color: var(--code-function);
92
- }
93
- .token.entity {
94
- cursor: help;
95
- }
96
-
97
- .token.italic {
98
- font-style: italic;
99
- }
100
- .namespace {
101
- opacity: 0.7;
102
- }
@@ -1,4 +0,0 @@
1
- /* Styles for 'alert-list' class */
2
- [data-style='rokkit'] rk-alert-list {
3
- @apply right-8 top-12 w-80;
4
- }
@@ -1,52 +0,0 @@
1
- /* Zebra styles */
2
- [data-style='rokkit'] .zebra rk-item,
3
- [data-style='rokkit'] .zebra rk-list-item {
4
- @apply even:bg-surface-zebra hover:bg-surface-50;
5
- }
6
-
7
- /* Styles for input[type='number'] */
8
- [data-style='rokkit'] input[type='number'] {
9
- @apply text-right;
10
- }
11
- [data-style='rokkit'] input[type='number']::-webkit-inner-spin-button,
12
- [data-style='rokkit'] input[type='number']::-webkit-outer-spin-button {
13
- -webkit-appearance: none;
14
- }
15
-
16
- [data-style='rokkit'] rk-progress-bar rk-value-bar {
17
- @apply from-primary-500 to-secondary-500 text-surface-100 dark:text-surface-800 bg-gradient-to-r;
18
- }
19
-
20
- /* Styles for 'searchable' class */
21
- [data-style='rokkit'] .searchable input {
22
- @apply border-surface-z2 border;
23
- }
24
- [data-style='rokkit'] a.button {
25
- @apply px-4 no-underline;
26
- }
27
- [data-style='rokkit'] a {
28
- @apply text-primary-800 cursor-pointer underline underline-offset-4;
29
- }
30
- [data-style='rokkit'] a:hover {
31
- @apply text-secondary-700 cursor-pointer;
32
- }
33
- [data-style='rokkit'] a:visited {
34
- @apply text-primary-700;
35
- }
36
- [data-style='rokkit'] a:focus {
37
- @apply outline-none;
38
- }
39
-
40
- [data-style='rokkit'] [aria-current='true'] a {
41
- @apply text-primary-100;
42
- }
43
- [data-style='rokkit'] [aria-current='true'] a:visited {
44
- @apply text-primary-100;
45
- }
46
- [data-style='rokkit'] [aria-current='true'] a:hover {
47
- @apply text-primary-100;
48
- }
49
-
50
- [data-style='rokkit'] .dark ::-webkit-calendar-picker-indicator {
51
- filter: invert(1);
52
- }
@@ -1,19 +0,0 @@
1
- rk-carousel rk-slide {
2
- @apply min-h-100 items-center gap-3 px-12;
3
- }
4
- rk-carousel rk-slide > img {
5
- @apply h-80 w-80 object-cover;
6
- }
7
- rk-carousel rk-slide > p {
8
- @apply text-center text-2xl;
9
- }
10
- rk-carousel rk-dot-nav {
11
- @apply flex h-4 w-full justify-center gap-2;
12
- }
13
- rk-carousel rk-dot {
14
- /* @apply block h-4 w-4 p-0 m-0 text-xs rounded-full bg-surface-z2 cursor-pointer focus:outline-none; */
15
- @apply from-surface-z2 to-surface-z2 bg-gradient-to-r;
16
- }
17
- rk-carousel rk-dot[aria-checked='true'] {
18
- @apply from-primary to-secondary bg-gradient-to-r;
19
- }
@@ -1,17 +0,0 @@
1
- /* Styles for ' rk-switch' */
2
- [data-style='rokkit'] rk-field rk-switch:focus-within {
3
- @apply outline-none;
4
- }
5
- [data-style='rokkit'] rk-field rk-switch {
6
- @apply min-h-8 items-center justify-center rounded-sm border-none px-1;
7
- }
8
- [data-style='rokkit'] rk-field rk-switch rk-item {
9
- @apply rounded-sm leading-loose;
10
- }
11
- [data-style='rokkit'] rk-field rk-switch rk-item p {
12
- @apply justify-center;
13
- }
14
-
15
- [data-style='rokkit'] .horizontal > rk-field radio-group {
16
- @apply md:flex-row md:gap-4;
17
- }
@@ -1,124 +0,0 @@
1
- /* Styles for ' rk-input-range' class */
2
- [data-style='rokkit'] rk-input-range rk-range-track {
3
- @apply relative mt-2 h-2;
4
- }
5
- [data-style='rokkit'] rk-input-range rk-range-track rk-range-track-bar {
6
- @apply bg-surface-z3 border-surface-z3 box-border rounded-full border;
7
- }
8
- [data-style='rokkit'] rk-input-range rk-range-track selected-bar {
9
- @apply top-0px bottom-0px from-primary to-secondary border-secondary rounded-full border bg-gradient-to-r;
10
- }
11
- [data-style='rokkit'] rk-input-range rk-range-track rk-thumb {
12
- @apply rounded-sm focus:outline-none;
13
- }
14
- /* [data-style="rokkit"] rk-input-range rk-tick p {
15
- @apply text-surface-800;
16
- } */
17
- [data-style='rokkit'] .bookend rk-range-track rk-range-track-bar::before,
18
- [data-style='rokkit'] .bookend rk-range-track rk-range-track-bar::after {
19
- content: '';
20
- @apply w-1px absolute -bottom-2 -top-2 rounded-full bg-gray-300;
21
- }
22
- [data-style='rokkit'] .bookend rk-range-track rk-range-track-bar::before {
23
- @apply -left-1px;
24
- }
25
- [data-style='rokkit'] .bookend rk-range-track rk-range-track-bar::after {
26
- @apply -right-2px;
27
- }
28
-
29
- /* Styles for 'tick' class */
30
- /* [data-style="rokkit"] rk-tick {
31
- @apply h-6;
32
- } */
33
- [data-style='rokkit'] rk-tick rk-tick-bar {
34
- @apply border-surface h-full;
35
- }
36
- [data-style='rokkit'] rk-tick p {
37
- @apply items-top text-surface-600;
38
- font-size: 8px;
39
- }
40
-
41
- /* Styles for 'thumb' class */
42
- [data-style='rokkit'] rk-thumb {
43
- @apply from-primary to-secondary border-secondary border bg-gradient-to-r shadow-xl;
44
- }
45
- [data-style='rokkit'] rk-thumb.sliding::before {
46
- content: '';
47
- @apply bg-secondary absolute bottom-0 left-0 right-0 top-0 rounded-sm opacity-30;
48
- transform: scale(2, 2);
49
- }
50
-
51
- /* Styles for 'button[role='switch']' class */
52
- [data-style='rokkit'] button[role='switch'] {
53
- @apply h-8 min-h-6 w-16 rounded-full p-0;
54
- @apply bg-surface-z2 border-surface-z2 border;
55
- }
56
- [data-style='rokkit'] button[role='switch'] > rk-mark {
57
- @apply top-0.75 h-6 w-6 rounded-full;
58
- @apply from-primary to-secondary bg-gradient-to-r;
59
- }
60
-
61
- /* Styles for 'rating' class */
62
- [data-style='rokkit'] rating {
63
- @apply focus:outline-secondary text-surface-600 h-9 justify-center rounded text-xl focus:outline;
64
- }
65
- [data-style='rokkit'] rating > icon {
66
- @apply w-8;
67
- }
68
- [data-style='rokkit'] rating:focus-within icon[aria-checked='true'] {
69
- @apply text-primary;
70
- }
71
- [data-style='rokkit'] rating icon.hovering > i {
72
- @apply text-secondary;
73
- }
74
-
75
- /* Pill styles */
76
- [data-style='rokkit'] .pill {
77
- @apply bg-surface-z0 border-surface-z2 flex-grow-0 rounded-full border px-2 py-1;
78
- }
79
- [data-style='rokkit'] .pill > icon[role='button'] {
80
- @apply hover:bg-surface-z3 h-5 w-5 rounded-full hover:text-current focus:m-0 focus:rounded-full;
81
- }
82
-
83
- [data-style='rokkit'] .pill > rk-item {
84
- @apply gap-2 px-2 leading-6;
85
- }
86
- [data-style='rokkit'] .pill > rk-item > img {
87
- @apply h-4 w-4;
88
- }
89
-
90
- /* Styles for 'item' class */
91
- [data-style='rokkit'] rk-item,
92
- [data-style='rokkit'] rk-list-item {
93
- @apply flex flex-shrink items-center gap-1;
94
- }
95
- [data-style='rokkit'] rk-item > p,
96
- [data-style='rokkit'] rk-list-item > p {
97
- @apply flex-shrink text-ellipsis;
98
- }
99
-
100
- /* Image and link styles */
101
- [data-style='rokkit'] rk-item > img,
102
- [data-style='rokkit'] rk-item > a > img,
103
- [data-style='rokkit'] rk-list-item > img,
104
- [data-style='rokkit'] rk-list-item > a > img {
105
- @apply h-6 w-6;
106
- }
107
- [data-style='rokkit'] rk-item > a,
108
- [data-style='rokkit'] rk-list-item > a {
109
- @apply gap-2;
110
- }
111
- [data-style='rokkit'] rk-node rk-item {
112
- @apply gap-2 px-1;
113
- }
114
- /* rk-crumbs styles */
115
- [data-style='rokkit'] rk-crumbs {
116
- @apply flex-grow gap-1;
117
- }
118
- [data-style='rokkit'] rk-crumbs rk-crumb.is-selected {
119
- @apply text-secondary-700;
120
- }
121
-
122
- [data-style='rokkit'] rk-day-of-month[aria-selected='true'] {
123
- @apply from-primary to-secondary text-surface-200 dark:text-surface-800 bg-gradient-to-r;
124
- }