@lmfaole/basics 0.3.0 → 0.5.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/LICENSE +21 -0
- package/README.md +78 -350
- package/basic-components/basic-accordion/README.md +53 -0
- package/{components → basic-components}/basic-accordion/index.d.ts +5 -5
- package/basic-components/basic-accordion/index.js +413 -0
- package/basic-components/basic-alert/README.md +48 -0
- package/basic-components/basic-alert/index.d.ts +53 -0
- package/basic-components/basic-alert/index.js +189 -0
- package/basic-components/basic-alert/register.js +3 -0
- package/basic-components/basic-carousel/README.md +108 -0
- package/basic-components/basic-carousel/index.d.ts +73 -0
- package/basic-components/basic-carousel/index.js +255 -0
- package/basic-components/basic-carousel/register.js +3 -0
- package/basic-components/basic-dialog/README.md +57 -0
- package/basic-components/basic-popover/README.md +56 -0
- package/basic-components/basic-summary-table/README.md +93 -0
- package/{components → basic-components}/basic-summary-table/index.js +188 -42
- package/basic-components/basic-table/README.md +89 -0
- package/{components → basic-components}/basic-table/index.js +203 -145
- package/basic-components/basic-tabs/README.md +63 -0
- package/basic-components/basic-tabs/register.d.ts +1 -0
- package/basic-components/basic-toast/README.md +62 -0
- package/basic-components/basic-toast/index.d.ts +68 -0
- package/basic-components/basic-toast/index.js +690 -0
- package/basic-components/basic-toast/register.d.ts +1 -0
- package/basic-components/basic-toast/register.js +3 -0
- package/basic-components/basic-toc/README.md +43 -0
- package/basic-components/basic-toc/register.d.ts +1 -0
- package/basic-styling/components/basic-accordion.css +99 -0
- package/basic-styling/components/basic-alert.css +27 -0
- package/basic-styling/components/basic-carousel.css +183 -0
- package/basic-styling/components/basic-dialog.css +41 -0
- package/basic-styling/components/basic-popover.css +52 -0
- package/basic-styling/components/basic-summary-table.css +98 -0
- package/basic-styling/components/basic-table.css +66 -0
- package/basic-styling/components/basic-tabs.css +61 -0
- package/basic-styling/components/basic-toast.css +102 -0
- package/basic-styling/components/basic-toc.css +30 -0
- package/basic-styling/components.css +11 -0
- package/basic-styling/forms.css +55 -0
- package/basic-styling/global.css +62 -0
- package/basic-styling/index.css +2 -0
- package/basic-styling/interaction.css +90 -0
- package/basic-styling/tokens/base.css +19 -0
- package/basic-styling/tokens/palette.css +229 -0
- package/basic-styling/tokens/palette.tokens.json +1787 -0
- package/index.d.ts +10 -7
- package/index.js +10 -7
- package/package.json +61 -76
- package/components/basic-accordion/index.js +0 -387
- package/readme.mdx +0 -6
- /package/{components → basic-components}/basic-accordion/register.d.ts +0 -0
- /package/{components → basic-components}/basic-accordion/register.js +0 -0
- /package/{components/basic-dialog → basic-components/basic-alert}/register.d.ts +0 -0
- /package/{components/basic-popover → basic-components/basic-carousel}/register.d.ts +0 -0
- /package/{components → basic-components}/basic-dialog/index.d.ts +0 -0
- /package/{components → basic-components}/basic-dialog/index.js +0 -0
- /package/{components/basic-summary-table → basic-components/basic-dialog}/register.d.ts +0 -0
- /package/{components → basic-components}/basic-dialog/register.js +0 -0
- /package/{components → basic-components}/basic-popover/index.d.ts +0 -0
- /package/{components → basic-components}/basic-popover/index.js +0 -0
- /package/{components/basic-table → basic-components/basic-popover}/register.d.ts +0 -0
- /package/{components → basic-components}/basic-popover/register.js +0 -0
- /package/{components → basic-components}/basic-summary-table/index.d.ts +0 -0
- /package/{components/basic-tabs → basic-components/basic-summary-table}/register.d.ts +0 -0
- /package/{components → basic-components}/basic-summary-table/register.js +0 -0
- /package/{components → basic-components}/basic-table/index.d.ts +0 -0
- /package/{components/basic-toc → basic-components/basic-table}/register.d.ts +0 -0
- /package/{components → basic-components}/basic-table/register.js +0 -0
- /package/{components → basic-components}/basic-tabs/index.d.ts +0 -0
- /package/{components → basic-components}/basic-tabs/index.js +0 -0
- /package/{components → basic-components}/basic-tabs/register.js +0 -0
- /package/{components → basic-components}/basic-toc/index.d.ts +0 -0
- /package/{components → basic-components}/basic-toc/index.js +0 -0
- /package/{components → basic-components}/basic-toc/register.js +0 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
basic-toast {
|
|
2
|
+
--basic-toast-offset: var(--basic-space-4);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
basic-toast [data-toast-open],
|
|
6
|
+
basic-toast [data-toast-close] {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
padding: var(--basic-control-padding-block) var(--basic-control-padding-inline);
|
|
11
|
+
border: var(--basic-border-width) solid var(--basic-color-border);
|
|
12
|
+
border-radius: var(--basic-radius-pill);
|
|
13
|
+
background: var(--basic-color-surface);
|
|
14
|
+
color: inherit;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
basic-toast [data-toast-panel] {
|
|
19
|
+
position: fixed;
|
|
20
|
+
inset-block-start: auto;
|
|
21
|
+
inset-inline-start: auto;
|
|
22
|
+
inset-inline-end: var(--basic-toast-offset);
|
|
23
|
+
inset-block-end: var(--basic-toast-offset);
|
|
24
|
+
width: min(
|
|
25
|
+
var(--basic-toast-width, 20rem),
|
|
26
|
+
var(--basic-toast-max-width, calc(100vw - (var(--basic-toast-offset) * 2)))
|
|
27
|
+
);
|
|
28
|
+
padding: var(--basic-panel-padding);
|
|
29
|
+
border: var(--basic-border-width) solid var(--basic-color-border);
|
|
30
|
+
border-radius: var(--basic-radius);
|
|
31
|
+
background: var(--basic-color-surface);
|
|
32
|
+
transform: translate(0, 0);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
basic-toast[data-toast-position="top-left"] [data-toast-panel] {
|
|
36
|
+
inset-block-start: var(--basic-toast-offset);
|
|
37
|
+
inset-inline-start: var(--basic-toast-offset);
|
|
38
|
+
inset-inline-end: auto;
|
|
39
|
+
inset-block-end: auto;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
basic-toast[data-toast-position="top-center"] [data-toast-panel] {
|
|
43
|
+
inset-block-start: var(--basic-toast-offset);
|
|
44
|
+
inset-inline-start: 50%;
|
|
45
|
+
inset-inline-end: auto;
|
|
46
|
+
inset-block-end: auto;
|
|
47
|
+
transform: translateX(-50%);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
basic-toast[data-toast-position="top-right"] [data-toast-panel] {
|
|
51
|
+
inset-block-start: var(--basic-toast-offset);
|
|
52
|
+
inset-inline-start: auto;
|
|
53
|
+
inset-inline-end: var(--basic-toast-offset);
|
|
54
|
+
inset-block-end: auto;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
basic-toast[data-toast-position="center-left"] [data-toast-panel] {
|
|
58
|
+
inset-block-start: 50%;
|
|
59
|
+
inset-inline-start: var(--basic-toast-offset);
|
|
60
|
+
inset-inline-end: auto;
|
|
61
|
+
inset-block-end: auto;
|
|
62
|
+
transform: translateY(-50%);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
basic-toast[data-toast-position="center"] [data-toast-panel] {
|
|
66
|
+
inset-block-start: 50%;
|
|
67
|
+
inset-inline-start: 50%;
|
|
68
|
+
inset-inline-end: auto;
|
|
69
|
+
inset-block-end: auto;
|
|
70
|
+
transform: translate(-50%, -50%);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
basic-toast[data-toast-position="center-right"] [data-toast-panel] {
|
|
74
|
+
inset-block-start: 50%;
|
|
75
|
+
inset-inline-start: auto;
|
|
76
|
+
inset-inline-end: var(--basic-toast-offset);
|
|
77
|
+
inset-block-end: auto;
|
|
78
|
+
transform: translateY(-50%);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
basic-toast[data-toast-position="bottom-left"] [data-toast-panel] {
|
|
82
|
+
inset-block-start: auto;
|
|
83
|
+
inset-inline-start: var(--basic-toast-offset);
|
|
84
|
+
inset-inline-end: auto;
|
|
85
|
+
inset-block-end: var(--basic-toast-offset);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
basic-toast[data-toast-position="bottom-center"] [data-toast-panel] {
|
|
89
|
+
inset-block-start: auto;
|
|
90
|
+
inset-inline-start: 50%;
|
|
91
|
+
inset-inline-end: auto;
|
|
92
|
+
inset-block-end: var(--basic-toast-offset);
|
|
93
|
+
transform: translateX(-50%);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
basic-toast [data-toast-panel] > :where(*) {
|
|
97
|
+
margin-block: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
basic-toast [data-toast-panel] > :where(* + *) {
|
|
101
|
+
margin-block-start: var(--basic-flow-space);
|
|
102
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
basic-toc {
|
|
2
|
+
--basic-toc-panel-padding: var(--basic-panel-padding);
|
|
3
|
+
display: block;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
basic-toc [data-page-toc-nav] {
|
|
7
|
+
padding: var(--basic-toc-panel-padding);
|
|
8
|
+
border: var(--basic-border-width) solid var(--basic-color-border);
|
|
9
|
+
border-radius: var(--basic-radius);
|
|
10
|
+
background: var(--basic-color-surface);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
basic-toc [data-page-toc-nav] ol {
|
|
14
|
+
margin: 0;
|
|
15
|
+
padding-left: var(--basic-toc-list-indent, 1.25rem);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
basic-toc [data-page-toc-nav] li + li {
|
|
19
|
+
margin-top: var(--basic-space-2);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
basic-toc [data-page-toc-nav] ol ol {
|
|
23
|
+
margin-top: var(--basic-space-2);
|
|
24
|
+
padding-left: var(--basic-space-4);
|
|
25
|
+
border-left: var(--basic-border-width) solid var(--basic-color-border);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
basic-toc [data-page-toc-nav] a {
|
|
29
|
+
color: inherit;
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@import "./components/basic-alert.css";
|
|
2
|
+
@import "./components/basic-accordion.css";
|
|
3
|
+
@import "./components/basic-carousel.css";
|
|
4
|
+
@import "./components/basic-dialog.css";
|
|
5
|
+
@import "./components/basic-popover.css";
|
|
6
|
+
@import "./components/basic-table.css";
|
|
7
|
+
@import "./components/basic-summary-table.css";
|
|
8
|
+
@import "./components/basic-tabs.css";
|
|
9
|
+
@import "./components/basic-toc.css";
|
|
10
|
+
@import "./components/basic-toast.css";
|
|
11
|
+
@import "./interaction.css";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
:where(label):has(> input:is([type="checkbox"], [type="radio"])[data-panel]) {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: auto 1fr;
|
|
4
|
+
gap: var(--basic-space-3);
|
|
5
|
+
align-items: start;
|
|
6
|
+
padding: var(--basic-space-4);
|
|
7
|
+
border: var(--basic-border-width) solid var(--basic-color-border);
|
|
8
|
+
background: var(--basic-color-surface);
|
|
9
|
+
color: inherit;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:where(label):has(> input:is([type="checkbox"], [type="radio"])[data-panel]:enabled):where(:hover) {
|
|
14
|
+
border-color: var(--basic-color-border-hover);
|
|
15
|
+
background: var(--basic-color-surface-hover);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where(label):has(> input:is([type="checkbox"], [type="radio"])[data-panel]:checked) {
|
|
19
|
+
border-color: var(--basic-color-border-selected);
|
|
20
|
+
background: var(--basic-color-surface-selected);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where(label):has(> input:is([type="checkbox"], [type="radio"])[data-panel]:disabled) {
|
|
24
|
+
opacity: 0.7;
|
|
25
|
+
cursor: not-allowed;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where(label):has(> input:is([type="checkbox"], [type="radio"])[data-panel]:focus-visible) {
|
|
29
|
+
outline: 3px solid var(--basic-color-focus);
|
|
30
|
+
outline-offset: 2px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(label):has(> input:is([type="checkbox"], [type="radio"])[data-panel]) > input:is([type="checkbox"], [type="radio"])[data-panel] {
|
|
34
|
+
width: auto;
|
|
35
|
+
margin-top: 0.15rem;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:where(label):has(> input:is([type="checkbox"], [type="radio"])[data-panel]) > :not(input:is([type="checkbox"], [type="radio"])[data-panel]) {
|
|
39
|
+
min-width: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where(label):has(> input:is([type="checkbox"], [type="radio"])[data-panel]) > :not(input:is([type="checkbox"], [type="radio"])[data-panel]):where(span, div) {
|
|
43
|
+
display: grid;
|
|
44
|
+
gap: var(--basic-space-1);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:where(label):has(> input:is([type="checkbox"], [type="radio"])[data-panel]) strong {
|
|
48
|
+
display: block;
|
|
49
|
+
color: var(--basic-color-text);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where(label):has(> input:is([type="checkbox"], [type="radio"])[data-panel]) :is(p, small) {
|
|
53
|
+
margin: 0;
|
|
54
|
+
color: var(--basic-color-text-muted);
|
|
55
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@import "./tokens/base.css";
|
|
2
|
+
@import "./tokens/palette.css";
|
|
3
|
+
@import "./forms.css";
|
|
4
|
+
|
|
5
|
+
html {
|
|
6
|
+
color-scheme: light dark;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
*,
|
|
10
|
+
*::before,
|
|
11
|
+
*::after {
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
body {
|
|
16
|
+
margin: 0;
|
|
17
|
+
background: var(--basic-color-background);
|
|
18
|
+
color: var(--basic-color-text);
|
|
19
|
+
font-family: var(--basic-font-family);
|
|
20
|
+
font-size: var(--basic-font-size);
|
|
21
|
+
line-height: var(--basic-line-height);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
img,
|
|
25
|
+
svg,
|
|
26
|
+
video {
|
|
27
|
+
display: block;
|
|
28
|
+
max-width: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
button,
|
|
32
|
+
input,
|
|
33
|
+
select,
|
|
34
|
+
textarea {
|
|
35
|
+
font: inherit;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
a {
|
|
39
|
+
color: inherit;
|
|
40
|
+
text-underline-offset: 0.16em;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
a:hover {
|
|
44
|
+
color: inherit;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:focus-visible {
|
|
48
|
+
outline: 3px solid var(--basic-color-focus);
|
|
49
|
+
outline-offset: 2px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
dialog {
|
|
53
|
+
color: inherit;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
dialog::backdrop {
|
|
57
|
+
background: var(--basic-color-overlay);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[hidden] {
|
|
61
|
+
display: none !important;
|
|
62
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
:where(
|
|
2
|
+
basic-alert [data-alert-close],
|
|
3
|
+
basic-dialog :is([data-dialog-open], [data-dialog-close]),
|
|
4
|
+
basic-popover :is([data-popover-open], [data-popover-close]),
|
|
5
|
+
basic-toast :is([data-toast-open], [data-toast-close]),
|
|
6
|
+
basic-tabs [data-tab],
|
|
7
|
+
basic-accordion > details > summary
|
|
8
|
+
) {
|
|
9
|
+
--basic-interaction-state: rest;
|
|
10
|
+
--basic-interaction-surface-rest: var(--basic-color-surface);
|
|
11
|
+
--basic-interaction-surface-hover: var(--basic-color-surface-hover);
|
|
12
|
+
--basic-interaction-surface-active: var(--basic-color-surface-active);
|
|
13
|
+
--basic-interaction-surface-selected: var(--basic-color-surface-selected);
|
|
14
|
+
--basic-interaction-surface-checked: var(--basic-color-surface-checked);
|
|
15
|
+
--basic-interaction-border-rest: var(--basic-color-border);
|
|
16
|
+
--basic-interaction-border-hover: var(--basic-color-border-hover);
|
|
17
|
+
--basic-interaction-border-active: var(--basic-color-border-active);
|
|
18
|
+
--basic-interaction-border-selected: var(--basic-color-border-selected);
|
|
19
|
+
--basic-interaction-border-checked: var(--basic-color-border-checked);
|
|
20
|
+
--basic-interaction-text-rest: inherit;
|
|
21
|
+
--basic-interaction-text-hover: var(--basic-interaction-text-rest);
|
|
22
|
+
--basic-interaction-text-active: var(--basic-interaction-text-hover);
|
|
23
|
+
--basic-interaction-text-selected: var(--basic-interaction-text-rest);
|
|
24
|
+
--basic-interaction-text-checked: var(--basic-interaction-text-rest);
|
|
25
|
+
|
|
26
|
+
position: relative;
|
|
27
|
+
isolation: isolate;
|
|
28
|
+
container-type: normal;
|
|
29
|
+
background: transparent;
|
|
30
|
+
border-color: transparent;
|
|
31
|
+
color: var(--basic-interaction-text-rest);
|
|
32
|
+
|
|
33
|
+
&::before {
|
|
34
|
+
content: "";
|
|
35
|
+
position: absolute;
|
|
36
|
+
inset: 0;
|
|
37
|
+
z-index: -1;
|
|
38
|
+
border-radius: inherit;
|
|
39
|
+
background: var(--basic-interaction-surface-rest);
|
|
40
|
+
box-shadow: 0 0 0 var(--basic-border-width) var(--basic-interaction-border-rest);
|
|
41
|
+
pointer-events: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:where(:hover, :focus-visible) {
|
|
45
|
+
--basic-interaction-state: hover;
|
|
46
|
+
color: var(--basic-interaction-text-hover);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:active {
|
|
50
|
+
--basic-interaction-state: active;
|
|
51
|
+
color: var(--basic-interaction-text-active);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@container style(--basic-interaction-state: hover) {
|
|
55
|
+
&::before {
|
|
56
|
+
background: var(--basic-interaction-surface-hover);
|
|
57
|
+
box-shadow: 0 0 0 var(--basic-border-width) var(--basic-interaction-border-hover);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@container style(--basic-interaction-state: active) {
|
|
62
|
+
&::before {
|
|
63
|
+
background: var(--basic-interaction-surface-active);
|
|
64
|
+
box-shadow: 0 0 0 var(--basic-border-width) var(--basic-interaction-border-active);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@container style(--basic-interaction-state: selected) {
|
|
69
|
+
&::before {
|
|
70
|
+
background: var(--basic-interaction-surface-selected);
|
|
71
|
+
box-shadow: 0 0 0 var(--basic-border-width) var(--basic-interaction-border-selected);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@container style(--basic-interaction-state: checked) {
|
|
76
|
+
&::before {
|
|
77
|
+
background: var(--basic-interaction-surface-checked);
|
|
78
|
+
box-shadow: 0 0 0 var(--basic-border-width) var(--basic-interaction-border-checked);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:where(
|
|
84
|
+
basic-accordion > details[open] > summary,
|
|
85
|
+
basic-popover [data-popover-open][aria-expanded="true"],
|
|
86
|
+
basic-tabs [data-tab][aria-selected="true"]
|
|
87
|
+
) {
|
|
88
|
+
--basic-interaction-state: selected;
|
|
89
|
+
color: var(--basic-interaction-text-selected);
|
|
90
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--basic-font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
3
|
+
--basic-font-size: 1rem;
|
|
4
|
+
--basic-font-size-title: 1.125rem;
|
|
5
|
+
--basic-line-height: 1.5;
|
|
6
|
+
--basic-border-width: 1px;
|
|
7
|
+
--basic-radius: 0.5rem;
|
|
8
|
+
--basic-radius-pill: 999px;
|
|
9
|
+
--basic-space-1: 0.25rem;
|
|
10
|
+
--basic-space-2: 0.5rem;
|
|
11
|
+
--basic-space-3: 0.75rem;
|
|
12
|
+
--basic-space-4: 1rem;
|
|
13
|
+
--basic-space-5: 1.5rem;
|
|
14
|
+
--basic-flow-space: var(--basic-space-3);
|
|
15
|
+
--basic-stack-gap: var(--basic-space-3);
|
|
16
|
+
--basic-panel-padding: var(--basic-space-4);
|
|
17
|
+
--basic-control-padding-block: 0.625rem;
|
|
18
|
+
--basic-control-padding-inline: var(--basic-space-4);
|
|
19
|
+
}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--basic-palette-surface-light: oklch(98.6% 0.004 255);
|
|
3
|
+
--basic-palette-surface-dark: oklch(27.8% 0.033 256.848);
|
|
4
|
+
--basic-palette-text-light: oklch(21% 0.034 264.665);
|
|
5
|
+
--basic-palette-text-dark: oklch(98.5% 0.002 247.839);
|
|
6
|
+
--basic-palette-accent-light: oklch(54.6% 0.245 262.881);
|
|
7
|
+
--basic-palette-accent-dark: oklch(70.7% 0.165 254.624);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[data-basic-palette="sand"] {
|
|
11
|
+
--basic-palette-surface-light: oklch(97.8% 0.012 85);
|
|
12
|
+
--basic-palette-surface-dark: oklch(30.5% 0.022 75);
|
|
13
|
+
--basic-palette-text-light: oklch(29% 0.028 65);
|
|
14
|
+
--basic-palette-text-dark: oklch(96.4% 0.01 85);
|
|
15
|
+
--basic-palette-accent-light: oklch(63% 0.18 58);
|
|
16
|
+
--basic-palette-accent-dark: oklch(76% 0.14 72);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-basic-palette="ocean"] {
|
|
20
|
+
--basic-palette-surface-light: oklch(97.4% 0.01 225);
|
|
21
|
+
--basic-palette-surface-dark: oklch(30% 0.04 245);
|
|
22
|
+
--basic-palette-text-light: oklch(28% 0.05 250);
|
|
23
|
+
--basic-palette-text-dark: oklch(95.2% 0.01 225);
|
|
24
|
+
--basic-palette-accent-light: oklch(62% 0.14 222);
|
|
25
|
+
--basic-palette-accent-dark: oklch(77% 0.11 210);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-basic-palette="berry"] {
|
|
29
|
+
--basic-palette-surface-light: oklch(97.2% 0.012 10);
|
|
30
|
+
--basic-palette-surface-dark: oklch(30.2% 0.05 5);
|
|
31
|
+
--basic-palette-text-light: oklch(27.5% 0.06 8);
|
|
32
|
+
--basic-palette-text-dark: oklch(95.8% 0.012 8);
|
|
33
|
+
--basic-palette-accent-light: oklch(60% 0.2 12);
|
|
34
|
+
--basic-palette-accent-dark: oklch(73% 0.16 8);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:root,
|
|
38
|
+
[data-basic-palette] {
|
|
39
|
+
--basic-palette-background-light: color-mix(in oklch, var(--basic-palette-surface-light) 92%, oklch(100% 0 0));
|
|
40
|
+
--basic-palette-background-dark: color-mix(in oklch, var(--basic-palette-surface-dark) 82%, oklch(0% 0 0));
|
|
41
|
+
--basic-palette-surface-light-computed: color-mix(
|
|
42
|
+
in oklch,
|
|
43
|
+
var(--basic-palette-surface-light) 96%,
|
|
44
|
+
oklch(100% 0 0)
|
|
45
|
+
);
|
|
46
|
+
--basic-palette-surface-dark-computed: color-mix(
|
|
47
|
+
in oklch,
|
|
48
|
+
var(--basic-palette-surface-dark) 94%,
|
|
49
|
+
oklch(0% 0 0)
|
|
50
|
+
);
|
|
51
|
+
--basic-palette-surface-muted-light: color-mix(
|
|
52
|
+
in oklch,
|
|
53
|
+
var(--basic-palette-accent-light) 10%,
|
|
54
|
+
var(--basic-palette-surface-light)
|
|
55
|
+
);
|
|
56
|
+
--basic-palette-surface-muted-dark: color-mix(
|
|
57
|
+
in oklch,
|
|
58
|
+
var(--basic-palette-accent-dark) 18%,
|
|
59
|
+
var(--basic-palette-surface-dark)
|
|
60
|
+
);
|
|
61
|
+
--basic-palette-surface-hover-light: color-mix(
|
|
62
|
+
in oklch,
|
|
63
|
+
var(--basic-palette-accent-light) 12%,
|
|
64
|
+
var(--basic-palette-surface-light)
|
|
65
|
+
);
|
|
66
|
+
--basic-palette-surface-hover-dark: color-mix(
|
|
67
|
+
in oklch,
|
|
68
|
+
var(--basic-palette-accent-dark) 20%,
|
|
69
|
+
var(--basic-palette-surface-dark)
|
|
70
|
+
);
|
|
71
|
+
--basic-palette-surface-active-light: color-mix(
|
|
72
|
+
in oklch,
|
|
73
|
+
var(--basic-palette-accent-light) 16%,
|
|
74
|
+
var(--basic-palette-surface-light)
|
|
75
|
+
);
|
|
76
|
+
--basic-palette-surface-active-dark: color-mix(
|
|
77
|
+
in oklch,
|
|
78
|
+
var(--basic-palette-accent-dark) 26%,
|
|
79
|
+
var(--basic-palette-surface-dark)
|
|
80
|
+
);
|
|
81
|
+
--basic-palette-surface-selected-light: color-mix(
|
|
82
|
+
in oklch,
|
|
83
|
+
var(--basic-palette-accent-light) 14%,
|
|
84
|
+
var(--basic-palette-surface-light)
|
|
85
|
+
);
|
|
86
|
+
--basic-palette-surface-selected-dark: color-mix(
|
|
87
|
+
in oklch,
|
|
88
|
+
var(--basic-palette-accent-dark) 24%,
|
|
89
|
+
var(--basic-palette-surface-dark)
|
|
90
|
+
);
|
|
91
|
+
--basic-palette-surface-checked-light: color-mix(
|
|
92
|
+
in oklch,
|
|
93
|
+
var(--basic-palette-accent-light) 18%,
|
|
94
|
+
var(--basic-palette-surface-light)
|
|
95
|
+
);
|
|
96
|
+
--basic-palette-surface-checked-dark: color-mix(
|
|
97
|
+
in oklch,
|
|
98
|
+
var(--basic-palette-accent-dark) 30%,
|
|
99
|
+
var(--basic-palette-surface-dark)
|
|
100
|
+
);
|
|
101
|
+
--basic-palette-text-muted-light: color-mix(
|
|
102
|
+
in oklch,
|
|
103
|
+
var(--basic-palette-text-light) 68%,
|
|
104
|
+
var(--basic-palette-surface-light)
|
|
105
|
+
);
|
|
106
|
+
--basic-palette-text-muted-dark: color-mix(
|
|
107
|
+
in oklch,
|
|
108
|
+
var(--basic-palette-text-dark) 78%,
|
|
109
|
+
var(--basic-palette-surface-dark)
|
|
110
|
+
);
|
|
111
|
+
--basic-palette-border-light: color-mix(
|
|
112
|
+
in oklch,
|
|
113
|
+
var(--basic-palette-text-light) 16%,
|
|
114
|
+
var(--basic-palette-surface-light)
|
|
115
|
+
);
|
|
116
|
+
--basic-palette-border-dark: color-mix(
|
|
117
|
+
in oklch,
|
|
118
|
+
var(--basic-palette-text-dark) 24%,
|
|
119
|
+
var(--basic-palette-surface-dark)
|
|
120
|
+
);
|
|
121
|
+
--basic-palette-border-hover-light: color-mix(
|
|
122
|
+
in oklch,
|
|
123
|
+
var(--basic-palette-accent-light) 18%,
|
|
124
|
+
var(--basic-palette-border-light)
|
|
125
|
+
);
|
|
126
|
+
--basic-palette-border-hover-dark: color-mix(
|
|
127
|
+
in oklch,
|
|
128
|
+
var(--basic-palette-accent-dark) 28%,
|
|
129
|
+
var(--basic-palette-border-dark)
|
|
130
|
+
);
|
|
131
|
+
--basic-palette-border-active-light: color-mix(
|
|
132
|
+
in oklch,
|
|
133
|
+
var(--basic-palette-accent-light) 24%,
|
|
134
|
+
var(--basic-palette-border-light)
|
|
135
|
+
);
|
|
136
|
+
--basic-palette-border-active-dark: color-mix(
|
|
137
|
+
in oklch,
|
|
138
|
+
var(--basic-palette-accent-dark) 36%,
|
|
139
|
+
var(--basic-palette-border-dark)
|
|
140
|
+
);
|
|
141
|
+
--basic-palette-border-selected-light: color-mix(
|
|
142
|
+
in oklch,
|
|
143
|
+
var(--basic-palette-accent-light) 22%,
|
|
144
|
+
var(--basic-palette-border-light)
|
|
145
|
+
);
|
|
146
|
+
--basic-palette-border-selected-dark: color-mix(
|
|
147
|
+
in oklch,
|
|
148
|
+
var(--basic-palette-accent-dark) 34%,
|
|
149
|
+
var(--basic-palette-border-dark)
|
|
150
|
+
);
|
|
151
|
+
--basic-palette-border-checked-light: color-mix(
|
|
152
|
+
in oklch,
|
|
153
|
+
var(--basic-palette-accent-light) 28%,
|
|
154
|
+
var(--basic-palette-border-light)
|
|
155
|
+
);
|
|
156
|
+
--basic-palette-border-checked-dark: color-mix(
|
|
157
|
+
in oklch,
|
|
158
|
+
var(--basic-palette-accent-dark) 40%,
|
|
159
|
+
var(--basic-palette-border-dark)
|
|
160
|
+
);
|
|
161
|
+
--basic-palette-overlay-light: color-mix(
|
|
162
|
+
in oklch,
|
|
163
|
+
var(--basic-palette-text-light) 24%,
|
|
164
|
+
oklch(0% 0 0 / 0)
|
|
165
|
+
);
|
|
166
|
+
--basic-palette-overlay-dark: color-mix(in oklch, oklch(0% 0 0) 56%, oklch(0% 0 0 / 0));
|
|
167
|
+
--basic-palette-focus-light: color-mix(
|
|
168
|
+
in oklch,
|
|
169
|
+
var(--basic-palette-accent-light) 28%,
|
|
170
|
+
oklch(0% 0 0 / 0)
|
|
171
|
+
);
|
|
172
|
+
--basic-palette-focus-dark: color-mix(
|
|
173
|
+
in oklch,
|
|
174
|
+
var(--basic-palette-accent-dark) 38%,
|
|
175
|
+
oklch(0% 0 0 / 0)
|
|
176
|
+
);
|
|
177
|
+
--basic-color-background: light-dark(
|
|
178
|
+
var(--basic-palette-background-light),
|
|
179
|
+
var(--basic-palette-background-dark)
|
|
180
|
+
);
|
|
181
|
+
--basic-color-surface: light-dark(
|
|
182
|
+
var(--basic-palette-surface-light-computed),
|
|
183
|
+
var(--basic-palette-surface-dark-computed)
|
|
184
|
+
);
|
|
185
|
+
--basic-color-surface-muted: light-dark(
|
|
186
|
+
var(--basic-palette-surface-muted-light),
|
|
187
|
+
var(--basic-palette-surface-muted-dark)
|
|
188
|
+
);
|
|
189
|
+
--basic-color-surface-hover: light-dark(
|
|
190
|
+
var(--basic-palette-surface-hover-light),
|
|
191
|
+
var(--basic-palette-surface-hover-dark)
|
|
192
|
+
);
|
|
193
|
+
--basic-color-surface-active: light-dark(
|
|
194
|
+
var(--basic-palette-surface-active-light),
|
|
195
|
+
var(--basic-palette-surface-active-dark)
|
|
196
|
+
);
|
|
197
|
+
--basic-color-surface-selected: light-dark(
|
|
198
|
+
var(--basic-palette-surface-selected-light),
|
|
199
|
+
var(--basic-palette-surface-selected-dark)
|
|
200
|
+
);
|
|
201
|
+
--basic-color-surface-checked: light-dark(
|
|
202
|
+
var(--basic-palette-surface-checked-light),
|
|
203
|
+
var(--basic-palette-surface-checked-dark)
|
|
204
|
+
);
|
|
205
|
+
--basic-color-text: light-dark(var(--basic-palette-text-light), var(--basic-palette-text-dark));
|
|
206
|
+
--basic-color-text-muted: light-dark(
|
|
207
|
+
var(--basic-palette-text-muted-light),
|
|
208
|
+
var(--basic-palette-text-muted-dark)
|
|
209
|
+
);
|
|
210
|
+
--basic-color-border: light-dark(var(--basic-palette-border-light), var(--basic-palette-border-dark));
|
|
211
|
+
--basic-color-border-hover: light-dark(
|
|
212
|
+
var(--basic-palette-border-hover-light),
|
|
213
|
+
var(--basic-palette-border-hover-dark)
|
|
214
|
+
);
|
|
215
|
+
--basic-color-border-active: light-dark(
|
|
216
|
+
var(--basic-palette-border-active-light),
|
|
217
|
+
var(--basic-palette-border-active-dark)
|
|
218
|
+
);
|
|
219
|
+
--basic-color-border-selected: light-dark(
|
|
220
|
+
var(--basic-palette-border-selected-light),
|
|
221
|
+
var(--basic-palette-border-selected-dark)
|
|
222
|
+
);
|
|
223
|
+
--basic-color-border-checked: light-dark(
|
|
224
|
+
var(--basic-palette-border-checked-light),
|
|
225
|
+
var(--basic-palette-border-checked-dark)
|
|
226
|
+
);
|
|
227
|
+
--basic-color-overlay: light-dark(var(--basic-palette-overlay-light), var(--basic-palette-overlay-dark));
|
|
228
|
+
--basic-color-focus: light-dark(var(--basic-palette-focus-light), var(--basic-palette-focus-dark));
|
|
229
|
+
}
|