@wippy-fe/theme 0.0.7
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/README.md +64 -0
- package/THEMING.md +316 -0
- package/package.json +35 -0
- package/primevue/accordion.css +58 -0
- package/primevue/autocomplete.css +144 -0
- package/primevue/avatar.css +50 -0
- package/primevue/badge.css +53 -0
- package/primevue/blockui.css +15 -0
- package/primevue/breadcrumb.css +41 -0
- package/primevue/button.css +341 -0
- package/primevue/buttongroup.css +19 -0
- package/primevue/card.css +22 -0
- package/primevue/carousel.css +64 -0
- package/primevue/cascadeselect.css +169 -0
- package/primevue/checkbox.css +84 -0
- package/primevue/chip.css +27 -0
- package/primevue/colorpicker.css +47 -0
- package/primevue/common.css +81 -0
- package/primevue/confirmdialog.css +10 -0
- package/primevue/confirmpopup.css +66 -0
- package/primevue/contextmenu.css +101 -0
- package/primevue/datatable.css +408 -0
- package/primevue/dataview.css +29 -0
- package/primevue/datepicker.css +211 -0
- package/primevue/dialog.css +125 -0
- package/primevue/divider.css +52 -0
- package/primevue/dock.css +84 -0
- package/primevue/drawer.css +94 -0
- package/primevue/fieldset.css +45 -0
- package/primevue/fileupload.css +57 -0
- package/primevue/floatlabel.css +73 -0
- package/primevue/galleria.css +244 -0
- package/primevue/iconfield.css +23 -0
- package/primevue/iftalabel.css +32 -0
- package/primevue/image.css +56 -0
- package/primevue/imagecompare.css +38 -0
- package/primevue/inplace.css +13 -0
- package/primevue/inputgroup.css +67 -0
- package/primevue/inputnumber.css +84 -0
- package/primevue/inputotp.css +9 -0
- package/primevue/inputtext.css +38 -0
- package/primevue/knob.css +37 -0
- package/primevue/listbox.css +79 -0
- package/primevue/megamenu.css +207 -0
- package/primevue/menu.css +51 -0
- package/primevue/menubar.css +169 -0
- package/primevue/message.css +228 -0
- package/primevue/metergroup.css +67 -0
- package/primevue/multiselect.css +143 -0
- package/primevue/orderlist.css +10 -0
- package/primevue/organizationchart.css +71 -0
- package/primevue/overlaybadge.css +13 -0
- package/primevue/paginator.css +58 -0
- package/primevue/panel.css +27 -0
- package/primevue/panelmenu.css +94 -0
- package/primevue/password.css +61 -0
- package/primevue/picklist.css +18 -0
- package/primevue/popover.css +46 -0
- package/primevue/progressbar.css +67 -0
- package/primevue/progressspinner.css +58 -0
- package/primevue/radiobutton.css +93 -0
- package/primevue/rating.css +23 -0
- package/primevue/ripple.css +7 -0
- package/primevue/scrollpanel.css +41 -0
- package/primevue/scrolltop.css +25 -0
- package/primevue/select.css +144 -0
- package/primevue/selectbutton.css +25 -0
- package/primevue/skeleton.css +11 -0
- package/primevue/slider.css +42 -0
- package/primevue/speeddial.css +48 -0
- package/primevue/splitbutton.css +34 -0
- package/primevue/splitter.css +56 -0
- package/primevue/stepper.css +102 -0
- package/primevue/tabs.css +84 -0
- package/primevue/tag.css +38 -0
- package/primevue/tailwind.css +104 -0
- package/primevue/terminal.css +22 -0
- package/primevue/textarea.css +42 -0
- package/primevue/tieredmenu.css +105 -0
- package/primevue/timeline.css +113 -0
- package/primevue/toast.css +172 -0
- package/primevue/togglebutton.css +63 -0
- package/primevue/toggleswitch.css +66 -0
- package/primevue/toolbar.css +12 -0
- package/primevue/tooltip.css +38 -0
- package/primevue/tree.css +103 -0
- package/primevue/treeselect.css +116 -0
- package/primevue/treetable.css +300 -0
- package/primevue-plugin.ts +8 -0
- package/tailwind.config.ts +28 -0
- package/theme-config.css +124 -0
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
@import './paginator';
|
|
2
|
+
|
|
3
|
+
.p-treetable {
|
|
4
|
+
@apply relative
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.p-treetable-table {
|
|
8
|
+
@apply border-spacing-0 w-full
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.p-treetable-scrollable > .p-treetable-table-container {
|
|
12
|
+
@apply relative
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.p-treetable-scrollable-table > .p-treetable-thead {
|
|
16
|
+
@apply top-0 z-10
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.p-treetable-scrollable-table > .p-treetable-frozen-tbody {
|
|
20
|
+
@apply sticky z-10
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.p-treetable-scrollable-table>.p-treetable-tfoot {
|
|
24
|
+
@apply bottom-0 z-10
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.p-treetable-scrollable .p-treetable-frozen-column {
|
|
28
|
+
@apply sticky bg-surface-0 dark:bg-surface-900
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.p-treetable-scrollable th.p-treetable-frozen-column {
|
|
32
|
+
@apply z-10
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.p-treetable-scrollable > .p-treetable-table-container > .p-treetable-table > .p-treetable-thead {
|
|
36
|
+
@apply bg-surface-0 dark:bg-surface-900
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.p-treetable-scrollable > .p-treetable-table-container > .p-treetable-table > .p-treetable-tfoot {
|
|
40
|
+
@apply bg-surface-0 dark:bg-surface-900
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.p-treetable-flex-scrollable {
|
|
44
|
+
@apply flex flex-col h-full
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.p-treetable-flex-scrollable > .p-treetable-table-container {
|
|
48
|
+
@apply flex flex-col flex-1 h-full
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.p-treetable-scrollable-table > .p-treetable-tbody > .p-treetable-row-group-header {
|
|
52
|
+
@apply sticky z-10
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.p-treetable-resizable-table > .p-treetable-thead > tr > th,
|
|
56
|
+
.p-treetable-resizable-table > .p-treetable-tfoot > tr > td,
|
|
57
|
+
.p-treetable-resizable-table > .p-treetable-tbody > tr > td {
|
|
58
|
+
@apply overflow-hidden whitespace-nowrap
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.p-treetable-resizable-table > .p-treetable-thead > tr > th.p-treetable-resizable-column:not(.p-treetable-frozen-column) {
|
|
62
|
+
@apply bg-clip-padding relative
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.p-treetable-resizable-table-fit > .p-treetable-thead > tr > th.p-treetable-resizable-column:last-child .p-treetable-column-resizer {
|
|
66
|
+
@apply hidden
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.p-treetable-column-resizer {
|
|
70
|
+
@apply block absolute top-0 end-0 m-0 w-2 h-full p-0 cursor-col-resize border border-transparent
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.p-treetable-column-header-content {
|
|
74
|
+
@apply flex items-center gap-2
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.p-treetable-column-resize-indicator {
|
|
78
|
+
@apply w-px absolute z-10 hidden bg-primary
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.p-treetable-mask {
|
|
82
|
+
@apply absolute flex items-center justify-center z-20
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.p-treetable-paginator-top {
|
|
86
|
+
@apply border-b border-surface-200 dark:border-surface-700
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.p-treetable-paginator-bottom {
|
|
90
|
+
@apply border-t border-surface-200 dark:border-surface-700
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.p-treetable-header {
|
|
94
|
+
@apply py-3 px-4 border-b border-surface-200 dark:border-surface-700
|
|
95
|
+
bg-surface-0 dark:bg-surface-900
|
|
96
|
+
text-surface-700 dark:text-surface-0
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.p-treetable-footer {
|
|
100
|
+
@apply py-3 px-4 border-b border-surface-200 dark:border-surface-700
|
|
101
|
+
bg-surface-0 dark:bg-surface-900
|
|
102
|
+
text-surface-700 dark:text-surface-0
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.p-treetable-header-cell {
|
|
106
|
+
@apply py-3 px-4 font-normal text-start transition-colors duration-200
|
|
107
|
+
border-b border-surface-200 dark:border-surface-700
|
|
108
|
+
bg-surface-0 dark:bg-surface-900
|
|
109
|
+
text-surface-700 dark:text-surface-0
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.p-treetable-column-title {
|
|
113
|
+
@apply font-semibold
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.p-treetable-tbody > tr {
|
|
117
|
+
@apply bg-surface-0 dark:bg-surface-900 text-surface-700 dark:text-surface-0 transition-colors duration-200
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.p-treetable-tbody > tr > td {
|
|
121
|
+
@apply text-start py-3 px-4 border-b border-surface-200 dark:border-surface-800
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.p-treetable-hoverable .p-treetable-tbody > tr:not(.p-treetable-row-selected):hover {
|
|
125
|
+
@apply bg-surface-100 text-surface-800 dark:bg-surface-800 dark:text-surface-0
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.p-treetable-tbody > tr.p-treetable-row-selected {
|
|
129
|
+
@apply bg-highlight
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.p-treetable-tbody > tr:has(+ .p-treetable-row-selected) > td {
|
|
133
|
+
@apply border-b-primary-100 dark:border-b-primary-900
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.p-treetable-tbody > tr.p-treetable-row-selected > td {
|
|
137
|
+
@apply border-b-primary-100 dark:border-b-primary-900
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.p-treetable-tbody > tr:focus-visible,
|
|
141
|
+
.p-treetable-tbody > tr.p-treetable-contextmenu-row-selected {
|
|
142
|
+
@apply outline outline-1 -outline-offset-1 outline-primary
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.p-treetable-tfoot > tr > td {
|
|
146
|
+
@apply text-start py-3 px-4 border-b border-surface-200 dark:border-surface-800
|
|
147
|
+
bg-surface-0 dark:bg-surface-900
|
|
148
|
+
text-surface-700 dark:text-surface-0
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.p-treetable-column-footer {
|
|
152
|
+
@apply font-semibold
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.p-treetable-sortable-column {
|
|
156
|
+
@apply cursor-pointer select-none focus-visible:outline focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-primary
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.p-treetable-column-title,
|
|
160
|
+
.p-treetable-sort-icon,
|
|
161
|
+
.p-treetable-sort-badge {
|
|
162
|
+
@apply align-middle
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.p-treetable-sort-icon {
|
|
166
|
+
@apply text-surface-500 dark:text-surface-400 transition-colors duration-200
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.p-treetable-sortable-column:not(.p-treetable-column-sorted):hover {
|
|
170
|
+
@apply bg-surface-100 text-surface-800 dark:bg-surface-800 dark:text-surface-0
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.p-treetable-sortable-column:not(.p-treetable-column-sorted):hover .p-treetable-sort-icon {
|
|
174
|
+
@apply text-surface-600 dark:text-surface-300
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.p-treetable-column-sorted {
|
|
178
|
+
@apply bg-highlight
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.p-treetable-column-sorted .p-treetable-sort-icon {
|
|
182
|
+
@apply bg-highlight
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.p-treetable-hoverable .p-treetable-selectable-row {
|
|
186
|
+
@apply cursor-pointer
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.p-treetable-loading-icon {
|
|
190
|
+
@apply text-[2rem] w-8 h-8
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.p-treetable-gridlines .p-treetable-header {
|
|
194
|
+
@apply border-t border-x
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.p-treetable-gridlines .p-treetable-footer {
|
|
198
|
+
@apply border-b border-x
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.p-treetable-gridlines .p-treetable-paginator-top {
|
|
202
|
+
@apply border-t border-x
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.p-treetable-gridlines .p-treetable-paginator-bottom {
|
|
206
|
+
@apply border-b border-x
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.p-treetable-gridlines .p-treetable-thead > tr > th {
|
|
210
|
+
@apply border-t border-x last:border
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.p-treetable-gridlines .p-treetable-tbody > tr > td {
|
|
214
|
+
@apply border-t border-s last:border-r
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.p-treetable-gridlines .p-treetable-tbody > tr:last-child > td {
|
|
218
|
+
@apply border-y border-s last:border
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.p-treetable-gridlines .p-treetable-tfoot > tr > td {
|
|
222
|
+
@apply border-y border-s last:border
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.p-treetable.p-treetable-gridlines .p-treetable-thead + .p-treetable-tfoot > tr > td {
|
|
226
|
+
@apply border-b border-s last:border-r
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.p-treetable.p-treetable-gridlines:has(.p-treetable-thead):has(.p-treetable-tbody) .p-treetable-tbody > tr > td {
|
|
230
|
+
@apply border-b border-s last:border-r
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.p-treetable.p-treetable-gridlines:has(.p-treetable-tbody):has(.p-treetable-tfoot) .p-treetable-tbody > tr:last-child > td {
|
|
234
|
+
@apply border-x
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.p-treetable.p-treetable-sm .p-treetable-header {
|
|
238
|
+
@apply py-1 px-2
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.p-treetable.p-treetable-sm .p-treetable-thead > tr > th {
|
|
242
|
+
@apply py-1 px-2
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.p-treetable.p-treetable-sm .p-treetable-tbody > tr > td {
|
|
246
|
+
@apply py-1 px-2
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.p-treetable.p-treetable-sm .p-treetable-tfoot > tr > td {
|
|
250
|
+
@apply py-1 px-2
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.p-treetable.p-treetable-sm .p-treetable-footer {
|
|
254
|
+
@apply py-1 px-2
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.p-treetable.p-treetable-lg .p-treetable-header {
|
|
258
|
+
@apply py-4 px-5
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.p-treetable.p-treetable-lg .p-treetable-thead > tr > th {
|
|
262
|
+
@apply py-4 px-5
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.p-treetable.p-treetable-lg .p-treetable-tbody>tr>td {
|
|
266
|
+
@apply py-4 px-5
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.p-treetable.p-treetable-lg .p-treetable-tfoot>tr>td {
|
|
270
|
+
@apply py-4 px-5
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.p-treetable.p-treetable-lg .p-treetable-footer {
|
|
274
|
+
@apply py-4 px-5
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.p-treetable-body-cell-content {
|
|
278
|
+
@apply flex items-center gap-2
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.p-treetable-tbody > tr.p-treetable-row-selected .p-treetable-node-toggle-button {
|
|
282
|
+
@apply text-inherit
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.p-treetable-node-toggle-button {
|
|
286
|
+
@apply inline-flex items-center justify-center overflow-hidden relative select-none
|
|
287
|
+
transition-colors duration-200 w-7 h-7 rounded-full border-none bg-transparent cursor-pointer
|
|
288
|
+
enabled:hover:bg-surface-100 dark:enabled:hover:bg-surface-900
|
|
289
|
+
text-surface-500 dark:text-surface-400 enabled:hover:text-surface-700 dark:enabled:hover:text-surface-0
|
|
290
|
+
focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-primary
|
|
291
|
+
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.p-treetable-tbody > tr.p-treetable-row-selected .p-treetable-node-toggle-button:hover {
|
|
295
|
+
@apply bg-surface-0 dark:bg-surface-900 text-primary
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.p-treetable-node-toggle-icon:dir(rtl) {
|
|
299
|
+
@apply rotate-180
|
|
300
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import TailwindScrollbar from 'tailwind-scrollbar'
|
|
2
|
+
import PrimeUI from 'tailwindcss-primeui'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
theme: {
|
|
6
|
+
extend: {
|
|
7
|
+
colors: {
|
|
8
|
+
secondary: {
|
|
9
|
+
50: 'var(--p-secondary-50)',
|
|
10
|
+
100: 'var(--p-secondary-100)',
|
|
11
|
+
200: 'var(--p-secondary-200)',
|
|
12
|
+
300: 'var(--p-secondary-300)',
|
|
13
|
+
400: 'var(--p-secondary-400)',
|
|
14
|
+
500: 'var(--p-secondary-500)',
|
|
15
|
+
600: 'var(--p-secondary-600)',
|
|
16
|
+
700: 'var(--p-secondary-700)',
|
|
17
|
+
800: 'var(--p-secondary-800)',
|
|
18
|
+
900: 'var(--p-secondary-900)',
|
|
19
|
+
950: 'var(--p-secondary-950)',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
plugins: [
|
|
25
|
+
PrimeUI,
|
|
26
|
+
TailwindScrollbar({ nocompatible: true, preferredStrategy: 'pseudoelements' }),
|
|
27
|
+
],
|
|
28
|
+
}
|
package/theme-config.css
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* Primary and Surface Palettes */
|
|
2
|
+
:root {
|
|
3
|
+
--p-primary: rgb(0, 95, 178);
|
|
4
|
+
|
|
5
|
+
/* Using color-mix to create a numbered variable system */
|
|
6
|
+
--p-primary-50: color-mix(in srgb, var(--p-primary) 5%, white); /* #f2f5fa */
|
|
7
|
+
--p-primary-100: color-mix(in srgb, var(--p-primary) 10%, white); /* #e6ebf5 */
|
|
8
|
+
--p-primary-200: color-mix(in srgb, var(--p-primary) 20%, white); /* #ccd6eb */
|
|
9
|
+
--p-primary-300: color-mix(in srgb, var(--p-primary) 30%, white); /* #b3c2e0 */
|
|
10
|
+
--p-primary-400: color-mix(in srgb, var(--p-primary) 40%, white); /* #99add6 */
|
|
11
|
+
--p-primary-500: var(--p-primary); /* #005fb2 */
|
|
12
|
+
--p-primary-600: color-mix(in srgb, var(--p-primary) 80%, black); /* #004c8e */
|
|
13
|
+
--p-primary-700: color-mix(in srgb, var(--p-primary) 70%, black); /* #00427c */
|
|
14
|
+
--p-primary-800: color-mix(in srgb, var(--p-primary) 60%, black); /* #00386a */
|
|
15
|
+
--p-primary-900: color-mix(in srgb, var(--p-primary) 50%, black); /* #002f59 */
|
|
16
|
+
--p-primary-950: color-mix(in srgb, var(--p-primary) 40%, black); /* #002647 */
|
|
17
|
+
|
|
18
|
+
/* Define secondary base color */
|
|
19
|
+
--p-secondary: #6f7385;
|
|
20
|
+
|
|
21
|
+
/* Create secondary color scale using color-mix */
|
|
22
|
+
--p-secondary-50: color-mix(in srgb, var(--p-secondary) 5%, white); /* #f7f7f8 */
|
|
23
|
+
--p-secondary-100: color-mix(in srgb, var(--p-secondary) 10%, white); /* #ededf1 */
|
|
24
|
+
--p-secondary-200: color-mix(in srgb, var(--p-secondary) 20%, white); /* #d8d9df */
|
|
25
|
+
--p-secondary-300: color-mix(in srgb, var(--p-secondary) 35%, white); /* #b6b8c3 */
|
|
26
|
+
--p-secondary-400: color-mix(in srgb, var(--p-secondary) 65%, white); /* #8e92a2 */
|
|
27
|
+
--p-secondary-500: var(--p-secondary); /* #6f7385 */
|
|
28
|
+
--p-secondary-600: color-mix(in srgb, var(--p-secondary) 80%, black); /* #5a5d6f */
|
|
29
|
+
--p-secondary-700: color-mix(in srgb, var(--p-secondary) 65%, black); /* #4a4c5a */
|
|
30
|
+
--p-secondary-800: color-mix(in srgb, var(--p-secondary) 55%, black); /* #40424c */
|
|
31
|
+
--p-secondary-900: color-mix(in srgb, var(--p-secondary) 50%, black); /* #383942 */
|
|
32
|
+
--p-secondary-950: color-mix(in srgb, var(--p-secondary) 30%, black); /* #25252c */
|
|
33
|
+
--p-surface-0: #fff;
|
|
34
|
+
--p-surface-50: #fafafa;
|
|
35
|
+
--p-surface-100: #f4f4f5;
|
|
36
|
+
--p-surface-200: #e4e4e7;
|
|
37
|
+
--p-surface-300: #d4d4d8;
|
|
38
|
+
--p-surface-400: #a1a1aa;
|
|
39
|
+
--p-surface-500: #71717a;
|
|
40
|
+
--p-surface-600: #52525b;
|
|
41
|
+
--p-surface-700: #3f3f46;
|
|
42
|
+
--p-surface-800: #27272a;
|
|
43
|
+
--p-surface-900: #18181b;
|
|
44
|
+
--p-surface-950: #09090b;
|
|
45
|
+
--p-content-border-radius: 6px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Light */
|
|
49
|
+
:root {
|
|
50
|
+
--p-primary-color: var(--p-primary-500);
|
|
51
|
+
--p-primary-contrast-color: var(--p-surface-0);
|
|
52
|
+
--p-primary-hover-color: var(--p-primary-600);
|
|
53
|
+
--p-primary-active-color: var(--p-primary-700);
|
|
54
|
+
--p-content-border-color: var(--p-surface-200);
|
|
55
|
+
--p-content-hover-background: var(--p-surface-100);
|
|
56
|
+
--p-content-hover-color: var(--p-surface-800);
|
|
57
|
+
--p-highlight-background: var(--p-primary-50);
|
|
58
|
+
--p-highlight-color: var(--p-primary-700);
|
|
59
|
+
--p-highlight-focus-background: var(--p-primary-100);
|
|
60
|
+
--p-highlight-focus-color: var(--p-primary-800);
|
|
61
|
+
--p-text-color: var(--p-surface-700);
|
|
62
|
+
--p-text-hover-color: var(--p-surface-800);
|
|
63
|
+
--p-text-muted-color: var(--p-surface-500);
|
|
64
|
+
--p-text-hover-muted-color: var(--p-surface-600);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/*
|
|
68
|
+
* Dark Mode
|
|
69
|
+
* Defaults to system, change the selector to match the darkMode in tailwind.config.
|
|
70
|
+
* For example;
|
|
71
|
+
* darkMode: ['selector', '[class*="app-dark"]']
|
|
72
|
+
* should be;
|
|
73
|
+
* :root[class="app-dark"] {
|
|
74
|
+
*/
|
|
75
|
+
@media (prefers-color-scheme: dark) {
|
|
76
|
+
:root {
|
|
77
|
+
|
|
78
|
+
--p-surface-D: #fff;
|
|
79
|
+
--p-surface-0: #fff;
|
|
80
|
+
--p-surface-50: #fafafa;
|
|
81
|
+
--p-surface-100: #f4f4f5;
|
|
82
|
+
--p-surface-200: #e4e4e7;
|
|
83
|
+
--p-surface-300: #d4d4d8;
|
|
84
|
+
--p-surface-400: #a1a1aa;
|
|
85
|
+
--p-surface-500: #71717a;
|
|
86
|
+
--p-surface-600: #545250; /* Less colorful warm tone */
|
|
87
|
+
--p-surface-700: #403e3c; /* Less colorful warm tone */
|
|
88
|
+
--p-surface-800: #2b2927; /* Less colorful warm tone */
|
|
89
|
+
--p-surface-900: #1c1a19; /* Less colorful warm tone */
|
|
90
|
+
--p-surface-950: #0f0e0d; /* Less colorful warm tone */
|
|
91
|
+
|
|
92
|
+
--p-primary: rgb(0, 125, 178);
|
|
93
|
+
|
|
94
|
+
/* Using color-mix to create a numbered variable system */
|
|
95
|
+
--p-primary-50: color-mix(in srgb, var(--p-primary) 5%, white); /* #f2f5fa */
|
|
96
|
+
--p-primary-100: color-mix(in srgb, var(--p-primary) 10%, white); /* #e6ebf5 */
|
|
97
|
+
--p-primary-200: color-mix(in srgb, var(--p-primary) 20%, white); /* #ccd6eb */
|
|
98
|
+
--p-primary-300: color-mix(in srgb, var(--p-primary) 30%, white); /* #b3c2e0 */
|
|
99
|
+
--p-primary-400: color-mix(in srgb, var(--p-primary) 40%, white); /* #99add6 */
|
|
100
|
+
--p-primary-500: var(--p-primary); /* #005fb2 */
|
|
101
|
+
--p-primary-600: color-mix(in srgb, var(--p-primary) 80%, black); /* #004c8e */
|
|
102
|
+
--p-primary-700: color-mix(in srgb, var(--p-primary) 70%, black); /* #00427c */
|
|
103
|
+
--p-primary-800: color-mix(in srgb, var(--p-primary) 60%, black); /* #00386a */
|
|
104
|
+
--p-primary-900: color-mix(in srgb, var(--p-primary) 50%, black); /* #002f59 */
|
|
105
|
+
--p-primary-950: color-mix(in srgb, var(--p-primary) 40%, black); /* #002647 */
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
--p-primary-color: var(--p-primary-400);
|
|
109
|
+
--p-primary-contrast-color: var(--p-surface-900);
|
|
110
|
+
--p-primary-hover-color: var(--p-primary-300);
|
|
111
|
+
--p-primary-active-color: var(--p-primary-200);
|
|
112
|
+
--p-content-border-color: var(--p-surface-700);
|
|
113
|
+
--p-content-hover-background: var(--p-surface-800);
|
|
114
|
+
--p-content-hover-color: var(--p-surface-0);
|
|
115
|
+
--p-highlight-background: color-mix(in srgb, var(--p-primary-400), transparent 84%);
|
|
116
|
+
--p-highlight-color: rgba(255, 255, 255, 87%);
|
|
117
|
+
--p-highlight-focus-background: color-mix(in srgb, var(--p-primary-400), transparent 76%);
|
|
118
|
+
--p-highlight-focus-color: rgba(255, 255, 255, 87%);
|
|
119
|
+
--p-text-color: var(--p-surface-0);
|
|
120
|
+
--p-text-hover-color: var(--p-surface-0);
|
|
121
|
+
--p-text-muted-color: var(--p-surface-400);
|
|
122
|
+
--p-text-hover-muted-color: var(--p-surface-300);
|
|
123
|
+
}
|
|
124
|
+
}
|