@helpwave/hightide 0.2.0 → 0.3.0
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/index.d.mts +142 -196
- package/dist/index.d.ts +142 -196
- package/dist/index.js +862 -986
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1048 -1166
- package/dist/index.mjs.map +1 -1
- package/dist/style/globals.css +441 -556
- package/dist/style/uncompiled/globals.css +0 -215
- package/dist/style/uncompiled/theme/breakpoints.css +8 -0
- package/dist/style/uncompiled/theme/colors-basic.css +2 -0
- package/dist/style/uncompiled/theme/colors-component.css +1 -77
- package/dist/style/uncompiled/theme/colors-semantic.css +24 -20
- package/dist/style/uncompiled/theme/components.css +211 -0
- package/dist/style/uncompiled/theme/index.css +4 -1
- package/dist/style/uncompiled/utitlity/animation.css +3 -3
- package/dist/style/uncompiled/utitlity/coloring.css +126 -0
- package/dist/style/uncompiled/utitlity/index.css +2 -1
- package/package.json +1 -4
- /package/dist/style/uncompiled/{typography.css → theme/typography.css} +0 -0
|
@@ -5,218 +5,3 @@
|
|
|
5
5
|
|
|
6
6
|
/* theme */
|
|
7
7
|
@import './theme/index.css';
|
|
8
|
-
|
|
9
|
-
/* components */
|
|
10
|
-
@import './typography.css';
|
|
11
|
-
|
|
12
|
-
/* The theme variables */
|
|
13
|
-
@theme {
|
|
14
|
-
/*
|
|
15
|
-
* breakpoints
|
|
16
|
-
*/
|
|
17
|
-
--breakpoint-tablet: 48rem; /* 768px for 16px font-size */
|
|
18
|
-
--breakpoint-desktop: 64rem; /* 1024px for 16px font-size*/
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@layer components {
|
|
22
|
-
.btn-sm {
|
|
23
|
-
@apply flex-row-1 items-center justify-center px-1.5 py-1 rounded-1.5 h-8;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.btn-md {
|
|
27
|
-
@apply flex-row-2 items-center justify-center px-3 py-2 rounded-1.5 h-10;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.btn-lg {
|
|
31
|
-
@apply flex-row-2 items-center justify-center px-4 py-2.5 rounded-1.5 h-12;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.icon-btn-xs {
|
|
35
|
-
@apply flex-row-0 items-center justify-center p-1 rounded-1 h-6 w-6;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.icon-btn-sm {
|
|
39
|
-
@apply flex-row-0 items-center justify-center p-1.5 rounded-1.5 h-8 w-8;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.icon-btn-md {
|
|
43
|
-
@apply flex-row-0 items-center justify-center p-2 rounded-1.5 h-10 w-10;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.icon-btn-lg {
|
|
47
|
-
@apply flex-row-0 items-center justify-center p-3 rounded-1.5 h-12 w-12;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.card-sm {
|
|
51
|
-
@apply flex-col-2 bg-surface text-on-surface px-2 py-1 rounded;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.card-md {
|
|
55
|
-
@apply flex-col-2 bg-surface text-on-surface px-4 py-2 rounded-md;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.card-lg {
|
|
59
|
-
@apply flex-col-2 bg-surface text-on-surface px-8 py-4 rounded-lg;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.chip {
|
|
63
|
-
@apply flex-row-1 items-center justify-center px-2 py-1 rounded-md;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.chip-full {
|
|
67
|
-
@apply flex-row-1 items-center justify-center px-2 py-1 rounded-full;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.section-padding-x {
|
|
71
|
-
@apply px-6 tablet:px-12 desktop:px-24;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.section-padding-y {
|
|
75
|
-
@apply py-16;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.section-padding {
|
|
79
|
-
@apply px-6 tablet:px-12 desktop:px-24 py-16;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.link {
|
|
83
|
-
@apply decoration-3 p-2 hover:underline focus:underline font-bold text-lg rounded;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
* {
|
|
87
|
-
@apply border-border list-none;
|
|
88
|
-
|
|
89
|
-
@variant dark {
|
|
90
|
-
color-scheme: dark;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
html {
|
|
95
|
-
@apply bg-background text-on-background;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
button {
|
|
99
|
-
@apply cursor-pointer text-nowrap;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
input {
|
|
103
|
-
@apply placeholder-placeholder
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
*:disabled {
|
|
107
|
-
@apply cursor-not-allowed;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
@media (prefers-reduced-motion: reduce) {
|
|
111
|
-
* {
|
|
112
|
-
@apply transition-none animate-none;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/* move the focus styles into its own file and utilities */
|
|
117
|
-
*:focus {
|
|
118
|
-
@apply outline-0 ring-0;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
*:focus-visible {
|
|
122
|
-
@apply outline-2 outline-focus outline-offset-2;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.focus-style-within:focus-within {
|
|
126
|
-
@apply outline-2 outline-focus;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.focus-style-none {
|
|
130
|
-
@apply focus-visible:outline-0 focus-within:outline-0 outline-offset-0;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Table
|
|
135
|
-
*/
|
|
136
|
-
|
|
137
|
-
table {
|
|
138
|
-
@apply table-fixed border-separate border-spacing-0 bg-table-background text-table-text;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
th {
|
|
142
|
-
@apply px-3 first:pl-6 last:pr-6 py-2.5 border-y-1 first:border-l-1 last:border-r-1 first:rounded-tl-lg last:rounded-tr-lg bg-table-header-background text-label font-bold;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
tbody > tr {
|
|
146
|
-
@apply hover:bg-table-row-hover-background;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
td {
|
|
150
|
-
@apply px-3 first:pl-6 last:pr-6 py-2.5 border-b-1 first:border-l-1 last:border-r-1 [nth-last-child(1)]:first:rounded-bl-lg [nth-last-child(1)]:last:rounded-br-lg;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
tbody > tr:last-child > td {
|
|
154
|
-
@apply first:rounded-bl-lg last:rounded-br-lg;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.table-resize-indicator {
|
|
158
|
-
@apply absolute top-2 bottom-2 right-0;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
th:last-child > .table-resize-indicator {
|
|
162
|
-
@apply right-6;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Scrollbar
|
|
167
|
-
*/
|
|
168
|
-
@supports (scrollbar-color: auto) {
|
|
169
|
-
* {
|
|
170
|
-
scrollbar-color: var(--color-gray-500) transparent;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/* Otherwise, use `::-webkit-scrollbar-*` pseudo-elements */
|
|
175
|
-
|
|
176
|
-
@supports selector(::-webkit-scrollbar) {
|
|
177
|
-
* {
|
|
178
|
-
scrollbar-color: initial;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
:root{
|
|
182
|
-
--scrollbar-width: 10px;
|
|
183
|
-
--scrollbar-padding: 1px;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
*::-webkit-scrollbar {
|
|
187
|
-
width: var(--scrollbar-width);
|
|
188
|
-
height: var(--scrollbar-width);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
*::-webkit-scrollbar-track {
|
|
192
|
-
border-radius: 9999px;
|
|
193
|
-
background: transparent;
|
|
194
|
-
cursor: default;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
*::-webkit-scrollbar-thumb {
|
|
198
|
-
background-color: var(--color-gray-500);
|
|
199
|
-
border-radius: 9999px;
|
|
200
|
-
border: var(--scrollbar-padding) solid transparent;
|
|
201
|
-
background-clip: padding-box;
|
|
202
|
-
cursor: default;
|
|
203
|
-
transition: background-color 0.2s ease;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
*::-webkit-scrollbar-thumb:active {
|
|
207
|
-
background-color: var(--color-gray-600);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
*::-webkit-scrollbar-thumb:vertical {
|
|
211
|
-
min-height: calc(var(--scrollbar-width) * 3);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
*::-webkit-scrollbar-thumb:horizontal {
|
|
215
|
-
min-width: calc(var(--scrollbar-width) * 3);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
*::-webkit-scrollbar-corner {
|
|
219
|
-
background: transparent;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
/* Green */
|
|
30
30
|
--color-green-100: #D1EFD8;
|
|
31
31
|
--color-green-500: #69CB81;
|
|
32
|
+
--color-green-600: #61bf78;
|
|
32
33
|
--color-green-700: #53a567;
|
|
33
34
|
--color-green-900: #2C5536;
|
|
34
35
|
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
--color-orange-100: #FBECD9;
|
|
37
38
|
--color-orange-200: #F7D8B3;
|
|
38
39
|
--color-orange-500: #EA9E40;
|
|
40
|
+
--color-orange-600: #c18133;
|
|
39
41
|
|
|
40
42
|
/* Purple */
|
|
41
43
|
--color-purple-50: #EFE6FD;
|
|
@@ -10,46 +10,9 @@
|
|
|
10
10
|
--color-icon-secondary: var(--color-text-secondary);
|
|
11
11
|
--color-icon-highlight: var(--color-highlight);
|
|
12
12
|
|
|
13
|
-
/* Button Outline */
|
|
14
|
-
--color-button-outline-primary-outline: var(--color-primary);
|
|
15
|
-
--color-button-outline-primary-icon: var(--color-primary);
|
|
16
|
-
--color-button-outline-primary-text: var(--color-primary);
|
|
17
|
-
|
|
18
|
-
/* Button Solid */
|
|
19
|
-
--color-button-solid-primary-background: var(--color-primary);
|
|
20
|
-
--color-button-solid-primary-text: var(--color-on-primary);
|
|
21
|
-
--color-button-solid-primary-icon: var(--color-on-primary);
|
|
22
|
-
--color-button-solid-secondary-background: var(--color-purple-50);
|
|
23
|
-
--color-button-solid-secondary-text: var(--color-primary);
|
|
24
|
-
--color-button-solid-secondary-icon: var(--color-primary);
|
|
25
|
-
--color-button-solid-tertiary-background: var(--color-gray-50);
|
|
26
|
-
--color-button-solid-tertiary-icon: var(--color-gray-500);
|
|
27
|
-
--color-button-solid-tertiary-text: var(--color-gray-500);
|
|
28
|
-
--color-button-solid-neutral-background: var(--color-gray-150);
|
|
29
|
-
--color-button-solid-neutral-icon: var(--color-text-primary);
|
|
30
|
-
--color-button-solid-neutral-text: var(--color-text-primary);
|
|
31
|
-
--color-button-solid-positive-background: var(--color-positive);
|
|
32
|
-
--color-button-solid-positive-icon: var(--color-on-positive);
|
|
33
|
-
--color-button-solid-positive-text: var(--color-on-positive);
|
|
34
|
-
--color-button-solid-warning-background: var(--color-warning);
|
|
35
|
-
--color-button-solid-warning-icon: var(--color-on-warning);
|
|
36
|
-
--color-button-solid-warning-text: var(--color-on-warning);
|
|
37
|
-
--color-button-solid-negative-background: var(--color-negative);
|
|
38
|
-
--color-button-solid-negative-icon: var(--color-on-negative);
|
|
39
|
-
--color-button-solid-negative-text: var(--color-on-negative);
|
|
40
|
-
|
|
41
|
-
/* Button Text */
|
|
42
|
-
--color-button-text-hover-background: #77777733;
|
|
43
|
-
--color-button-text-neutral-text: var(--color-gray-800);
|
|
44
|
-
--color-button-text-neutral-icon: var(--color-gray-800);
|
|
45
|
-
--color-button-text-negative-text: var(--color-negative);
|
|
46
|
-
--color-button-text-negative-icon: var(--color-negative);
|
|
47
|
-
--color-button-text-primary-text: var(--color-primary);
|
|
48
|
-
--color-button-text-primary-icon: var(--color-primary);
|
|
49
|
-
|
|
50
13
|
/* Carousel */
|
|
51
14
|
--color-carousel-dot-active: var(--color-primary);
|
|
52
|
-
--color-carousel-dot-disabled: var(--color-disabled
|
|
15
|
+
--color-carousel-dot-disabled: var(--color-disabled);
|
|
53
16
|
|
|
54
17
|
/* Input */
|
|
55
18
|
--color-input-background: var(--color-surface-variant);
|
|
@@ -91,32 +54,6 @@
|
|
|
91
54
|
--color-table-header-background: color-mix(in srgb, var(--color-blue-500) 15%, var(--color-surface));
|
|
92
55
|
--color-table-row-hover-background: color-mix(in srgb, var(--color-purple-500) 15%, var(--color-surface));
|
|
93
56
|
|
|
94
|
-
/* Tag */
|
|
95
|
-
--color-tag-dark-background: var(--color-gray-800);
|
|
96
|
-
--color-tag-dark-text: var(--color-gray-100);
|
|
97
|
-
--color-tag-dark-icon: var(--color-gray-100);
|
|
98
|
-
--color-tag-default-background: #50687C;
|
|
99
|
-
--color-tag-default-text: var(--color-gray-100);
|
|
100
|
-
--color-tag-default-icon: var(--color-gray-100);
|
|
101
|
-
--color-tag-green-background: #E2E9DB;
|
|
102
|
-
--color-tag-green-text: #7A977E;
|
|
103
|
-
--color-tag-green-icon: #7A977E;
|
|
104
|
-
--color-tag-yellow-background: #FEEACB;
|
|
105
|
-
--color-tag-yellow-text: #C79345;
|
|
106
|
-
--color-tag-yellow-icon: #C79345;
|
|
107
|
-
--color-tag-red-background: #FEE0DD;
|
|
108
|
-
--color-tag-red-text: #D67268;
|
|
109
|
-
--color-tag-red-icon: #D67268;
|
|
110
|
-
--color-tag-blue-background: #DBE2F3;
|
|
111
|
-
--color-tag-blue-text: #758ECE;
|
|
112
|
-
--color-tag-blue-icon: #758ECE;
|
|
113
|
-
--color-tag-pink-background: #F3DBE7;
|
|
114
|
-
--color-tag-pink-text: #CE75A0;
|
|
115
|
-
--color-tag-pink-icon: #CE75A0;
|
|
116
|
-
--color-tag-orange-background: #FEEACB;
|
|
117
|
-
--color-tag-orange-text: #EA8E00;
|
|
118
|
-
--color-tag-orange-icon: #EA8E00;
|
|
119
|
-
|
|
120
57
|
/* TextImage */
|
|
121
58
|
--color-text-image-primary-background: var(--color-primary);
|
|
122
59
|
--color-text-image-primary-text: var(--color-white);
|
|
@@ -141,16 +78,6 @@
|
|
|
141
78
|
@layer base {
|
|
142
79
|
/* dark theme */
|
|
143
80
|
@variant dark {
|
|
144
|
-
/* Button Solid */
|
|
145
|
-
--color-button-solid-neutral-background: var(--color-gray-750);
|
|
146
|
-
--color-button-solid-neutral-icon: var(--color-gray-100);
|
|
147
|
-
--color-button-solid-neutral-text: var(--color-gray-100);
|
|
148
|
-
|
|
149
|
-
/* Button Text */
|
|
150
|
-
--color-button-text-hover-background: #3F3F3F33;
|
|
151
|
-
--color-button-text-neutral-text: var(--color-gray-100);
|
|
152
|
-
--color-button-text-neutral-icon: var(--color-gray-100);
|
|
153
|
-
|
|
154
81
|
/* Property */
|
|
155
82
|
--color-property-title-background: var(--color-gray-750);
|
|
156
83
|
|
|
@@ -164,9 +91,6 @@
|
|
|
164
91
|
--color-scrollbar-track: #FFFFFF33;
|
|
165
92
|
--color-scrollbar-thumb: var(--color-gray-300);
|
|
166
93
|
|
|
167
|
-
/* Tag */
|
|
168
|
-
--color-tag-dark-background: var(--color-gray-900);
|
|
169
|
-
|
|
170
94
|
/* Other */
|
|
171
95
|
--color-border: var(--color-gray-600);
|
|
172
96
|
--color-divider: var(--color-gray-700);
|
|
@@ -9,39 +9,26 @@
|
|
|
9
9
|
--color-background: var(--color-gray-75);
|
|
10
10
|
--color-on-background: var(--color-text-primary);
|
|
11
11
|
|
|
12
|
-
/* Gender */
|
|
13
|
-
--color-gender-female: var(--color-red-400);
|
|
14
|
-
--color-gender-female-outline: var(--color-red-300);
|
|
15
|
-
--color-gender-female-surface: var(--color-red-100);
|
|
16
|
-
--color-gender-female-background: var(--color-red-50);
|
|
17
|
-
|
|
18
|
-
--color-gender-male: var(--color-blue-500);
|
|
19
|
-
--color-gender-male-outline: var(--color-blue-200);
|
|
20
|
-
--color-gender-male-surface: var(--color-blue-100);
|
|
21
|
-
--color-gender-male-background: var(--color-blue-50);
|
|
22
|
-
|
|
23
|
-
--color-gender-neutral: var(--color-gray-700);
|
|
24
|
-
--color-gender-neutral-outline: var(--color-gray-300);
|
|
25
|
-
--color-gender-neutral-surface: var(--color-gray-100);
|
|
26
|
-
--color-gender-neutral-background: var(--color-gray-25);
|
|
27
|
-
|
|
28
12
|
/* States */
|
|
29
13
|
--color-warning: var(--color-orange-500);
|
|
30
14
|
--color-on-warning: var(--color-white);
|
|
15
|
+
--color-warning-hover: var(--color-orange-600);
|
|
31
16
|
|
|
32
17
|
--color-positive: var(--color-green-500);
|
|
33
18
|
--color-on-positive: var(--color-white);
|
|
19
|
+
--color-positive-hover: var(--color-green-600);
|
|
34
20
|
|
|
35
21
|
--color-negative: var(--color-red-500);
|
|
36
22
|
--color-on-negative: var(--color-white);
|
|
37
|
-
--color-negative-
|
|
23
|
+
--color-negative-hover: var(--color-red-600);
|
|
38
24
|
|
|
39
25
|
--color-disabled: var(--color-gray-300);
|
|
40
|
-
--color-disabled
|
|
26
|
+
--color-on-disabled: var(--color-gray-500);
|
|
41
27
|
|
|
42
28
|
/* Surface */
|
|
43
29
|
--color-surface: var(--color-gray-50);
|
|
44
30
|
--color-on-surface: var(--color-text-primary);
|
|
31
|
+
--color-surface-hover: var(--color-gray-100);
|
|
45
32
|
--color-surface-variant: var(--color-white);
|
|
46
33
|
--color-surface-warning: var(--color-orange-100);
|
|
47
34
|
|
|
@@ -57,8 +44,20 @@
|
|
|
57
44
|
/* Other */
|
|
58
45
|
--color-primary: var(--color-purple-500);
|
|
59
46
|
--color-on-primary: var(--color-white);
|
|
60
|
-
--color-
|
|
47
|
+
--color-primary-hover: var(--color-purple-600);
|
|
48
|
+
|
|
49
|
+
--color-secondary: var(--color-blue-500);
|
|
61
50
|
--color-on-secondary: var(--color-white);
|
|
51
|
+
--color-secondary-hover: var(--color-blue-600);
|
|
52
|
+
|
|
53
|
+
--color-neutral: var(--color-gray-50);
|
|
54
|
+
--color-on-neutral: var(--color-text-primary);
|
|
55
|
+
--color-neutral-hover: var(--color-gray-100);
|
|
56
|
+
--color-neutral-text: var(--color-text-primary);
|
|
57
|
+
--color-neutral-text-hover: var(--color-text-primary);
|
|
58
|
+
--color-neutral-outline: var(--color-text-primary);
|
|
59
|
+
--color-neutral-outline-hover: var(--color-gray-700);
|
|
60
|
+
|
|
62
61
|
--color-highlight: var(--color-blue-500);
|
|
63
62
|
}
|
|
64
63
|
|
|
@@ -76,10 +75,11 @@
|
|
|
76
75
|
--color-negative: var(--color-red-500);
|
|
77
76
|
|
|
78
77
|
--color-disabled: var(--color-gray-500);
|
|
79
|
-
--color-disabled
|
|
78
|
+
--color-on-disabled: var(--color-gray-300);
|
|
80
79
|
|
|
81
80
|
/* Surface */
|
|
82
81
|
--color-surface: var(--color-gray-800);
|
|
82
|
+
--color-surface-hover: var(--color-gray-700);
|
|
83
83
|
--color-surface-variant: var(--color-gray-900);
|
|
84
84
|
|
|
85
85
|
/* Text */
|
|
@@ -92,5 +92,9 @@
|
|
|
92
92
|
|
|
93
93
|
/* Other */
|
|
94
94
|
--color-primary: var(--color-purple-400);
|
|
95
|
+
|
|
96
|
+
--color-neutral: var(--color-gray-700);
|
|
97
|
+
--color-neutral-hover: var(--color-gray-800);
|
|
98
|
+
--color-neutral-outline-hover: var(--color-gray-200);
|
|
95
99
|
}
|
|
96
100
|
}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/* Button */
|
|
2
|
+
@layer components {
|
|
3
|
+
.btn-xs {
|
|
4
|
+
@apply flex-row-1 items-center justify-center px-1 py-0.75 rounded-1 h-7 text-sm;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.btn-sm {
|
|
8
|
+
@apply flex-row-1 items-center justify-center px-1.5 py-1 rounded-1.5 h-8;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.btn-md {
|
|
12
|
+
@apply flex-row-2 items-center justify-center px-3 py-2 rounded-1.5 h-10;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.btn-lg {
|
|
16
|
+
@apply flex-row-2 items-center justify-center px-4 py-2.5 rounded-1.5 h-12;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.icon-btn-xs {
|
|
20
|
+
@apply flex-row-0 items-center justify-center p-1 rounded-1 h-6 w-6;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.icon-btn-sm {
|
|
24
|
+
@apply flex-row-0 items-center justify-center p-1.5 rounded-1.5 h-8 w-8;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.icon-btn-md {
|
|
28
|
+
@apply flex-row-0 items-center justify-center p-2 rounded-1.5 h-10 w-10;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.icon-btn-lg {
|
|
32
|
+
@apply flex-row-0 items-center justify-center p-3 rounded-1.5 h-12 w-12;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Card */
|
|
37
|
+
@layer components {
|
|
38
|
+
.card-sm {
|
|
39
|
+
@apply flex-col-2 bg-surface text-on-surface px-2 py-1 rounded;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.card-md {
|
|
43
|
+
@apply flex-col-2 bg-surface text-on-surface px-4 py-2 rounded-md;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.card-lg {
|
|
47
|
+
@apply flex-col-2 bg-surface text-on-surface px-8 py-4 rounded-lg;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Chip */
|
|
52
|
+
@layer components {
|
|
53
|
+
.chip-sm {
|
|
54
|
+
@apply flex-row-1 items-center justify-center px-1 py-0.5 rounded-md;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.chip-md {
|
|
58
|
+
@apply flex-row-1 items-center justify-center px-2 py-1 rounded-md;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.chip-lg {
|
|
62
|
+
@apply flex-row-2 items-center justify-center px-4 py-2 rounded-md;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Link */
|
|
67
|
+
@layer components {
|
|
68
|
+
.link {
|
|
69
|
+
@apply decoration-3 p-2 hover:underline focus:underline font-bold text-lg rounded;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* HTML Element defaults */
|
|
74
|
+
@layer components {
|
|
75
|
+
* {
|
|
76
|
+
@apply border-border list-none;
|
|
77
|
+
|
|
78
|
+
@variant dark {
|
|
79
|
+
color-scheme: dark;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
html {
|
|
84
|
+
@apply bg-background text-on-background;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
button {
|
|
88
|
+
@apply cursor-pointer text-nowrap;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
input {
|
|
92
|
+
@apply placeholder-placeholder
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
*:disabled {
|
|
96
|
+
@apply cursor-not-allowed;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@media (prefers-reduced-motion: reduce) {
|
|
100
|
+
* {
|
|
101
|
+
@apply transition-none animate-none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* move the focus styles into its own file and utilities */
|
|
106
|
+
*:focus {
|
|
107
|
+
@apply outline-0 ring-0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
*:focus-visible {
|
|
111
|
+
@apply outline-2 outline-focus outline-offset-2;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.focus-style-within:focus-within {
|
|
115
|
+
@apply outline-2 outline-focus;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.focus-style-none {
|
|
119
|
+
@apply focus-visible:outline-0 focus-within:outline-0 outline-offset-0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Table
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
table {
|
|
127
|
+
@apply table-fixed border-separate border-spacing-0 bg-table-background text-table-text;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
th {
|
|
131
|
+
@apply px-3 first:pl-6 last:pr-6 py-2.5 border-y-1 first:border-l-1 last:border-r-1 first:rounded-tl-lg last:rounded-tr-lg bg-table-header-background text-label font-bold;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
tbody > tr {
|
|
135
|
+
@apply hover:bg-table-row-hover-background;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
td {
|
|
139
|
+
@apply px-3 first:pl-6 last:pr-6 py-2.5 border-b-1 first:border-l-1 last:border-r-1 [nth-last-child(1)]:first:rounded-bl-lg [nth-last-child(1)]:last:rounded-br-lg;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
tbody > tr:last-child > td {
|
|
143
|
+
@apply first:rounded-bl-lg last:rounded-br-lg;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.table-resize-indicator {
|
|
147
|
+
@apply absolute top-2 bottom-2 right-0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
th:last-child > .table-resize-indicator {
|
|
151
|
+
@apply right-6;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Scrollbar
|
|
156
|
+
*/
|
|
157
|
+
@supports (scrollbar-color: auto) {
|
|
158
|
+
* {
|
|
159
|
+
scrollbar-color: var(--color-gray-500) transparent;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Otherwise, use `::-webkit-scrollbar-*` pseudo-elements */
|
|
164
|
+
|
|
165
|
+
@supports selector(::-webkit-scrollbar) {
|
|
166
|
+
* {
|
|
167
|
+
scrollbar-color: initial;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
:root{
|
|
171
|
+
--scrollbar-width: 10px;
|
|
172
|
+
--scrollbar-padding: 1px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
*::-webkit-scrollbar {
|
|
176
|
+
width: var(--scrollbar-width);
|
|
177
|
+
height: var(--scrollbar-width);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
*::-webkit-scrollbar-track {
|
|
181
|
+
border-radius: 9999px;
|
|
182
|
+
background: transparent;
|
|
183
|
+
cursor: default;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
*::-webkit-scrollbar-thumb {
|
|
187
|
+
background-color: var(--color-gray-500);
|
|
188
|
+
border-radius: 9999px;
|
|
189
|
+
border: var(--scrollbar-padding) solid transparent;
|
|
190
|
+
background-clip: padding-box;
|
|
191
|
+
cursor: default;
|
|
192
|
+
transition: background-color 0.2s ease;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
*::-webkit-scrollbar-thumb:active {
|
|
196
|
+
background-color: var(--color-gray-600);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
*::-webkit-scrollbar-thumb:vertical {
|
|
200
|
+
min-height: calc(var(--scrollbar-width) * 3);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
*::-webkit-scrollbar-thumb:horizontal {
|
|
204
|
+
min-width: calc(var(--scrollbar-width) * 3);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
*::-webkit-scrollbar-corner {
|
|
208
|
+
background: transparent;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
@@ -184,9 +184,9 @@
|
|
|
184
184
|
background: linear-gradient(
|
|
185
185
|
120deg,
|
|
186
186
|
transparent 0%,
|
|
187
|
-
transparent
|
|
188
|
-
rgba(255, 255, 255, 0.
|
|
189
|
-
transparent
|
|
187
|
+
transparent 25%,
|
|
188
|
+
rgba(255, 255, 255, 0.15) 50%,
|
|
189
|
+
transparent 75%,
|
|
190
190
|
transparent 100%
|
|
191
191
|
);
|
|
192
192
|
animation: shimmer 2s infinite;
|