@rokkit/themes 1.0.0-next.153 → 1.0.0-next.155
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/base.css +111 -1
- package/dist/index.css +120 -2
- package/dist/rokkit.css +9 -1
- package/package.json +1 -1
- package/src/base/index.css +2 -0
- package/src/base/item.css +1 -1
- package/src/base/menu.css +1 -0
- package/src/base/select.css +2 -0
- package/src/base/tooltip.css +64 -0
- package/src/base/typography.css +31 -0
- package/src/base/upload-target.css +10 -0
- package/src/rokkit/button.css +1 -1
- package/src/rokkit/index.css +1 -0
- package/src/rokkit/tooltip.css +7 -0
package/dist/base.css
CHANGED
|
@@ -13,6 +13,38 @@
|
|
|
13
13
|
* Import individual files for tree-shaking, or this file for all base styles.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Typography & Shape Tokens
|
|
18
|
+
*
|
|
19
|
+
* CSS custom properties for font families and border-radius scale.
|
|
20
|
+
* Override these in your application stylesheet to customize typography and shape.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* :root {
|
|
24
|
+
* --font-sans: 'Inter', system-ui, sans-serif;
|
|
25
|
+
* --font-mono: 'JetBrains Mono', monospace;
|
|
26
|
+
* --font-heading: 'Cal Sans', 'Inter', sans-serif;
|
|
27
|
+
*
|
|
28
|
+
* --radius-sm: 0; --* sharp corners *--
|
|
29
|
+
* --radius-md: 0;
|
|
30
|
+
* --radius-lg: 0;
|
|
31
|
+
* }
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
:root {
|
|
35
|
+
/* Font families */
|
|
36
|
+
--font-sans: 'Open Sans', -apple-system, system-ui, 'Segoe UI', ui-serif, sans-serif;
|
|
37
|
+
--font-mono: 'Victor Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
|
|
38
|
+
--font-heading: 'Open Sans', sans-serif;
|
|
39
|
+
|
|
40
|
+
/* Border-radius scale */
|
|
41
|
+
--radius-sm: 0.25rem;
|
|
42
|
+
--radius-md: 0.375rem;
|
|
43
|
+
--radius-lg: 0.5rem;
|
|
44
|
+
--radius-xl: 0.75rem;
|
|
45
|
+
--radius-full: 9999px;
|
|
46
|
+
}
|
|
47
|
+
|
|
16
48
|
/**
|
|
17
49
|
* Density System — CSS Custom Property Scale
|
|
18
50
|
*
|
|
@@ -393,7 +425,7 @@
|
|
|
393
425
|
flex-shrink: 0;
|
|
394
426
|
margin-left: auto;
|
|
395
427
|
padding: 0.125rem 0.375rem;
|
|
396
|
-
font-family:
|
|
428
|
+
font-family: var(--font-mono);
|
|
397
429
|
font-size: 0.75em;
|
|
398
430
|
font-weight: 500;
|
|
399
431
|
border-radius: 0.25rem;
|
|
@@ -511,6 +543,7 @@
|
|
|
511
543
|
min-width: 200px;
|
|
512
544
|
max-height: 400px;
|
|
513
545
|
overflow-y: auto;
|
|
546
|
+
overscroll-behavior: contain;
|
|
514
547
|
border-radius: 0.5rem;
|
|
515
548
|
}
|
|
516
549
|
|
|
@@ -1025,7 +1058,9 @@
|
|
|
1025
1058
|
position: absolute;
|
|
1026
1059
|
z-index: 50;
|
|
1027
1060
|
min-width: 100%;
|
|
1061
|
+
max-height: var(--select-dropdown-max-height, 200px);
|
|
1028
1062
|
overflow-y: auto;
|
|
1063
|
+
overscroll-behavior: contain;
|
|
1029
1064
|
border-radius: 0.5rem;
|
|
1030
1065
|
}
|
|
1031
1066
|
|
|
@@ -5076,6 +5111,16 @@ a[data-card] {
|
|
|
5076
5111
|
user-select: none;
|
|
5077
5112
|
}
|
|
5078
5113
|
|
|
5114
|
+
[data-upload-target][data-size='small'] {
|
|
5115
|
+
min-height: 4rem;
|
|
5116
|
+
padding: 0.75rem;
|
|
5117
|
+
gap: 0;
|
|
5118
|
+
}
|
|
5119
|
+
|
|
5120
|
+
[data-upload-target][data-size='small'] [data-upload-icon] {
|
|
5121
|
+
font-size: 1.25rem;
|
|
5122
|
+
}
|
|
5123
|
+
|
|
5079
5124
|
[data-upload-target]:focus {
|
|
5080
5125
|
outline: none;
|
|
5081
5126
|
}
|
|
@@ -6006,3 +6051,68 @@ button[data-step-number] {
|
|
|
6006
6051
|
right: -0.125rem;
|
|
6007
6052
|
}
|
|
6008
6053
|
|
|
6054
|
+
/**
|
|
6055
|
+
* Tooltip - Base Structural Styles
|
|
6056
|
+
*
|
|
6057
|
+
* Positions the tooltip bubble relative to its trigger via CSS.
|
|
6058
|
+
* Visibility driven by data-tooltip-visible — never display:none,
|
|
6059
|
+
* preserving layout anchor and allowing CSS transitions.
|
|
6060
|
+
*/
|
|
6061
|
+
|
|
6062
|
+
[data-tooltip-root] {
|
|
6063
|
+
position: relative;
|
|
6064
|
+
display: inline-flex;
|
|
6065
|
+
}
|
|
6066
|
+
|
|
6067
|
+
[data-tooltip-content] {
|
|
6068
|
+
position: absolute;
|
|
6069
|
+
z-index: 100;
|
|
6070
|
+
max-width: 16rem;
|
|
6071
|
+
width: max-content;
|
|
6072
|
+
padding: 0.25rem 0.5rem;
|
|
6073
|
+
border-radius: 0.25rem;
|
|
6074
|
+
font-size: 0.75rem;
|
|
6075
|
+
line-height: 1.4;
|
|
6076
|
+
pointer-events: none;
|
|
6077
|
+
white-space: normal;
|
|
6078
|
+
transition:
|
|
6079
|
+
opacity 120ms ease,
|
|
6080
|
+
visibility 120ms ease;
|
|
6081
|
+
}
|
|
6082
|
+
|
|
6083
|
+
/* Position variants */
|
|
6084
|
+
[data-tooltip-content][data-tooltip-position='top'] {
|
|
6085
|
+
bottom: calc(100% + 6px);
|
|
6086
|
+
left: 50%;
|
|
6087
|
+
transform: translateX(-50%);
|
|
6088
|
+
}
|
|
6089
|
+
|
|
6090
|
+
[data-tooltip-content][data-tooltip-position='bottom'] {
|
|
6091
|
+
top: calc(100% + 6px);
|
|
6092
|
+
left: 50%;
|
|
6093
|
+
transform: translateX(-50%);
|
|
6094
|
+
}
|
|
6095
|
+
|
|
6096
|
+
[data-tooltip-content][data-tooltip-position='left'] {
|
|
6097
|
+
right: calc(100% + 6px);
|
|
6098
|
+
top: 50%;
|
|
6099
|
+
transform: translateY(-50%);
|
|
6100
|
+
}
|
|
6101
|
+
|
|
6102
|
+
[data-tooltip-content][data-tooltip-position='right'] {
|
|
6103
|
+
left: calc(100% + 6px);
|
|
6104
|
+
top: 50%;
|
|
6105
|
+
transform: translateY(-50%);
|
|
6106
|
+
}
|
|
6107
|
+
|
|
6108
|
+
/* Visibility */
|
|
6109
|
+
[data-tooltip-content][data-tooltip-visible='false'] {
|
|
6110
|
+
visibility: hidden;
|
|
6111
|
+
opacity: 0;
|
|
6112
|
+
}
|
|
6113
|
+
|
|
6114
|
+
[data-tooltip-content][data-tooltip-visible='true'] {
|
|
6115
|
+
visibility: visible;
|
|
6116
|
+
opacity: 1;
|
|
6117
|
+
}
|
|
6118
|
+
|
package/dist/index.css
CHANGED
|
@@ -13,6 +13,38 @@
|
|
|
13
13
|
* Import individual files for tree-shaking, or this file for all base styles.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Typography & Shape Tokens
|
|
18
|
+
*
|
|
19
|
+
* CSS custom properties for font families and border-radius scale.
|
|
20
|
+
* Override these in your application stylesheet to customize typography and shape.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* :root {
|
|
24
|
+
* --font-sans: 'Inter', system-ui, sans-serif;
|
|
25
|
+
* --font-mono: 'JetBrains Mono', monospace;
|
|
26
|
+
* --font-heading: 'Cal Sans', 'Inter', sans-serif;
|
|
27
|
+
*
|
|
28
|
+
* --radius-sm: 0; --* sharp corners *--
|
|
29
|
+
* --radius-md: 0;
|
|
30
|
+
* --radius-lg: 0;
|
|
31
|
+
* }
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
:root {
|
|
35
|
+
/* Font families */
|
|
36
|
+
--font-sans: 'Open Sans', -apple-system, system-ui, 'Segoe UI', ui-serif, sans-serif;
|
|
37
|
+
--font-mono: 'Victor Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
|
|
38
|
+
--font-heading: 'Open Sans', sans-serif;
|
|
39
|
+
|
|
40
|
+
/* Border-radius scale */
|
|
41
|
+
--radius-sm: 0.25rem;
|
|
42
|
+
--radius-md: 0.375rem;
|
|
43
|
+
--radius-lg: 0.5rem;
|
|
44
|
+
--radius-xl: 0.75rem;
|
|
45
|
+
--radius-full: 9999px;
|
|
46
|
+
}
|
|
47
|
+
|
|
16
48
|
/**
|
|
17
49
|
* Density System — CSS Custom Property Scale
|
|
18
50
|
*
|
|
@@ -393,7 +425,7 @@
|
|
|
393
425
|
flex-shrink: 0;
|
|
394
426
|
margin-left: auto;
|
|
395
427
|
padding: 0.125rem 0.375rem;
|
|
396
|
-
font-family:
|
|
428
|
+
font-family: var(--font-mono);
|
|
397
429
|
font-size: 0.75em;
|
|
398
430
|
font-weight: 500;
|
|
399
431
|
border-radius: 0.25rem;
|
|
@@ -511,6 +543,7 @@
|
|
|
511
543
|
min-width: 200px;
|
|
512
544
|
max-height: 400px;
|
|
513
545
|
overflow-y: auto;
|
|
546
|
+
overscroll-behavior: contain;
|
|
514
547
|
border-radius: 0.5rem;
|
|
515
548
|
}
|
|
516
549
|
|
|
@@ -1025,7 +1058,9 @@
|
|
|
1025
1058
|
position: absolute;
|
|
1026
1059
|
z-index: 50;
|
|
1027
1060
|
min-width: 100%;
|
|
1061
|
+
max-height: var(--select-dropdown-max-height, 200px);
|
|
1028
1062
|
overflow-y: auto;
|
|
1063
|
+
overscroll-behavior: contain;
|
|
1029
1064
|
border-radius: 0.5rem;
|
|
1030
1065
|
}
|
|
1031
1066
|
|
|
@@ -5076,6 +5111,16 @@ a[data-card] {
|
|
|
5076
5111
|
user-select: none;
|
|
5077
5112
|
}
|
|
5078
5113
|
|
|
5114
|
+
[data-upload-target][data-size='small'] {
|
|
5115
|
+
min-height: 4rem;
|
|
5116
|
+
padding: 0.75rem;
|
|
5117
|
+
gap: 0;
|
|
5118
|
+
}
|
|
5119
|
+
|
|
5120
|
+
[data-upload-target][data-size='small'] [data-upload-icon] {
|
|
5121
|
+
font-size: 1.25rem;
|
|
5122
|
+
}
|
|
5123
|
+
|
|
5079
5124
|
[data-upload-target]:focus {
|
|
5080
5125
|
outline: none;
|
|
5081
5126
|
}
|
|
@@ -6006,6 +6051,71 @@ button[data-step-number] {
|
|
|
6006
6051
|
right: -0.125rem;
|
|
6007
6052
|
}
|
|
6008
6053
|
|
|
6054
|
+
/**
|
|
6055
|
+
* Tooltip - Base Structural Styles
|
|
6056
|
+
*
|
|
6057
|
+
* Positions the tooltip bubble relative to its trigger via CSS.
|
|
6058
|
+
* Visibility driven by data-tooltip-visible — never display:none,
|
|
6059
|
+
* preserving layout anchor and allowing CSS transitions.
|
|
6060
|
+
*/
|
|
6061
|
+
|
|
6062
|
+
[data-tooltip-root] {
|
|
6063
|
+
position: relative;
|
|
6064
|
+
display: inline-flex;
|
|
6065
|
+
}
|
|
6066
|
+
|
|
6067
|
+
[data-tooltip-content] {
|
|
6068
|
+
position: absolute;
|
|
6069
|
+
z-index: 100;
|
|
6070
|
+
max-width: 16rem;
|
|
6071
|
+
width: max-content;
|
|
6072
|
+
padding: 0.25rem 0.5rem;
|
|
6073
|
+
border-radius: 0.25rem;
|
|
6074
|
+
font-size: 0.75rem;
|
|
6075
|
+
line-height: 1.4;
|
|
6076
|
+
pointer-events: none;
|
|
6077
|
+
white-space: normal;
|
|
6078
|
+
transition:
|
|
6079
|
+
opacity 120ms ease,
|
|
6080
|
+
visibility 120ms ease;
|
|
6081
|
+
}
|
|
6082
|
+
|
|
6083
|
+
/* Position variants */
|
|
6084
|
+
[data-tooltip-content][data-tooltip-position='top'] {
|
|
6085
|
+
bottom: calc(100% + 6px);
|
|
6086
|
+
left: 50%;
|
|
6087
|
+
transform: translateX(-50%);
|
|
6088
|
+
}
|
|
6089
|
+
|
|
6090
|
+
[data-tooltip-content][data-tooltip-position='bottom'] {
|
|
6091
|
+
top: calc(100% + 6px);
|
|
6092
|
+
left: 50%;
|
|
6093
|
+
transform: translateX(-50%);
|
|
6094
|
+
}
|
|
6095
|
+
|
|
6096
|
+
[data-tooltip-content][data-tooltip-position='left'] {
|
|
6097
|
+
right: calc(100% + 6px);
|
|
6098
|
+
top: 50%;
|
|
6099
|
+
transform: translateY(-50%);
|
|
6100
|
+
}
|
|
6101
|
+
|
|
6102
|
+
[data-tooltip-content][data-tooltip-position='right'] {
|
|
6103
|
+
left: calc(100% + 6px);
|
|
6104
|
+
top: 50%;
|
|
6105
|
+
transform: translateY(-50%);
|
|
6106
|
+
}
|
|
6107
|
+
|
|
6108
|
+
/* Visibility */
|
|
6109
|
+
[data-tooltip-content][data-tooltip-visible='false'] {
|
|
6110
|
+
visibility: hidden;
|
|
6111
|
+
opacity: 0;
|
|
6112
|
+
}
|
|
6113
|
+
|
|
6114
|
+
[data-tooltip-content][data-tooltip-visible='true'] {
|
|
6115
|
+
visibility: visible;
|
|
6116
|
+
opacity: 1;
|
|
6117
|
+
}
|
|
6118
|
+
|
|
6009
6119
|
|
|
6010
6120
|
/**
|
|
6011
6121
|
* @rokkit/themes - Rokkit Theme
|
|
@@ -6029,7 +6139,7 @@ button[data-step-number] {
|
|
|
6029
6139
|
[data-style='rokkit'] [data-button]:not([data-style])[data-variant='default'],
|
|
6030
6140
|
[data-style='rokkit'] [data-button][data-style='default']:not([data-variant]),
|
|
6031
6141
|
[data-style='rokkit'] [data-button]:not([data-style]):not([data-variant]) {
|
|
6032
|
-
border-width:1px;--un-border-opacity:1;border-color:rgba(var(--color-surface-400),var(--un-border-opacity));--un-gradient-from-position:0%;--un-gradient-from:rgba(var(--color-surface-300),1) var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:rgb(255 255 255 / 0) var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from), var(--un-gradient-to);--un-gradient-to-position:100%;--un-gradient-to:rgba(var(--color-surface-200),1) var(--un-gradient-to-position);--un-gradient-shape:to
|
|
6142
|
+
border-width:1px;--un-border-opacity:1;border-color:rgba(var(--color-surface-400),var(--un-border-opacity));--un-gradient-from-position:0%;--un-gradient-from:rgba(var(--color-surface-300),1) var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:rgb(255 255 255 / 0) var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from), var(--un-gradient-to);--un-gradient-to-position:100%;--un-gradient-to:rgba(var(--color-surface-200),1) var(--un-gradient-to-position);--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape), var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));--un-text-opacity:1;color:rgba(var(--color-surface-800),var(--un-text-opacity));
|
|
6033
6143
|
}[data-mode="dark"][data-style="rokkit"] [data-button][data-style="default"][data-variant="default"],[data-mode="dark"] [data-style="rokkit"] [data-button][data-style="default"][data-variant="default"],[data-mode="dark"][data-style="rokkit"] [data-button]:not([data-style])[data-variant="default"],[data-mode="dark"] [data-style="rokkit"] [data-button]:not([data-style])[data-variant="default"],[data-mode="dark"][data-style="rokkit"] [data-button][data-style="default"]:not([data-variant]),[data-mode="dark"] [data-style="rokkit"] [data-button][data-style="default"]:not([data-variant]),[data-mode="dark"][data-style="rokkit"] [data-button]:not([data-style]):not([data-variant]),[data-mode="dark"] [data-style="rokkit"] [data-button]:not([data-style]):not([data-variant]){--un-border-opacity:1;border-color:rgba(var(--color-surface-600),var(--un-border-opacity));--un-gradient-from-position:0%;--un-gradient-from:rgba(var(--color-surface-700),1) var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:rgb(255 255 255 / 0) var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from), var(--un-gradient-to);--un-gradient-to-position:100%;--un-gradient-to:rgba(var(--color-surface-800),1) var(--un-gradient-to-position);--un-text-opacity:1;color:rgba(var(--color-surface-200),var(--un-text-opacity));}
|
|
6034
6144
|
|
|
6035
6145
|
/* Primary variant */
|
|
@@ -8470,6 +8580,14 @@ button[data-step-number] {
|
|
|
8470
8580
|
--un-border-opacity:1;border-color:rgba(var(--color-surface-100),var(--un-border-opacity));
|
|
8471
8581
|
}[data-mode="dark"][data-style="rokkit"] [data-avatar-status],[data-mode="dark"] [data-style="rokkit"] [data-avatar-status]{--un-border-opacity:1;border-color:rgba(var(--color-surface-900),var(--un-border-opacity));}
|
|
8472
8582
|
|
|
8583
|
+
/**
|
|
8584
|
+
* Tooltip - Rokkit Theme Styles
|
|
8585
|
+
*/
|
|
8586
|
+
|
|
8587
|
+
[data-style='rokkit'] [data-tooltip-content] {
|
|
8588
|
+
--un-bg-opacity:1;background-color:rgba(var(--color-surface-800),var(--un-bg-opacity));--un-text-opacity:1;color:rgba(var(--color-surface-100),var(--un-text-opacity));
|
|
8589
|
+
}[data-mode="dark"][data-style="rokkit"] [data-tooltip-content],[data-mode="dark"] [data-style="rokkit"] [data-tooltip-content]{--un-bg-opacity:1;background-color:rgba(var(--color-surface-200),var(--un-bg-opacity));--un-text-opacity:1;color:rgba(var(--color-surface-900),var(--un-text-opacity));}
|
|
8590
|
+
|
|
8473
8591
|
|
|
8474
8592
|
/**
|
|
8475
8593
|
* @rokkit/themes - Minimal Theme
|
package/dist/rokkit.css
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
[data-style='rokkit'] [data-button]:not([data-style])[data-variant='default'],
|
|
21
21
|
[data-style='rokkit'] [data-button][data-style='default']:not([data-variant]),
|
|
22
22
|
[data-style='rokkit'] [data-button]:not([data-style]):not([data-variant]) {
|
|
23
|
-
border-width:1px;--un-border-opacity:1;border-color:rgba(var(--color-surface-400),var(--un-border-opacity));--un-gradient-from-position:0%;--un-gradient-from:rgba(var(--color-surface-300),1) var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:rgb(255 255 255 / 0) var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from), var(--un-gradient-to);--un-gradient-to-position:100%;--un-gradient-to:rgba(var(--color-surface-200),1) var(--un-gradient-to-position);--un-gradient-shape:to
|
|
23
|
+
border-width:1px;--un-border-opacity:1;border-color:rgba(var(--color-surface-400),var(--un-border-opacity));--un-gradient-from-position:0%;--un-gradient-from:rgba(var(--color-surface-300),1) var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:rgb(255 255 255 / 0) var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from), var(--un-gradient-to);--un-gradient-to-position:100%;--un-gradient-to:rgba(var(--color-surface-200),1) var(--un-gradient-to-position);--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape), var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));--un-text-opacity:1;color:rgba(var(--color-surface-800),var(--un-text-opacity));
|
|
24
24
|
}[data-mode="dark"][data-style="rokkit"] [data-button][data-style="default"][data-variant="default"],[data-mode="dark"] [data-style="rokkit"] [data-button][data-style="default"][data-variant="default"],[data-mode="dark"][data-style="rokkit"] [data-button]:not([data-style])[data-variant="default"],[data-mode="dark"] [data-style="rokkit"] [data-button]:not([data-style])[data-variant="default"],[data-mode="dark"][data-style="rokkit"] [data-button][data-style="default"]:not([data-variant]),[data-mode="dark"] [data-style="rokkit"] [data-button][data-style="default"]:not([data-variant]),[data-mode="dark"][data-style="rokkit"] [data-button]:not([data-style]):not([data-variant]),[data-mode="dark"] [data-style="rokkit"] [data-button]:not([data-style]):not([data-variant]){--un-border-opacity:1;border-color:rgba(var(--color-surface-600),var(--un-border-opacity));--un-gradient-from-position:0%;--un-gradient-from:rgba(var(--color-surface-700),1) var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:rgb(255 255 255 / 0) var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from), var(--un-gradient-to);--un-gradient-to-position:100%;--un-gradient-to:rgba(var(--color-surface-800),1) var(--un-gradient-to-position);--un-text-opacity:1;color:rgba(var(--color-surface-200),var(--un-text-opacity));}
|
|
25
25
|
|
|
26
26
|
/* Primary variant */
|
|
@@ -2461,3 +2461,11 @@
|
|
|
2461
2461
|
--un-border-opacity:1;border-color:rgba(var(--color-surface-100),var(--un-border-opacity));
|
|
2462
2462
|
}[data-mode="dark"][data-style="rokkit"] [data-avatar-status],[data-mode="dark"] [data-style="rokkit"] [data-avatar-status]{--un-border-opacity:1;border-color:rgba(var(--color-surface-900),var(--un-border-opacity));}
|
|
2463
2463
|
|
|
2464
|
+
/**
|
|
2465
|
+
* Tooltip - Rokkit Theme Styles
|
|
2466
|
+
*/
|
|
2467
|
+
|
|
2468
|
+
[data-style='rokkit'] [data-tooltip-content] {
|
|
2469
|
+
--un-bg-opacity:1;background-color:rgba(var(--color-surface-800),var(--un-bg-opacity));--un-text-opacity:1;color:rgba(var(--color-surface-100),var(--un-text-opacity));
|
|
2470
|
+
}[data-mode="dark"][data-style="rokkit"] [data-tooltip-content],[data-mode="dark"] [data-style="rokkit"] [data-tooltip-content]{--un-bg-opacity:1;background-color:rgba(var(--color-surface-200),var(--un-bg-opacity));--un-text-opacity:1;color:rgba(var(--color-surface-900),var(--un-text-opacity));}
|
|
2471
|
+
|
package/package.json
CHANGED
package/src/base/index.css
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* Import individual files for tree-shaking, or this file for all base styles.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
@import './typography.css';
|
|
8
9
|
@import './density.css';
|
|
9
10
|
@import './button.css';
|
|
10
11
|
@import './item.css';
|
|
@@ -51,3 +52,4 @@
|
|
|
51
52
|
@import './stack.css';
|
|
52
53
|
@import './badge.css';
|
|
53
54
|
@import './avatar.css';
|
|
55
|
+
@import './tooltip.css';
|
package/src/base/item.css
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
flex-shrink: 0;
|
|
72
72
|
margin-left: auto;
|
|
73
73
|
padding: 0.125rem 0.375rem;
|
|
74
|
-
font-family:
|
|
74
|
+
font-family: var(--font-mono);
|
|
75
75
|
font-size: 0.75em;
|
|
76
76
|
font-weight: 500;
|
|
77
77
|
border-radius: 0.25rem;
|
package/src/base/menu.css
CHANGED
package/src/base/select.css
CHANGED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tooltip - Base Structural Styles
|
|
3
|
+
*
|
|
4
|
+
* Positions the tooltip bubble relative to its trigger via CSS.
|
|
5
|
+
* Visibility driven by data-tooltip-visible — never display:none,
|
|
6
|
+
* preserving layout anchor and allowing CSS transitions.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
[data-tooltip-root] {
|
|
10
|
+
position: relative;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[data-tooltip-content] {
|
|
15
|
+
position: absolute;
|
|
16
|
+
z-index: 100;
|
|
17
|
+
max-width: 16rem;
|
|
18
|
+
width: max-content;
|
|
19
|
+
padding: 0.25rem 0.5rem;
|
|
20
|
+
border-radius: 0.25rem;
|
|
21
|
+
font-size: 0.75rem;
|
|
22
|
+
line-height: 1.4;
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
white-space: normal;
|
|
25
|
+
transition:
|
|
26
|
+
opacity 120ms ease,
|
|
27
|
+
visibility 120ms ease;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Position variants */
|
|
31
|
+
[data-tooltip-content][data-tooltip-position='top'] {
|
|
32
|
+
bottom: calc(100% + 6px);
|
|
33
|
+
left: 50%;
|
|
34
|
+
transform: translateX(-50%);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[data-tooltip-content][data-tooltip-position='bottom'] {
|
|
38
|
+
top: calc(100% + 6px);
|
|
39
|
+
left: 50%;
|
|
40
|
+
transform: translateX(-50%);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-tooltip-content][data-tooltip-position='left'] {
|
|
44
|
+
right: calc(100% + 6px);
|
|
45
|
+
top: 50%;
|
|
46
|
+
transform: translateY(-50%);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-tooltip-content][data-tooltip-position='right'] {
|
|
50
|
+
left: calc(100% + 6px);
|
|
51
|
+
top: 50%;
|
|
52
|
+
transform: translateY(-50%);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Visibility */
|
|
56
|
+
[data-tooltip-content][data-tooltip-visible='false'] {
|
|
57
|
+
visibility: hidden;
|
|
58
|
+
opacity: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-tooltip-content][data-tooltip-visible='true'] {
|
|
62
|
+
visibility: visible;
|
|
63
|
+
opacity: 1;
|
|
64
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typography & Shape Tokens
|
|
3
|
+
*
|
|
4
|
+
* CSS custom properties for font families and border-radius scale.
|
|
5
|
+
* Override these in your application stylesheet to customize typography and shape.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* :root {
|
|
9
|
+
* --font-sans: 'Inter', system-ui, sans-serif;
|
|
10
|
+
* --font-mono: 'JetBrains Mono', monospace;
|
|
11
|
+
* --font-heading: 'Cal Sans', 'Inter', sans-serif;
|
|
12
|
+
*
|
|
13
|
+
* --radius-sm: 0; --* sharp corners *--
|
|
14
|
+
* --radius-md: 0;
|
|
15
|
+
* --radius-lg: 0;
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
:root {
|
|
20
|
+
/* Font families */
|
|
21
|
+
--font-sans: 'Open Sans', -apple-system, system-ui, 'Segoe UI', ui-serif, sans-serif;
|
|
22
|
+
--font-mono: 'Victor Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
|
|
23
|
+
--font-heading: 'Open Sans', sans-serif;
|
|
24
|
+
|
|
25
|
+
/* Border-radius scale */
|
|
26
|
+
--radius-sm: 0.25rem;
|
|
27
|
+
--radius-md: 0.375rem;
|
|
28
|
+
--radius-lg: 0.5rem;
|
|
29
|
+
--radius-xl: 0.75rem;
|
|
30
|
+
--radius-full: 9999px;
|
|
31
|
+
}
|
|
@@ -26,6 +26,16 @@
|
|
|
26
26
|
user-select: none;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
[data-upload-target][data-size='small'] {
|
|
30
|
+
min-height: 4rem;
|
|
31
|
+
padding: 0.75rem;
|
|
32
|
+
gap: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-upload-target][data-size='small'] [data-upload-icon] {
|
|
36
|
+
font-size: 1.25rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
29
39
|
[data-upload-target]:focus {
|
|
30
40
|
outline: none;
|
|
31
41
|
}
|
package/src/rokkit/button.css
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
[data-style='rokkit'] [data-button]:not([data-style])[data-variant='default'],
|
|
14
14
|
[data-style='rokkit'] [data-button][data-style='default']:not([data-variant]),
|
|
15
15
|
[data-style='rokkit'] [data-button]:not([data-style]):not([data-variant]) {
|
|
16
|
-
@apply from-surface-z3 to-surface-z2 border-surface-z4 text-surface-z8 border bg-gradient-to-
|
|
16
|
+
@apply from-surface-z3 to-surface-z2 border-surface-z4 text-surface-z8 border bg-gradient-to-r;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/* Primary variant */
|
package/src/rokkit/index.css
CHANGED