@sondor-technology/sondor-components 1.0.0 → 1.0.1-develop.2
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/README.md +8 -0
- package/dist/components/alert/alert.d.ts +13 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/alert/alert.js +105 -0
- package/dist/components/badge/badge.d.ts +13 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/badge.js +101 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +19 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.js +99 -0
- package/dist/components/button/button.d.ts +23 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/button.js +304 -0
- package/dist/components/button-group/button-group.d.ts +6 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -0
- package/dist/components/button-group/button-group.js +74 -0
- package/dist/components/card/card.d.ts +11 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/card.js +54 -0
- package/dist/components/checkbox/checkbox.d.ts +28 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.js +247 -0
- package/dist/components/code-block/code-block.d.ts +20 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/code-block.js +260 -0
- package/dist/components/content-card/content-card.d.ts +13 -0
- package/dist/components/content-card/content-card.d.ts.map +1 -0
- package/dist/components/content-card/content-card.js +140 -0
- package/dist/components/divider/divider.d.ts +16 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/divider/divider.js +82 -0
- package/dist/components/drawer/drawer.d.ts +22 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/drawer.js +226 -0
- package/dist/components/field/field.d.ts +11 -0
- package/dist/components/field/field.d.ts.map +1 -0
- package/dist/components/field/field.js +32 -0
- package/dist/components/footer/footer.d.ts +6 -0
- package/dist/components/footer/footer.d.ts.map +1 -0
- package/dist/components/footer/footer.js +65 -0
- package/dist/components/form/form-step.d.ts +13 -0
- package/dist/components/form/form-step.d.ts.map +1 -0
- package/dist/components/form/form-step.js +41 -0
- package/dist/components/form/form.d.ts +25 -0
- package/dist/components/form/form.d.ts.map +1 -0
- package/dist/components/form/form.js +358 -0
- package/dist/components/grid/grid-row.d.ts +17 -0
- package/dist/components/grid/grid-row.d.ts.map +1 -0
- package/dist/components/grid/grid-row.js +92 -0
- package/dist/components/grid/grid.d.ts +13 -0
- package/dist/components/grid/grid.d.ts.map +1 -0
- package/dist/components/grid/grid.js +42 -0
- package/dist/components/icon/icon-paths.d.ts +116 -0
- package/dist/components/icon/icon-paths.d.ts.map +1 -0
- package/dist/components/icon/icon-paths.js +121 -0
- package/dist/components/icon/icon.d.ts +16 -0
- package/dist/components/icon/icon.d.ts.map +1 -0
- package/dist/components/icon/icon.js +95 -0
- package/dist/components/input/input.d.ts +31 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/input/input.js +268 -0
- package/dist/components/link/link.d.ts +16 -0
- package/dist/components/link/link.d.ts.map +1 -0
- package/dist/components/link/link.js +116 -0
- package/dist/components/metadata/metadata.d.ts +18 -0
- package/dist/components/metadata/metadata.d.ts.map +1 -0
- package/dist/components/metadata/metadata.js +71 -0
- package/dist/components/modal/modal.d.ts +24 -0
- package/dist/components/modal/modal.d.ts.map +1 -0
- package/dist/components/modal/modal.js +163 -0
- package/dist/components/page-layout/page-layout.d.ts +46 -0
- package/dist/components/page-layout/page-layout.d.ts.map +1 -0
- package/dist/components/page-layout/page-layout.js +697 -0
- package/dist/components/radio/radio.d.ts +16 -0
- package/dist/components/radio/radio.d.ts.map +1 -0
- package/dist/components/radio/radio.js +152 -0
- package/dist/components/radio-group/radio-group.d.ts +27 -0
- package/dist/components/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group/radio-group.js +161 -0
- package/dist/components/router/router.d.ts +7 -0
- package/dist/components/router/router.d.ts.map +1 -0
- package/dist/components/router/router.js +37 -0
- package/dist/components/select/select.d.ts +16 -0
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/select/select.js +172 -0
- package/dist/components/skeleton/skeleton.d.ts +17 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.js +78 -0
- package/dist/components/switch/switch.d.ts +25 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/switch/switch.js +185 -0
- package/dist/components/table/data-table.d.ts +72 -0
- package/dist/components/table/data-table.d.ts.map +1 -0
- package/dist/components/table/data-table.js +551 -0
- package/dist/components/table/table.d.ts +22 -0
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/table/table.js +167 -0
- package/dist/components/tabs/tab-panel.d.ts +8 -0
- package/dist/components/tabs/tab-panel.d.ts.map +1 -0
- package/dist/components/tabs/tab-panel.js +46 -0
- package/dist/components/tabs/tab.d.ts +9 -0
- package/dist/components/tabs/tab.d.ts.map +1 -0
- package/dist/components/tabs/tab.js +91 -0
- package/dist/components/tabs/tabs.d.ts +14 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tabs/tabs.js +85 -0
- package/dist/components/textarea/textarea.d.ts +36 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -0
- package/dist/components/textarea/textarea.js +231 -0
- package/dist/components/theme-toggle/theme-toggle.d.ts +15 -0
- package/dist/components/theme-toggle/theme-toggle.d.ts.map +1 -0
- package/dist/components/theme-toggle/theme-toggle.js +130 -0
- package/dist/components/vertical-nav/vertical-nav-group.d.ts +9 -0
- package/dist/components/vertical-nav/vertical-nav-group.d.ts.map +1 -0
- package/dist/components/vertical-nav/vertical-nav-group.js +111 -0
- package/dist/components/vertical-nav/vertical-nav-item.d.ts +8 -0
- package/dist/components/vertical-nav/vertical-nav-item.d.ts.map +1 -0
- package/dist/components/vertical-nav/vertical-nav-item.js +65 -0
- package/dist/styles/index.css +171 -0
- package/dist/styles/reset.d.ts +2 -0
- package/dist/styles/reset.d.ts.map +1 -0
- package/dist/styles/reset.js +50 -0
- package/package.json +3 -2
- package/src/components/alert/alert.ts +100 -100
- package/src/components/badge/badge.ts +96 -96
- package/src/components/breadcrumb/breadcrumb.ts +98 -98
- package/src/components/button/button.ts +281 -281
- package/src/components/button-group/button-group.ts +67 -67
- package/src/components/card/card.ts +52 -52
- package/src/components/checkbox/checkbox.ts +238 -238
- package/src/components/code-block/code-block.ts +256 -256
- package/src/components/content-card/content-card.ts +133 -133
- package/src/components/divider/divider.ts +68 -68
- package/src/components/drawer/drawer.ts +217 -217
- package/src/components/field/field.ts +30 -30
- package/src/components/footer/footer.ts +58 -58
- package/src/components/form/form-step.ts +32 -32
- package/src/components/form/form.ts +376 -376
- package/src/components/grid/grid-row.ts +75 -75
- package/src/components/grid/grid.ts +36 -36
- package/src/components/icon/icon-paths.ts +124 -124
- package/src/components/icon/icon.ts +82 -82
- package/src/components/input/input.ts +248 -248
- package/src/components/link/link.ts +97 -97
- package/src/components/metadata/metadata.ts +66 -66
- package/src/components/modal/modal.ts +158 -158
- package/src/components/page-layout/page-layout.ts +704 -704
- package/src/components/radio/radio.ts +142 -142
- package/src/components/radio-group/radio-group.ts +157 -157
- package/src/components/router/router.ts +46 -46
- package/src/components/select/select.ts +161 -161
- package/src/components/skeleton/skeleton.ts +67 -67
- package/src/components/switch/switch.ts +181 -181
- package/src/components/table/data-table.ts +556 -556
- package/src/components/table/table.ts +153 -153
- package/src/components/tabs/tab-panel.ts +30 -30
- package/src/components/tabs/tab.ts +76 -76
- package/src/components/tabs/tabs.ts +88 -88
- package/src/components/textarea/textarea.ts +215 -215
- package/src/components/theme-toggle/theme-toggle.ts +131 -131
- package/src/components/vertical-nav/vertical-nav-group.ts +96 -96
- package/src/components/vertical-nav/vertical-nav-item.ts +49 -49
- package/src/styles/globals.css +58 -58
- package/src/styles/index.css +80 -80
- package/src/styles/reset.ts +50 -50
- package/src/styles/theme.css +58 -58
- package/src/styles/typography.css +25 -25
- package/tsconfig.json +15 -15
package/src/styles/index.css
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
@import "./globals.css";
|
|
2
|
-
@import "./typography.css";
|
|
3
|
-
@import "./theme.css";
|
|
4
|
-
|
|
5
|
-
/* Hide custom elements before they are initialized */
|
|
6
|
-
:not(:defined) {
|
|
7
|
-
visibility: hidden;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/* Base document styles for consuming apps */
|
|
11
|
-
body {
|
|
12
|
-
background-color: var(--st-color-bg);
|
|
13
|
-
color: var(--st-color-text);
|
|
14
|
-
font-family: var(--st-font-family);
|
|
15
|
-
font-size: var(--st-font-size-base);
|
|
16
|
-
line-height: var(--st-line-height-normal);
|
|
17
|
-
-webkit-font-smoothing: antialiased; /* Makes fonts look sharper on Mac */
|
|
18
|
-
padding: 0;
|
|
19
|
-
margin: 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/* Base Headings */
|
|
23
|
-
h1,
|
|
24
|
-
h2,
|
|
25
|
-
h3,
|
|
26
|
-
h4,
|
|
27
|
-
h5,
|
|
28
|
-
h6 {
|
|
29
|
-
color: var(--st-color-text);
|
|
30
|
-
font-weight: var(--st-font-weight-bold);
|
|
31
|
-
line-height: var(--st-line-height-tight);
|
|
32
|
-
margin-top: 0;
|
|
33
|
-
margin-bottom: var(--st-spacing-md);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
h1 {
|
|
37
|
-
font-size: var(--st-font-size-4xl);
|
|
38
|
-
}
|
|
39
|
-
h2 {
|
|
40
|
-
font-size: var(--st-font-size-3xl);
|
|
41
|
-
}
|
|
42
|
-
h3 {
|
|
43
|
-
font-size: var(--st-font-size-2xl);
|
|
44
|
-
}
|
|
45
|
-
h4 {
|
|
46
|
-
font-size: var(--st-font-size-xl);
|
|
47
|
-
}
|
|
48
|
-
h5 {
|
|
49
|
-
font-size: var(--st-font-size-lg);
|
|
50
|
-
}
|
|
51
|
-
h6 {
|
|
52
|
-
font-size: var(--st-font-size-base);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/* Paragraphs & Links */
|
|
56
|
-
p {
|
|
57
|
-
margin-top: 0;
|
|
58
|
-
margin-bottom: var(--st-spacing-md);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
a {
|
|
62
|
-
color: var(--st-color-primary);
|
|
63
|
-
text-decoration: none;
|
|
64
|
-
font-weight: var(--st-font-weight-medium);
|
|
65
|
-
transition: color 0.2s ease;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
a:hover {
|
|
69
|
-
color: var(--st-color-primary-hover);
|
|
70
|
-
text-decoration: underline;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/* Inline Code */
|
|
74
|
-
code {
|
|
75
|
-
font-family: var(--st-font-family-mono);
|
|
76
|
-
font-size: var(--st-font-size-sm);
|
|
77
|
-
background-color: var(--st-color-surface);
|
|
78
|
-
padding: var(--st-spacing-xs) var(--st-spacing-sm);
|
|
79
|
-
border-radius: 4px;
|
|
80
|
-
}
|
|
1
|
+
@import "./globals.css";
|
|
2
|
+
@import "./typography.css";
|
|
3
|
+
@import "./theme.css";
|
|
4
|
+
|
|
5
|
+
/* Hide custom elements before they are initialized */
|
|
6
|
+
:not(:defined) {
|
|
7
|
+
visibility: hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* Base document styles for consuming apps */
|
|
11
|
+
body {
|
|
12
|
+
background-color: var(--st-color-bg);
|
|
13
|
+
color: var(--st-color-text);
|
|
14
|
+
font-family: var(--st-font-family);
|
|
15
|
+
font-size: var(--st-font-size-base);
|
|
16
|
+
line-height: var(--st-line-height-normal);
|
|
17
|
+
-webkit-font-smoothing: antialiased; /* Makes fonts look sharper on Mac */
|
|
18
|
+
padding: 0;
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Base Headings */
|
|
23
|
+
h1,
|
|
24
|
+
h2,
|
|
25
|
+
h3,
|
|
26
|
+
h4,
|
|
27
|
+
h5,
|
|
28
|
+
h6 {
|
|
29
|
+
color: var(--st-color-text);
|
|
30
|
+
font-weight: var(--st-font-weight-bold);
|
|
31
|
+
line-height: var(--st-line-height-tight);
|
|
32
|
+
margin-top: 0;
|
|
33
|
+
margin-bottom: var(--st-spacing-md);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
h1 {
|
|
37
|
+
font-size: var(--st-font-size-4xl);
|
|
38
|
+
}
|
|
39
|
+
h2 {
|
|
40
|
+
font-size: var(--st-font-size-3xl);
|
|
41
|
+
}
|
|
42
|
+
h3 {
|
|
43
|
+
font-size: var(--st-font-size-2xl);
|
|
44
|
+
}
|
|
45
|
+
h4 {
|
|
46
|
+
font-size: var(--st-font-size-xl);
|
|
47
|
+
}
|
|
48
|
+
h5 {
|
|
49
|
+
font-size: var(--st-font-size-lg);
|
|
50
|
+
}
|
|
51
|
+
h6 {
|
|
52
|
+
font-size: var(--st-font-size-base);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Paragraphs & Links */
|
|
56
|
+
p {
|
|
57
|
+
margin-top: 0;
|
|
58
|
+
margin-bottom: var(--st-spacing-md);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
a {
|
|
62
|
+
color: var(--st-color-primary);
|
|
63
|
+
text-decoration: none;
|
|
64
|
+
font-weight: var(--st-font-weight-medium);
|
|
65
|
+
transition: color 0.2s ease;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
a:hover {
|
|
69
|
+
color: var(--st-color-primary-hover);
|
|
70
|
+
text-decoration: underline;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Inline Code */
|
|
74
|
+
code {
|
|
75
|
+
font-family: var(--st-font-family-mono);
|
|
76
|
+
font-size: var(--st-font-size-sm);
|
|
77
|
+
background-color: var(--st-color-surface);
|
|
78
|
+
padding: var(--st-spacing-xs) var(--st-spacing-sm);
|
|
79
|
+
border-radius: 4px;
|
|
80
|
+
}
|
package/src/styles/reset.ts
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
export const resetStyles = css`
|
|
4
|
-
/* 1. Box sizing rules */
|
|
5
|
-
:host,
|
|
6
|
-
*,
|
|
7
|
-
*::before,
|
|
8
|
-
*::after {
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/* 2. Prevent mobile tap highlights and set base behavior */
|
|
13
|
-
:host {
|
|
14
|
-
-webkit-tap-highlight-color: transparent;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* 3. Strip user-agent margins and padding */
|
|
18
|
-
body,
|
|
19
|
-
h1, h2, h3, h4, h5, h6,
|
|
20
|
-
p, figure, blockquote, dl, dd {
|
|
21
|
-
margin: 0;
|
|
22
|
-
padding: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/* 4. Form elements don't inherit typography by default, force them to */
|
|
26
|
-
input,
|
|
27
|
-
button,
|
|
28
|
-
textarea,
|
|
29
|
-
select {
|
|
30
|
-
font: inherit;
|
|
31
|
-
color: inherit;
|
|
32
|
-
margin: 0;
|
|
33
|
-
padding: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* 5. Make media easier to work with */
|
|
37
|
-
img,
|
|
38
|
-
picture,
|
|
39
|
-
svg {
|
|
40
|
-
max-width: 100%;
|
|
41
|
-
display: block;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/* 6. Strip default list styling if you use lists inside components */
|
|
45
|
-
ul,
|
|
46
|
-
ol {
|
|
47
|
-
list-style: none;
|
|
48
|
-
margin: 0;
|
|
49
|
-
padding: 0;
|
|
50
|
-
}
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
|
|
3
|
+
export const resetStyles = css`
|
|
4
|
+
/* 1. Box sizing rules */
|
|
5
|
+
:host,
|
|
6
|
+
*,
|
|
7
|
+
*::before,
|
|
8
|
+
*::after {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* 2. Prevent mobile tap highlights and set base behavior */
|
|
13
|
+
:host {
|
|
14
|
+
-webkit-tap-highlight-color: transparent;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* 3. Strip user-agent margins and padding */
|
|
18
|
+
body,
|
|
19
|
+
h1, h2, h3, h4, h5, h6,
|
|
20
|
+
p, figure, blockquote, dl, dd {
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* 4. Form elements don't inherit typography by default, force them to */
|
|
26
|
+
input,
|
|
27
|
+
button,
|
|
28
|
+
textarea,
|
|
29
|
+
select {
|
|
30
|
+
font: inherit;
|
|
31
|
+
color: inherit;
|
|
32
|
+
margin: 0;
|
|
33
|
+
padding: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* 5. Make media easier to work with */
|
|
37
|
+
img,
|
|
38
|
+
picture,
|
|
39
|
+
svg {
|
|
40
|
+
max-width: 100%;
|
|
41
|
+
display: block;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* 6. Strip default list styling if you use lists inside components */
|
|
45
|
+
ul,
|
|
46
|
+
ol {
|
|
47
|
+
list-style: none;
|
|
48
|
+
margin: 0;
|
|
49
|
+
padding: 0;
|
|
50
|
+
}
|
|
51
51
|
`;
|
package/src/styles/theme.css
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
/* ==========================================================
|
|
2
|
-
Light Mode (Default)
|
|
3
|
-
========================================================== */
|
|
4
|
-
:root,
|
|
5
|
-
:root[data-theme="light"] {
|
|
6
|
-
--st-color-bg: var(--st-white);
|
|
7
|
-
--st-color-surface: var(--st-gray-50);
|
|
8
|
-
--st-color-border: var(--st-gray-200);
|
|
9
|
-
|
|
10
|
-
--st-color-text: var(--st-gray-900);
|
|
11
|
-
--st-color-text-muted: var(--st-gray-700);
|
|
12
|
-
|
|
13
|
-
/* Now referencing the global tokens */
|
|
14
|
-
--st-color-primary: var(--st-purple-600);
|
|
15
|
-
--st-color-primary-hover: var(--st-purple-700);
|
|
16
|
-
|
|
17
|
-
--st-color-error: var(--st-red-600);
|
|
18
|
-
--st-color-error-bg: var(--st-red-100);
|
|
19
|
-
|
|
20
|
-
--st-color-success: var(--st-green-600);
|
|
21
|
-
--st-color-success-bg: var(--st-green-100);
|
|
22
|
-
|
|
23
|
-
--st-color-warning: var(--st-amber-600);
|
|
24
|
-
--st-color-warning-bg: var(--st-amber-100);
|
|
25
|
-
|
|
26
|
-
--st-color-info: var(--st-blue-600);
|
|
27
|
-
--st-color-info-bg: var(--st-blue-100);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* ==========================================================
|
|
31
|
-
Dark Mode
|
|
32
|
-
========================================================== */
|
|
33
|
-
:root:not([data-theme="light"]),
|
|
34
|
-
:root[data-theme="dark"] {
|
|
35
|
-
--st-color-bg: var(--st-gray-900);
|
|
36
|
-
--st-color-surface: var(--st-gray-800);
|
|
37
|
-
--st-color-surface-muted: color-mix(in srgb, var(--st-color-surface), black 15%);
|
|
38
|
-
--st-color-surface-hover: color-mix(in srgb, var(--st-color-surface), white 10%);
|
|
39
|
-
--st-color-border: var(--st-gray-700);
|
|
40
|
-
|
|
41
|
-
--st-color-text: var(--st-gray-50);
|
|
42
|
-
--st-color-text-muted: var(--st-gray-200);
|
|
43
|
-
|
|
44
|
-
/* Swapped to the lighter global token for contrast */
|
|
45
|
-
--st-color-primary: var(--st-purple-400);
|
|
46
|
-
--st-color-primary-hover: var(--st-purple-600);
|
|
47
|
-
|
|
48
|
-
--st-color-error: var(--st-red-500);
|
|
49
|
-
--st-color-error-bg: #451a1a;
|
|
50
|
-
|
|
51
|
-
--st-color-success: var(--st-green-500);
|
|
52
|
-
--st-color-success-bg: #143620;
|
|
53
|
-
|
|
54
|
-
--st-color-warning: var(--st-amber-500);
|
|
55
|
-
--st-color-warning-bg: #422a14;
|
|
56
|
-
|
|
57
|
-
--st-color-info: var(--st-blue-500);
|
|
58
|
-
--st-color-info-bg: #172a54;
|
|
1
|
+
/* ==========================================================
|
|
2
|
+
Light Mode (Default)
|
|
3
|
+
========================================================== */
|
|
4
|
+
:root,
|
|
5
|
+
:root[data-theme="light"] {
|
|
6
|
+
--st-color-bg: var(--st-white);
|
|
7
|
+
--st-color-surface: var(--st-gray-50);
|
|
8
|
+
--st-color-border: var(--st-gray-200);
|
|
9
|
+
|
|
10
|
+
--st-color-text: var(--st-gray-900);
|
|
11
|
+
--st-color-text-muted: var(--st-gray-700);
|
|
12
|
+
|
|
13
|
+
/* Now referencing the global tokens */
|
|
14
|
+
--st-color-primary: var(--st-purple-600);
|
|
15
|
+
--st-color-primary-hover: var(--st-purple-700);
|
|
16
|
+
|
|
17
|
+
--st-color-error: var(--st-red-600);
|
|
18
|
+
--st-color-error-bg: var(--st-red-100);
|
|
19
|
+
|
|
20
|
+
--st-color-success: var(--st-green-600);
|
|
21
|
+
--st-color-success-bg: var(--st-green-100);
|
|
22
|
+
|
|
23
|
+
--st-color-warning: var(--st-amber-600);
|
|
24
|
+
--st-color-warning-bg: var(--st-amber-100);
|
|
25
|
+
|
|
26
|
+
--st-color-info: var(--st-blue-600);
|
|
27
|
+
--st-color-info-bg: var(--st-blue-100);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* ==========================================================
|
|
31
|
+
Dark Mode
|
|
32
|
+
========================================================== */
|
|
33
|
+
:root:not([data-theme="light"]),
|
|
34
|
+
:root[data-theme="dark"] {
|
|
35
|
+
--st-color-bg: var(--st-gray-900);
|
|
36
|
+
--st-color-surface: var(--st-gray-800);
|
|
37
|
+
--st-color-surface-muted: color-mix(in srgb, var(--st-color-surface), black 15%);
|
|
38
|
+
--st-color-surface-hover: color-mix(in srgb, var(--st-color-surface), white 10%);
|
|
39
|
+
--st-color-border: var(--st-gray-700);
|
|
40
|
+
|
|
41
|
+
--st-color-text: var(--st-gray-50);
|
|
42
|
+
--st-color-text-muted: var(--st-gray-200);
|
|
43
|
+
|
|
44
|
+
/* Swapped to the lighter global token for contrast */
|
|
45
|
+
--st-color-primary: var(--st-purple-400);
|
|
46
|
+
--st-color-primary-hover: var(--st-purple-600);
|
|
47
|
+
|
|
48
|
+
--st-color-error: var(--st-red-500);
|
|
49
|
+
--st-color-error-bg: #451a1a;
|
|
50
|
+
|
|
51
|
+
--st-color-success: var(--st-green-500);
|
|
52
|
+
--st-color-success-bg: #143620;
|
|
53
|
+
|
|
54
|
+
--st-color-warning: var(--st-amber-500);
|
|
55
|
+
--st-color-warning-bg: #422a14;
|
|
56
|
+
|
|
57
|
+
--st-color-info: var(--st-blue-500);
|
|
58
|
+
--st-color-info-bg: #172a54;
|
|
59
59
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
/* Font Families */
|
|
3
|
-
--st-font-family-mono: 'Consolas', 'Courier New', monospace;
|
|
4
|
-
--st-font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
|
5
|
-
|
|
6
|
-
/* Font Weights */
|
|
7
|
-
--st-font-weight-regular: 400;
|
|
8
|
-
--st-font-weight-medium: 500;
|
|
9
|
-
--st-font-weight-bold: 700;
|
|
10
|
-
|
|
11
|
-
/* Font Sizes (Scale) - Assuming a 16px browser base */
|
|
12
|
-
--st-font-size-xs: 0.75rem; /* 12px */
|
|
13
|
-
--st-font-size-sm: 0.875rem; /* 14px */
|
|
14
|
-
--st-font-size-base: 1rem; /* 16px */
|
|
15
|
-
--st-font-size-lg: 1.125rem; /* 18px */
|
|
16
|
-
--st-font-size-xl: 1.25rem; /* 20px */
|
|
17
|
-
--st-font-size-2xl: 1.5rem; /* 24px */
|
|
18
|
-
--st-font-size-3xl: 1.875rem; /* 30px */
|
|
19
|
-
--st-font-size-4xl: 2.25rem; /* 36px */
|
|
20
|
-
|
|
21
|
-
/* Line Heights (Leading) */
|
|
22
|
-
--st-line-height-none: 1;
|
|
23
|
-
--st-line-height-tight: 1.25;
|
|
24
|
-
--st-line-height-normal: 1.5;
|
|
25
|
-
--st-line-height-relaxed: 1.75;
|
|
1
|
+
:root {
|
|
2
|
+
/* Font Families */
|
|
3
|
+
--st-font-family-mono: 'Consolas', 'Courier New', monospace;
|
|
4
|
+
--st-font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
|
5
|
+
|
|
6
|
+
/* Font Weights */
|
|
7
|
+
--st-font-weight-regular: 400;
|
|
8
|
+
--st-font-weight-medium: 500;
|
|
9
|
+
--st-font-weight-bold: 700;
|
|
10
|
+
|
|
11
|
+
/* Font Sizes (Scale) - Assuming a 16px browser base */
|
|
12
|
+
--st-font-size-xs: 0.75rem; /* 12px */
|
|
13
|
+
--st-font-size-sm: 0.875rem; /* 14px */
|
|
14
|
+
--st-font-size-base: 1rem; /* 16px */
|
|
15
|
+
--st-font-size-lg: 1.125rem; /* 18px */
|
|
16
|
+
--st-font-size-xl: 1.25rem; /* 20px */
|
|
17
|
+
--st-font-size-2xl: 1.5rem; /* 24px */
|
|
18
|
+
--st-font-size-3xl: 1.875rem; /* 30px */
|
|
19
|
+
--st-font-size-4xl: 2.25rem; /* 36px */
|
|
20
|
+
|
|
21
|
+
/* Line Heights (Leading) */
|
|
22
|
+
--st-line-height-none: 1;
|
|
23
|
+
--st-line-height-tight: 1.25;
|
|
24
|
+
--st-line-height-normal: 1.5;
|
|
25
|
+
--st-line-height-relaxed: 1.75;
|
|
26
26
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2021",
|
|
4
|
-
"module": "es2022",
|
|
5
|
-
"moduleResolution": "bundler",
|
|
6
|
-
"lib": ["es2021", "DOM", "DOM.Iterable"],
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"declarationMap": true,
|
|
9
|
-
"outDir": "./dist",
|
|
10
|
-
"rootDir": "./src",
|
|
11
|
-
"strict": true,
|
|
12
|
-
"experimentalDecorators": true,
|
|
13
|
-
"useDefineForClassFields": false
|
|
14
|
-
},
|
|
15
|
-
"include": ["src/**/*.ts"]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2021",
|
|
4
|
+
"module": "es2022",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"lib": ["es2021", "DOM", "DOM.Iterable"],
|
|
7
|
+
"declaration": true,
|
|
8
|
+
"declarationMap": true,
|
|
9
|
+
"outDir": "./dist",
|
|
10
|
+
"rootDir": "./src",
|
|
11
|
+
"strict": true,
|
|
12
|
+
"experimentalDecorators": true,
|
|
13
|
+
"useDefineForClassFields": false
|
|
14
|
+
},
|
|
15
|
+
"include": ["src/**/*.ts"]
|
|
16
16
|
}
|