@operato/context 2.0.0-alpha.99 → 2.0.0-beta.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 +454 -0
- package/dist/src/layouts/ox-context-page-toolbar.js +15 -13
- package/dist/src/layouts/ox-context-page-toolbar.js.map +1 -1
- package/dist/src/layouts/ox-context-toolbar.js +21 -25
- package/dist/src/layouts/ox-context-toolbar.js.map +1 -1
- package/dist/src/tools/ox-page-action-context-bar.d.ts +3 -2
- package/dist/src/tools/ox-page-action-context-bar.js +74 -49
- package/dist/src/tools/ox-page-action-context-bar.js.map +1 -1
- package/dist/src/tools/ox-page-action-overlay-template.d.ts +1 -0
- package/dist/src/tools/ox-page-action-overlay-template.js +29 -21
- package/dist/src/tools/ox-page-action-overlay-template.js.map +1 -1
- package/dist/src/tools/ox-page-title-bar.js +9 -8
- package/dist/src/tools/ox-page-title-bar.js.map +1 -1
- package/dist/src/tools/ox-title-bar.js +13 -12
- package/dist/src/tools/ox-title-bar.js.map +1 -1
- package/dist/stories/ox-context-page-toolbar-select-buttons.stories.d.ts +5 -0
- package/dist/stories/ox-context-page-toolbar-select-buttons.stories.js +59 -30
- package/dist/stories/ox-context-page-toolbar-select-buttons.stories.js.map +1 -1
- package/dist/stories/ox-context-page-toolbar-select.stories.d.ts +5 -0
- package/dist/stories/ox-context-page-toolbar-select.stories.js +60 -25
- package/dist/stories/ox-context-page-toolbar-select.stories.js.map +1 -1
- package/dist/stories/ox-context-page-toolbar.stories.d.ts +5 -0
- package/dist/stories/ox-context-page-toolbar.stories.js +53 -26
- package/dist/stories/ox-context-page-toolbar.stories.js.map +1 -1
- package/dist/stories/ox-context-toolbar-complex.stories.d.ts +7 -1
- package/dist/stories/ox-context-toolbar-complex.stories.js +31 -8
- package/dist/stories/ox-context-toolbar-complex.stories.js.map +1 -1
- package/dist/stories/ox-context-toolbar-cooldown.stories.d.ts +18 -0
- package/dist/stories/ox-context-toolbar-cooldown.stories.js +100 -0
- package/dist/stories/ox-context-toolbar-cooldown.stories.js.map +1 -0
- package/dist/stories/ox-context-toolbar-empty.stories.d.ts +7 -2
- package/dist/stories/ox-context-toolbar-empty.stories.js +32 -18
- package/dist/stories/ox-context-toolbar-empty.stories.js.map +1 -1
- package/dist/stories/ox-context-toolbar-overflow.stories.d.ts +7 -1
- package/dist/stories/ox-context-toolbar-overflow.stories.js +35 -9
- package/dist/stories/ox-context-toolbar-overflow.stories.js.map +1 -1
- package/dist/stories/ox-context-toolbar.stories.d.ts +1 -0
- package/dist/stories/ox-context-toolbar.stories.js +32 -7
- package/dist/stories/ox-context-toolbar.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/layouts/ox-context-page-toolbar.ts +15 -13
- package/src/layouts/ox-context-toolbar.ts +21 -25
- package/src/tools/ox-page-action-context-bar.ts +76 -48
- package/src/tools/ox-page-action-overlay-template.ts +30 -22
- package/src/tools/ox-page-title-bar.ts +9 -8
- package/src/tools/ox-title-bar.ts +13 -12
- package/stories/ox-context-page-toolbar-select-buttons.stories.ts +122 -91
- package/stories/ox-context-page-toolbar-select.stories.ts +93 -57
- package/stories/ox-context-page-toolbar.stories.ts +92 -63
- package/stories/ox-context-toolbar-complex.stories.ts +34 -9
- package/stories/ox-context-toolbar-cooldown.stories.ts +112 -0
- package/stories/ox-context-toolbar-empty.stories.ts +36 -19
- package/stories/ox-context-toolbar-overflow.stories.ts +38 -10
- package/stories/ox-context-toolbar.stories.ts +35 -8
- package/themes/dark-hc.css +51 -0
- package/themes/dark-mc.css +51 -0
- package/themes/dark.css +51 -0
- package/themes/light-hc.css +51 -0
- package/themes/light-mc.css +51 -0
- package/themes/light.css +57 -0
- package/themes/md-typescale-styles.css +100 -0
- package/themes/spacing.css +13 -0
- package/themes/state-color.css +6 -0
- package/themes/app-theme.css +0 -161
- package/themes/context-theme.css +0 -74
- package/themes/material-theme.css +0 -88
|
@@ -6,11 +6,14 @@ import { TOOL_POSITION } from '@operato/layout'
|
|
|
6
6
|
import '@operato/styles'
|
|
7
7
|
|
|
8
8
|
import { css, html, render, TemplateResult } from 'lit'
|
|
9
|
+
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'
|
|
9
10
|
|
|
10
11
|
export default {
|
|
11
12
|
title: 'ox-context-toolbar overflow',
|
|
12
13
|
component: 'ox-context-toolbar',
|
|
13
|
-
argTypes: {
|
|
14
|
+
argTypes: {
|
|
15
|
+
theme: { control: 'select', options: ['light', 'dark'] }
|
|
16
|
+
}
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
interface Story<T> {
|
|
@@ -19,12 +22,16 @@ interface Story<T> {
|
|
|
19
22
|
argTypes?: Record<string, unknown>
|
|
20
23
|
}
|
|
21
24
|
|
|
22
|
-
interface ArgTypes {
|
|
25
|
+
interface ArgTypes {
|
|
26
|
+
theme?: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const Template: Story<ArgTypes> = ({ theme = 'light' }: ArgTypes) => html`
|
|
30
|
+
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
|
23
31
|
|
|
24
|
-
|
|
25
|
-
<link href="/themes/
|
|
26
|
-
<link href="/themes/
|
|
27
|
-
<link href="/themes/context-theme.css" rel="stylesheet" />
|
|
32
|
+
<link href="/themes/light.css" rel="stylesheet" />
|
|
33
|
+
<link href="/themes/dark.css" rel="stylesheet" />
|
|
34
|
+
<link href="/themes/spacing.css" rel="stylesheet" />
|
|
28
35
|
|
|
29
36
|
<link
|
|
30
37
|
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
@@ -40,12 +47,30 @@ const Template: Story<ArgTypes> = () => html`
|
|
|
40
47
|
/>
|
|
41
48
|
|
|
42
49
|
<style>
|
|
43
|
-
|
|
44
|
-
|
|
50
|
+
${MDTypeScaleStyles.cssText}
|
|
51
|
+
</style>
|
|
52
|
+
|
|
53
|
+
<style>
|
|
54
|
+
.container {
|
|
55
|
+
height: 500px;
|
|
56
|
+
text-align: center;
|
|
57
|
+
padding: 20px;
|
|
58
|
+
background-color: var(--md-sys-color-primary-container);
|
|
59
|
+
color: var(--md-sys-color-on-primary-container);
|
|
60
|
+
|
|
61
|
+
padding: 20px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
ox-buttons-radio {
|
|
65
|
+
padding: 20px;
|
|
45
66
|
}
|
|
46
67
|
</style>
|
|
47
68
|
|
|
48
|
-
<
|
|
69
|
+
<script>
|
|
70
|
+
document.body.classList.add('${theme}')
|
|
71
|
+
</script>
|
|
72
|
+
|
|
73
|
+
<div class="container md-typescale-body-large-prominent">
|
|
49
74
|
<ox-context-toolbar
|
|
50
75
|
.tools=${[
|
|
51
76
|
{
|
|
@@ -80,7 +105,10 @@ const Template: Story<ArgTypes> = () => html`
|
|
|
80
105
|
{
|
|
81
106
|
title: 'save',
|
|
82
107
|
action: () => {},
|
|
83
|
-
icon: 'save'
|
|
108
|
+
icon: 'save',
|
|
109
|
+
emphasis: {
|
|
110
|
+
raised: true
|
|
111
|
+
}
|
|
84
112
|
},
|
|
85
113
|
{
|
|
86
114
|
title: 'copy',
|
|
@@ -6,6 +6,7 @@ import { TOOL_POSITION } from '@operato/layout'
|
|
|
6
6
|
import '@operato/styles'
|
|
7
7
|
|
|
8
8
|
import { css, html, render, TemplateResult } from 'lit'
|
|
9
|
+
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'
|
|
9
10
|
|
|
10
11
|
export default {
|
|
11
12
|
title: 'ox-context-toolbar',
|
|
@@ -19,12 +20,16 @@ interface Story<T> {
|
|
|
19
20
|
argTypes?: Record<string, unknown>
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
interface ArgTypes {
|
|
23
|
+
interface ArgTypes {
|
|
24
|
+
theme?: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const Template: Story<ArgTypes> = ({ theme = 'light' }: ArgTypes) => html`
|
|
28
|
+
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
|
23
29
|
|
|
24
|
-
|
|
25
|
-
<link href="/themes/
|
|
26
|
-
<link href="/themes/
|
|
27
|
-
<link href="/themes/context-theme.css" rel="stylesheet" />
|
|
30
|
+
<link href="/themes/light.css" rel="stylesheet" />
|
|
31
|
+
<link href="/themes/dark.css" rel="stylesheet" />
|
|
32
|
+
<link href="/themes/spacing.css" rel="stylesheet" />
|
|
28
33
|
|
|
29
34
|
<link
|
|
30
35
|
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
@@ -40,12 +45,34 @@ const Template: Story<ArgTypes> = () => html`
|
|
|
40
45
|
/>
|
|
41
46
|
|
|
42
47
|
<style>
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
${MDTypeScaleStyles.cssText}
|
|
49
|
+
</style>
|
|
50
|
+
|
|
51
|
+
<style>
|
|
52
|
+
.container {
|
|
53
|
+
height: 500px;
|
|
54
|
+
text-align: center;
|
|
55
|
+
padding: 20px;
|
|
56
|
+
background-color: var(--md-sys-color-primary-container);
|
|
57
|
+
color: var(--md-sys-color-on-primary-container);
|
|
58
|
+
|
|
59
|
+
padding: 20px;
|
|
60
|
+
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
gap: 20px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
ox-buttons-radio {
|
|
67
|
+
padding: 20px;
|
|
45
68
|
}
|
|
46
69
|
</style>
|
|
47
70
|
|
|
48
|
-
<
|
|
71
|
+
<script>
|
|
72
|
+
document.body.classList.add('${theme}')
|
|
73
|
+
</script>
|
|
74
|
+
|
|
75
|
+
<div class="container md-typescale-body-large-prominent">
|
|
49
76
|
<ox-context-toolbar
|
|
50
77
|
.tools=${[
|
|
51
78
|
{
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.dark-high-contrast {
|
|
2
|
+
--md-sys-color-primary: rgb(244 255 223);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(177 209 138);
|
|
4
|
+
--md-sys-color-on-primary: rgb(0 0 0);
|
|
5
|
+
--md-sys-color-primary-container: rgb(181 213 142);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(0 0 0);
|
|
7
|
+
--md-sys-color-secondary: rgb(244 255 223);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(0 0 0);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(196 207 177);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(0 0 0);
|
|
11
|
+
--md-sys-color-tertiary: rgb(234 255 252);
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(0 0 0);
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(164 212 208);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(0 0 0);
|
|
15
|
+
--md-sys-color-error: rgb(255 249 249);
|
|
16
|
+
--md-sys-color-on-error: rgb(0 0 0);
|
|
17
|
+
--md-sys-color-error-container: rgb(255 186 177);
|
|
18
|
+
--md-sys-color-on-error-container: rgb(0 0 0);
|
|
19
|
+
--md-sys-color-background: rgb(18 20 14);
|
|
20
|
+
--md-sys-color-on-background: rgb(226 227 216);
|
|
21
|
+
--md-sys-color-surface: rgb(18 20 14);
|
|
22
|
+
--md-sys-color-on-surface: rgb(255 255 255);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(68 72 61);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(249 252 237);
|
|
25
|
+
--md-sys-color-outline: rgb(201 204 190);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(201 204 190);
|
|
27
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
|
+
--md-sys-color-inverse-surface: rgb(226 227 216);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(0 0 0);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(26 48 0);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(209 242 167);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(0 0 0);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(181 213 142);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(12 26 0);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(224 235 204);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(0 0 0);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(196 207 177);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(16 25 7);
|
|
40
|
+
--md-sys-color-tertiary-fixed: rgb(192 240 236);
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(0 0 0);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(164 212 208);
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(0 26 25);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(18 20 14);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(56 58 50);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(12 15 9);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(26 28 22);
|
|
48
|
+
--md-sys-color-surface-container: rgb(30 32 26);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(40 43 36);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(51 54 46);
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.dark-medium-contrast {
|
|
2
|
+
--md-sys-color-primary: rgb(181 213 142);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(177 209 138);
|
|
4
|
+
--md-sys-color-on-primary: rgb(12 26 0);
|
|
5
|
+
--md-sys-color-primary-container: rgb(125 154 89);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(0 0 0);
|
|
7
|
+
--md-sys-color-secondary: rgb(196 207 177);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(16 25 7);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(138 149 121);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(0 0 0);
|
|
11
|
+
--md-sys-color-tertiary: rgb(164 212 208);
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(0 26 25);
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(107 153 149);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(0 0 0);
|
|
15
|
+
--md-sys-color-error: rgb(255 186 177);
|
|
16
|
+
--md-sys-color-on-error: rgb(55 0 1);
|
|
17
|
+
--md-sys-color-error-container: rgb(255 84 73);
|
|
18
|
+
--md-sys-color-on-error-container: rgb(0 0 0);
|
|
19
|
+
--md-sys-color-background: rgb(18 20 14);
|
|
20
|
+
--md-sys-color-on-background: rgb(226 227 216);
|
|
21
|
+
--md-sys-color-surface: rgb(18 20 14);
|
|
22
|
+
--md-sys-color-on-surface: rgb(251 252 240);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(68 72 61);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(201 204 190);
|
|
25
|
+
--md-sys-color-outline: rgb(161 164 151);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(129 133 120);
|
|
27
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
|
+
--md-sys-color-inverse-surface: rgb(226 227 216);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(40 43 36);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(54 79 23);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(205 237 163);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(8 20 0);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(177 209 138);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(37 61 5);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(220 231 200);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(11 20 3);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(191 203 173);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(48 57 36);
|
|
40
|
+
--md-sys-color-tertiary-fixed: rgb(188 236 231);
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(0 20 19);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(160 208 203);
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(8 61 58);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(18 20 14);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(56 58 50);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(12 15 9);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(26 28 22);
|
|
48
|
+
--md-sys-color-surface-container: rgb(30 32 26);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(40 43 36);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(51 54 46);
|
|
51
|
+
}
|
package/themes/dark.css
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.dark {
|
|
2
|
+
--md-sys-color-primary: rgb(177 209 138);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(177 209 138);
|
|
4
|
+
--md-sys-color-on-primary: rgb(31 55 1);
|
|
5
|
+
--md-sys-color-primary-container: rgb(53 78 22);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(205 237 163);
|
|
7
|
+
--md-sys-color-secondary: rgb(191 203 173);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(42 51 30);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(64 74 51);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(220 231 200);
|
|
11
|
+
--md-sys-color-tertiary: rgb(160 208 203);
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(0 55 53);
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(31 78 75);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(188 236 231);
|
|
15
|
+
--md-sys-color-error: rgb(255 180 171);
|
|
16
|
+
--md-sys-color-on-error: rgb(105 0 5);
|
|
17
|
+
--md-sys-color-error-container: rgb(147 0 10);
|
|
18
|
+
--md-sys-color-on-error-container: rgb(255 218 214);
|
|
19
|
+
--md-sys-color-background: rgb(18 20 14);
|
|
20
|
+
--md-sys-color-on-background: rgb(226 227 216);
|
|
21
|
+
--md-sys-color-surface: rgb(18 20 14);
|
|
22
|
+
--md-sys-color-on-surface: rgb(226 227 216);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(68 72 61);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(197 200 186);
|
|
25
|
+
--md-sys-color-outline: rgb(143 146 133);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(68 72 61);
|
|
27
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
|
+
--md-sys-color-inverse-surface: rgb(226 227 216);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(47 49 42);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(76 102 43);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(205 237 163);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(16 32 0);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(177 209 138);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(53 78 22);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(220 231 200);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(21 30 11);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(191 203 173);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(64 74 51);
|
|
40
|
+
--md-sys-color-tertiary-fixed: rgb(188 236 231);
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(0 32 30);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(160 208 203);
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(31 78 75);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(18 20 14);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(56 58 50);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(12 15 9);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(26 28 22);
|
|
48
|
+
--md-sys-color-surface-container: rgb(30 32 26);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(40 43 36);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(51 54 46);
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.light-high-contrast {
|
|
2
|
+
--md-sys-color-primary: rgb(20 39 0);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(76 102 43);
|
|
4
|
+
--md-sys-color-on-primary: rgb(255 255 255);
|
|
5
|
+
--md-sys-color-primary-container: rgb(49 74 18);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(255 255 255);
|
|
7
|
+
--md-sys-color-secondary: rgb(28 37 17);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(255 255 255);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(60 70 47);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(255 255 255);
|
|
11
|
+
--md-sys-color-tertiary: rgb(0 39 37);
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(255 255 255);
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(26 74 71);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(255 255 255);
|
|
15
|
+
--md-sys-color-error: rgb(78 0 2);
|
|
16
|
+
--md-sys-color-on-error: rgb(255 255 255);
|
|
17
|
+
--md-sys-color-error-container: rgb(140 0 9);
|
|
18
|
+
--md-sys-color-on-error-container: rgb(255 255 255);
|
|
19
|
+
--md-sys-color-background: rgb(249 250 239);
|
|
20
|
+
--md-sys-color-on-background: rgb(26 28 22);
|
|
21
|
+
--md-sys-color-surface: rgb(249 250 239);
|
|
22
|
+
--md-sys-color-on-surface: rgb(0 0 0);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(225 228 213);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(33 37 28);
|
|
25
|
+
--md-sys-color-outline: rgb(64 68 57);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(64 68 57);
|
|
27
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
|
+
--md-sys-color-inverse-surface: rgb(47 49 42);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(255 255 255);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(214 247 172);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(49 74 18);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(255 255 255);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(28 51 0);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(255 255 255);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(60 70 47);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(255 255 255);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(38 48 27);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(255 255 255);
|
|
40
|
+
--md-sys-color-tertiary-fixed: rgb(26 74 71);
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(255 255 255);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(0 51 49);
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(255 255 255);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(218 219 208);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(249 250 239);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(255 255 255);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(243 244 233);
|
|
48
|
+
--md-sys-color-surface-container: rgb(238 239 227);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(232 233 222);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(226 227 216);
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.light-medium-contrast {
|
|
2
|
+
--md-sys-color-primary: rgb(49 74 18);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(76 102 43);
|
|
4
|
+
--md-sys-color-on-primary: rgb(255 255 255);
|
|
5
|
+
--md-sys-color-primary-container: rgb(97 125 63);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(255 255 255);
|
|
7
|
+
--md-sys-color-secondary: rgb(60 70 47);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(255 255 255);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(110 120 94);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(255 255 255);
|
|
11
|
+
--md-sys-color-tertiary: rgb(26 74 71);
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(255 255 255);
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(79 125 121);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(255 255 255);
|
|
15
|
+
--md-sys-color-error: rgb(140 0 9);
|
|
16
|
+
--md-sys-color-on-error: rgb(255 255 255);
|
|
17
|
+
--md-sys-color-error-container: rgb(218 52 46);
|
|
18
|
+
--md-sys-color-on-error-container: rgb(255 255 255);
|
|
19
|
+
--md-sys-color-background: rgb(249 250 239);
|
|
20
|
+
--md-sys-color-on-background: rgb(26 28 22);
|
|
21
|
+
--md-sys-color-surface: rgb(249 250 239);
|
|
22
|
+
--md-sys-color-on-surface: rgb(26 28 22);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(225 228 213);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(64 68 57);
|
|
25
|
+
--md-sys-color-outline: rgb(93 97 85);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(120 124 112);
|
|
27
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
|
+
--md-sys-color-inverse-surface: rgb(47 49 42);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(241 242 230);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(177 209 138);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(97 125 63);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(255 255 255);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(73 100 41);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(255 255 255);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(110 120 94);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(255 255 255);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(85 95 71);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(255 255 255);
|
|
40
|
+
--md-sys-color-tertiary-fixed: rgb(79 125 121);
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(255 255 255);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(54 100 96);
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(255 255 255);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(218 219 208);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(249 250 239);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(255 255 255);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(243 244 233);
|
|
48
|
+
--md-sys-color-surface-container: rgb(238 239 227);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(232 233 222);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(226 227 216);
|
|
51
|
+
}
|
package/themes/light.css
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
body {
|
|
2
|
+
--md-sys-shape-corner-small: 4px;
|
|
3
|
+
--md-sys-shape-corner-medium: 6px;
|
|
4
|
+
--md-sys-shape-corner-large: 8px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.light {
|
|
8
|
+
--md-sys-color-primary: rgb(76 102 43);
|
|
9
|
+
--md-sys-color-surface-tint: rgb(76 102 43);
|
|
10
|
+
--md-sys-color-on-primary: rgb(255 255 255);
|
|
11
|
+
--md-sys-color-primary-container: rgb(205 237 163);
|
|
12
|
+
--md-sys-color-on-primary-container: rgb(16 32 0);
|
|
13
|
+
--md-sys-color-secondary: rgb(88 98 73);
|
|
14
|
+
--md-sys-color-on-secondary: rgb(255 255 255);
|
|
15
|
+
--md-sys-color-secondary-container: rgb(220 231 200);
|
|
16
|
+
--md-sys-color-on-secondary-container: rgb(21 30 11);
|
|
17
|
+
--md-sys-color-tertiary: rgb(56 102 99);
|
|
18
|
+
--md-sys-color-on-tertiary: rgb(255 255 255);
|
|
19
|
+
--md-sys-color-tertiary-container: rgb(188 236 231);
|
|
20
|
+
--md-sys-color-on-tertiary-container: rgb(0 32 30);
|
|
21
|
+
--md-sys-color-error: rgb(186 26 26);
|
|
22
|
+
--md-sys-color-on-error: rgb(255 255 255);
|
|
23
|
+
--md-sys-color-error-container: rgb(255 218 214);
|
|
24
|
+
--md-sys-color-on-error-container: rgb(65 0 2);
|
|
25
|
+
--md-sys-color-background: rgb(249 250 239);
|
|
26
|
+
--md-sys-color-on-background: rgb(26 28 22);
|
|
27
|
+
--md-sys-color-surface: rgb(249 250 239);
|
|
28
|
+
--md-sys-color-on-surface: rgb(26 28 22);
|
|
29
|
+
--md-sys-color-surface-variant: rgb(225 228 213);
|
|
30
|
+
--md-sys-color-on-surface-variant: rgb(68 72 61);
|
|
31
|
+
--md-sys-color-outline: rgb(117 121 108);
|
|
32
|
+
--md-sys-color-outline-variant: rgb(197 200 186);
|
|
33
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
34
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
35
|
+
--md-sys-color-inverse-surface: rgb(47 49 42);
|
|
36
|
+
--md-sys-color-inverse-on-surface: rgb(241 242 230);
|
|
37
|
+
--md-sys-color-inverse-primary: rgb(177 209 138);
|
|
38
|
+
--md-sys-color-primary-fixed: rgb(205 237 163);
|
|
39
|
+
--md-sys-color-on-primary-fixed: rgb(16 32 0);
|
|
40
|
+
--md-sys-color-primary-fixed-dim: rgb(177 209 138);
|
|
41
|
+
--md-sys-color-on-primary-fixed-variant: rgb(53 78 22);
|
|
42
|
+
--md-sys-color-secondary-fixed: rgb(220 231 200);
|
|
43
|
+
--md-sys-color-on-secondary-fixed: rgb(21 30 11);
|
|
44
|
+
--md-sys-color-secondary-fixed-dim: rgb(191 203 173);
|
|
45
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(64 74 51);
|
|
46
|
+
--md-sys-color-tertiary-fixed: rgb(188 236 231);
|
|
47
|
+
--md-sys-color-on-tertiary-fixed: rgb(0 32 30);
|
|
48
|
+
--md-sys-color-tertiary-fixed-dim: rgb(160 208 203);
|
|
49
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(31 78 75);
|
|
50
|
+
--md-sys-color-surface-dim: rgb(218 219 208);
|
|
51
|
+
--md-sys-color-surface-bright: rgb(249 250 239);
|
|
52
|
+
--md-sys-color-surface-container-lowest: rgb(255 255 255);
|
|
53
|
+
--md-sys-color-surface-container-low: rgb(243 244 233);
|
|
54
|
+
--md-sys-color-surface-container: rgb(238 239 227);
|
|
55
|
+
--md-sys-color-surface-container-high: rgb(232 233 222);
|
|
56
|
+
--md-sys-color-surface-container-highest: rgb(226 227 216);
|
|
57
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
@layer {
|
|
2
|
+
.md-typescale-display-small,
|
|
3
|
+
.md-typescale-display-small-prominent {
|
|
4
|
+
font: var(--md-sys-typescale-display-small-weight, var(--md-ref-typeface-weight-regular, 400))
|
|
5
|
+
var(--md-sys-typescale-display-small-size, 2.25rem) / var(--md-sys-typescale-display-small-line-height, 2.75rem)
|
|
6
|
+
var(--md-sys-typescale-display-small-font, var(--md-ref-typeface-brand, Roboto));
|
|
7
|
+
}
|
|
8
|
+
.md-typescale-display-medium,
|
|
9
|
+
.md-typescale-display-medium-prominent {
|
|
10
|
+
font: var(--md-sys-typescale-display-medium-weight, var(--md-ref-typeface-weight-regular, 400))
|
|
11
|
+
var(--md-sys-typescale-display-medium-size, 2.8125rem) /
|
|
12
|
+
var(--md-sys-typescale-display-medium-line-height, 3.25rem)
|
|
13
|
+
var(--md-sys-typescale-display-medium-font, var(--md-ref-typeface-brand, Roboto));
|
|
14
|
+
}
|
|
15
|
+
.md-typescale-display-large,
|
|
16
|
+
.md-typescale-display-large-prominent {
|
|
17
|
+
font: var(--md-sys-typescale-display-large-weight, var(--md-ref-typeface-weight-regular, 400))
|
|
18
|
+
var(--md-sys-typescale-display-large-size, 3.5625rem) / var(--md-sys-typescale-display-large-line-height, 4rem)
|
|
19
|
+
var(--md-sys-typescale-display-large-font, var(--md-ref-typeface-brand, Roboto));
|
|
20
|
+
}
|
|
21
|
+
.md-typescale-headline-small,
|
|
22
|
+
.md-typescale-headline-small-prominent {
|
|
23
|
+
font: var(--md-sys-typescale-headline-small-weight, var(--md-ref-typeface-weight-regular, 400))
|
|
24
|
+
var(--md-sys-typescale-headline-small-size, 1.5rem) / var(--md-sys-typescale-headline-small-line-height, 2rem)
|
|
25
|
+
var(--md-sys-typescale-headline-small-font, var(--md-ref-typeface-brand, Roboto));
|
|
26
|
+
}
|
|
27
|
+
.md-typescale-headline-medium,
|
|
28
|
+
.md-typescale-headline-medium-prominent {
|
|
29
|
+
font: var(--md-sys-typescale-headline-medium-weight, var(--md-ref-typeface-weight-regular, 400))
|
|
30
|
+
var(--md-sys-typescale-headline-medium-size, 1.75rem) /
|
|
31
|
+
var(--md-sys-typescale-headline-medium-line-height, 2.25rem)
|
|
32
|
+
var(--md-sys-typescale-headline-medium-font, var(--md-ref-typeface-brand, Roboto));
|
|
33
|
+
}
|
|
34
|
+
.md-typescale-headline-large,
|
|
35
|
+
.md-typescale-headline-large-prominent {
|
|
36
|
+
font: var(--md-sys-typescale-headline-large-weight, var(--md-ref-typeface-weight-regular, 400))
|
|
37
|
+
var(--md-sys-typescale-headline-large-size, 2rem) / var(--md-sys-typescale-headline-large-line-height, 2.5rem)
|
|
38
|
+
var(--md-sys-typescale-headline-large-font, var(--md-ref-typeface-brand, Roboto));
|
|
39
|
+
}
|
|
40
|
+
.md-typescale-title-small,
|
|
41
|
+
.md-typescale-title-small-prominent {
|
|
42
|
+
font: var(--md-sys-typescale-title-small-weight, var(--md-ref-typeface-weight-medium, 500))
|
|
43
|
+
var(--md-sys-typescale-title-small-size, 0.875rem) / var(--md-sys-typescale-title-small-line-height, 1.25rem)
|
|
44
|
+
var(--md-sys-typescale-title-small-font, var(--md-ref-typeface-plain, Roboto));
|
|
45
|
+
}
|
|
46
|
+
.md-typescale-title-medium,
|
|
47
|
+
.md-typescale-title-medium-prominent {
|
|
48
|
+
font: var(--md-sys-typescale-title-medium-weight, var(--md-ref-typeface-weight-medium, 500))
|
|
49
|
+
var(--md-sys-typescale-title-medium-size, 1rem) / var(--md-sys-typescale-title-medium-line-height, 1.5rem)
|
|
50
|
+
var(--md-sys-typescale-title-medium-font, var(--md-ref-typeface-plain, Roboto));
|
|
51
|
+
}
|
|
52
|
+
.md-typescale-title-large,
|
|
53
|
+
.md-typescale-title-large-prominent {
|
|
54
|
+
font: var(--md-sys-typescale-title-large-weight, var(--md-ref-typeface-weight-regular, 400))
|
|
55
|
+
var(--md-sys-typescale-title-large-size, 1.375rem) / var(--md-sys-typescale-title-large-line-height, 1.75rem)
|
|
56
|
+
var(--md-sys-typescale-title-large-font, var(--md-ref-typeface-brand, Roboto));
|
|
57
|
+
}
|
|
58
|
+
.md-typescale-body-small,
|
|
59
|
+
.md-typescale-body-small-prominent {
|
|
60
|
+
font: var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400))
|
|
61
|
+
var(--md-sys-typescale-body-small-size, 0.75rem) / var(--md-sys-typescale-body-small-line-height, 1rem)
|
|
62
|
+
var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto));
|
|
63
|
+
}
|
|
64
|
+
.md-typescale-body-medium,
|
|
65
|
+
.md-typescale-body-medium-prominent {
|
|
66
|
+
font: var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400))
|
|
67
|
+
var(--md-sys-typescale-body-medium-size, 0.875rem) / var(--md-sys-typescale-body-medium-line-height, 1.25rem)
|
|
68
|
+
var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));
|
|
69
|
+
}
|
|
70
|
+
.md-typescale-body-large,
|
|
71
|
+
.md-typescale-body-large-prominent {
|
|
72
|
+
font: var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400))
|
|
73
|
+
var(--md-sys-typescale-body-large-size, 1rem) / var(--md-sys-typescale-body-large-line-height, 1.5rem)
|
|
74
|
+
var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));
|
|
75
|
+
}
|
|
76
|
+
.md-typescale-label-small,
|
|
77
|
+
.md-typescale-label-small-prominent {
|
|
78
|
+
font: var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500))
|
|
79
|
+
var(--md-sys-typescale-label-small-size, 0.6875rem) / var(--md-sys-typescale-label-small-line-height, 1rem)
|
|
80
|
+
var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));
|
|
81
|
+
}
|
|
82
|
+
.md-typescale-label-medium,
|
|
83
|
+
.md-typescale-label-medium-prominent {
|
|
84
|
+
font: var(--md-sys-typescale-label-medium-weight, var(--md-ref-typeface-weight-medium, 500))
|
|
85
|
+
var(--md-sys-typescale-label-medium-size, 0.75rem) / var(--md-sys-typescale-label-medium-line-height, 1rem)
|
|
86
|
+
var(--md-sys-typescale-label-medium-font, var(--md-ref-typeface-plain, Roboto));
|
|
87
|
+
}
|
|
88
|
+
.md-typescale-label-medium-prominent {
|
|
89
|
+
font-weight: var(--md-sys-typescale-label-medium-weight-prominent, var(--md-ref-typeface-weight-bold, 700));
|
|
90
|
+
}
|
|
91
|
+
.md-typescale-label-large,
|
|
92
|
+
.md-typescale-label-large-prominent {
|
|
93
|
+
font: var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500))
|
|
94
|
+
var(--md-sys-typescale-label-large-size, 0.875rem) / var(--md-sys-typescale-label-large-line-height, 1.25rem)
|
|
95
|
+
var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto));
|
|
96
|
+
}
|
|
97
|
+
.md-typescale-label-large-prominent {
|
|
98
|
+
font-weight: var(--md-sys-typescale-label-large-weight-prominent, var(--md-ref-typeface-weight-bold, 700));
|
|
99
|
+
}
|
|
100
|
+
} /*# sourceMappingURL=md-typescale-styles.css.map */
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--spacing-tiny: 2px;
|
|
3
|
+
--spacing-small: 4px;
|
|
4
|
+
--spacing-medium: 8px;
|
|
5
|
+
--spacing-large: 12px;
|
|
6
|
+
--spacing-huge: 24px;
|
|
7
|
+
|
|
8
|
+
--icon-size-tiny: 14px;
|
|
9
|
+
--icon-size-small: 18px;
|
|
10
|
+
--icon-size-medium: 24px;
|
|
11
|
+
--icon-size-large: 32px;
|
|
12
|
+
--icon-size-huge: 48px;
|
|
13
|
+
}
|