@operato/popup 2.0.0-alpha.99 → 2.0.0-beta.4

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +219 -0
  2. package/dist/src/ox-floating-overlay.js +16 -14
  3. package/dist/src/ox-floating-overlay.js.map +1 -1
  4. package/dist/src/ox-popup-list.d.ts +17 -3
  5. package/dist/src/ox-popup-list.js +96 -27
  6. package/dist/src/ox-popup-list.js.map +1 -1
  7. package/dist/src/ox-popup-menu.js +21 -16
  8. package/dist/src/ox-popup-menu.js.map +1 -1
  9. package/dist/src/ox-popup-menuitem.js +5 -5
  10. package/dist/src/ox-popup-menuitem.js.map +1 -1
  11. package/dist/src/ox-popup.d.ts +1 -0
  12. package/dist/src/ox-popup.js +19 -9
  13. package/dist/src/ox-popup.js.map +1 -1
  14. package/dist/src/ox-prompt.js +68 -28
  15. package/dist/src/ox-prompt.js.map +1 -1
  16. package/dist/stories/open-popup.stories.d.ts +6 -0
  17. package/dist/stories/open-popup.stories.js +26 -6
  18. package/dist/stories/open-popup.stories.js.map +1 -1
  19. package/dist/stories/ox-popup-list-sortable.stories.d.ts +24 -0
  20. package/dist/stories/ox-popup-list-sortable.stories.js +169 -0
  21. package/dist/stories/ox-popup-list-sortable.stories.js.map +1 -0
  22. package/dist/stories/ox-popup-list.stories.d.ts +8 -2
  23. package/dist/stories/ox-popup-list.stories.js +52 -32
  24. package/dist/stories/ox-popup-list.stories.js.map +1 -1
  25. package/dist/stories/ox-popup-menu.stories.d.ts +8 -2
  26. package/dist/stories/ox-popup-menu.stories.js +26 -7
  27. package/dist/stories/ox-popup-menu.stories.js.map +1 -1
  28. package/dist/stories/ox-popup.stories.d.ts +8 -1
  29. package/dist/stories/ox-popup.stories.js +47 -13
  30. package/dist/stories/ox-popup.stories.js.map +1 -1
  31. package/dist/stories/ox-prompt-icon.stories.d.ts +6 -0
  32. package/dist/stories/ox-prompt-icon.stories.js +24 -9
  33. package/dist/stories/ox-prompt-icon.stories.js.map +1 -1
  34. package/dist/stories/ox-prompt-normal.stories.d.ts +8 -1
  35. package/dist/stories/ox-prompt-normal.stories.js +25 -7
  36. package/dist/stories/ox-prompt-normal.stories.js.map +1 -1
  37. package/dist/stories/ox-prompt.stories.d.ts +7 -1
  38. package/dist/stories/ox-prompt.stories.js +26 -9
  39. package/dist/stories/ox-prompt.stories.js.map +1 -1
  40. package/dist/tsconfig.tsbuildinfo +1 -1
  41. package/package.json +5 -4
  42. package/src/ox-floating-overlay.ts +16 -14
  43. package/src/ox-popup-list.ts +119 -30
  44. package/src/ox-popup-menu.ts +21 -16
  45. package/src/ox-popup-menuitem.ts +5 -5
  46. package/src/ox-popup.ts +17 -9
  47. package/src/ox-prompt.ts +71 -28
  48. package/stories/open-popup.stories.ts +28 -6
  49. package/stories/ox-popup-list-sortable.stories.ts +188 -0
  50. package/stories/ox-popup-list.stories.ts +55 -34
  51. package/stories/ox-popup-menu.stories.ts +29 -8
  52. package/stories/ox-popup.stories.ts +51 -16
  53. package/stories/ox-prompt-icon.stories.ts +30 -9
  54. package/stories/ox-prompt-normal.stories.ts +28 -8
  55. package/stories/ox-prompt.stories.ts +30 -10
  56. package/themes/dark-hc.css +151 -0
  57. package/themes/dark-mc.css +151 -0
  58. package/themes/dark.css +151 -0
  59. package/themes/grist-theme.css +169 -0
  60. package/themes/light-hc.css +151 -0
  61. package/themes/light-mc.css +151 -0
  62. package/themes/light.css +151 -0
  63. package/themes/md-typescale-styles.css +100 -0
  64. package/themes/spacing.css +43 -0
  65. package/themes/state-color.css +6 -0
  66. package/themes/app-theme.css +0 -145
  67. package/themes/input-theme.css +0 -19
  68. package/themes/material-theme.css +0 -88
