@carissa-io/theme-default 0.3.6 → 0.3.8
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/DESIGN.md +68 -0
- package/README.md +1 -1
- package/dist/index.css +1863 -0
- package/package.json +87 -2
- package/scss/index.scss +452 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carissa-io/theme-default",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "Carissa UI: the default theme (Swiss minimalism) as SCSS variable overrides of the Carissa components, with a compiled CSS build",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"style": "dist/index.css",
|
|
@@ -66,7 +66,24 @@
|
|
|
66
66
|
"@carissa-io/components-skeleton": "^0.1.0",
|
|
67
67
|
"@carissa-io/components-progress": "^0.1.0",
|
|
68
68
|
"@carissa-io/components-tooltip": "^0.1.0",
|
|
69
|
-
"@carissa-io/components-prose": "^0.1.0"
|
|
69
|
+
"@carissa-io/components-prose": "^0.1.0",
|
|
70
|
+
"@carissa-io/components-tabs": "^0.1.0",
|
|
71
|
+
"@carissa-io/components-accordion": "^0.1.0",
|
|
72
|
+
"@carissa-io/components-breadcrumb": "^0.1.0",
|
|
73
|
+
"@carissa-io/components-pagination": "^0.1.0",
|
|
74
|
+
"@carissa-io/components-stepper": "^0.1.0",
|
|
75
|
+
"@carissa-io/components-sidebar": "^0.1.0",
|
|
76
|
+
"@carissa-io/components-navbar": "^0.1.0",
|
|
77
|
+
"@carissa-io/components-drawer": "^0.1.0",
|
|
78
|
+
"@carissa-io/components-menu": "^0.1.0",
|
|
79
|
+
"@carissa-io/components-table": "^0.1.0",
|
|
80
|
+
"@carissa-io/components-list": "^0.1.0",
|
|
81
|
+
"@carissa-io/components-description-list": "^0.1.0",
|
|
82
|
+
"@carissa-io/components-stat": "^0.1.0",
|
|
83
|
+
"@carissa-io/components-empty-state": "^0.1.0",
|
|
84
|
+
"@carissa-io/components-timeline": "^0.1.0",
|
|
85
|
+
"@carissa-io/components-tree": "^0.1.0",
|
|
86
|
+
"@carissa-io/components-code": "^0.1.0"
|
|
70
87
|
},
|
|
71
88
|
"peerDependenciesMeta": {
|
|
72
89
|
"@carissa-io/components-input": {
|
|
@@ -167,36 +184,104 @@
|
|
|
167
184
|
},
|
|
168
185
|
"@carissa-io/components-prose": {
|
|
169
186
|
"optional": true
|
|
187
|
+
},
|
|
188
|
+
"@carissa-io/components-tabs": {
|
|
189
|
+
"optional": true
|
|
190
|
+
},
|
|
191
|
+
"@carissa-io/components-accordion": {
|
|
192
|
+
"optional": true
|
|
193
|
+
},
|
|
194
|
+
"@carissa-io/components-breadcrumb": {
|
|
195
|
+
"optional": true
|
|
196
|
+
},
|
|
197
|
+
"@carissa-io/components-pagination": {
|
|
198
|
+
"optional": true
|
|
199
|
+
},
|
|
200
|
+
"@carissa-io/components-stepper": {
|
|
201
|
+
"optional": true
|
|
202
|
+
},
|
|
203
|
+
"@carissa-io/components-sidebar": {
|
|
204
|
+
"optional": true
|
|
205
|
+
},
|
|
206
|
+
"@carissa-io/components-navbar": {
|
|
207
|
+
"optional": true
|
|
208
|
+
},
|
|
209
|
+
"@carissa-io/components-drawer": {
|
|
210
|
+
"optional": true
|
|
211
|
+
},
|
|
212
|
+
"@carissa-io/components-menu": {
|
|
213
|
+
"optional": true
|
|
214
|
+
},
|
|
215
|
+
"@carissa-io/components-table": {
|
|
216
|
+
"optional": true
|
|
217
|
+
},
|
|
218
|
+
"@carissa-io/components-list": {
|
|
219
|
+
"optional": true
|
|
220
|
+
},
|
|
221
|
+
"@carissa-io/components-description-list": {
|
|
222
|
+
"optional": true
|
|
223
|
+
},
|
|
224
|
+
"@carissa-io/components-stat": {
|
|
225
|
+
"optional": true
|
|
226
|
+
},
|
|
227
|
+
"@carissa-io/components-empty-state": {
|
|
228
|
+
"optional": true
|
|
229
|
+
},
|
|
230
|
+
"@carissa-io/components-timeline": {
|
|
231
|
+
"optional": true
|
|
232
|
+
},
|
|
233
|
+
"@carissa-io/components-tree": {
|
|
234
|
+
"optional": true
|
|
235
|
+
},
|
|
236
|
+
"@carissa-io/components-code": {
|
|
237
|
+
"optional": true
|
|
170
238
|
}
|
|
171
239
|
},
|
|
172
240
|
"devDependencies": {
|
|
241
|
+
"@carissa-io/components-accordion": "^0.1.0",
|
|
173
242
|
"@carissa-io/components-alert": "^0.1.0",
|
|
174
243
|
"@carissa-io/components-avatar": "^0.1.0",
|
|
175
244
|
"@carissa-io/components-badge": "^0.1.0",
|
|
245
|
+
"@carissa-io/components-breadcrumb": "^0.1.0",
|
|
176
246
|
"@carissa-io/components-button": "^0.1.1",
|
|
177
247
|
"@carissa-io/components-calendar": "^0.1.1",
|
|
178
248
|
"@carissa-io/components-card": "^0.1.0",
|
|
179
249
|
"@carissa-io/components-checkbox": "^0.1.1",
|
|
250
|
+
"@carissa-io/components-code": "^0.1.0",
|
|
180
251
|
"@carissa-io/components-combobox": "^0.1.1",
|
|
181
252
|
"@carissa-io/components-date-picker": "^0.1.1",
|
|
253
|
+
"@carissa-io/components-description-list": "^0.1.0",
|
|
182
254
|
"@carissa-io/components-divider": "^0.1.0",
|
|
255
|
+
"@carissa-io/components-drawer": "^0.1.0",
|
|
256
|
+
"@carissa-io/components-empty-state": "^0.1.0",
|
|
183
257
|
"@carissa-io/components-input": "^0.2.1",
|
|
184
258
|
"@carissa-io/components-link": "^0.1.0",
|
|
259
|
+
"@carissa-io/components-list": "^0.1.0",
|
|
185
260
|
"@carissa-io/components-listbox": "^0.1.1",
|
|
261
|
+
"@carissa-io/components-menu": "^0.1.0",
|
|
186
262
|
"@carissa-io/components-modal": "^0.1.0",
|
|
263
|
+
"@carissa-io/components-navbar": "^0.1.0",
|
|
264
|
+
"@carissa-io/components-pagination": "^0.1.0",
|
|
187
265
|
"@carissa-io/components-popover": "^0.1.1",
|
|
188
266
|
"@carissa-io/components-progress": "^0.1.0",
|
|
189
267
|
"@carissa-io/components-prose": "^0.1.0",
|
|
190
268
|
"@carissa-io/components-radio-group": "^0.1.1",
|
|
191
269
|
"@carissa-io/components-search": "^0.1.1",
|
|
192
270
|
"@carissa-io/components-select": "^0.1.1",
|
|
271
|
+
"@carissa-io/components-sidebar": "^0.1.0",
|
|
193
272
|
"@carissa-io/components-skeleton": "^0.1.0",
|
|
194
273
|
"@carissa-io/components-slider": "^0.1.1",
|
|
195
274
|
"@carissa-io/components-spinner": "^0.1.0",
|
|
275
|
+
"@carissa-io/components-stat": "^0.1.0",
|
|
276
|
+
"@carissa-io/components-stepper": "^0.1.0",
|
|
196
277
|
"@carissa-io/components-switch": "^0.1.1",
|
|
278
|
+
"@carissa-io/components-table": "^0.1.0",
|
|
279
|
+
"@carissa-io/components-tabs": "^0.1.0",
|
|
197
280
|
"@carissa-io/components-tag": "^0.1.0",
|
|
281
|
+
"@carissa-io/components-timeline": "^0.1.0",
|
|
198
282
|
"@carissa-io/components-toast": "^0.1.0",
|
|
199
283
|
"@carissa-io/components-tooltip": "^0.1.0",
|
|
284
|
+
"@carissa-io/components-tree": "^0.1.0",
|
|
200
285
|
"@carissa-io/components-typography": "^0.1.0",
|
|
201
286
|
"@carissa-io/components-upload": "^0.1.1",
|
|
202
287
|
"sass-embedded": "^1.105.1",
|
package/scss/index.scss
CHANGED
|
@@ -937,3 +937,455 @@
|
|
|
937
937
|
$c-prose-table-head-background: $var-surface,
|
|
938
938
|
$c-prose-table-head-font-weight: $font-weight-bold
|
|
939
939
|
);
|
|
940
|
+
|
|
941
|
+
// Tabs: a --c-muted underline under the list and a 2px --c-primary indicator under the selected tab. Tabs read --c-muted
|
|
942
|
+
// (4.7:1 on the background, 7.9:1 in dark), turn --c-text on a --c-surface hover and the selected one is --c-text and bold.
|
|
943
|
+
// Square, bold, the theme's 1px focus ring inside the tab. No other block forwards it.
|
|
944
|
+
@use '@carissa-io/components-tabs/scss' as tabs with (
|
|
945
|
+
$c-tabs-list-border-width: 1px,
|
|
946
|
+
$c-tabs-list-border-color: $var-muted,
|
|
947
|
+
$c-tabs-tab-padding-x: 1.25rem,
|
|
948
|
+
$c-tabs-tab-padding-y: 0.625rem,
|
|
949
|
+
$c-tabs-tab-font-size: $font-size-small,
|
|
950
|
+
$c-tabs-tab-font-weight: $font-weight-bold,
|
|
951
|
+
$c-tabs-tab-radius: $radius,
|
|
952
|
+
$c-tabs-tab-color: $var-muted,
|
|
953
|
+
$c-tabs-tab-color-hover: $var-text,
|
|
954
|
+
$c-tabs-tab-background-hover: $var-surface,
|
|
955
|
+
$c-tabs-tab-color-selected: $var-text,
|
|
956
|
+
$c-tabs-tab-background-selected: transparent,
|
|
957
|
+
$c-tabs-indicator-width: 2px,
|
|
958
|
+
$c-tabs-indicator-color: $var-primary,
|
|
959
|
+
$c-tabs-focus-outline: $focus-width solid $var-focus,
|
|
960
|
+
$c-tabs-focus-outline-offset: -2px,
|
|
961
|
+
$c-tabs-panel-padding-y: 1.25rem,
|
|
962
|
+
$c-tabs-transition-duration: $transition-duration
|
|
963
|
+
);
|
|
964
|
+
|
|
965
|
+
// Accordion: the box and the rules between items are --c-muted (the card and field edge), headers are bold --c-text with a
|
|
966
|
+
// --c-surface hover, and the chevron follows the header text. Square, the theme's 1px focus ring inside the header.
|
|
967
|
+
@use '@carissa-io/components-accordion/scss' as accordion with (
|
|
968
|
+
$c-accordion-border-width: 1px,
|
|
969
|
+
$c-accordion-border-color: $var-muted,
|
|
970
|
+
$c-accordion-radius: $radius,
|
|
971
|
+
$c-accordion-header-padding-x: 1.25rem,
|
|
972
|
+
$c-accordion-header-padding-y: 0.875rem,
|
|
973
|
+
$c-accordion-header-font-size: $font-size-body,
|
|
974
|
+
$c-accordion-header-font-weight: $font-weight-bold,
|
|
975
|
+
$c-accordion-header-color: $var-text,
|
|
976
|
+
$c-accordion-header-background: transparent,
|
|
977
|
+
$c-accordion-header-background-hover: $var-surface,
|
|
978
|
+
$c-accordion-header-color-open: $var-text,
|
|
979
|
+
$c-accordion-header-background-open: transparent,
|
|
980
|
+
$c-accordion-chevron-color: currentColor,
|
|
981
|
+
$c-accordion-content-padding-x: 1.25rem,
|
|
982
|
+
$c-accordion-content-padding-y: 1rem,
|
|
983
|
+
$c-accordion-focus-outline: $focus-width solid $var-focus,
|
|
984
|
+
$c-accordion-focus-outline-offset: -2px,
|
|
985
|
+
$c-accordion-transition-duration: $transition-duration
|
|
986
|
+
);
|
|
987
|
+
|
|
988
|
+
// Breadcrumb: links and separators in --c-muted (4.7:1 on the background), the current page in --c-text and bold. Links turn
|
|
989
|
+
// --c-text and underline on hover. The theme's 1px focus ring, offset 2px.
|
|
990
|
+
@use '@carissa-io/components-breadcrumb/scss' as breadcrumb with (
|
|
991
|
+
$c-breadcrumb-font-size: $font-size-small,
|
|
992
|
+
$c-breadcrumb-link-color: $var-muted,
|
|
993
|
+
$c-breadcrumb-link-color-hover: $var-text,
|
|
994
|
+
$c-breadcrumb-link-decoration: none,
|
|
995
|
+
$c-breadcrumb-link-decoration-hover: underline,
|
|
996
|
+
$c-breadcrumb-current-color: $var-text,
|
|
997
|
+
$c-breadcrumb-current-font-weight: $font-weight-bold,
|
|
998
|
+
$c-breadcrumb-separator-color: $var-muted,
|
|
999
|
+
$c-breadcrumb-focus-outline: $focus-width solid $var-focus,
|
|
1000
|
+
$c-breadcrumb-focus-outline-offset: 2px,
|
|
1001
|
+
$c-breadcrumb-focus-radius: $radius
|
|
1002
|
+
);
|
|
1003
|
+
|
|
1004
|
+
// Pagination: neutral controls like the secondary button (--c-background with a --c-muted border, --c-surface-active on hover,
|
|
1005
|
+
// 44px touch target), the current page filled --c-primary with --c-on-primary (21:1). Square, bold, the ellipsis in --c-muted.
|
|
1006
|
+
// The theme's 1px focus ring, offset 2px.
|
|
1007
|
+
@use '@carissa-io/components-pagination/scss' as pagination with (
|
|
1008
|
+
$c-pagination-gap: 0.25rem,
|
|
1009
|
+
$c-pagination-font-size: $font-size-small,
|
|
1010
|
+
$c-pagination-control-size: $min-height,
|
|
1011
|
+
$c-pagination-control-padding-x: 0.75rem,
|
|
1012
|
+
$c-pagination-control-radius: $radius,
|
|
1013
|
+
$c-pagination-control-color: $var-text,
|
|
1014
|
+
$c-pagination-control-background: $var-background,
|
|
1015
|
+
$c-pagination-control-border-width: 1px,
|
|
1016
|
+
$c-pagination-control-border-color: $var-muted,
|
|
1017
|
+
$c-pagination-control-color-hover: $var-primary,
|
|
1018
|
+
$c-pagination-control-background-hover: $var-surface-active,
|
|
1019
|
+
$c-pagination-current-color: $var-on-primary,
|
|
1020
|
+
$c-pagination-current-background: $var-primary,
|
|
1021
|
+
$c-pagination-current-border-color: $var-primary,
|
|
1022
|
+
$c-pagination-ellipsis-color: $var-muted,
|
|
1023
|
+
$c-pagination-focus-outline: $focus-width solid $var-focus,
|
|
1024
|
+
$c-pagination-focus-outline-offset: 2px,
|
|
1025
|
+
$c-pagination-transition-duration: $transition-duration
|
|
1026
|
+
);
|
|
1027
|
+
|
|
1028
|
+
// Stepper: a done step is a filled --c-primary marker with --c-on-primary (the check), the current one an outlined
|
|
1029
|
+
// --c-primary marker on the background, an upcoming one a --c-surface-active marker with --c-text (14:1). An error step is a
|
|
1030
|
+
// --c-error marker with --c-on-primary (4.5:1 in light, 7.6:1 in dark) and a --c-error title. Upcoming titles and descriptions
|
|
1031
|
+
// are --c-muted. Connectors are --c-muted lines, --c-primary once the step is done. The theme's 1px focus ring, offset 2px.
|
|
1032
|
+
@use '@carissa-io/components-stepper/scss' as stepper with (
|
|
1033
|
+
$c-stepper-font-size: $font-size-small,
|
|
1034
|
+
$c-stepper-marker-size: 2rem,
|
|
1035
|
+
$c-stepper-marker-font-size: $font-size-small,
|
|
1036
|
+
$c-stepper-marker-border-width: 2px,
|
|
1037
|
+
$c-stepper-marker-color: $var-text,
|
|
1038
|
+
$c-stepper-marker-background: $var-surface-active,
|
|
1039
|
+
$c-stepper-marker-border-color: $var-surface-active,
|
|
1040
|
+
$c-stepper-marker-current-color: $var-text,
|
|
1041
|
+
$c-stepper-marker-current-background: $var-background,
|
|
1042
|
+
$c-stepper-marker-current-border-color: $var-primary,
|
|
1043
|
+
$c-stepper-marker-complete-color: $var-on-primary,
|
|
1044
|
+
$c-stepper-marker-complete-background: $var-primary,
|
|
1045
|
+
$c-stepper-marker-complete-border-color: $var-primary,
|
|
1046
|
+
$c-stepper-marker-error-color: $var-on-primary,
|
|
1047
|
+
$c-stepper-marker-error-background: $var-error,
|
|
1048
|
+
$c-stepper-marker-error-border-color: $var-error,
|
|
1049
|
+
$c-stepper-title-font-weight: $font-weight-bold,
|
|
1050
|
+
$c-stepper-title-color: $var-text,
|
|
1051
|
+
$c-stepper-title-color-upcoming: $var-muted,
|
|
1052
|
+
$c-stepper-title-color-error: $var-error,
|
|
1053
|
+
$c-stepper-description-color: $var-muted,
|
|
1054
|
+
$c-stepper-connector-width: 2px,
|
|
1055
|
+
$c-stepper-connector-color: $var-muted,
|
|
1056
|
+
$c-stepper-connector-color-complete: $var-primary,
|
|
1057
|
+
$c-stepper-control-radius: $radius,
|
|
1058
|
+
$c-stepper-focus-outline: $focus-width solid $var-focus,
|
|
1059
|
+
$c-stepper-focus-outline-offset: 2px,
|
|
1060
|
+
$c-stepper-transition-duration: $transition-duration
|
|
1061
|
+
);
|
|
1062
|
+
|
|
1063
|
+
// Sidebar: a --c-surface column with a 1px --c-muted edge. Items are --c-text (16.4:1 on the surface) with a --c-surface-active
|
|
1064
|
+
// hover (14.2:1); the current page is filled --c-primary with --c-on-primary (21:1), a shape and not only a hue. Section titles
|
|
1065
|
+
// are the small uppercase label style in --c-text, because --c-muted on --c-surface is only 4.35:1 in light. Square, the
|
|
1066
|
+
// theme's 1px focus ring inside the item. No other block forwards it.
|
|
1067
|
+
@use '@carissa-io/components-sidebar/scss' as sidebar with (
|
|
1068
|
+
$c-sidebar-width: 16rem,
|
|
1069
|
+
$c-sidebar-width-collapsed: 4.5rem,
|
|
1070
|
+
$c-sidebar-padding: 0.75rem,
|
|
1071
|
+
$c-sidebar-gap: 1.5rem,
|
|
1072
|
+
$c-sidebar-background: $var-surface,
|
|
1073
|
+
$c-sidebar-color: $var-text,
|
|
1074
|
+
$c-sidebar-border-width: 1px,
|
|
1075
|
+
$c-sidebar-border-color: $var-muted,
|
|
1076
|
+
$c-sidebar-section-title-color: $var-text,
|
|
1077
|
+
$c-sidebar-section-title-font-size: $label-font-size,
|
|
1078
|
+
$c-sidebar-section-title-font-weight: $label-font-weight,
|
|
1079
|
+
$c-sidebar-section-title-letter-spacing: $label-letter-spacing,
|
|
1080
|
+
$c-sidebar-section-title-transform: uppercase,
|
|
1081
|
+
$c-sidebar-item-gap: 0.75rem,
|
|
1082
|
+
$c-sidebar-item-padding-x: 0.75rem,
|
|
1083
|
+
$c-sidebar-item-padding-y: 0.625rem,
|
|
1084
|
+
$c-sidebar-item-font-size: $font-size-small,
|
|
1085
|
+
$c-sidebar-item-font-weight: $font-weight-bold,
|
|
1086
|
+
$c-sidebar-item-radius: $radius,
|
|
1087
|
+
$c-sidebar-item-color: $var-text,
|
|
1088
|
+
$c-sidebar-item-color-hover: $var-text,
|
|
1089
|
+
$c-sidebar-item-background-hover: $var-surface-active,
|
|
1090
|
+
$c-sidebar-item-color-active: $var-on-primary,
|
|
1091
|
+
$c-sidebar-item-background-active: $var-primary,
|
|
1092
|
+
$c-sidebar-toggle-size: $min-height,
|
|
1093
|
+
$c-sidebar-toggle-radius: $radius,
|
|
1094
|
+
$c-sidebar-toggle-color: $var-text,
|
|
1095
|
+
$c-sidebar-toggle-background-hover: $var-surface-active,
|
|
1096
|
+
$c-sidebar-focus-outline: $focus-width solid $var-focus,
|
|
1097
|
+
$c-sidebar-focus-outline-offset: -2px,
|
|
1098
|
+
$c-sidebar-transition-duration: $transition-duration
|
|
1099
|
+
);
|
|
1100
|
+
|
|
1101
|
+
// Navbar: a --c-background bar with a 1px --c-muted bottom edge. Items read like the tabs: bold --c-muted (4.7:1 on the
|
|
1102
|
+
// background), --c-text on a --c-surface hover, and --c-text for the current page. The breakpoint is the Sass default (48rem).
|
|
1103
|
+
// Square, 44px toggle, the theme's 1px focus ring inside the item. No other block forwards it.
|
|
1104
|
+
@use '@carissa-io/components-navbar/scss' as navbar with (
|
|
1105
|
+
$c-navbar-padding-x: 1.25rem,
|
|
1106
|
+
$c-navbar-padding-y: 0.5rem,
|
|
1107
|
+
$c-navbar-gap: 1.5rem,
|
|
1108
|
+
$c-navbar-background: $var-background,
|
|
1109
|
+
$c-navbar-color: $var-text,
|
|
1110
|
+
$c-navbar-border-width: 1px,
|
|
1111
|
+
$c-navbar-border-color: $var-muted,
|
|
1112
|
+
$c-navbar-brand-font-size: $font-size-body,
|
|
1113
|
+
$c-navbar-brand-font-weight: $font-weight-bold,
|
|
1114
|
+
$c-navbar-brand-color: $var-text,
|
|
1115
|
+
$c-navbar-item-padding-x: 0.75rem,
|
|
1116
|
+
$c-navbar-item-padding-y: 0.625rem,
|
|
1117
|
+
$c-navbar-item-font-size: $font-size-small,
|
|
1118
|
+
$c-navbar-item-font-weight: $font-weight-bold,
|
|
1119
|
+
$c-navbar-item-radius: $radius,
|
|
1120
|
+
$c-navbar-item-color: $var-muted,
|
|
1121
|
+
$c-navbar-item-color-hover: $var-text,
|
|
1122
|
+
$c-navbar-item-background-hover: $var-surface,
|
|
1123
|
+
$c-navbar-item-color-active: $var-text,
|
|
1124
|
+
$c-navbar-item-background-active: transparent,
|
|
1125
|
+
$c-navbar-toggle-size: $min-height,
|
|
1126
|
+
$c-navbar-toggle-radius: $radius,
|
|
1127
|
+
$c-navbar-toggle-color: $var-text,
|
|
1128
|
+
$c-navbar-toggle-background-hover: $var-surface-active,
|
|
1129
|
+
$c-navbar-focus-outline: $focus-width solid $var-focus,
|
|
1130
|
+
$c-navbar-focus-outline-offset: -2px
|
|
1131
|
+
);
|
|
1132
|
+
|
|
1133
|
+
// Drawer: the Modal's box as a panel on the edge: --c-background with --c-text, a 1px --c-muted border (the edge that still
|
|
1134
|
+
// reads in dark), the same padding and the same close button. The backdrop is the one literal color, black at 50% in both
|
|
1135
|
+
// modes, and so is the shadow. Its index forwards the typography styles, already loaded and configured above: this block
|
|
1136
|
+
// goes after the Typography one.
|
|
1137
|
+
@use '@carissa-io/components-drawer/scss' as drawer with (
|
|
1138
|
+
$c-drawer-background: $var-background,
|
|
1139
|
+
$c-drawer-color: $var-text,
|
|
1140
|
+
$c-drawer-border-width: 1px,
|
|
1141
|
+
$c-drawer-border-color: $var-muted,
|
|
1142
|
+
$c-drawer-radius: $radius,
|
|
1143
|
+
$c-drawer-shadow: (0 4px 8px rgb(0 0 0 / 0.08), 0 16px 48px rgb(0 0 0 / 0.2)),
|
|
1144
|
+
$c-drawer-padding-x: 1.5rem,
|
|
1145
|
+
$c-drawer-padding-y: 1.25rem,
|
|
1146
|
+
$c-drawer-gap: 1rem,
|
|
1147
|
+
$c-drawer-size-sm: 20rem,
|
|
1148
|
+
$c-drawer-size-md: 28rem,
|
|
1149
|
+
$c-drawer-size-lg: 40rem,
|
|
1150
|
+
$c-drawer-close-size: 1.25rem,
|
|
1151
|
+
$c-drawer-close-color: $var-muted,
|
|
1152
|
+
$c-drawer-close-color-hover: $var-text,
|
|
1153
|
+
$c-drawer-backdrop-color: rgb(0 0 0 / 0.5),
|
|
1154
|
+
$c-drawer-transition-duration: $transition-duration
|
|
1155
|
+
);
|
|
1156
|
+
|
|
1157
|
+
// Menu: the panel is the Popover's (--c-background, 1px --c-muted border, flat). Items are --c-text with a --c-surface-active
|
|
1158
|
+
// hover and keyboard focus (14.2:1) and the theme's 1px focus ring; labels are small --c-muted text (4.7:1 on the panel) and
|
|
1159
|
+
// the separator a 1px --c-muted line. Square. Its index forwards the popover styles, already loaded and configured above:
|
|
1160
|
+
// this block goes after the Popover one.
|
|
1161
|
+
@use '@carissa-io/components-menu/scss' as menu with (
|
|
1162
|
+
$c-menu-min-width: 12rem,
|
|
1163
|
+
$c-menu-padding: 0.25rem,
|
|
1164
|
+
$c-menu-radius: $radius,
|
|
1165
|
+
$c-menu-item-padding-x: 0.75rem,
|
|
1166
|
+
$c-menu-item-padding-y: 0.625rem,
|
|
1167
|
+
$c-menu-item-gap: 0.75rem,
|
|
1168
|
+
$c-menu-item-color: $var-text,
|
|
1169
|
+
$c-menu-item-background: transparent,
|
|
1170
|
+
$c-menu-item-color-hover: $var-text,
|
|
1171
|
+
$c-menu-item-background-hover: $var-surface-active,
|
|
1172
|
+
$c-menu-item-focus-outline: $focus-width solid $var-focus,
|
|
1173
|
+
$c-menu-label-color: $var-muted,
|
|
1174
|
+
$c-menu-label-font-size: $font-size-small,
|
|
1175
|
+
$c-menu-label-padding-x: 0.75rem,
|
|
1176
|
+
$c-menu-label-padding-y: 0.5rem,
|
|
1177
|
+
$c-menu-separator-color: $var-muted,
|
|
1178
|
+
$c-menu-separator-margin: 0.25rem
|
|
1179
|
+
);
|
|
1180
|
+
|
|
1181
|
+
// Table: a --c-surface header (--c-text, bold) over rows divided by 1px --c-muted lines. Row hover is --c-surface-active, so it
|
|
1182
|
+
// still shows on a striped (--c-surface) row; the selected row is a 12% tint of --c-primary over the background, a mix of two
|
|
1183
|
+
// custom properties that follows the mode (text is 13:1 on it in both). The sticky header must be opaque so rows do not show
|
|
1184
|
+
// through: it is --c-surface, a custom property, so dark works. Square, the theme's 1px focus ring inside the cell.
|
|
1185
|
+
@use '@carissa-io/components-table/scss' as table with (
|
|
1186
|
+
$c-table-font-size: $font-size-small,
|
|
1187
|
+
$c-table-cell-padding-x: 1rem,
|
|
1188
|
+
$c-table-cell-padding-y: 0.75rem,
|
|
1189
|
+
$c-table-dense-cell-padding-x: 0.75rem,
|
|
1190
|
+
$c-table-dense-cell-padding-y: 0.375rem,
|
|
1191
|
+
$c-table-border-width: 1px,
|
|
1192
|
+
$c-table-border-color: $var-muted,
|
|
1193
|
+
$c-table-header-color: $var-text,
|
|
1194
|
+
$c-table-header-background: $var-surface,
|
|
1195
|
+
$c-table-header-font-weight: $font-weight-bold,
|
|
1196
|
+
$c-table-sticky-header-background: $var-surface,
|
|
1197
|
+
$c-table-row-background-hover: $var-surface-active,
|
|
1198
|
+
$c-table-row-background-striped: $var-surface,
|
|
1199
|
+
$c-table-row-background-selected: color-mix(in srgb, var(--c-primary) 12%, var(--c-background)),
|
|
1200
|
+
$c-table-foot-font-weight: $font-weight-bold,
|
|
1201
|
+
$c-table-caption-color: $var-muted,
|
|
1202
|
+
$c-table-focus-outline: $focus-width solid $var-focus,
|
|
1203
|
+
$c-table-focus-outline-offset: -2px
|
|
1204
|
+
);
|
|
1205
|
+
|
|
1206
|
+
// List: rows on the page background, divided by 1px --c-muted lines. The secondary text is --c-text at the small size, not
|
|
1207
|
+
// --c-muted, because the row sits on --c-surface-active when hovered and --c-muted is only 3.8:1 there (4.35:1 on --c-surface).
|
|
1208
|
+
// Hover is --c-surface-active; the current item is the same 12% --c-primary tint as a selected table row. Square, the theme's
|
|
1209
|
+
// 1px focus ring inside the row.
|
|
1210
|
+
@use '@carissa-io/components-list/scss' as list with (
|
|
1211
|
+
$c-list-item-padding-x: 1rem,
|
|
1212
|
+
$c-list-item-padding-y: 0.75rem,
|
|
1213
|
+
$c-list-item-padding-y-sm: 0.5rem,
|
|
1214
|
+
$c-list-item-padding-y-lg: 1rem,
|
|
1215
|
+
$c-list-item-gap: 1rem,
|
|
1216
|
+
$c-list-font-size: $font-size-body,
|
|
1217
|
+
$c-list-font-size-sm: $font-size-small,
|
|
1218
|
+
$c-list-font-size-lg: $font-size-h4,
|
|
1219
|
+
$c-list-description-color: $var-text,
|
|
1220
|
+
$c-list-description-font-size: $font-size-small,
|
|
1221
|
+
$c-list-border-width: 1px,
|
|
1222
|
+
$c-list-border-color: $var-muted,
|
|
1223
|
+
$c-list-radius: $radius,
|
|
1224
|
+
$c-list-item-background-hover: $var-surface-active,
|
|
1225
|
+
$c-list-item-background-selected: color-mix(in srgb, var(--c-primary) 12%, var(--c-background)),
|
|
1226
|
+
$c-list-item-color-selected: $var-text,
|
|
1227
|
+
$c-list-focus-outline: $focus-width solid $var-focus,
|
|
1228
|
+
$c-list-focus-outline-offset: -2px,
|
|
1229
|
+
$c-list-transition-duration: $transition-duration
|
|
1230
|
+
);
|
|
1231
|
+
|
|
1232
|
+
// Description list: the term is a small bold --c-muted label (4.7:1 on the background, so use it on --c-background, where
|
|
1233
|
+
// --c-muted is not enough on --c-surface) and the detail is --c-text. No fills or borders.
|
|
1234
|
+
@use '@carissa-io/components-description-list/scss' as description-list with (
|
|
1235
|
+
$c-description-list-gap-x: 2rem,
|
|
1236
|
+
$c-description-list-gap-y: 1rem,
|
|
1237
|
+
$c-description-list-term-gap: 0.25rem,
|
|
1238
|
+
$c-description-list-term-width: 12rem,
|
|
1239
|
+
$c-description-list-font-size: $font-size-body,
|
|
1240
|
+
$c-description-list-term-color: $var-muted,
|
|
1241
|
+
$c-description-list-term-font-size: $font-size-small,
|
|
1242
|
+
$c-description-list-term-font-weight: $font-weight-bold,
|
|
1243
|
+
$c-description-list-detail-color: $var-text
|
|
1244
|
+
);
|
|
1245
|
+
|
|
1246
|
+
// Stat: a card-like block on the page background with a 1px --c-muted border (the Card's outlined look), not on --c-surface:
|
|
1247
|
+
// the delta colors are checked against --c-background, where --c-success is 5:1 and --c-error 4.5:1 in light (4.15:1 for
|
|
1248
|
+
// --c-error on --c-surface). The label and the description are --c-muted (4.7:1), the value is --c-text. The delta is
|
|
1249
|
+
// success when up, error when down and muted when flat; the arrow and the screen-reader text say the same, so color is never
|
|
1250
|
+
// the only signal. In dark the status colors are lighter (7.1:1 and above on the background).
|
|
1251
|
+
@use '@carissa-io/components-stat/scss' as stat with (
|
|
1252
|
+
$c-stat-padding: 1.25rem 1.5rem,
|
|
1253
|
+
$c-stat-gap: 1rem,
|
|
1254
|
+
$c-stat-content-gap: 0.25rem,
|
|
1255
|
+
$c-stat-radius: $radius,
|
|
1256
|
+
$c-stat-background: $var-background,
|
|
1257
|
+
$c-stat-border: 1px solid $var-muted,
|
|
1258
|
+
$c-stat-label-color: $var-muted,
|
|
1259
|
+
$c-stat-label-font-size: $font-size-small,
|
|
1260
|
+
$c-stat-label-font-weight: $font-weight-bold,
|
|
1261
|
+
$c-stat-value-color: $var-text,
|
|
1262
|
+
$c-stat-value-font-size: $font-size-h1,
|
|
1263
|
+
$c-stat-value-font-weight: $font-weight-bold,
|
|
1264
|
+
$c-stat-description-color: $var-muted,
|
|
1265
|
+
$c-stat-description-font-size: $font-size-small,
|
|
1266
|
+
$c-stat-icon-color: $var-text,
|
|
1267
|
+
$c-stat-delta-font-size: $font-size-small,
|
|
1268
|
+
$c-stat-delta-font-weight: $font-weight-bold,
|
|
1269
|
+
$c-stat-delta-up-color: $var-success,
|
|
1270
|
+
$c-stat-delta-down-color: $var-error,
|
|
1271
|
+
$c-stat-delta-flat-color: $var-muted
|
|
1272
|
+
);
|
|
1273
|
+
|
|
1274
|
+
// Empty state: a centred block on the page background. The icon is --c-muted (4.7:1 light, 7.9:1 dark, above the 3:1 non-text
|
|
1275
|
+
// minimum), the title --c-text at the h3 size and bold, the description --c-muted (4.7:1 on the background, so keep it off
|
|
1276
|
+
// --c-surface, where light is 4.35:1). The actions are the app's buttons. Square, nothing else to set.
|
|
1277
|
+
@use '@carissa-io/components-empty-state/scss' as empty-state with (
|
|
1278
|
+
$c-empty-state-padding: 3rem 1.5rem,
|
|
1279
|
+
$c-empty-state-padding-sm: 1.5rem 1rem,
|
|
1280
|
+
$c-empty-state-padding-lg: 4.5rem 2rem,
|
|
1281
|
+
$c-empty-state-gap: 1rem,
|
|
1282
|
+
$c-empty-state-icon-size: 3rem,
|
|
1283
|
+
$c-empty-state-icon-size-sm: 2rem,
|
|
1284
|
+
$c-empty-state-icon-size-lg: 4rem,
|
|
1285
|
+
$c-empty-state-icon-color: $var-muted,
|
|
1286
|
+
$c-empty-state-title-color: $var-text,
|
|
1287
|
+
$c-empty-state-title-font-size: $font-size-h3,
|
|
1288
|
+
$c-empty-state-title-font-size-sm: $font-size-h4,
|
|
1289
|
+
$c-empty-state-title-font-size-lg: $font-size-h2,
|
|
1290
|
+
$c-empty-state-title-font-weight: $font-weight-bold,
|
|
1291
|
+
$c-empty-state-description-color: $var-muted,
|
|
1292
|
+
$c-empty-state-description-font-size: $font-size-body,
|
|
1293
|
+
$c-empty-state-description-font-size-sm: $font-size-small,
|
|
1294
|
+
$c-empty-state-description-font-size-lg: $font-size-body,
|
|
1295
|
+
$c-empty-state-actions-gap: 0.75rem
|
|
1296
|
+
);
|
|
1297
|
+
|
|
1298
|
+
// Timeline: a --c-muted connector and a small dot per event. A default dot is a --c-surface-active fill with a --c-muted ring;
|
|
1299
|
+
// success, warning, error and info are solid dots in their status color (4.5:1 or more against the background in light, 7:1 in
|
|
1300
|
+
// dark, above the 3:1 non-text minimum); the current step is a hollow --c-primary ring. An icon marker keeps a --c-background
|
|
1301
|
+
// fill and takes the status as its ring, so the --c-text icon is 17.9:1 / 18.2:1 in every status. The status text is the
|
|
1302
|
+
// hidden status_label, the time is --c-muted (4.7:1 / 7.9:1 on the background) and the title --c-text, bold. Color is never the
|
|
1303
|
+
// only signal.
|
|
1304
|
+
@use '@carissa-io/components-timeline/scss' as timeline with (
|
|
1305
|
+
$c-timeline-gap: 1.5rem,
|
|
1306
|
+
$c-timeline-content-gap: 1rem,
|
|
1307
|
+
$c-timeline-content-spacing: 0.25rem,
|
|
1308
|
+
$c-timeline-horizontal-item-width: 14rem,
|
|
1309
|
+
$c-timeline-marker-size: 0.75rem,
|
|
1310
|
+
$c-timeline-marker-icon-size: 1.5rem,
|
|
1311
|
+
$c-timeline-marker-border-width: 2px,
|
|
1312
|
+
$c-timeline-marker-color: $var-text,
|
|
1313
|
+
$c-timeline-marker-icon-background: $var-background,
|
|
1314
|
+
$c-timeline-marker-default: $var-surface-active,
|
|
1315
|
+
$c-timeline-marker-default-border: $var-muted,
|
|
1316
|
+
$c-timeline-marker-success: $var-success,
|
|
1317
|
+
$c-timeline-marker-warning: $var-warning,
|
|
1318
|
+
$c-timeline-marker-error: $var-error,
|
|
1319
|
+
$c-timeline-marker-info: $var-info,
|
|
1320
|
+
$c-timeline-marker-current: $var-primary,
|
|
1321
|
+
$c-timeline-connector-width: 1px,
|
|
1322
|
+
$c-timeline-connector-color: $var-muted,
|
|
1323
|
+
$c-timeline-title-font-weight: $font-weight-bold,
|
|
1324
|
+
$c-timeline-title-color: $var-text,
|
|
1325
|
+
$c-timeline-time-color: $var-muted,
|
|
1326
|
+
$c-timeline-time-font-size: $font-size-small,
|
|
1327
|
+
$c-timeline-description-color: $var-text,
|
|
1328
|
+
$c-timeline-description-font-size: $font-size-small
|
|
1329
|
+
);
|
|
1330
|
+
|
|
1331
|
+
// Tree: rows on the page background. Hover is --c-surface-active (--c-text 14.2:1 / 13.9:1); the selected row is the same 12%
|
|
1332
|
+
// --c-primary tint over the background as a selected table row, with --c-text (13.6:1 / 13.7:1). The chevron is the component's
|
|
1333
|
+
// CSS border chevron in --c-muted (3.8:1 on the hover and 3.6:1 on the selected tint in light, 5.9:1 and above in dark: above
|
|
1334
|
+
// the 3:1 non-text minimum). Square, the theme's 1px focus ring inside the row.
|
|
1335
|
+
@use '@carissa-io/components-tree/scss' as tree with (
|
|
1336
|
+
$c-tree-font-size: $font-size-body,
|
|
1337
|
+
$c-tree-row-padding-x: 0.75rem,
|
|
1338
|
+
$c-tree-row-padding-y: 0.5rem,
|
|
1339
|
+
$c-tree-row-gap: 0.5rem,
|
|
1340
|
+
$c-tree-row-radius: $radius,
|
|
1341
|
+
$c-tree-indent: 1.5rem,
|
|
1342
|
+
$c-tree-toggle-size: 1rem,
|
|
1343
|
+
$c-tree-toggle-chevron-size: 0.4375rem,
|
|
1344
|
+
$c-tree-toggle-chevron-width: 2px,
|
|
1345
|
+
$c-tree-toggle-color: $var-muted,
|
|
1346
|
+
$c-tree-row-background-hover: $var-surface-active,
|
|
1347
|
+
$c-tree-row-background-selected: color-mix(in srgb, var(--c-primary) 12%, var(--c-background)),
|
|
1348
|
+
$c-tree-row-color-selected: $var-text,
|
|
1349
|
+
$c-tree-item-disabled-opacity: 0.5,
|
|
1350
|
+
$c-tree-focus-outline: $focus-width solid $var-focus,
|
|
1351
|
+
$c-tree-focus-outline-offset: -2px,
|
|
1352
|
+
$c-tree-transition-duration: $transition-duration
|
|
1353
|
+
);
|
|
1354
|
+
|
|
1355
|
+
// Code: the monospace stack of the tokens. Inline code is --c-text on --c-surface (16.4:1 in both modes), square. A kbd is a
|
|
1356
|
+
// --c-background key with a 1px --c-muted border and a --c-muted bottom edge, text --c-text (17.9:1 / 18.2:1). The block is
|
|
1357
|
+
// --c-surface with a 1px --c-muted border and --c-text (16.4:1); highlighted children are the app's to keep AA on that
|
|
1358
|
+
// background. The copy button reads like the secondary button (--c-background with a --c-muted border, --c-surface-active on
|
|
1359
|
+
// hover) and the theme's 1px focus ring.
|
|
1360
|
+
@use '@carissa-io/components-code/scss' as code with (
|
|
1361
|
+
$c-code-font-family: $font-family-mono,
|
|
1362
|
+
$c-code-font-size: 0.875em,
|
|
1363
|
+
$c-code-padding: 0.125em 0.375em,
|
|
1364
|
+
$c-code-radius: $radius,
|
|
1365
|
+
$c-code-background: $var-surface,
|
|
1366
|
+
$c-code-color: $var-text,
|
|
1367
|
+
$c-kbd-font-size: 0.8125em,
|
|
1368
|
+
$c-kbd-padding: 0.125em 0.5em,
|
|
1369
|
+
$c-kbd-radius: $radius,
|
|
1370
|
+
$c-kbd-background: $var-background,
|
|
1371
|
+
$c-kbd-color: $var-text,
|
|
1372
|
+
$c-kbd-border: 1px solid $var-muted,
|
|
1373
|
+
$c-kbd-shadow: 0 1px 0 $var-muted,
|
|
1374
|
+
$c-code-block-font-size: $font-size-small,
|
|
1375
|
+
$c-code-block-line-height: $line-height-normal,
|
|
1376
|
+
$c-code-block-padding: 1rem,
|
|
1377
|
+
$c-code-block-radius: $radius,
|
|
1378
|
+
$c-code-block-background: $var-surface,
|
|
1379
|
+
$c-code-block-color: $var-text,
|
|
1380
|
+
$c-code-block-border: 1px solid $var-muted,
|
|
1381
|
+
$c-code-copy-offset: 0.5rem,
|
|
1382
|
+
$c-code-copy-padding: 0.375rem 0.75rem,
|
|
1383
|
+
$c-code-copy-font-size: $font-size-small,
|
|
1384
|
+
$c-code-copy-radius: $radius,
|
|
1385
|
+
$c-code-copy-background: $var-background,
|
|
1386
|
+
$c-code-copy-color: $var-text,
|
|
1387
|
+
$c-code-copy-border: 1px solid $var-muted,
|
|
1388
|
+
$c-code-copy-background-hover: $var-surface-active,
|
|
1389
|
+
$c-code-focus-outline: $focus-width solid $var-focus,
|
|
1390
|
+
$c-code-focus-outline-offset: -2px
|
|
1391
|
+
);
|