@pg-labs-incubator/cobweb 0.0.0-stage → 0.0.1
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/LICENSE +163 -0
- package/README.md +82 -2
- package/package.json +111 -3
- package/src/action/action.yaml +291 -0
- package/src/action/button-group.yaml +56 -0
- package/src/action/button.yaml +239 -0
- package/src/action/split-button.yaml +87 -0
- package/src/color/color.yaml +181 -0
- package/src/color/palette.yaml +147 -0
- package/src/container/card.yaml +170 -0
- package/src/container/corner-radius.yaml +50 -0
- package/src/container/elevation.yaml +19 -0
- package/src/design.yaml +41 -0
- package/src/feedback/feedback.yaml +225 -0
- package/src/icon/icon-font.yaml +28 -0
- package/src/icon/icon.yaml +31 -0
- package/src/input/date-picker.yaml +144 -0
- package/src/input/date-range-input.yaml +162 -0
- package/src/input/range-slider.yaml +161 -0
- package/src/input/select.yaml +230 -0
- package/src/input/slider.yaml +172 -0
- package/src/input/text-field.yaml +240 -0
- package/src/input/time-picker.yaml +220 -0
- package/src/motion/motion.yaml +371 -0
- package/src/navigation/app-bar.yaml +147 -0
- package/src/navigation/navigation.yaml +339 -0
- package/src/navigation/scroll.yaml +23 -0
- package/src/navigation/search.yaml +112 -0
- package/src/navigation/tabs.yaml +144 -0
- package/src/navigation/toolbar.yaml +130 -0
- package/src/selection/checkbox.yaml +162 -0
- package/src/selection/chip.yaml +219 -0
- package/src/selection/radio.yaml +125 -0
- package/src/selection/segmented-group.yaml +11 -0
- package/src/selection/segmented.yaml +69 -0
- package/src/selection/switch.yaml +209 -0
- package/src/spacing/measurement.yaml +80 -0
- package/src/state/state.yaml +38 -0
- package/src/surface/surface.yaml +483 -0
- package/src/text/line-height.yaml +144 -0
- package/src/text/typeface.yaml +31 -0
- package/src/text/typescale.yaml +726 -0
- package/target/esbuild/action/action.css +1 -0
- package/target/esbuild/action/base.jsx +1 -0
- package/target/esbuild/action/button.jsx +17 -0
- package/target/esbuild/action/fab-menu-context.jsx +1 -0
- package/target/esbuild/action/fab-menu.jsx +15 -0
- package/target/esbuild/action/fab.jsx +7 -0
- package/target/esbuild/action/group.jsx +22 -0
- package/target/esbuild/action/icon-button.jsx +5 -0
- package/target/esbuild/action/index.jsx +1 -0
- package/target/esbuild/action/split-button.jsx +12 -0
- package/target/esbuild/color/contrast.jsx +1 -0
- package/target/esbuild/color/dynamic.jsx +1 -0
- package/target/esbuild/color/hct.jsx +1 -0
- package/target/esbuild/color/index.css +1 -0
- package/target/esbuild/color/index.jsx +1 -0
- package/target/esbuild/color/palette.jsx +1 -0
- package/target/esbuild/color/scheme.jsx +1 -0
- package/target/esbuild/color/temperature.jsx +1 -0
- package/target/esbuild/container/card.css +1 -0
- package/target/esbuild/container/card.jsx +1 -0
- package/target/esbuild/container/elevation-shadow.css +1 -0
- package/target/esbuild/container/elevation-shadow.jsx +1 -0
- package/target/esbuild/container/index.jsx +1 -0
- package/target/esbuild/dom/client.jsx +1 -0
- package/target/esbuild/dom/index.jsx +1 -0
- package/target/esbuild/dom/server.jsx +1 -0
- package/target/esbuild/dom/types.jsx +1 -0
- package/target/esbuild/feedback/badge.jsx +15 -0
- package/target/esbuild/feedback/feedback.css +1 -0
- package/target/esbuild/feedback/focus.jsx +1 -0
- package/target/esbuild/feedback/index.jsx +1 -0
- package/target/esbuild/feedback/loading.jsx +7 -0
- package/target/esbuild/feedback/observe.jsx +1 -0
- package/target/esbuild/feedback/progress.jsx +35 -0
- package/target/esbuild/feedback/snackbar.jsx +23 -0
- package/target/esbuild/feedback/tooltip.jsx +24 -0
- package/target/esbuild/icon/icon.css +1 -0
- package/target/esbuild/icon/icon.jsx +1 -0
- package/target/esbuild/icon/index.jsx +1 -0
- package/target/esbuild/index.css +1 -0
- package/target/esbuild/index.jsx +1 -0
- package/target/esbuild/input/autocomplete.jsx +5 -0
- package/target/esbuild/input/base.jsx +4 -0
- package/target/esbuild/input/date-picker.css +1 -0
- package/target/esbuild/input/date-picker.jsx +104 -0
- package/target/esbuild/input/date-range-input.css +1 -0
- package/target/esbuild/input/date-time.jsx +21 -0
- package/target/esbuild/input/index.css +1 -0
- package/target/esbuild/input/index.jsx +1 -0
- package/target/esbuild/input/paired-input.jsx +1 -0
- package/target/esbuild/input/picker-dialog.css +1 -0
- package/target/esbuild/input/picker-dialog.jsx +14 -0
- package/target/esbuild/input/select.css +1 -0
- package/target/esbuild/input/select.jsx +63 -0
- package/target/esbuild/input/slider.css +1 -0
- package/target/esbuild/input/slider.jsx +51 -0
- package/target/esbuild/input/text-field.css +1 -0
- package/target/esbuild/input/text-field.jsx +67 -0
- package/target/esbuild/input/time-picker.css +1 -0
- package/target/esbuild/input/time-picker.jsx +29 -0
- package/target/esbuild/motion/frame.jsx +1 -0
- package/target/esbuild/motion/index.css +1 -0
- package/target/esbuild/motion/index.jsx +1 -0
- package/target/esbuild/motion/material.jsx +1 -0
- package/target/esbuild/motion/motion.jsx +1 -0
- package/target/esbuild/motion/spring.jsx +1 -0
- package/target/esbuild/motion/transition.css +1 -0
- package/target/esbuild/motion/transition.jsx +1 -0
- package/target/esbuild/motion/velocity.jsx +1 -0
- package/target/esbuild/navigation/app-bar.jsx +51 -0
- package/target/esbuild/navigation/base.jsx +1 -0
- package/target/esbuild/navigation/drawer.jsx +25 -0
- package/target/esbuild/navigation/index.jsx +1 -0
- package/target/esbuild/navigation/navigation.css +1 -0
- package/target/esbuild/navigation/navigation.jsx +29 -0
- package/target/esbuild/navigation/scroll.jsx +1 -0
- package/target/esbuild/navigation/search.jsx +29 -0
- package/target/esbuild/navigation/tabs.jsx +7 -0
- package/target/esbuild/navigation/toolbar.jsx +23 -0
- package/target/esbuild/selection/base.jsx +1 -0
- package/target/esbuild/selection/checkbox.jsx +14 -0
- package/target/esbuild/selection/chip.jsx +23 -0
- package/target/esbuild/selection/index.jsx +1 -0
- package/target/esbuild/selection/radio.jsx +9 -0
- package/target/esbuild/selection/segmented.jsx +15 -0
- package/target/esbuild/selection/selection.css +1 -0
- package/target/esbuild/selection/switch.jsx +14 -0
- package/target/esbuild/shape/corner-rounding.jsx +1 -0
- package/target/esbuild/shape/cubic.jsx +1 -0
- package/target/esbuild/shape/index.jsx +1 -0
- package/target/esbuild/shape/material-shapes.jsx +1 -0
- package/target/esbuild/shape/morph.jsx +1 -0
- package/target/esbuild/shape/path.jsx +1 -0
- package/target/esbuild/shape/point.jsx +1 -0
- package/target/esbuild/shape/rounded-polygon.jsx +1 -0
- package/target/esbuild/shape/shapes.jsx +1 -0
- package/target/esbuild/spacing/index.jsx +1 -0
- package/target/esbuild/state/component.css +1 -0
- package/target/esbuild/state/component.jsx +1 -0
- package/target/esbuild/state/controller.jsx +1 -0
- package/target/esbuild/state/index.jsx +1 -0
- package/target/esbuild/state/ripple.jsx +1 -0
- package/target/esbuild/state/state.jsx +1 -0
- package/target/esbuild/state/style.jsx +1 -0
- package/target/esbuild/surface/carousel-layout.jsx +1 -0
- package/target/esbuild/surface/carousel.css +1 -0
- package/target/esbuild/surface/carousel.jsx +10 -0
- package/target/esbuild/surface/dialog.jsx +35 -0
- package/target/esbuild/surface/divider.jsx +1 -0
- package/target/esbuild/surface/drag.jsx +1 -0
- package/target/esbuild/surface/gestures.css +1 -0
- package/target/esbuild/surface/gestures.jsx +7 -0
- package/target/esbuild/surface/index.css +1 -0
- package/target/esbuild/surface/index.jsx +1 -0
- package/target/esbuild/surface/interactive.jsx +1 -0
- package/target/esbuild/surface/list-patterns.jsx +26 -0
- package/target/esbuild/surface/list.css +1 -0
- package/target/esbuild/surface/list.jsx +9 -0
- package/target/esbuild/surface/menu.css +1 -0
- package/target/esbuild/surface/menu.jsx +12 -0
- package/target/esbuild/surface/scaffold.jsx +47 -0
- package/target/esbuild/surface/sheet.jsx +21 -0
- package/target/esbuild/surface/side-sheet.jsx +17 -0
- package/target/esbuild/surface/slots.jsx +1 -0
- package/target/esbuild/surface/surface.css +1 -0
- package/target/esbuild/surface/surface.jsx +1 -0
- package/target/esbuild/text/index.css +1 -0
- package/target/esbuild/text/index.jsx +1 -0
- package/target/esbuild/text/text.css +1 -0
- package/target/esbuild/text/text.jsx +3 -0
- package/target/esbuild/text/typography.css +1 -0
- package/target/esbuild/text/typography.jsx +1 -0
- package/target/esbuild/util/box-side.jsx +1 -0
- package/target/esbuild/util/debug.jsx +1 -0
- package/target/esbuild/util/dom.jsx +1 -0
- package/target/esbuild/util/event.jsx +1 -0
- package/target/esbuild/util/index.jsx +1 -0
- package/target/esbuild/util/preconditions.jsx +1 -0
- package/target/esbuild/util/reactive.jsx +1 -0
- package/target/tsc/action/action.css.d.ts +3 -0
- package/target/tsc/action/base.d.ts +211 -0
- package/target/tsc/action/button.d.ts +126 -0
- package/target/tsc/action/fab-menu-context.d.ts +16 -0
- package/target/tsc/action/fab-menu.d.ts +112 -0
- package/target/tsc/action/fab.d.ts +98 -0
- package/target/tsc/action/group.d.ts +166 -0
- package/target/tsc/action/icon-button.d.ts +79 -0
- package/target/tsc/action/index.d.ts +24 -0
- package/target/tsc/action/split-button.d.ts +78 -0
- package/target/tsc/color/contrast.d.ts +48 -0
- package/target/tsc/color/dynamic.d.ts +203 -0
- package/target/tsc/color/hct.d.ts +114 -0
- package/target/tsc/color/index.css.d.ts +3 -0
- package/target/tsc/color/index.d.ts +23 -0
- package/target/tsc/color/palette.d.ts +30 -0
- package/target/tsc/color/scheme.d.ts +446 -0
- package/target/tsc/color/temperature.d.ts +24 -0
- package/target/tsc/container/card.css.d.ts +3 -0
- package/target/tsc/container/card.d.ts +110 -0
- package/target/tsc/container/elevation-shadow.css.d.ts +3 -0
- package/target/tsc/container/elevation-shadow.d.ts +23 -0
- package/target/tsc/container/index.d.ts +44 -0
- package/target/tsc/dom/client.d.ts +387 -0
- package/target/tsc/dom/index.d.ts +93 -0
- package/target/tsc/dom/server.d.ts +65 -0
- package/target/tsc/dom/types.d.ts +134 -0
- package/target/tsc/feedback/badge.d.ts +116 -0
- package/target/tsc/feedback/feedback.css.d.ts +3 -0
- package/target/tsc/feedback/focus.d.ts +20 -0
- package/target/tsc/feedback/index.d.ts +17 -0
- package/target/tsc/feedback/loading.d.ts +194 -0
- package/target/tsc/feedback/observe.d.ts +75 -0
- package/target/tsc/feedback/progress.d.ts +281 -0
- package/target/tsc/feedback/snackbar.d.ts +398 -0
- package/target/tsc/feedback/tooltip.d.ts +326 -0
- package/target/tsc/icon/icon.css.d.ts +3 -0
- package/target/tsc/icon/icon.d.ts +69 -0
- package/target/tsc/icon/index.d.ts +13 -0
- package/target/tsc/index.css.d.ts +3 -0
- package/target/tsc/index.d.ts +7 -0
- package/target/tsc/input/autocomplete.d.ts +119 -0
- package/target/tsc/input/base.d.ts +282 -0
- package/target/tsc/input/date-picker.css.d.ts +3 -0
- package/target/tsc/input/date-picker.d.ts +351 -0
- package/target/tsc/input/date-range-input.css.d.ts +3 -0
- package/target/tsc/input/date-time.d.ts +171 -0
- package/target/tsc/input/index.css.d.ts +3 -0
- package/target/tsc/input/index.d.ts +27 -0
- package/target/tsc/input/paired-input.d.ts +435 -0
- package/target/tsc/input/picker-dialog.css.d.ts +3 -0
- package/target/tsc/input/picker-dialog.d.ts +84 -0
- package/target/tsc/input/select.css.d.ts +3 -0
- package/target/tsc/input/select.d.ts +267 -0
- package/target/tsc/input/slider.css.d.ts +3 -0
- package/target/tsc/input/slider.d.ts +372 -0
- package/target/tsc/input/text-field.css.d.ts +3 -0
- package/target/tsc/input/text-field.d.ts +415 -0
- package/target/tsc/input/time-picker.css.d.ts +3 -0
- package/target/tsc/input/time-picker.d.ts +212 -0
- package/target/tsc/motion/frame.d.ts +36 -0
- package/target/tsc/motion/index.css.d.ts +3 -0
- package/target/tsc/motion/index.d.ts +34 -0
- package/target/tsc/motion/material.d.ts +110 -0
- package/target/tsc/motion/motion.d.ts +235 -0
- package/target/tsc/motion/spring.d.ts +223 -0
- package/target/tsc/motion/transition.css.d.ts +3 -0
- package/target/tsc/motion/transition.d.ts +597 -0
- package/target/tsc/motion/velocity.d.ts +54 -0
- package/target/tsc/navigation/app-bar.d.ts +473 -0
- package/target/tsc/navigation/base.d.ts +320 -0
- package/target/tsc/navigation/drawer.d.ts +301 -0
- package/target/tsc/navigation/index.d.ts +25 -0
- package/target/tsc/navigation/navigation.css.d.ts +3 -0
- package/target/tsc/navigation/navigation.d.ts +537 -0
- package/target/tsc/navigation/scroll.d.ts +218 -0
- package/target/tsc/navigation/search.d.ts +332 -0
- package/target/tsc/navigation/tabs.d.ts +497 -0
- package/target/tsc/navigation/toolbar.d.ts +248 -0
- package/target/tsc/selection/base.d.ts +100 -0
- package/target/tsc/selection/checkbox.d.ts +194 -0
- package/target/tsc/selection/chip.d.ts +358 -0
- package/target/tsc/selection/index.d.ts +21 -0
- package/target/tsc/selection/radio.d.ts +198 -0
- package/target/tsc/selection/segmented.d.ts +333 -0
- package/target/tsc/selection/selection.css.d.ts +3 -0
- package/target/tsc/selection/switch.d.ts +165 -0
- package/target/tsc/shape/corner-rounding.d.ts +36 -0
- package/target/tsc/shape/cubic.d.ts +215 -0
- package/target/tsc/shape/index.d.ts +35 -0
- package/target/tsc/shape/material-shapes.d.ts +176 -0
- package/target/tsc/shape/morph.d.ts +91 -0
- package/target/tsc/shape/path.d.ts +177 -0
- package/target/tsc/shape/point.d.ts +165 -0
- package/target/tsc/shape/rounded-polygon.d.ts +289 -0
- package/target/tsc/shape/shapes.d.ts +76 -0
- package/target/tsc/spacing/index.d.ts +19 -0
- package/target/tsc/state/component.css.d.ts +3 -0
- package/target/tsc/state/component.d.ts +276 -0
- package/target/tsc/state/controller.d.ts +257 -0
- package/target/tsc/state/index.d.ts +19 -0
- package/target/tsc/state/ripple.d.ts +50 -0
- package/target/tsc/state/state.d.ts +129 -0
- package/target/tsc/state/style.d.ts +22 -0
- package/target/tsc/surface/carousel-layout.d.ts +212 -0
- package/target/tsc/surface/carousel.css.d.ts +3 -0
- package/target/tsc/surface/carousel.d.ts +231 -0
- package/target/tsc/surface/dialog.d.ts +580 -0
- package/target/tsc/surface/divider.d.ts +92 -0
- package/target/tsc/surface/drag.d.ts +92 -0
- package/target/tsc/surface/gestures.css.d.ts +3 -0
- package/target/tsc/surface/gestures.d.ts +292 -0
- package/target/tsc/surface/index.css.d.ts +3 -0
- package/target/tsc/surface/index.d.ts +29 -0
- package/target/tsc/surface/interactive.d.ts +22 -0
- package/target/tsc/surface/list-patterns.d.ts +384 -0
- package/target/tsc/surface/list.css.d.ts +3 -0
- package/target/tsc/surface/list.d.ts +340 -0
- package/target/tsc/surface/menu.css.d.ts +3 -0
- package/target/tsc/surface/menu.d.ts +590 -0
- package/target/tsc/surface/scaffold.d.ts +337 -0
- package/target/tsc/surface/sheet.d.ts +384 -0
- package/target/tsc/surface/side-sheet.d.ts +183 -0
- package/target/tsc/surface/slots.d.ts +21 -0
- package/target/tsc/surface/surface.css.d.ts +3 -0
- package/target/tsc/surface/surface.d.ts +192 -0
- package/target/tsc/text/index.css.d.ts +3 -0
- package/target/tsc/text/index.d.ts +18 -0
- package/target/tsc/text/text.css.d.ts +3 -0
- package/target/tsc/text/text.d.ts +94 -0
- package/target/tsc/text/typography.css.d.ts +3 -0
- package/target/tsc/text/typography.d.ts +82 -0
- package/target/tsc/util/box-side.d.ts +76 -0
- package/target/tsc/util/debug.d.ts +20 -0
- package/target/tsc/util/dom.d.ts +35 -0
- package/target/tsc/util/event.d.ts +93 -0
- package/target/tsc/util/index.d.ts +12 -0
- package/target/tsc/util/preconditions.d.ts +79 -0
- package/target/tsc/util/reactive.d.ts +36 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: reference
|
|
3
|
+
attribute: Palette
|
|
4
|
+
description: >
|
|
5
|
+
Reference color palette roles. For each color palette, roles `0` through `100` are defined.
|
|
6
|
+
These roles serve as input for the `cw-Color` design attribute.
|
|
7
|
+
|
|
8
|
+
Each palette holds the tones of a single key color, as a Material tonal palette of an HCT hue
|
|
9
|
+
and chroma: primary 316.5 and 66.6, secondary 316 and 22.7, tertiary 16 and 33.5, error 25 and
|
|
10
|
+
84 (Material's error palette), neutral 316.4 and 4.0, and neutral variant 316 and 8.5.
|
|
11
|
+
roles:
|
|
12
|
+
primary:
|
|
13
|
+
type: color
|
|
14
|
+
roles:
|
|
15
|
+
0: "#000000"
|
|
16
|
+
5: "#200034"
|
|
17
|
+
10: "#30004B"
|
|
18
|
+
15: "#3F0061"
|
|
19
|
+
20: "#4F0078"
|
|
20
|
+
25: "#5F008F"
|
|
21
|
+
30: "#6C189C"
|
|
22
|
+
35: "#7929A9"
|
|
23
|
+
40: "#8638B6"
|
|
24
|
+
50: "#A153D1"
|
|
25
|
+
60: "#BD6EEE"
|
|
26
|
+
70: "#D58EFF"
|
|
27
|
+
80: "#E5B4FF"
|
|
28
|
+
90: "#F4D9FF"
|
|
29
|
+
95: "#FCECFF"
|
|
30
|
+
98: "#FFF7FC"
|
|
31
|
+
99: "#FFFBFF"
|
|
32
|
+
100: "#FFFFFF"
|
|
33
|
+
secondary:
|
|
34
|
+
type: color
|
|
35
|
+
roles:
|
|
36
|
+
0: "#000000"
|
|
37
|
+
5: "#1A0A23"
|
|
38
|
+
10: "#25152F"
|
|
39
|
+
15: "#301F3A"
|
|
40
|
+
20: "#3B2A45"
|
|
41
|
+
25: "#473550"
|
|
42
|
+
30: "#52405C"
|
|
43
|
+
35: "#5F4B69"
|
|
44
|
+
40: "#6B5775"
|
|
45
|
+
50: "#85708F"
|
|
46
|
+
60: "#9F89A9"
|
|
47
|
+
70: "#BBA3C5"
|
|
48
|
+
80: "#D7BEE1"
|
|
49
|
+
90: "#F4DAFE"
|
|
50
|
+
95: "#FCECFF"
|
|
51
|
+
98: "#FFF7FC"
|
|
52
|
+
99: "#FFFBFF"
|
|
53
|
+
100: "#FFFFFF"
|
|
54
|
+
tertiary:
|
|
55
|
+
type: color
|
|
56
|
+
roles:
|
|
57
|
+
0: "#000000"
|
|
58
|
+
5: "#2A0206"
|
|
59
|
+
10: "#390A10"
|
|
60
|
+
15: "#461519"
|
|
61
|
+
20: "#541F23"
|
|
62
|
+
25: "#622A2D"
|
|
63
|
+
30: "#703538"
|
|
64
|
+
35: "#7E4043"
|
|
65
|
+
40: "#8C4C4F"
|
|
66
|
+
50: "#A96366"
|
|
67
|
+
60: "#C77C7F"
|
|
68
|
+
70: "#E59699"
|
|
69
|
+
80: "#FFB3B5"
|
|
70
|
+
90: "#FFDADA"
|
|
71
|
+
95: "#FFEDEC"
|
|
72
|
+
98: "#FFF8F7"
|
|
73
|
+
99: "#FFFBFF"
|
|
74
|
+
100: "#FFFFFF"
|
|
75
|
+
error:
|
|
76
|
+
type: color
|
|
77
|
+
roles:
|
|
78
|
+
0: "#000000"
|
|
79
|
+
5: "#2D0001"
|
|
80
|
+
10: "#410002"
|
|
81
|
+
15: "#540003"
|
|
82
|
+
20: "#690005"
|
|
83
|
+
25: "#7E0007"
|
|
84
|
+
30: "#93000A"
|
|
85
|
+
35: "#A80710"
|
|
86
|
+
40: "#BA1A1A"
|
|
87
|
+
50: "#DE3730"
|
|
88
|
+
60: "#FF5449"
|
|
89
|
+
70: "#FF897D"
|
|
90
|
+
80: "#FFB4AB"
|
|
91
|
+
90: "#FFDAD6"
|
|
92
|
+
95: "#FFEDEA"
|
|
93
|
+
98: "#FFF8F7"
|
|
94
|
+
99: "#FFFBFF"
|
|
95
|
+
100: "#FFFFFF"
|
|
96
|
+
neutral:
|
|
97
|
+
type: color
|
|
98
|
+
roles:
|
|
99
|
+
0: "#000000"
|
|
100
|
+
4: "#100D10"
|
|
101
|
+
5: "#131013"
|
|
102
|
+
6: "#151216"
|
|
103
|
+
10: "#1D1B1E"
|
|
104
|
+
12: "#221F22"
|
|
105
|
+
15: "#282528"
|
|
106
|
+
17: "#2C292C"
|
|
107
|
+
20: "#332F33"
|
|
108
|
+
22: "#373437"
|
|
109
|
+
24: "#3C383C"
|
|
110
|
+
25: "#3E3A3E"
|
|
111
|
+
30: "#494649"
|
|
112
|
+
35: "#555155"
|
|
113
|
+
40: "#615D61"
|
|
114
|
+
50: "#7A767A"
|
|
115
|
+
60: "#958F93"
|
|
116
|
+
70: "#AFA9AE"
|
|
117
|
+
80: "#CBC5C9"
|
|
118
|
+
87: "#DFD8DD"
|
|
119
|
+
90: "#E8E0E5"
|
|
120
|
+
92: "#EDE6EB"
|
|
121
|
+
94: "#F3ECF0"
|
|
122
|
+
95: "#F6EFF3"
|
|
123
|
+
96: "#F9F1F6"
|
|
124
|
+
98: "#FFF7FC"
|
|
125
|
+
99: "#FFFBFF"
|
|
126
|
+
100: "#FFFFFF"
|
|
127
|
+
neutralVariant:
|
|
128
|
+
type: color
|
|
129
|
+
roles:
|
|
130
|
+
0: "#000000"
|
|
131
|
+
5: "#140F16"
|
|
132
|
+
10: "#1F1A21"
|
|
133
|
+
15: "#29242C"
|
|
134
|
+
20: "#342E36"
|
|
135
|
+
25: "#403942"
|
|
136
|
+
30: "#4B454D"
|
|
137
|
+
35: "#575059"
|
|
138
|
+
40: "#635C65"
|
|
139
|
+
50: "#7D747E"
|
|
140
|
+
60: "#978E98"
|
|
141
|
+
70: "#B2A8B2"
|
|
142
|
+
80: "#CEC3CE"
|
|
143
|
+
90: "#EADFEA"
|
|
144
|
+
95: "#F9EDF8"
|
|
145
|
+
98: "#FFF7FC"
|
|
146
|
+
99: "#FFFBFF"
|
|
147
|
+
100: "#FFFFFF"
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: component
|
|
3
|
+
attribute: Card
|
|
4
|
+
description: >
|
|
5
|
+
Card component roles. Cards have 3 themes, `elevated`, `filled` (default), and `outlined`.
|
|
6
|
+
roles:
|
|
7
|
+
container:
|
|
8
|
+
description: Container roles.
|
|
9
|
+
roles:
|
|
10
|
+
color:
|
|
11
|
+
description: Container color.
|
|
12
|
+
type: color
|
|
13
|
+
value: $cw-Color-surface-containerHighest
|
|
14
|
+
elevation:
|
|
15
|
+
description: Container elevation.
|
|
16
|
+
type: integer
|
|
17
|
+
value: $cw-Elevation-level-0
|
|
18
|
+
shadowColor:
|
|
19
|
+
description: Elevation shadow color.
|
|
20
|
+
type: color
|
|
21
|
+
value: $cw-Color-shadow
|
|
22
|
+
outlineColor:
|
|
23
|
+
description: Container outline color.
|
|
24
|
+
type: color
|
|
25
|
+
value: $cw-Color-outline
|
|
26
|
+
outlineThickness:
|
|
27
|
+
description: Container outline thickness.
|
|
28
|
+
type: length
|
|
29
|
+
value: 0px
|
|
30
|
+
shape:
|
|
31
|
+
description: Container shape.
|
|
32
|
+
type: length
|
|
33
|
+
roles:
|
|
34
|
+
topLeft: $cw-CornerRadius-medium
|
|
35
|
+
topRight: $cw-CornerRadius-medium
|
|
36
|
+
bottomRight: $cw-CornerRadius-medium
|
|
37
|
+
bottomLeft: $cw-CornerRadius-medium
|
|
38
|
+
content:
|
|
39
|
+
description: Content roles.
|
|
40
|
+
roles:
|
|
41
|
+
color:
|
|
42
|
+
description: >
|
|
43
|
+
Color of content within the container, the foreground color paired with the container
|
|
44
|
+
color of every theme.
|
|
45
|
+
type: color
|
|
46
|
+
value: $cw-Color-surface-onFill
|
|
47
|
+
disabled:
|
|
48
|
+
description: Roles applied when card is disabled.
|
|
49
|
+
roles:
|
|
50
|
+
containerColor:
|
|
51
|
+
description: Override for `cw-Card-container-color`.
|
|
52
|
+
type: color
|
|
53
|
+
value: $cw-Color-surface-fillVariant
|
|
54
|
+
containerElevation:
|
|
55
|
+
description: Override for `cw-Card-container-elevation`.
|
|
56
|
+
type: integer
|
|
57
|
+
value: $cw-Elevation-level-0
|
|
58
|
+
containerOpacity:
|
|
59
|
+
description: Opacity of container color.
|
|
60
|
+
type: number
|
|
61
|
+
value: 0.38
|
|
62
|
+
containerOutlineColor:
|
|
63
|
+
description: Override for `cw-Card-container-outlineColor`.
|
|
64
|
+
type: color
|
|
65
|
+
value: $cw-Color-outline
|
|
66
|
+
containerOutlineOpacity:
|
|
67
|
+
description: Opacity of container outline.
|
|
68
|
+
type: number
|
|
69
|
+
value: 0.12
|
|
70
|
+
contentOpacity:
|
|
71
|
+
description: Opacity of content color.
|
|
72
|
+
type: number
|
|
73
|
+
value: 0.38
|
|
74
|
+
hover:
|
|
75
|
+
description: Roles applied when card enters hover interaction state.
|
|
76
|
+
roles:
|
|
77
|
+
containerElevation:
|
|
78
|
+
description: Override for `cw-Card-container-elevation`.
|
|
79
|
+
type: integer
|
|
80
|
+
value: $cw-Elevation-level-1
|
|
81
|
+
stateLayerColor:
|
|
82
|
+
description: State-layer color.
|
|
83
|
+
type: color
|
|
84
|
+
value: $cw-Color-surface-onFill
|
|
85
|
+
stateLayerOpacity:
|
|
86
|
+
description: State-layer opacity.
|
|
87
|
+
type: number
|
|
88
|
+
value: $cw-State-layer-hoverOpacity
|
|
89
|
+
focus:
|
|
90
|
+
description: Roles applied when card enters focus interaction state.
|
|
91
|
+
roles:
|
|
92
|
+
containerElevation:
|
|
93
|
+
description: Override for `cw-Card-container-elevation`.
|
|
94
|
+
type: integer
|
|
95
|
+
value: $cw-Elevation-level-0
|
|
96
|
+
containerOutlineColor:
|
|
97
|
+
description: Override for `cw-Card-container-outlineColor`.
|
|
98
|
+
type: color
|
|
99
|
+
value: $cw-Card-container-outlineColor
|
|
100
|
+
stateLayerColor:
|
|
101
|
+
description: State-layer color.
|
|
102
|
+
type: color
|
|
103
|
+
value: $cw-Color-surface-onFill
|
|
104
|
+
stateLayerOpacity:
|
|
105
|
+
description: State-layer opacity.
|
|
106
|
+
type: number
|
|
107
|
+
value: $cw-State-layer-focusOpacity
|
|
108
|
+
indicatorColor:
|
|
109
|
+
description: Focus indicator color.
|
|
110
|
+
type: color
|
|
111
|
+
value: $cw-Color-secondary-fill
|
|
112
|
+
indicatorThickness:
|
|
113
|
+
description: Focus indicator thickness.
|
|
114
|
+
type: length
|
|
115
|
+
value: $cw-State-focusIndicator-thickness
|
|
116
|
+
indicatorOffset:
|
|
117
|
+
description: Offset of focus indicator from container.
|
|
118
|
+
type: length
|
|
119
|
+
value: $cw-State-focusIndicator-outerOffset
|
|
120
|
+
press:
|
|
121
|
+
description: Roles applied when card enters press interaction state.
|
|
122
|
+
roles:
|
|
123
|
+
containerElevation:
|
|
124
|
+
description: Override for `cw-Card-container-elevation`.
|
|
125
|
+
type: integer
|
|
126
|
+
value: $cw-Elevation-level-0
|
|
127
|
+
stateLayerColor:
|
|
128
|
+
description: State-layer color.
|
|
129
|
+
type: color
|
|
130
|
+
value: $cw-Color-surface-onFill
|
|
131
|
+
stateLayerOpacity:
|
|
132
|
+
description: State-layer opacity.
|
|
133
|
+
type: number
|
|
134
|
+
value: $cw-State-layer-pressOpacity
|
|
135
|
+
drag:
|
|
136
|
+
description: Roles applied when card enters drag interaction state.
|
|
137
|
+
roles:
|
|
138
|
+
containerElevation:
|
|
139
|
+
description: Override for `cw-Card-container-elevation`.
|
|
140
|
+
type: integer
|
|
141
|
+
value: $cw-Elevation-level-3
|
|
142
|
+
stateLayerColor:
|
|
143
|
+
description: State-layer color.
|
|
144
|
+
type: color
|
|
145
|
+
value: $cw-Color-surface-onFill
|
|
146
|
+
stateLayerOpacity:
|
|
147
|
+
description: State-layer opacity.
|
|
148
|
+
type: number
|
|
149
|
+
value: $cw-State-layer-dragOpacity
|
|
150
|
+
themes:
|
|
151
|
+
elevated:
|
|
152
|
+
description: Elevated card theme.
|
|
153
|
+
values:
|
|
154
|
+
container-color: $cw-Color-surface-containerLow
|
|
155
|
+
container-elevation: $cw-Elevation-level-1
|
|
156
|
+
disabled-containerColor: $cw-Color-surface-fill
|
|
157
|
+
disabled-containerElevation: $cw-Elevation-level-1
|
|
158
|
+
drag-containerElevation: $cw-Elevation-level-4
|
|
159
|
+
focus-containerElevation: $cw-Elevation-level-1
|
|
160
|
+
hover-containerElevation: $cw-Elevation-level-2
|
|
161
|
+
press-containerElevation: $cw-Elevation-level-1
|
|
162
|
+
outlined:
|
|
163
|
+
description: Outlined card theme.
|
|
164
|
+
values:
|
|
165
|
+
container-color: $cw-Color-surface-fill
|
|
166
|
+
container-outlineColor: $cw-Color-outlineVariant
|
|
167
|
+
container-outlineThickness: 1px
|
|
168
|
+
disabled-containerColor: $cw-Card-theme-outlined--container-color
|
|
169
|
+
disabled-containerOpacity: 1
|
|
170
|
+
focus-containerOutlineColor: $cw-Color-surface-onFill
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: system
|
|
3
|
+
attribute: CornerRadius
|
|
4
|
+
description: System roles controlling corner radius of a container.
|
|
5
|
+
roles:
|
|
6
|
+
none:
|
|
7
|
+
description: Square corner.
|
|
8
|
+
type: length
|
|
9
|
+
value: 0px
|
|
10
|
+
full:
|
|
11
|
+
description: >
|
|
12
|
+
Fully rounded corner. The radius exceeds the size of any container, so the shorter side of
|
|
13
|
+
the container is rounded into a semicircle. This must never be a transition endpoint, since
|
|
14
|
+
the rendered corner changes only while an interpolated radius is below half the shorter side;
|
|
15
|
+
a container morphing to or from a fully rounded corner interpolates to or from half its
|
|
16
|
+
shorter side instead.
|
|
17
|
+
type: length
|
|
18
|
+
value: 9999px
|
|
19
|
+
xsmall:
|
|
20
|
+
description: Extra small corner radius.
|
|
21
|
+
type: length
|
|
22
|
+
value: 4px
|
|
23
|
+
small:
|
|
24
|
+
description: Small corner radius.
|
|
25
|
+
type: length
|
|
26
|
+
value: 8px
|
|
27
|
+
medium:
|
|
28
|
+
description: Medium corner radius.
|
|
29
|
+
type: length
|
|
30
|
+
value: 12px
|
|
31
|
+
large:
|
|
32
|
+
description: Large corner radius.
|
|
33
|
+
type: length
|
|
34
|
+
value: 16px
|
|
35
|
+
largeIncreased:
|
|
36
|
+
description: Slightly larger variant of `large`.
|
|
37
|
+
type: length
|
|
38
|
+
value: 20px
|
|
39
|
+
xlarge:
|
|
40
|
+
description: Extra large corner radius.
|
|
41
|
+
type: length
|
|
42
|
+
value: 28px
|
|
43
|
+
xlargeIncreased:
|
|
44
|
+
description: Slightly larger variant of `xlarge`.
|
|
45
|
+
type: length
|
|
46
|
+
value: 32px
|
|
47
|
+
xxlarge:
|
|
48
|
+
description: Extra extra large corner radius.
|
|
49
|
+
type: length
|
|
50
|
+
value: 48px
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: system
|
|
3
|
+
attribute: Elevation
|
|
4
|
+
description: >
|
|
5
|
+
Elevation roles used for elevated containers. Elevation levels are defined in terms of their
|
|
6
|
+
distance from the surface of the UI.
|
|
7
|
+
roles:
|
|
8
|
+
level:
|
|
9
|
+
description: >
|
|
10
|
+
Elevation levels, where `0` is base elevation of the UI and `5` is highest elevation above
|
|
11
|
+
the UI.
|
|
12
|
+
type: integer
|
|
13
|
+
roles:
|
|
14
|
+
0: 0
|
|
15
|
+
1: 1
|
|
16
|
+
2: 2
|
|
17
|
+
3: 3
|
|
18
|
+
4: 4
|
|
19
|
+
5: 5
|
package/src/design.yaml
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
system: cw
|
|
3
|
+
attributes:
|
|
4
|
+
- action/action
|
|
5
|
+
- action/button
|
|
6
|
+
- action/button-group
|
|
7
|
+
- action/split-button
|
|
8
|
+
- color/color
|
|
9
|
+
- color/palette
|
|
10
|
+
- container/card
|
|
11
|
+
- container/corner-radius
|
|
12
|
+
- container/elevation
|
|
13
|
+
- feedback/feedback
|
|
14
|
+
- icon/icon
|
|
15
|
+
- icon/icon-font
|
|
16
|
+
- input/date-picker
|
|
17
|
+
- input/date-range-input
|
|
18
|
+
- input/range-slider
|
|
19
|
+
- input/select
|
|
20
|
+
- input/slider
|
|
21
|
+
- input/text-field
|
|
22
|
+
- input/time-picker
|
|
23
|
+
- motion/motion
|
|
24
|
+
- navigation/app-bar
|
|
25
|
+
- navigation/navigation
|
|
26
|
+
- navigation/scroll
|
|
27
|
+
- navigation/search
|
|
28
|
+
- navigation/tabs
|
|
29
|
+
- navigation/toolbar
|
|
30
|
+
- selection/checkbox
|
|
31
|
+
- selection/chip
|
|
32
|
+
- selection/radio
|
|
33
|
+
- selection/segmented
|
|
34
|
+
- selection/segmented-group
|
|
35
|
+
- selection/switch
|
|
36
|
+
- state/state
|
|
37
|
+
- spacing/measurement
|
|
38
|
+
- surface/surface
|
|
39
|
+
- text/typeface
|
|
40
|
+
- text/line-height
|
|
41
|
+
- text/typescale
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: component
|
|
3
|
+
attribute: Feedback
|
|
4
|
+
description: >
|
|
5
|
+
Material 3 feedback roles for badges, progress indicators, loading indicators, snackbars, and
|
|
6
|
+
tooltips. Values follow the AndroidX Material 3 component tokens (`BadgeTokens`,
|
|
7
|
+
`ProgressIndicatorTokens`, `LinearProgressIndicatorTokens`, `LoadingIndicatorTokens`,
|
|
8
|
+
`SnackbarTokens`, `PlainTooltipTokens`, and `RichTooltipTokens`) and the layout constants of the
|
|
9
|
+
corresponding Compose components. Geometry which a controller computes, such as progress
|
|
10
|
+
thickness, sizes, gaps, and wavelengths, is defined by the components themselves. Rich tooltips
|
|
11
|
+
apply the `richTooltip` theme.
|
|
12
|
+
roles:
|
|
13
|
+
badge:
|
|
14
|
+
description: Badge roles (`BadgeTokens`, `Badge.kt`).
|
|
15
|
+
roles:
|
|
16
|
+
containerColor:
|
|
17
|
+
description: Badge container color (`BadgeTokens.Color`, `BadgeTokens.LargeColor`).
|
|
18
|
+
type: color
|
|
19
|
+
value: $cw-Color-error-fill
|
|
20
|
+
labelColor:
|
|
21
|
+
description: Large badge label color (`BadgeTokens.LargeLabelTextColor`).
|
|
22
|
+
type: color
|
|
23
|
+
value: $cw-Color-error-onFill
|
|
24
|
+
shape:
|
|
25
|
+
description: Badge corner radius (`BadgeTokens.Shape`, `BadgeTokens.LargeShape`).
|
|
26
|
+
type: length
|
|
27
|
+
value: $cw-CornerRadius-full
|
|
28
|
+
size:
|
|
29
|
+
description: Small badge diameter (`BadgeTokens.Size`).
|
|
30
|
+
type: length
|
|
31
|
+
value: 6px
|
|
32
|
+
largeSize:
|
|
33
|
+
description: Large badge minimum height and width (`BadgeTokens.LargeSize`).
|
|
34
|
+
type: length
|
|
35
|
+
value: 16px
|
|
36
|
+
horizontalPadding:
|
|
37
|
+
description: >
|
|
38
|
+
Space before and after a large badge label (`BadgeWithContentHorizontalPadding`).
|
|
39
|
+
type: length
|
|
40
|
+
value: 4px
|
|
41
|
+
offset:
|
|
42
|
+
description: >
|
|
43
|
+
Distance of a small badge from the end edge of its anchor; the badge's top edge aligns
|
|
44
|
+
with the anchor's top edge (`BadgeOffset`).
|
|
45
|
+
type: length
|
|
46
|
+
value: 6px
|
|
47
|
+
largeHorizontalOffset:
|
|
48
|
+
description: >
|
|
49
|
+
Distance from the end edge of the anchor to the start edge of a large badge
|
|
50
|
+
(`BadgeWithContentHorizontalOffset`).
|
|
51
|
+
type: length
|
|
52
|
+
value: 12px
|
|
53
|
+
largeVerticalOffset:
|
|
54
|
+
description: >
|
|
55
|
+
Vertical overlap of a large badge with its anchor (`BadgeWithContentVerticalOffset`).
|
|
56
|
+
type: length
|
|
57
|
+
value: 14px
|
|
58
|
+
progress:
|
|
59
|
+
description: Progress indicator roles (`ProgressIndicatorTokens`, `ProgressIndicator.kt`).
|
|
60
|
+
roles:
|
|
61
|
+
indicatorColor:
|
|
62
|
+
description: >
|
|
63
|
+
Active indicator and stop indicator color (`ProgressIndicatorTokens.ActiveIndicatorColor`,
|
|
64
|
+
`ProgressIndicatorTokens.StopColor`).
|
|
65
|
+
type: color
|
|
66
|
+
value: $cw-Color-primary-fill
|
|
67
|
+
trackColor:
|
|
68
|
+
description: Track color (`ProgressIndicatorTokens.TrackColor`).
|
|
69
|
+
type: color
|
|
70
|
+
value: $cw-Color-secondary-container
|
|
71
|
+
stopSize:
|
|
72
|
+
description: >
|
|
73
|
+
Maximum stop indicator diameter; it never exceeds the track thickness
|
|
74
|
+
(`LinearProgressIndicatorTokens.StopSize`).
|
|
75
|
+
type: length
|
|
76
|
+
value: 4px
|
|
77
|
+
stopTrailingSpace:
|
|
78
|
+
description: >
|
|
79
|
+
Maximum distance between the stop indicator and the end of the track
|
|
80
|
+
(`ProgressIndicator.kt` `StopIndicatorTrailingSpace`).
|
|
81
|
+
type: length
|
|
82
|
+
value: 6px
|
|
83
|
+
width:
|
|
84
|
+
description: Default linear indicator width (`ProgressIndicator.kt` `LinearIndicatorWidth`).
|
|
85
|
+
type: length
|
|
86
|
+
value: 240px
|
|
87
|
+
motion:
|
|
88
|
+
description: >
|
|
89
|
+
Spring used when a determinate value changes. This is the critically damped, very low
|
|
90
|
+
stiffness spring Compose recommends for progress changes
|
|
91
|
+
(`ProgressIndicatorDefaults.ProgressAnimationSpec`: `Spring.DampingRatioNoBouncy`,
|
|
92
|
+
`Spring.StiffnessVeryLow`).
|
|
93
|
+
roles:
|
|
94
|
+
easing:
|
|
95
|
+
description: Value motion easing.
|
|
96
|
+
type: easing-function
|
|
97
|
+
value: cw-spring-motion-of(curve, 50, 1)
|
|
98
|
+
duration:
|
|
99
|
+
description: Value motion duration.
|
|
100
|
+
type: time
|
|
101
|
+
value: cw-spring-motion-of(duration, 50, 1)
|
|
102
|
+
loading:
|
|
103
|
+
description: Loading indicator roles (`LoadingIndicatorTokens`).
|
|
104
|
+
roles:
|
|
105
|
+
color:
|
|
106
|
+
description: Active indicator color (`LoadingIndicatorTokens.ActiveIndicatorColor`).
|
|
107
|
+
type: color
|
|
108
|
+
value: $cw-Color-primary-fill
|
|
109
|
+
size:
|
|
110
|
+
description: >
|
|
111
|
+
Container width and height (`LoadingIndicatorTokens.ContainerWidth`,
|
|
112
|
+
`LoadingIndicatorTokens.ContainerHeight`).
|
|
113
|
+
type: length
|
|
114
|
+
value: 48px
|
|
115
|
+
containerColor:
|
|
116
|
+
description: >
|
|
117
|
+
Contained indicator container color (`LoadingIndicatorTokens.ContainedContainerColor`).
|
|
118
|
+
type: color
|
|
119
|
+
value: $cw-Color-primary-container
|
|
120
|
+
containedColor:
|
|
121
|
+
description: >
|
|
122
|
+
Contained indicator active color (`LoadingIndicatorTokens.ContainedActiveColor`).
|
|
123
|
+
type: color
|
|
124
|
+
value: $cw-Color-primary-onContainer
|
|
125
|
+
containerShape:
|
|
126
|
+
description: Contained indicator corner radius (`LoadingIndicatorTokens.ContainerShape`).
|
|
127
|
+
type: length
|
|
128
|
+
value: $cw-CornerRadius-full
|
|
129
|
+
snackbar:
|
|
130
|
+
description: Snackbar roles (`SnackbarTokens`, `Snackbar.kt`).
|
|
131
|
+
roles:
|
|
132
|
+
containerColor:
|
|
133
|
+
description: Container color (`SnackbarTokens.ContainerColor`).
|
|
134
|
+
type: color
|
|
135
|
+
value: $cw-Color-surface-inverseFill
|
|
136
|
+
labelColor:
|
|
137
|
+
description: Supporting text color (`SnackbarTokens.SupportingTextColor`).
|
|
138
|
+
type: color
|
|
139
|
+
value: $cw-Color-surface-inverseOnFill
|
|
140
|
+
actionColor:
|
|
141
|
+
description: Action label and state-layer color (`SnackbarTokens.ActionLabelTextColor`).
|
|
142
|
+
type: color
|
|
143
|
+
value: $cw-Color-primary-inverseFill
|
|
144
|
+
iconColor:
|
|
145
|
+
description: Dismiss icon and state-layer color (`SnackbarTokens.IconColor`).
|
|
146
|
+
type: color
|
|
147
|
+
value: $cw-Color-surface-inverseOnFill
|
|
148
|
+
shape:
|
|
149
|
+
description: Container corner radius (`SnackbarTokens.ContainerShape`).
|
|
150
|
+
type: length
|
|
151
|
+
value: $cw-CornerRadius-xsmall
|
|
152
|
+
elevation:
|
|
153
|
+
description: Container elevation (`SnackbarTokens.ContainerElevation`).
|
|
154
|
+
type: integer
|
|
155
|
+
value: $cw-Elevation-level-3
|
|
156
|
+
height:
|
|
157
|
+
description: Single-line container height (`SnackbarTokens.SingleLineContainerHeight`).
|
|
158
|
+
type: length
|
|
159
|
+
value: 48px
|
|
160
|
+
maxWidth:
|
|
161
|
+
description: Maximum container width (`Snackbar.kt` `ContainerMaxWidth`).
|
|
162
|
+
type: length
|
|
163
|
+
value: 600px
|
|
164
|
+
tooltip:
|
|
165
|
+
description: >
|
|
166
|
+
Tooltip roles (`PlainTooltipTokens`, `RichTooltipTokens`, `Tooltip.kt`). Plain tooltips use
|
|
167
|
+
the default values; rich tooltips apply the `richTooltip` theme.
|
|
168
|
+
roles:
|
|
169
|
+
containerColor:
|
|
170
|
+
description: Container color (`PlainTooltipTokens.ContainerColor`).
|
|
171
|
+
type: color
|
|
172
|
+
value: $cw-Color-surface-inverseFill
|
|
173
|
+
labelColor:
|
|
174
|
+
description: Supporting text color (`PlainTooltipTokens.SupportingTextColor`).
|
|
175
|
+
type: color
|
|
176
|
+
value: $cw-Color-surface-inverseOnFill
|
|
177
|
+
subheadColor:
|
|
178
|
+
description: Rich tooltip title color (`RichTooltipTokens.SubheadColor`).
|
|
179
|
+
type: color
|
|
180
|
+
value: $cw-Color-surface-onFillVariant
|
|
181
|
+
actionColor:
|
|
182
|
+
description: Rich tooltip action color (`RichTooltipTokens.ActionLabelTextColor`).
|
|
183
|
+
type: color
|
|
184
|
+
value: $cw-Color-primary-fill
|
|
185
|
+
shape:
|
|
186
|
+
description: Container corner radius (`PlainTooltipTokens.ContainerShape`).
|
|
187
|
+
type: length
|
|
188
|
+
value: $cw-CornerRadius-xsmall
|
|
189
|
+
elevation:
|
|
190
|
+
description: Container elevation; plain tooltips have none (`Tooltip.kt`).
|
|
191
|
+
type: integer
|
|
192
|
+
value: $cw-Elevation-level-0
|
|
193
|
+
minWidth:
|
|
194
|
+
description: Minimum container width (`Tooltip.kt` `TooltipMinWidth`).
|
|
195
|
+
type: length
|
|
196
|
+
value: 40px
|
|
197
|
+
maxWidth:
|
|
198
|
+
description: Maximum container width (`TooltipDefaults.plainTooltipMaxWidth`).
|
|
199
|
+
type: length
|
|
200
|
+
value: 200px
|
|
201
|
+
minHeight:
|
|
202
|
+
description: Minimum container height (`Tooltip.kt` `TooltipMinHeight`).
|
|
203
|
+
type: length
|
|
204
|
+
value: 24px
|
|
205
|
+
caretWidth:
|
|
206
|
+
description: Caret base width (`TooltipDefaults.caretSize`).
|
|
207
|
+
type: length
|
|
208
|
+
value: 16px
|
|
209
|
+
caretHeight:
|
|
210
|
+
description: Caret height (`TooltipDefaults.caretSize`).
|
|
211
|
+
type: length
|
|
212
|
+
value: 8px
|
|
213
|
+
themes:
|
|
214
|
+
richTooltip:
|
|
215
|
+
description: Rich tooltip surface (`RichTooltipTokens`, `TooltipDefaults.richTooltipMaxWidth`).
|
|
216
|
+
values:
|
|
217
|
+
tooltip-containerColor: $cw-Color-surface-container
|
|
218
|
+
tooltip-labelColor: $cw-Color-surface-onFillVariant
|
|
219
|
+
tooltip-shape: $cw-CornerRadius-medium
|
|
220
|
+
tooltip-elevation: $cw-Elevation-level-2
|
|
221
|
+
tooltip-maxWidth: 320px
|
|
222
|
+
reducedMotion:
|
|
223
|
+
description: Progress value changes apply immediately when reduced motion is preferred.
|
|
224
|
+
values:
|
|
225
|
+
progress-motion-duration: 0s
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: reference
|
|
3
|
+
attribute: IconFont
|
|
4
|
+
description: >
|
|
5
|
+
Reference icon font roles. Cobweb does not bundle the icon font; applications load it, for
|
|
6
|
+
example with an `@font-face` rule, including the axes named below.
|
|
7
|
+
roles:
|
|
8
|
+
font:
|
|
9
|
+
description: >
|
|
10
|
+
Icon font family. It names a single family, since a fallback font would render icon names
|
|
11
|
+
as text.
|
|
12
|
+
type: font-family
|
|
13
|
+
value: Material Symbols Outlined
|
|
14
|
+
axis:
|
|
15
|
+
description: Axis tags recognized by icon font.
|
|
16
|
+
roles:
|
|
17
|
+
fill:
|
|
18
|
+
description: Icon fill axis name.
|
|
19
|
+
type: string
|
|
20
|
+
value: FILL
|
|
21
|
+
grade:
|
|
22
|
+
description: Icon grade axis name.
|
|
23
|
+
type: string
|
|
24
|
+
value: GRAD
|
|
25
|
+
weight:
|
|
26
|
+
description: Icon weight axis name.
|
|
27
|
+
type: string
|
|
28
|
+
value: wght
|