@@ -1,11 +1,15 @@
1
+ import '@material/web/all.js'
1
2
  import { html, TemplateResult } from 'lit'
2
3
 
3
4
  import { OxPopup } from '../src/ox-popup'
5
+ import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'
4
6
 
5
7
  export default {
6
8
  title: 'ContextMenu',
7
9
  component: 'ox-popup',
8
- argTypes: {}
10
+ argTypes: {
11
+ theme: { control: 'select', options: ['light', 'dark'] }
12
+ }
9
13
  }
10
14
 
11
15
  interface Story<T> {
@@ -14,7 +18,9 @@ interface Story<T> {
14
18
  argTypes?: Record<string, unknown>
15
19
  }
16
20
 
17
- interface ArgTypes {}
21
+ interface ArgTypes {
22
+ theme?: 'light' | 'dark'
23
+ }
18
24
 
19
25
  function popup(e: MouseEvent) {
20
26
  const noImage = new URL('/assets/images/no-image.png', import.meta.url).href
@@ -27,20 +33,49 @@ function popup(e: MouseEvent) {
27
33
  })
28
34
  }
29
35
 
30
- const Template: Story<ArgTypes> = ({}: ArgTypes) =>
31
- html`
32
- <style>
33
- #place {
34
- width: 100%;
35
- height: 500px;
36
- background: lightgreen;
37
- text-align: center;
38
- line-height: 500px;
39
- }
40
- </style>
41
-
42
- <div id="place" @click=${(e: MouseEvent) => popup(e)}>Click this to popup image</div>
43
- `
36
+ const Template: Story<ArgTypes> = ({ theme = 'light' }: ArgTypes) => html`
37
+ <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
38
+
39
+ <link href="/themes/light.css" rel="stylesheet" />
40
+ <link href="/themes/dark.css" rel="stylesheet" />
41
+ <link href="/themes/spacing.css" rel="stylesheet" />
42
+
43
+ <link
44
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
45
+ rel="stylesheet"
46
+ />
47
+ <link
48
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
49
+ rel="stylesheet"
50
+ />
51
+ <link
52
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
53
+ rel="stylesheet"
54
+ />
55
+
56
+ <style>
57
+ ${MDTypeScaleStyles.cssText}
58
+ </style>
59
+
60
+ <style>
61
+ #place {
62
+ width: 100%;
63
+ height: 500px;
64
+ text-align: center;
65
+
66
+ background-color: var(--md-sys-color-primary-container);
67
+ color: var(--md-sys-color-on-primary-container);
68
+ }
69
+ </style>
70
+
71
+ <script>
72
+ document.body.classList.add('${theme}')
73
+ </script>
74
+
75
+ <div id="place" @click=${(e: MouseEvent) => popup(e)} class="md-typescale-display-medium">
76
+ Click this to popup image
77
+ </div>
78
+ `
44
79
 
45
80
  export const Regular = Template.bind({})
46
81
  Regular.args = {}
@@ -1,13 +1,16 @@
1
+ import '@material/web/all.js'
1
2
  import { html, TemplateResult } from 'lit'
2
3
 
3
4
  import { OxPrompt } from '../src/ox-prompt'
5
+ import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'
4
6
 
5
7
  export default {
6
8
  title: 'OxPrompt - Icon',
7
9
  component: 'ox-prompt',
8
10
  argTypes: {
9
11
  type: { control: 'select', options: ['success', 'error', 'warning', 'info', 'question'] },
10
- debug: { control: 'boolean' }
12
+ debug: { control: 'boolean' },
13
+ theme: { control: 'select', options: ['light', 'dark'] }
11
14
  }
12
15
  }
13
16
 
