@rcarls/rc-theme-material 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +544 -0
- package/DESIGN.md +1399 -0
- package/README.md +88 -5
- package/bridge.css +132 -55
- package/components/accordion.css +43 -157
- package/components/adaptive-menu.css +47 -86
- package/components/app-bar.css +4 -2
- package/components/bottom-sheet.css +2 -2
- package/components/button.css +2 -1
- package/components/card.css +2 -0
- package/components/chip.css +12 -1
- package/components/combobox.css +61 -14
- package/components/dialog.css +27 -26
- package/components/disclosure.css +128 -84
- package/components/field.css +566 -0
- package/components/icons.css +9 -0
- package/components/list-item.css +65 -3
- package/components/listbox.css +5 -4
- package/components/markdown-editor.css +62 -35
- package/components/menu-button.css +4 -1
- package/components/menu.css +18 -31
- package/components/menubar.css +4 -1
- package/components/modes.css +22 -5
- package/components/navigation-bar.css +3 -5
- package/components/navigation-rail.css +5 -7
- package/components/popover.css +50 -0
- package/components/progress.css +5 -0
- package/components/range-slider.css +3 -2
- package/components/search-bar.css +12 -2
- package/components/segmented-button.css +2 -28
- package/components/select.css +99 -14
- package/components/splitter.css +4 -1
- package/components/switch.css +9 -1
- package/components/textarea.css +7 -3
- package/components/toolbar.css +2 -1
- package/components/tooltip.css +12 -0
- package/components/transfer-list.css +5 -1
- package/components/virtual-scroller.css +7 -0
- package/components.css +6 -1
- package/css-components/button.css +66 -0
- package/css-components/card.css +14 -0
- package/css-components/chip-group.css +9 -0
- package/css-components/chip.css +80 -0
- package/css-components/disclosure.css +25 -0
- package/css-components/list.css +34 -0
- package/css-components/select.css +20 -0
- package/css-components/textarea.css +22 -0
- package/css-components.css +31 -0
- package/defaults.css +189 -3
- package/native.css +258 -0
- package/package.json +20 -6
- package/state-layer.css +5 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@layer rc-theme-material.components {
|
|
2
|
+
/* Declared on the theme root so tooltips inside other shadow roots inherit it. */
|
|
3
|
+
:where(.rc-theme-material, :host(.rc-theme-material)) {
|
|
4
|
+
--rc-tooltip-padding-block: 0.5rem;
|
|
5
|
+
--rc-tooltip-padding-inline: 0.75rem;
|
|
6
|
+
--rc-tooltip-border: 0;
|
|
7
|
+
--rc-tooltip-radius: var(--md-sys-shape-corner-extra-small, 0.25rem);
|
|
8
|
+
--rc-tooltip-background: var(--md-sys-color-inverse-surface, CanvasText);
|
|
9
|
+
--rc-tooltip-color: var(--md-sys-color-inverse-on-surface, Canvas);
|
|
10
|
+
--rc-tooltip-shadow: var(--rc-shadow-level2, none);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
--rc-transfer-list-gap: 1rem;
|
|
4
4
|
--rc-transfer-list-panel-gap: 0.5rem;
|
|
5
5
|
--rc-transfer-list-listbox-border: 1px solid var(--md-sys-color-outline-variant, ButtonBorder);
|
|
6
|
+
--rc-transfer-list-listbox-radius: var(--md-sys-shape-corner-extra-small, 0.25rem);
|
|
6
7
|
--rc-transfer-list-listbox-bg: var(--md-sys-color-surface, Canvas);
|
|
7
8
|
--rc-transfer-list-option-gap: 0.75rem;
|
|
8
9
|
--rc-transfer-list-option-padding-block: 0;
|
|
@@ -37,7 +38,10 @@
|
|
|
37
38
|
--rc-listbox-option-min-block-size: 3rem;
|
|
38
39
|
--rc-listbox-option-padding-block: 0;
|
|
39
40
|
--rc-listbox-option-padding-inline: 0.75rem;
|
|
40
|
-
--rc-listbox-option-transition:
|
|
41
|
+
--rc-listbox-option-transition:
|
|
42
|
+
background-color var(--rc-motion-effects-duration-fast, 150ms)
|
|
43
|
+
var(--rc-motion-effects-easing-fast, ease),
|
|
44
|
+
color var(--rc-motion-effects-duration-fast, 150ms) var(--rc-motion-effects-easing-fast, ease);
|
|
41
45
|
--rc-listbox-hover-bg: color-mix(
|
|
42
46
|
in srgb,
|
|
43
47
|
var(--md-sys-color-on-surface, CanvasText) 8%,
|
package/components.css
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
@layer rc-theme-material.defaults, rc-theme-material.bridge, rc-theme-material.components
|
|
1
|
+
@layer rc-base, rc-theme-material.defaults, rc-theme-material.bridge, rc-theme-material.native, rc-theme-material.components, rc-theme-material.css-components,
|
|
2
|
+
rc-theme-material.overrides;
|
|
2
3
|
|
|
3
4
|
@import './components/icons.css';
|
|
4
5
|
@import './components/listbox.css';
|
|
5
6
|
@import './components/select.css';
|
|
6
7
|
@import './components/combobox.css';
|
|
7
8
|
@import './components/search-bar.css';
|
|
9
|
+
@import './components/field.css';
|
|
8
10
|
@import './components/bottom-sheet.css';
|
|
9
11
|
@import './components/textarea.css';
|
|
10
12
|
@import './components/markdown-editor.css';
|
|
@@ -30,6 +32,8 @@
|
|
|
30
32
|
@import './components/slider.css';
|
|
31
33
|
@import './components/progress.css';
|
|
32
34
|
@import './components/snackbar.css';
|
|
35
|
+
@import './components/tooltip.css';
|
|
36
|
+
@import './components/popover.css';
|
|
33
37
|
@import './components/range-slider.css';
|
|
34
38
|
@import './components/splitter.css';
|
|
35
39
|
@import './components/switch.css';
|
|
@@ -37,5 +41,6 @@
|
|
|
37
41
|
@import './components/disclosure.css';
|
|
38
42
|
@import './components/accordion.css';
|
|
39
43
|
@import './components/virtual-canvas.css';
|
|
44
|
+
@import './components/virtual-scroller.css';
|
|
40
45
|
@import './components/modes.css';
|
|
41
46
|
@import './state-layer.css';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@layer rc-theme-material.css-components {
|
|
2
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
3
|
+
:where(button.rc-button, a[href].rc-button):not(:where(rc-button > button)):not(
|
|
4
|
+
:where(rc-button > a)
|
|
5
|
+
) {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
gap: var(--rc-button-gap, 0.5rem);
|
|
10
|
+
min-block-size: var(--rc-button-block-size, 2.5rem);
|
|
11
|
+
padding-block: var(--rc-button-padding-block, 0.5rem);
|
|
12
|
+
padding-inline: var(--rc-button-padding-inline, 1.5rem);
|
|
13
|
+
border: var(--rc-button-border, var(--rc-border, 1px solid ButtonBorder));
|
|
14
|
+
border-radius: var(--rc-button-radius, var(--rc-control-radius, 999px));
|
|
15
|
+
background: var(--rc-button-bg, ButtonFace);
|
|
16
|
+
color: var(--rc-button-color, var(--rc-button-text, ButtonText));
|
|
17
|
+
font: var(--rc-button-font, inherit);
|
|
18
|
+
text-decoration: var(--rc-button-text-decoration, none);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
user-select: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
24
|
+
:where(button.rc-button, a[href].rc-button):not(:where(rc-button > button)):not(
|
|
25
|
+
:where(rc-button > a)
|
|
26
|
+
):hover:not(:where(:disabled)) {
|
|
27
|
+
background: color-mix(in srgb, currentColor 8%, var(--rc-button-bg, ButtonFace));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
31
|
+
:where(button.rc-button, a[href].rc-button):not(:where(rc-button > button)):not(
|
|
32
|
+
:where(rc-button > a)
|
|
33
|
+
):active:not(:where(:disabled)),
|
|
34
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
35
|
+
:where(button.rc-button, a[href].rc-button)[aria-pressed='true']:not(
|
|
36
|
+
:where(rc-button > button)
|
|
37
|
+
):not(:where(rc-button > a)) {
|
|
38
|
+
background: var(--rc-highlight, Highlight);
|
|
39
|
+
color: var(--rc-highlight-text, HighlightText);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
43
|
+
:where(button.rc-button, a[href].rc-button):not(:where(rc-button > button)):not(
|
|
44
|
+
:where(rc-button > a)
|
|
45
|
+
):focus-visible {
|
|
46
|
+
outline: var(--rc-focus-ring, 2px solid Highlight);
|
|
47
|
+
outline-offset: var(--rc-focus-ring-offset, 2px);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
51
|
+
:where(button.rc-button, a[href].rc-button):is(:disabled, [aria-disabled='true']) {
|
|
52
|
+
color: var(--rc-text-disabled, GrayText);
|
|
53
|
+
cursor: not-allowed;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (forced-colors: active) {
|
|
57
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
58
|
+
:where(button.rc-button, a[href].rc-button)[aria-pressed='true'] {
|
|
59
|
+
border-color: Highlight;
|
|
60
|
+
outline: 1px solid Highlight;
|
|
61
|
+
outline-offset: -1px;
|
|
62
|
+
background: Highlight;
|
|
63
|
+
color: HighlightText;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@layer rc-theme-material.css-components {
|
|
2
|
+
:where(.rc-theme-material, :host(.rc-theme-material)) .rc-card {
|
|
3
|
+
display: grid;
|
|
4
|
+
gap: var(--rc-card-actions-gap, 0.5rem);
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
padding-block: var(--rc-card-padding-block, 1rem);
|
|
7
|
+
padding-inline: var(--rc-card-padding-inline, 1rem);
|
|
8
|
+
border: var(--rc-border, 1px solid ButtonBorder);
|
|
9
|
+
border-radius: var(--rc-card-radius, var(--rc-control-radius, 0.5rem));
|
|
10
|
+
background: var(--rc-card-bg, var(--rc-surface, Canvas));
|
|
11
|
+
color: var(--rc-card-color, CanvasText);
|
|
12
|
+
box-shadow: var(--rc-shadow, none);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@layer rc-theme-material.css-components {
|
|
2
|
+
:where(.rc-theme-material, :host(.rc-theme-material)) .rc-chip-group {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: var(--rc-chip-group-row-gap, var(--rc-control-gap, 0.5rem))
|
|
7
|
+
var(--rc-chip-group-column-gap, var(--rc-control-gap, 0.5rem));
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
@layer rc-theme-material.css-components {
|
|
2
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
3
|
+
:where(button.rc-chip, a[href].rc-chip, label.rc-chip):not(:where(rc-chip > button)):not(
|
|
4
|
+
:where(rc-chip > a)
|
|
5
|
+
):not(:where(rc-chip > label)) {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
gap: var(--rc-chip-gap, 0.25rem);
|
|
10
|
+
min-block-size: var(--rc-chip-block-size, 2rem);
|
|
11
|
+
padding-block: var(--rc-chip-padding-block, 0.25rem);
|
|
12
|
+
padding-inline: var(--rc-chip-padding-inline, 1rem);
|
|
13
|
+
border: var(--rc-chip-border, var(--rc-border, 1px solid ButtonBorder));
|
|
14
|
+
border-radius: var(--rc-chip-radius, 0.5rem);
|
|
15
|
+
background: var(--rc-chip-bg, ButtonFace);
|
|
16
|
+
color: var(--rc-chip-color, ButtonText);
|
|
17
|
+
font: var(--rc-chip-font, inherit);
|
|
18
|
+
text-decoration: var(--rc-chip-text-decoration, none);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
23
|
+
label.rc-chip
|
|
24
|
+
> :where(input[type='checkbox'], input[type='radio']) {
|
|
25
|
+
position: absolute;
|
|
26
|
+
inline-size: 1px;
|
|
27
|
+
block-size: 1px;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
clip-path: inset(50%);
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
34
|
+
:where(button.rc-chip, a[href].rc-chip, label.rc-chip):not(:where(rc-chip > button)):not(
|
|
35
|
+
:where(rc-chip > a)
|
|
36
|
+
):not(:where(rc-chip > label)):hover:not(:where(:disabled)):not(:has(input:disabled)) {
|
|
37
|
+
background: color-mix(in srgb, currentColor 8%, var(--rc-chip-bg, ButtonFace));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
41
|
+
:where(button.rc-chip, a[href].rc-chip, label.rc-chip):not(:where(rc-chip > button)):not(
|
|
42
|
+
:where(rc-chip > a)
|
|
43
|
+
):not(:where(rc-chip > label)):has(input:checked) {
|
|
44
|
+
background: var(--rc-chip-selected-bg, Highlight);
|
|
45
|
+
color: var(--rc-highlight-text, HighlightText);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
49
|
+
:where(button.rc-chip, a[href].rc-chip, label.rc-chip):not(:where(rc-chip > button)):not(
|
|
50
|
+
:where(rc-chip > a)
|
|
51
|
+
):not(:where(rc-chip > label)):is(:focus-visible, :has(input:focus-visible)) {
|
|
52
|
+
outline: var(--rc-focus-ring, 2px solid Highlight);
|
|
53
|
+
outline-offset: var(--rc-focus-ring-offset, 2px);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
57
|
+
:where(button.rc-chip, a[href].rc-chip, label.rc-chip):not(:where(rc-chip > button)):not(
|
|
58
|
+
:where(rc-chip > a)
|
|
59
|
+
):not(:where(rc-chip > label)):has(input:disabled) {
|
|
60
|
+
color: var(--rc-text-disabled, GrayText);
|
|
61
|
+
cursor: not-allowed;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
65
|
+
:where(button.rc-chip, a[href].rc-chip):is(:disabled, [aria-disabled='true']) {
|
|
66
|
+
color: var(--rc-text-disabled, GrayText);
|
|
67
|
+
cursor: not-allowed;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@media (forced-colors: active) {
|
|
71
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
72
|
+
:where(button.rc-chip, a[href].rc-chip, label.rc-chip):has(input:checked) {
|
|
73
|
+
border-color: Highlight;
|
|
74
|
+
outline: 1px solid Highlight;
|
|
75
|
+
outline-offset: -1px;
|
|
76
|
+
background: Highlight;
|
|
77
|
+
color: HighlightText;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@layer rc-theme-material.css-components {
|
|
2
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
3
|
+
details.rc-disclosure:not(:where(rc-disclosure > details)) {
|
|
4
|
+
padding-block: var(--rc-control-padding-block, 0.5rem);
|
|
5
|
+
padding-inline: var(--rc-control-padding-inline, 1rem);
|
|
6
|
+
border: var(--rc-border, 1px solid ButtonBorder);
|
|
7
|
+
border-radius: var(--rc-card-radius, var(--rc-control-radius, 0.5rem));
|
|
8
|
+
background: var(--rc-surface, Canvas);
|
|
9
|
+
color: var(--rc-field-text, CanvasText);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
13
|
+
details.rc-disclosure:not(:where(rc-disclosure > details))
|
|
14
|
+
> summary {
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
20
|
+
details.rc-disclosure:not(:where(rc-disclosure > details))
|
|
21
|
+
> summary:focus-visible {
|
|
22
|
+
outline: var(--rc-focus-ring, 2px solid Highlight);
|
|
23
|
+
outline-offset: var(--rc-focus-ring-offset, 2px);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@layer rc-theme-material.css-components {
|
|
2
|
+
:where(.rc-theme-material, :host(.rc-theme-material)) .rc-list {
|
|
3
|
+
display: grid;
|
|
4
|
+
gap: var(--rc-list-item-gap, 0.5rem);
|
|
5
|
+
margin-block: 0;
|
|
6
|
+
padding-inline-start: 0;
|
|
7
|
+
list-style: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(.rc-theme-material, :host(.rc-theme-material)) .rc-list > li {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
min-block-size: var(--rc-list-item-min-block-size, 3rem);
|
|
14
|
+
padding-block: var(--rc-list-item-padding-block, 0.5rem);
|
|
15
|
+
padding-inline: var(--rc-list-item-padding-inline, 1rem);
|
|
16
|
+
border-radius: var(--rc-control-radius, 0.5rem);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:where(.rc-theme-material, :host(.rc-theme-material)) .rc-list > li[aria-selected='true'],
|
|
20
|
+
:where(.rc-theme-material, :host(.rc-theme-material)) .rc-list > li:has(input:checked) {
|
|
21
|
+
background: var(--rc-list-item-selected-bg, Highlight);
|
|
22
|
+
color: var(--rc-list-item-selected-color, HighlightText);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (forced-colors: active) {
|
|
26
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
27
|
+
.rc-list
|
|
28
|
+
> li:is([aria-selected='true'], :has(input:checked)) {
|
|
29
|
+
border-color: Highlight;
|
|
30
|
+
outline: 1px solid Highlight;
|
|
31
|
+
outline-offset: -1px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@layer rc-theme-material.css-components {
|
|
2
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
3
|
+
select.rc-select:not(:where(rc-select > select)) {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
min-block-size: var(--rc-select-control-block-size, var(--rc-control-block-size, 2.5rem));
|
|
6
|
+
padding-block: var(--rc-select-padding-block, var(--rc-control-padding-block, 0.5rem));
|
|
7
|
+
padding-inline: var(--rc-select-padding-inline, var(--rc-control-padding-inline, 1rem));
|
|
8
|
+
border: var(--rc-select-border, var(--rc-border, 1px solid ButtonBorder));
|
|
9
|
+
border-radius: var(--rc-select-radius, var(--rc-control-radius, 0.5rem));
|
|
10
|
+
background: var(--rc-field, Field);
|
|
11
|
+
color: var(--rc-field-text, FieldText);
|
|
12
|
+
font: inherit;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
16
|
+
select.rc-select:not(:where(rc-select > select)):focus-visible {
|
|
17
|
+
outline: var(--rc-focus-ring, 2px solid Highlight);
|
|
18
|
+
outline-offset: var(--rc-focus-ring-offset, 2px);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@layer rc-theme-material.css-components {
|
|
2
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
3
|
+
textarea.rc-textarea:not(:where(rc-textarea > textarea)) {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
min-block-size: var(--rc-control-block-size, 2.5rem);
|
|
6
|
+
padding-block: var(--rc-control-padding-block, 0.5rem);
|
|
7
|
+
padding-inline: var(--rc-control-padding-inline, 1rem);
|
|
8
|
+
border: var(--rc-textarea-border, var(--rc-border, 1px solid ButtonBorder));
|
|
9
|
+
border-radius: var(--rc-textarea-border-radius, var(--rc-control-radius, 0.5rem));
|
|
10
|
+
background: var(--rc-textarea-background, var(--rc-field, Field));
|
|
11
|
+
color: var(--rc-textarea-color, var(--rc-field-text, FieldText));
|
|
12
|
+
caret-color: var(--rc-textarea-caret-color, var(--rc-accent, AccentColor));
|
|
13
|
+
font: inherit;
|
|
14
|
+
resize: block;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
18
|
+
textarea.rc-textarea:not(:where(rc-textarea > textarea)):focus-visible {
|
|
19
|
+
outline: var(--rc-textarea-focus-outline, var(--rc-focus-ring, 2px solid Highlight));
|
|
20
|
+
outline-offset: var(--rc-focus-ring-offset, 2px);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@layer rc-base, rc-theme-material.defaults, rc-theme-material.bridge, rc-theme-material.native, rc-theme-material.components, rc-theme-material.css-components,
|
|
2
|
+
rc-theme-material.overrides;
|
|
3
|
+
|
|
4
|
+
@import './css-components/button.css';
|
|
5
|
+
@import './css-components/chip.css';
|
|
6
|
+
@import './css-components/chip-group.css';
|
|
7
|
+
@import './css-components/select.css';
|
|
8
|
+
@import './css-components/textarea.css';
|
|
9
|
+
@import './css-components/card.css';
|
|
10
|
+
@import './css-components/list.css';
|
|
11
|
+
@import './css-components/disclosure.css';
|
|
12
|
+
|
|
13
|
+
@layer rc-theme-material.css-components {
|
|
14
|
+
@media (forced-colors: active) {
|
|
15
|
+
:where(.rc-theme-material, :host(.rc-theme-material))
|
|
16
|
+
:where(
|
|
17
|
+
button.rc-button,
|
|
18
|
+
a.rc-button,
|
|
19
|
+
button.rc-chip,
|
|
20
|
+
a.rc-chip,
|
|
21
|
+
label.rc-chip,
|
|
22
|
+
select.rc-select,
|
|
23
|
+
textarea.rc-textarea,
|
|
24
|
+
.rc-card,
|
|
25
|
+
.rc-list,
|
|
26
|
+
details.rc-disclosure
|
|
27
|
+
) {
|
|
28
|
+
forced-color-adjust: auto;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
package/defaults.css
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
@layer rc-theme-material.defaults, rc-theme-material.bridge, rc-theme-material.components
|
|
1
|
+
@layer rc-base, rc-theme-material.defaults, rc-theme-material.bridge, rc-theme-material.native, rc-theme-material.components, rc-theme-material.css-components,
|
|
2
|
+
rc-theme-material.overrides;
|
|
2
3
|
|
|
3
4
|
@layer rc-theme-material.defaults {
|
|
4
5
|
/*
|
|
@@ -518,9 +519,9 @@
|
|
|
518
519
|
/* Display Large font name */
|
|
519
520
|
--md-sys-typescale-display-large-font: var(--md-ref-typeface-brand);
|
|
520
521
|
/* Plain typeface */
|
|
521
|
-
--md-ref-typeface-plain: Roboto;
|
|
522
|
+
--md-ref-typeface-plain: Roboto, system-ui, sans-serif;
|
|
522
523
|
/* Brand typeface */
|
|
523
|
-
--md-ref-typeface-brand: Roboto;
|
|
524
|
+
--md-ref-typeface-brand: Roboto, system-ui, sans-serif;
|
|
524
525
|
/* Bold weight */
|
|
525
526
|
--md-ref-typeface-weight-bold: 700;
|
|
526
527
|
/* Medium weight */
|
|
@@ -667,6 +668,77 @@
|
|
|
667
668
|
/* Motion path */
|
|
668
669
|
--md-sys-motion-path-standard-path: 1;
|
|
669
670
|
|
|
671
|
+
/*
|
|
672
|
+
* Repo-authored composites, not vendored. The tokens above are the raw
|
|
673
|
+
* control points and millisecond primitives material-tokens ships;
|
|
674
|
+
* nothing composes them into a usable `cubic-bezier()` or names the
|
|
675
|
+
* duration bands the Material 3 motion spec actually refers to, so any
|
|
676
|
+
* component or bridge rule reaching for one directly resolved to
|
|
677
|
+
* nothing. Each alias below is assembled from those primitives; see
|
|
678
|
+
* defaults.test.ts for the full set this asserts, so a future re-vendor
|
|
679
|
+
* that drops or renames a primitive fails a test instead of silently
|
|
680
|
+
* breaking every alias that composes it.
|
|
681
|
+
*/
|
|
682
|
+
--md-sys-motion-easing-standard: cubic-bezier(
|
|
683
|
+
var(--md-sys-motion-easing-standard-x0),
|
|
684
|
+
var(--md-sys-motion-easing-standard-y0),
|
|
685
|
+
var(--md-sys-motion-easing-standard-x1),
|
|
686
|
+
var(--md-sys-motion-easing-standard-y1)
|
|
687
|
+
);
|
|
688
|
+
--md-sys-motion-easing-standard-decelerate: cubic-bezier(
|
|
689
|
+
var(--md-sys-motion-easing-standard-decelerate-x0),
|
|
690
|
+
var(--md-sys-motion-easing-standard-decelerate-y0),
|
|
691
|
+
var(--md-sys-motion-easing-standard-decelerate-x1),
|
|
692
|
+
var(--md-sys-motion-easing-standard-decelerate-y1)
|
|
693
|
+
);
|
|
694
|
+
--md-sys-motion-easing-standard-accelerate: cubic-bezier(
|
|
695
|
+
var(--md-sys-motion-easing-standard-accelerate-x0),
|
|
696
|
+
var(--md-sys-motion-easing-standard-accelerate-y0),
|
|
697
|
+
var(--md-sys-motion-easing-standard-accelerate-x1),
|
|
698
|
+
var(--md-sys-motion-easing-standard-accelerate-y1)
|
|
699
|
+
);
|
|
700
|
+
--md-sys-motion-easing-emphasized: cubic-bezier(
|
|
701
|
+
var(--md-sys-motion-easing-emphasized-x0),
|
|
702
|
+
var(--md-sys-motion-easing-emphasized-y0),
|
|
703
|
+
var(--md-sys-motion-easing-emphasized-x1),
|
|
704
|
+
var(--md-sys-motion-easing-emphasized-y1)
|
|
705
|
+
);
|
|
706
|
+
--md-sys-motion-easing-emphasized-decelerate: cubic-bezier(
|
|
707
|
+
var(--md-sys-motion-easing-emphasized-decelerate-x0),
|
|
708
|
+
var(--md-sys-motion-easing-emphasized-decelerate-y0),
|
|
709
|
+
var(--md-sys-motion-easing-emphasized-decelerate-x1),
|
|
710
|
+
var(--md-sys-motion-easing-emphasized-decelerate-y1)
|
|
711
|
+
);
|
|
712
|
+
--md-sys-motion-easing-emphasized-accelerate: cubic-bezier(
|
|
713
|
+
var(--md-sys-motion-easing-emphasized-accelerate-x0),
|
|
714
|
+
var(--md-sys-motion-easing-emphasized-accelerate-y0),
|
|
715
|
+
var(--md-sys-motion-easing-emphasized-accelerate-x1),
|
|
716
|
+
var(--md-sys-motion-easing-emphasized-accelerate-y1)
|
|
717
|
+
);
|
|
718
|
+
--md-sys-motion-easing-linear: cubic-bezier(
|
|
719
|
+
var(--md-sys-motion-easing-linear-x0),
|
|
720
|
+
var(--md-sys-motion-easing-linear-y0),
|
|
721
|
+
var(--md-sys-motion-easing-linear-x1),
|
|
722
|
+
var(--md-sys-motion-easing-linear-y1)
|
|
723
|
+
);
|
|
724
|
+
/* Duration bands, named per the Material 3 motion spec. */
|
|
725
|
+
--md-sys-motion-duration-short1: var(--md-sys-motion-duration-50);
|
|
726
|
+
--md-sys-motion-duration-short2: var(--md-sys-motion-duration-100);
|
|
727
|
+
--md-sys-motion-duration-short3: var(--md-sys-motion-duration-150);
|
|
728
|
+
--md-sys-motion-duration-short4: var(--md-sys-motion-duration-200);
|
|
729
|
+
--md-sys-motion-duration-medium1: var(--md-sys-motion-duration-250);
|
|
730
|
+
--md-sys-motion-duration-medium2: var(--md-sys-motion-duration-300);
|
|
731
|
+
--md-sys-motion-duration-medium3: var(--md-sys-motion-duration-350);
|
|
732
|
+
--md-sys-motion-duration-medium4: var(--md-sys-motion-duration-400);
|
|
733
|
+
--md-sys-motion-duration-long1: var(--md-sys-motion-duration-450);
|
|
734
|
+
--md-sys-motion-duration-long2: var(--md-sys-motion-duration-500);
|
|
735
|
+
--md-sys-motion-duration-long3: var(--md-sys-motion-duration-550);
|
|
736
|
+
--md-sys-motion-duration-long4: var(--md-sys-motion-duration-600);
|
|
737
|
+
--md-sys-motion-duration-extra-long1: var(--md-sys-motion-duration-700);
|
|
738
|
+
--md-sys-motion-duration-extra-long2: var(--md-sys-motion-duration-800);
|
|
739
|
+
--md-sys-motion-duration-extra-long3: var(--md-sys-motion-duration-900);
|
|
740
|
+
--md-sys-motion-duration-extra-long4: var(--md-sys-motion-duration-1000);
|
|
741
|
+
|
|
670
742
|
/* State tokens */
|
|
671
743
|
/* Dragged state layer opacity */
|
|
672
744
|
--md-sys-state-dragged-state-layer-opacity: 0.1599999964237213;
|
|
@@ -676,6 +748,15 @@
|
|
|
676
748
|
--md-sys-state-focus-state-layer-opacity: 0.11999999731779099;
|
|
677
749
|
/* Hover state layer opacity */
|
|
678
750
|
--md-sys-state-hover-state-layer-opacity: 0.07999999821186066;
|
|
751
|
+
/*
|
|
752
|
+
* Disabled state layer and container opacity were missing from this
|
|
753
|
+
* vendored snapshot even though a dozen component recipes already
|
|
754
|
+
* referenced them with an inline `0.38` fallback; every reference
|
|
755
|
+
* silently used that literal instead of these tokens. 0.38 is the
|
|
756
|
+
* published Material 3 constant for both.
|
|
757
|
+
*/
|
|
758
|
+
--md-sys-state-disabled-state-layer-opacity: 0.38;
|
|
759
|
+
--md-sys-state-disabled-container-opacity: 0.38;
|
|
679
760
|
|
|
680
761
|
/* Elevation tokens */
|
|
681
762
|
/* Surface tint color */
|
|
@@ -932,6 +1013,111 @@
|
|
|
932
1013
|
* Elevation shadows are zeroed throughout, since tonal/shadow elevation
|
|
933
1014
|
* isn't part of the forced-colors palette either.
|
|
934
1015
|
*/
|
|
1016
|
+
|
|
1017
|
+
/*
|
|
1018
|
+
* Scoped type scale. An element marked data-rc-type-scale multiplies every
|
|
1019
|
+
* Material type size and line height beneath it by --rc-type-scale
|
|
1020
|
+
* (default 1), for a region such as a hands-busy reading view that needs
|
|
1021
|
+
* larger text than the rest of the page. Tokens set on the theme root are
|
|
1022
|
+
* resolved there, so the scaled values are derived again on the marked
|
|
1023
|
+
* element; bridge.css does the same for the RC text tokens built on them.
|
|
1024
|
+
*/
|
|
1025
|
+
/* A marked theme root itself must outrank its own token rule above. */
|
|
1026
|
+
:where(.rc-theme-material [data-rc-type-scale], :host(.rc-theme-material) [data-rc-type-scale]),
|
|
1027
|
+
.rc-theme-material[data-rc-type-scale],
|
|
1028
|
+
:host(.rc-theme-material[data-rc-type-scale]) {
|
|
1029
|
+
--md-sys-typescale-display-large-size: calc(
|
|
1030
|
+
var(--md-sys-typescale-display-large-size-value) * var(--rc-type-scale, 1)
|
|
1031
|
+
);
|
|
1032
|
+
--md-sys-typescale-display-large-line-height: calc(
|
|
1033
|
+
var(--md-sys-typescale-display-large-line-height-value) * var(--rc-type-scale, 1)
|
|
1034
|
+
);
|
|
1035
|
+
--md-sys-typescale-display-medium-size: calc(
|
|
1036
|
+
var(--md-sys-typescale-display-medium-size-value) * var(--rc-type-scale, 1)
|
|
1037
|
+
);
|
|
1038
|
+
--md-sys-typescale-display-medium-line-height: calc(
|
|
1039
|
+
var(--md-sys-typescale-display-medium-line-height-value) * var(--rc-type-scale, 1)
|
|
1040
|
+
);
|
|
1041
|
+
--md-sys-typescale-display-small-size: calc(
|
|
1042
|
+
var(--md-sys-typescale-display-small-size-value) * var(--rc-type-scale, 1)
|
|
1043
|
+
);
|
|
1044
|
+
--md-sys-typescale-display-small-line-height: calc(
|
|
1045
|
+
var(--md-sys-typescale-display-small-line-height-value) * var(--rc-type-scale, 1)
|
|
1046
|
+
);
|
|
1047
|
+
--md-sys-typescale-headline-large-size: calc(
|
|
1048
|
+
var(--md-sys-typescale-headline-large-size-value) * var(--rc-type-scale, 1)
|
|
1049
|
+
);
|
|
1050
|
+
--md-sys-typescale-headline-large-line-height: calc(
|
|
1051
|
+
var(--md-sys-typescale-headline-large-line-height-value) * var(--rc-type-scale, 1)
|
|
1052
|
+
);
|
|
1053
|
+
--md-sys-typescale-headline-medium-size: calc(
|
|
1054
|
+
var(--md-sys-typescale-headline-medium-size-value) * var(--rc-type-scale, 1)
|
|
1055
|
+
);
|
|
1056
|
+
--md-sys-typescale-headline-medium-line-height: calc(
|
|
1057
|
+
var(--md-sys-typescale-headline-medium-line-height-value) * var(--rc-type-scale, 1)
|
|
1058
|
+
);
|
|
1059
|
+
--md-sys-typescale-headline-small-size: calc(
|
|
1060
|
+
var(--md-sys-typescale-headline-small-size-value) * var(--rc-type-scale, 1)
|
|
1061
|
+
);
|
|
1062
|
+
--md-sys-typescale-headline-small-line-height: calc(
|
|
1063
|
+
var(--md-sys-typescale-headline-small-line-height-value) * var(--rc-type-scale, 1)
|
|
1064
|
+
);
|
|
1065
|
+
--md-sys-typescale-title-large-size: calc(
|
|
1066
|
+
var(--md-sys-typescale-title-large-size-value) * var(--rc-type-scale, 1)
|
|
1067
|
+
);
|
|
1068
|
+
--md-sys-typescale-title-large-line-height: calc(
|
|
1069
|
+
var(--md-sys-typescale-title-large-line-height-value) * var(--rc-type-scale, 1)
|
|
1070
|
+
);
|
|
1071
|
+
--md-sys-typescale-title-medium-size: calc(
|
|
1072
|
+
var(--md-sys-typescale-title-medium-size-value) * var(--rc-type-scale, 1)
|
|
1073
|
+
);
|
|
1074
|
+
--md-sys-typescale-title-medium-line-height: calc(
|
|
1075
|
+
var(--md-sys-typescale-title-medium-line-height-value) * var(--rc-type-scale, 1)
|
|
1076
|
+
);
|
|
1077
|
+
--md-sys-typescale-title-small-size: calc(
|
|
1078
|
+
var(--md-sys-typescale-title-small-size-value) * var(--rc-type-scale, 1)
|
|
1079
|
+
);
|
|
1080
|
+
--md-sys-typescale-title-small-line-height: calc(
|
|
1081
|
+
var(--md-sys-typescale-title-small-line-height-value) * var(--rc-type-scale, 1)
|
|
1082
|
+
);
|
|
1083
|
+
--md-sys-typescale-body-large-size: calc(
|
|
1084
|
+
var(--md-sys-typescale-body-large-size-value) * var(--rc-type-scale, 1)
|
|
1085
|
+
);
|
|
1086
|
+
--md-sys-typescale-body-large-line-height: calc(
|
|
1087
|
+
var(--md-sys-typescale-body-large-line-height-value) * var(--rc-type-scale, 1)
|
|
1088
|
+
);
|
|
1089
|
+
--md-sys-typescale-body-medium-size: calc(
|
|
1090
|
+
var(--md-sys-typescale-body-medium-size-value) * var(--rc-type-scale, 1)
|
|
1091
|
+
);
|
|
1092
|
+
--md-sys-typescale-body-medium-line-height: calc(
|
|
1093
|
+
var(--md-sys-typescale-body-medium-line-height-value) * var(--rc-type-scale, 1)
|
|
1094
|
+
);
|
|
1095
|
+
--md-sys-typescale-body-small-size: calc(
|
|
1096
|
+
var(--md-sys-typescale-body-small-size-value) * var(--rc-type-scale, 1)
|
|
1097
|
+
);
|
|
1098
|
+
--md-sys-typescale-body-small-line-height: calc(
|
|
1099
|
+
var(--md-sys-typescale-body-small-line-height-value) * var(--rc-type-scale, 1)
|
|
1100
|
+
);
|
|
1101
|
+
--md-sys-typescale-label-large-size: calc(
|
|
1102
|
+
var(--md-sys-typescale-label-large-size-value) * var(--rc-type-scale, 1)
|
|
1103
|
+
);
|
|
1104
|
+
--md-sys-typescale-label-large-line-height: calc(
|
|
1105
|
+
var(--md-sys-typescale-label-large-line-height-value) * var(--rc-type-scale, 1)
|
|
1106
|
+
);
|
|
1107
|
+
--md-sys-typescale-label-medium-size: calc(
|
|
1108
|
+
var(--md-sys-typescale-label-medium-size-value) * var(--rc-type-scale, 1)
|
|
1109
|
+
);
|
|
1110
|
+
--md-sys-typescale-label-medium-line-height: calc(
|
|
1111
|
+
var(--md-sys-typescale-label-medium-line-height-value) * var(--rc-type-scale, 1)
|
|
1112
|
+
);
|
|
1113
|
+
--md-sys-typescale-label-small-size: calc(
|
|
1114
|
+
var(--md-sys-typescale-label-small-size-value) * var(--rc-type-scale, 1)
|
|
1115
|
+
);
|
|
1116
|
+
--md-sys-typescale-label-small-line-height: calc(
|
|
1117
|
+
var(--md-sys-typescale-label-small-line-height-value) * var(--rc-type-scale, 1)
|
|
1118
|
+
);
|
|
1119
|
+
}
|
|
1120
|
+
|
|
935
1121
|
@media (forced-colors: active) {
|
|
936
1122
|
.rc-theme-material,
|
|
937
1123
|
:host(.rc-theme-material) {
|