@@ -20,9 +23,15 @@ interface Story<T> {
20
23
  interface ArgTypes {
21
24
  type: 'success' | 'error' | 'warning' | 'info' | 'question'
22
25
  debug: boolean
26
+ theme?: 'light' | 'dark'
23
27
  }
24
28
 
25
- function popup(e: MouseEvent, type: 'success' | 'error' | 'warning' | 'info' | 'question' = 'warning', debug: boolean) {
29
+ function popup(
30
+ e: MouseEvent,
31
+ type: 'success' | 'error' | 'warning' | 'info' | 'question' = 'warning',
32
+ theme: 'light' | 'dark',
33
+ debug: boolean
34
+ ) {
26
35
  const noImage = new URL('/assets/images/no-image.png', import.meta.url).href
27
36
 
28
37
  //@ts-ignore
@@ -37,9 +46,12 @@ function popup(e: MouseEvent, type: 'success' | 'error' | 'warning' | 'info' | '
37
46
  })
38
47
  }
39
48
 
40
- const Template: Story<ArgTypes> = ({ type, debug }: ArgTypes) => html`
41
- <link href="/themes/app-theme.css" rel="stylesheet" />
42
- <link href="/themes/material-theme.css" rel="stylesheet" />
49
+ const Template: Story<ArgTypes> = ({ type, debug, theme = 'light' }: ArgTypes) => html`
50
+ <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
51
+
52
+ <link href="/themes/light.css" rel="stylesheet" />
53
+ <link href="/themes/dark.css" rel="stylesheet" />
54
+ <link href="/themes/spacing.css" rel="stylesheet" />
43
55
 
44
56
  <link
45
57
  href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
@@ -54,19 +66,28 @@ const Template: Story<ArgTypes> = ({ type, debug }: ArgTypes) => html`
54
66
  rel="stylesheet"
55
67
  />
56
68
 
57
- <script></script>
69
+ <style>
70
+ ${MDTypeScaleStyles.cssText}
71
+ </style>
58
72
 
59
73
  <style>
60
74
  #place {
61
75
  width: 100%;
62
76
  height: 500px;
63
- background: lightgreen;
64
77
  text-align: center;
65
- line-height: 500px;
78
+
79
+ background-color: var(--md-sys-color-primary-container);
80
+ color: var(--md-sys-color-on-primary-container);
66
81
  }
67
82
  </style>
68
83
 
69
- <div id="place" @click=${(e: MouseEvent) => popup(e, type, debug)}>Click this to prompt image</div>
84
+ <script>
85
+ document.body.classList.add('${theme}')
86
+ </script>
87
+
88
+ <div id="place" @click=${(e: MouseEvent) => popup(e, type, theme, debug)} class="md-typescale-display-medium">
89
+ Click this to prompt image
90
+ </div>
70
91
  `
71
92
 
72
93
  export const Regular = Template.bind({})
@@ -1,11 +1,15 @@
1
+ import '@material/web/all.js'
1
2
  import { html, TemplateResult } from 'lit'
2
3
 
3
4
  import { OxPrompt } from '../src/ox-prompt'
5
+ import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'
4
6
 
5
7
  export default {
6
8
  title: 'OxPrompt - Normal',
7
9
  component: 'ox-prompt',
8
- argTypes: {}
10
+ argTypes: {
11
+ theme: { control: 'select', options: ['light', 'dark'] }
12
+ }
9
13
  }
10
14
 
11
15
  interface Story<T> {
@@ -14,7 +18,9 @@ interface Story<T> {
14
18
  argTypes?: Record<string, unknown>
15
19
  }
16
20
 
17
- interface ArgTypes {}
21
+ interface ArgTypes {
22
+ theme?: 'light' | 'dark'
23
+ }
18
24
 
19
25
  function popup(e: MouseEvent) {
20
26
  const noImage = new URL('/assets/images/no-image.png', import.meta.url).href
@@ -27,9 +33,12 @@ function popup(e: MouseEvent) {
27
33
  })
28
34
  }
29
35
 
30
- const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
31
- <link href="/themes/app-theme.css" rel="stylesheet" />
32
- <link href="/themes/material-theme.css" rel="stylesheet" />
36
+ const Template: Story<ArgTypes> = ({ theme = 'light' }: ArgTypes) => html`
37
+ <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
38
+
39
+ <link href="/themes/light.css" rel="stylesheet" />
40
+ <link href="/themes/dark.css" rel="stylesheet" />
41
+ <link href="/themes/spacing.css" rel="stylesheet" />
33
42
 
34
43
  <link
35
44
  href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
@@ -44,17 +53,28 @@ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
44
53
  rel="stylesheet"
45
54
  />
46
55
 
56
+ <style>
57
+ ${MDTypeScaleStyles.cssText}
58
+ </style>
59
+
47
60
  <style>
48
61
  #place {
49
62
  width: 100%;
50
63
  height: 500px;
51
- background: lightgreen;
52
64
  text-align: center;
53
- line-height: 500px;
65
+
66
+ background-color: var(--md-sys-color-primary-container);
67
+ color: var(--md-sys-color-on-primary-container);
54
68
  }
55
69
  </style>
56
70
 
57
- <div id="place" @click=${(e: MouseEvent) => popup(e)}>Click this to prompt image</div>
71
+ <script>
72
+ document.body.classList.add('${theme}')
73
+ </script>
74
+
75
+ <div id="place" @click=${(e: MouseEvent) => popup(e)} class="md-typescale-display-medium">
76
+ Click this to prompt image
77
+ </div>
58
78
  `
59
79
 
60
80
  export const Regular = Template.bind({})
@@ -1,11 +1,15 @@
1
1
  import { html, TemplateResult } from 'lit'
2
2
 
3
3
  import { OxPrompt } from '../src/ox-prompt'
4
+ import { ifDefined } from 'lit/directives/if-defined.js'
5
+ import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'
4
6
 
5
7
  export default {
6
8
  title: 'OxPrompt',
7
9
  component: 'ox-prompt',
8
- argTypes: {}
10
+ argTypes: {
11
+ theme: { control: 'select', options: ['light', 'dark'] }
12
+ }
9
13
  }
10
14
 
11
15
  interface Story<T> {
@@ -14,12 +18,14 @@ interface Story<T> {
14
18
  argTypes?: Record<string, unknown>
15
19
  }
16
20
 
17
- interface ArgTypes {}
21
+ interface ArgTypes {
22
+ theme?: 'light' | 'dark'
23
+ }
18
24
 
19
- function popup(e: MouseEvent) {
25
+ async function popup(e: MouseEvent) {
20
26
  const noImage = new URL('/assets/images/no-image.png', import.meta.url).href
21
27
 
22
- OxPrompt.open({
28
+ await OxPrompt.open({
23
29
  type: 'info',
24
30
  title: 'title',
25
31
  text: 'Are you sure ?',
@@ -30,9 +36,12 @@ function popup(e: MouseEvent) {
30
36
  })
31
37
  }
32
38
 
33
- const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
34
- <link href="/themes/app-theme.css" rel="stylesheet" />
35
- <link href="/themes/material-theme.css" rel="stylesheet" />
39
+ const Template: Story<ArgTypes> = ({ theme = 'light' }: ArgTypes) => html`
40
+ <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
41
+
42
+ <link href="/themes/light.css" rel="stylesheet" />
43
+ <link href="/themes/dark.css" rel="stylesheet" />
44
+ <link href="/themes/spacing.css" rel="stylesheet" />
36
45
 
37
46
  <link
38
47
  href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
@@ -47,17 +56,28 @@ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
47
56
  rel="stylesheet"
48
57
  />
49
58
 
59
+ <style>
60
+ ${MDTypeScaleStyles.cssText}
61
+ </style>
62
+
50
63
  <style>
51
64
  #place {
52
65
  width: 100%;
53
66
  height: 500px;
54
- background: lightgreen;
55
67
  text-align: center;
56
- line-height: 500px;
68
+
69
+ background-color: var(--md-sys-color-primary-container);
70
+ color: var(--md-sys-color-on-primary-container);
57
71
  }
58
72
  </style>
59
73
 
60
- <div id="place" @click=${(e: MouseEvent) => popup(e)}>Click this to prompt image</div>
74
+ <script>
75
+ document.body.classList.add('${theme}')
76
+ </script>
77
+
78
+ <div id="place" @click=${(e: MouseEvent) => popup(e)} class="md-typescale-display-medium">
79
+ Click this to prompt image
80
+ </div>
61
81
  `
62
82
 
63
83
  export const Regular = Template.bind({})
@@ -0,0 +1,151 @@
1
+ .dark-high-contrast {
2
+ --md-sys-color-primary: rgb(252 250 255);
3
+ --md-sys-color-surface-tint: rgb(178 197 255);
4
+ --md-sys-color-on-primary: rgb(0 0 0);
5
+ --md-sys-color-primary-container: rgb(184 201 255);
6
+ --md-sys-color-on-primary-container: rgb(0 0 0);
7
+ --md-sys-color-secondary: rgb(248 251 255);
8
+ --md-sys-color-on-secondary: rgb(0 0 0);
9
+ --md-sys-color-secondary-container: rgb(147 211 247);
10
+ --md-sys-color-on-secondary-container: rgb(0 0 0);
11
+ --md-sys-color-tertiary: rgb(238 255 242);
12
+ --md-sys-color-on-tertiary: rgb(0 0 0);
13
+ --md-sys-color-tertiary-container: rgb(148 218 179);
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 185 180);
18
+ --md-sys-color-on-error-container: rgb(0 0 0);
19
+ --md-sys-color-background: rgb(18 19 24);
20
+ --md-sys-color-on-background: rgb(227 226 233);
21
+ --md-sys-color-surface: rgb(18 19 24);
22
+ --md-sys-color-on-surface: rgb(255 255 255);
23
+ --md-sys-color-surface-variant: rgb(69 70 79);
24
+ --md-sys-color-on-surface-variant: rgb(252 250 255);
25
+ --md-sys-color-outline: rgb(201 202 212);
26
+ --md-sys-color-outline-variant: rgb(201 202 212);
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(227 226 233);
30
+ --md-sys-color-inverse-on-surface: rgb(0 0 0);
31
+ --md-sys-color-inverse-primary: rgb(16 39 90);
32
+ --md-sys-color-primary-fixed: rgb(224 230 255);
33
+ --md-sys-color-on-primary-fixed: rgb(0 0 0);
34
+ --md-sys-color-primary-fixed-dim: rgb(184 201 255);
35
+ --md-sys-color-on-primary-fixed-variant: rgb(0 19 61);
36
+ --md-sys-color-secondary-fixed: rgb(205 235 255);
37
+ --md-sys-color-on-secondary-fixed: rgb(0 0 0);
38
+ --md-sys-color-secondary-fixed-dim: rgb(147 211 247);
39
+ --md-sys-color-on-secondary-fixed-variant: rgb(0 25 36);
40
+ --md-sys-color-tertiary-fixed: rgb(175 246 206);
41
+ --md-sys-color-on-tertiary-fixed: rgb(0 0 0);
42
+ --md-sys-color-tertiary-fixed-dim: rgb(148 218 179);
43
+ --md-sys-color-on-tertiary-fixed-variant: rgb(0 27 14);
44
+ --md-sys-color-surface-dim: rgb(18 19 24);
45
+ --md-sys-color-surface-bright: rgb(56 57 63);
46
+ --md-sys-color-surface-container-lowest: rgb(13 14 19);
47
+ --md-sys-color-surface-container-low: rgb(26 27 33);
48
+ --md-sys-color-surface-container: rgb(30 31 37);
49
+ --md-sys-color-surface-container-high: rgb(41 42 47);
50
+ --md-sys-color-surface-container-highest: rgb(51 52 58);
51
+
52
+ /* primary palette */
53
+ --md-ref-palette-primary0:#000000;
54
+ --md-ref-palette-primary5:#000E32;
55
+ --md-ref-palette-primary10:#001848;
56
+ --md-ref-palette-primary15:#00215E;
57
+ --md-ref-palette-primary20:#002B74;
58
+ --md-ref-palette-primary25:#002B74;
59
+ --md-ref-palette-primary30:#0040A2;
60
+ --md-ref-palette-primary35:#002B74;
61
+ --md-ref-palette-primary40:#1957CA;
62
+ --md-ref-palette-primary50:#3E71E5;
63
+ --md-ref-palette-primary60:#5C8BFF;
64
+ --md-ref-palette-primary70:#89A9FF;
65
+ --md-ref-palette-primary80:#B2C5FF;
66
+ --md-ref-palette-primary90:#DAE2FF;
67
+ --md-ref-palette-primary95:#EEF0FF;
68
+ --md-ref-palette-primary98:#FAF8FF;
69
+ --md-ref-palette-primary99:#FEFBFF;
70
+ --md-ref-palette-primary100:#FFFFFF;
71
+
72
+ /* secondary palette */
73
+ --md-ref-palette-secondary0:#000000;
74
+ --md-ref-palette-secondary5:#00131D;
75
+ --md-ref-palette-secondary10:#001E2C;
76
+ --md-ref-palette-secondary15:#00293A;
77
+ --md-ref-palette-secondary20:#003549;
78
+ --md-ref-palette-secondary25:#004058;
79
+ --md-ref-palette-secondary30:#004C68;
80
+ --md-ref-palette-secondary35:#005978;
81
+ --md-ref-palette-secondary40:#006689;
82
+ --md-ref-palette-secondary50:#0080AC;
83
+ --md-ref-palette-secondary60:#009BCF;
84
+ --md-ref-palette-secondary70:#00B8F4;
85
+ --md-ref-palette-secondary80:#79D1FF;
86
+ --md-ref-palette-secondary90:#C3E8FF;
87
+ --md-ref-palette-secondary95:#E3F3FF;
88
+ --md-ref-palette-secondary98:#F5FAFF;
89
+ --md-ref-palette-secondary99:#FBFCFF;
90
+ --md-ref-palette-secondary100:#FFFFFF;
91
+
92
+ /* tertiary palette */
93
+ --md-ref-palette-tertiary0:#000000;
94
+ --md-ref-palette-tertiary5:#00150A;
95
+ --md-ref-palette-tertiary10:#002113;
96
+ --md-ref-palette-tertiary15:#002C1B;
97
+ --md-ref-palette-tertiary20:#003823;
98
+ --md-ref-palette-tertiary25:#00452B;
99
+ --md-ref-palette-tertiary30:#005234;
100
+ --md-ref-palette-tertiary35:#005F3E;
101
+ --md-ref-palette-tertiary40:#006C47;
102
+ --md-ref-palette-tertiary50:#00885A;
103
+ --md-ref-palette-tertiary60:#31A372;
104
+ --md-ref-palette-tertiary70:#51BF8B;
105
+ --md-ref-palette-tertiary80:#6EDBA5;
106
+ --md-ref-palette-tertiary90:#A2F4C7;
107
+ --md-ref-palette-tertiary95:#BFFFD9;
108
+ --md-ref-palette-tertiary98:#E8FFEF;
109
+ --md-ref-palette-tertiary99:#F4FFF5;
110
+ --md-ref-palette-tertiary100:#FFFFFF;
111
+
112
+ /* error palette */
113
+ --md-ref-palette-error0:#000000;
114
+ --md-ref-palette-error5:#2d0102;
115
+ --md-ref-palette-error10:#410304;
116
+ --md-ref-palette-error15:#540507;
117
+ --md-ref-palette-error20:#68070a;
118
+ --md-ref-palette-error25:#7d0b0e;
119
+ --md-ref-palette-error30:#930f14;
120
+ --md-ref-palette-error35:#a91319;
121
+ --md-ref-palette-error40:#bc1620;
122
+ --md-ref-palette-error50:#e03236;
123
+ --md-ref-palette-error60:#ff5450;
124
+ --md-ref-palette-error70:#ff8982;
125
+ --md-ref-palette-error80:#ffb3ad;
126
+ --md-ref-palette-error90:#ffdad7;
127
+ --md-ref-palette-error95:#ffedeb;
128
+ --md-ref-palette-error98:#fff8f7;
129
+ --md-ref-palette-error99:#fffbff;
130
+ --md-ref-palette-error100:#FFFFFF;
131
+
132
+ /* neutral palette */
133
+ --md-ref-palette-neutral0:#000000;
134
+ --md-ref-palette-neutral5:#111111;
135
+ --md-ref-palette-neutral10:#1C1C1C;
136
+ --md-ref-palette-neutral15:#262626;
137
+ --md-ref-palette-neutral20:#313131;
138
+ --md-ref-palette-neutral25:#3C3C3C;
139
+ --md-ref-palette-neutral30:#474747;
140
+ --md-ref-palette-neutral35:#535353;
141
+ --md-ref-palette-neutral40:#5F5F5F;
142
+ --md-ref-palette-neutral50:#787878;
143
+ --md-ref-palette-neutral60:#929292;
144
+ --md-ref-palette-neutral70:#ACACAC;
145
+ --md-ref-palette-neutral80:#C8C8C8;
146
+ --md-ref-palette-neutral90:#E4E4E4;
147
+ --md-ref-palette-neutral95:#F0F0F0;
148
+ --md-ref-palette-neutral98:#F9F9F9;
149
+ --md-ref-palette-neutral99:#FEFEFE;
150
+ --md-ref-palette-neutral100:#FFFFFF;
151
+ }
@@ -0,0 +1,151 @@
1
+ .dark-medium-contrast {
2
+ --md-sys-color-primary: rgb(184 201 255);
3
+ --md-sys-color-surface-tint: rgb(178 197 255);
4
+ --md-sys-color-on-primary: rgb(0 19 61);
5
+ --md-sys-color-primary-container: rgb(124 143 200);
6
+ --md-sys-color-on-primary-container: rgb(0 0 0);
7
+ --md-sys-color-secondary: rgb(147 211 247);
8
+ --md-sys-color-on-secondary: rgb(0 25 36);
9
+ --md-sys-color-secondary-container: rgb(88 152 186);
10
+ --md-sys-color-on-secondary-container: rgb(0 0 0);
11
+ --md-sys-color-tertiary: #cffce3;
12
+ --md-sys-color-on-tertiary: rgb(0 27 14);
13
+ --md-sys-color-tertiary-container: #005234;
14
+ --md-sys-color-on-tertiary-container: #cffce3;
15
+ --md-sys-color-error: #fbafa9;
16
+ --md-sys-color-on-error: #fe594e;
17
+ --md-sys-color-error-container: #fe594e;
18
+ --md-sys-color-on-error-container: #fbafa9;
19
+ --md-sys-color-background: rgb(18 19 24);
20
+ --md-sys-color-on-background: rgb(227 226 233);
21
+ --md-sys-color-surface: rgb(18 19 24);
22
+ --md-sys-color-on-surface: rgb(252 250 255);
23
+ --md-sys-color-surface-variant: rgb(69 70 79);
24
+ --md-sys-color-on-surface-variant: rgb(201 202 212);
25
+ --md-sys-color-outline: rgb(161 162 172);
26
+ --md-sys-color-outline-variant: rgb(129 131 140);
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(227 226 233);
30
+ --md-sys-color-inverse-on-surface: rgb(41 42 47);
31
+ --md-sys-color-inverse-primary: rgb(50 70 122);
32
+ --md-sys-color-primary-fixed: rgb(218 226 255);
33
+ --md-sys-color-on-primary-fixed: rgb(0 15 51);
34
+ --md-sys-color-primary-fixed-dim: rgb(178 197 255);
35
+ --md-sys-color-on-primary-fixed-variant: rgb(31 52 102);
36
+ --md-sys-color-secondary-fixed: rgb(195 232 255);
37
+ --md-sys-color-on-secondary-fixed: rgb(0 19 29);
38
+ --md-sys-color-secondary-fixed-dim: rgb(143 207 243);
39
+ --md-sys-color-on-secondary-fixed-variant: rgb(0 59 81);
40
+ --md-sys-color-tertiary-fixed: #c7e6d5;
41
+ --md-sys-color-on-tertiary-fixed: rgb(0 21 10);
42
+ --md-sys-color-tertiary-fixed-dim: #c7e6d5;
43
+ --md-sys-color-on-tertiary-fixed-variant: rgb(0 63 39);
44
+ --md-sys-color-surface-dim: rgb(18 19 24);
45
+ --md-sys-color-surface-bright: rgb(56 57 63);
46
+ --md-sys-color-surface-container-lowest: rgb(13 14 19);
47
+ --md-sys-color-surface-container-low: rgb(26 27 33);
48
+ --md-sys-color-surface-container: rgb(30 31 37);
49
+ --md-sys-color-surface-container-high: rgb(41 42 47);
50
+ --md-sys-color-surface-container-highest: rgb(51 52 58);
51
+
52
+ /* primary palette */
53
+ --md-ref-palette-primary0:#000000;
54
+ --md-ref-palette-primary5:#000E32;
55
+ --md-ref-palette-primary10:#001848;
56
+ --md-ref-palette-primary15:#00215E;
57
+ --md-ref-palette-primary20:#002B74;
58
+ --md-ref-palette-primary25:#002B74;
59
+ --md-ref-palette-primary30:#0040A2;
60
+ --md-ref-palette-primary35:#002B74;
61
+ --md-ref-palette-primary40:#1957CA;
62
+ --md-ref-palette-primary50:#3E71E5;
63
+ --md-ref-palette-primary60:#5C8BFF;
64
+ --md-ref-palette-primary70:#89A9FF;
65
+ --md-ref-palette-primary80:#B2C5FF;
66
+ --md-ref-palette-primary90:#DAE2FF;
67
+ --md-ref-palette-primary95:#EEF0FF;
68
+ --md-ref-palette-primary98:#FAF8FF;
69
+ --md-ref-palette-primary99:#FEFBFF;
70
+ --md-ref-palette-primary100:#FFFFFF;
71
+
72
+ /* secondary palette */
73
+ --md-ref-palette-secondary0:#000000;
74
+ --md-ref-palette-secondary5:#00131D;
75
+ --md-ref-palette-secondary10:#001E2C;
76
+ --md-ref-palette-secondary15:#00293A;
77
+ --md-ref-palette-secondary20:#003549;
78
+ --md-ref-palette-secondary25:#004058;
79
+ --md-ref-palette-secondary30:#004C68;
80
+ --md-ref-palette-secondary35:#005978;
81
+ --md-ref-palette-secondary40:#006689;
82
+ --md-ref-palette-secondary50:#0080AC;
83
+ --md-ref-palette-secondary60:#009BCF;
84
+ --md-ref-palette-secondary70:#00B8F4;
85
+ --md-ref-palette-secondary80:#79D1FF;
86
+ --md-ref-palette-secondary90:#C3E8FF;
87
+ --md-ref-palette-secondary95:#E3F3FF;
88
+ --md-ref-palette-secondary98:#F5FAFF;
89
+ --md-ref-palette-secondary99:#FBFCFF;
90
+ --md-ref-palette-secondary100:#FFFFFF;
91
+
92
+ /* tertiary palette */
93
+ --md-ref-palette-tertiary0:#000000;
94
+ --md-ref-palette-tertiary5:#00150A;
95
+ --md-ref-palette-tertiary10:#002113;
96
+ --md-ref-palette-tertiary15:#002C1B;
97
+ --md-ref-palette-tertiary20:#003823;
98
+ --md-ref-palette-tertiary25:#00452B;
99
+ --md-ref-palette-tertiary30:#005234;
100
+ --md-ref-palette-tertiary35:#005F3E;
101
+ --md-ref-palette-tertiary40:#006C47;
102
+ --md-ref-palette-tertiary50:#00885A;
103
+ --md-ref-palette-tertiary60:#31A372;
104
+ --md-ref-palette-tertiary70:#51BF8B;
105
+ --md-ref-palette-tertiary80:#6EDBA5;
106
+ --md-ref-palette-tertiary90:#A2F4C7;
107
+ --md-ref-palette-tertiary95:#BFFFD9;
108
+ --md-ref-palette-tertiary98:#E8FFEF;
109
+ --md-ref-palette-tertiary99:#F4FFF5;
110
+ --md-ref-palette-tertiary100:#FFFFFF;
111
+
112
+ /* error palette */
113
+ --md-ref-palette-error0:#000000;
114
+ --md-ref-palette-error5:#2d0102;
115
+ --md-ref-palette-error10:#410304;
116
+ --md-ref-palette-error15:#540507;
117
+ --md-ref-palette-error20:#68070a;
118
+ --md-ref-palette-error25:#7d0b0e;
119
+ --md-ref-palette-error30:#930f14;
120
+ --md-ref-palette-error35:#a91319;
121
+ --md-ref-palette-error40:#bc1620;
122
+ --md-ref-palette-error50:#e03236;
123
+ --md-ref-palette-error60:#ff5450;
124
+ --md-ref-palette-error70:#ff8982;
125
+ --md-ref-palette-error80:#ffb3ad;
126
+ --md-ref-palette-error90:#ffdad7;
127
+ --md-ref-palette-error95:#ffedeb;
128
+ --md-ref-palette-error98:#fff8f7;
129
+ --md-ref-palette-error99:#fffbff;
130
+ --md-ref-palette-error100:#FFFFFF;
131
+
132
+ /* neutral palette */
133
+ --md-ref-palette-neutral0:#000000;
134
+ --md-ref-palette-neutral5:#111111;
135
+ --md-ref-palette-neutral10:#1C1C1C;
136
+ --md-ref-palette-neutral15:#262626;
137
+ --md-ref-palette-neutral20:#313131;
138
+ --md-ref-palette-neutral25:#3C3C3C;
139
+ --md-ref-palette-neutral30:#474747;
140
+ --md-ref-palette-neutral35:#535353;
141
+ --md-ref-palette-neutral40:#5F5F5F;
142
+ --md-ref-palette-neutral50:#787878;
143
+ --md-ref-palette-neutral60:#929292;
144
+ --md-ref-palette-neutral70:#ACACAC;
145
+ --md-ref-palette-neutral80:#C8C8C8;
146
+ --md-ref-palette-neutral90:#E4E4E4;
147
+ --md-ref-palette-neutral95:#F0F0F0;
148
+ --md-ref-palette-neutral98:#F9F9F9;
149
+ --md-ref-palette-neutral99:#FEFEFE;
150
+ --md-ref-palette-neutral100:#FFFFFF;
151
+ }