@stainless-api/ui-primitives 0.1.0-beta.9 → 1.0.0-beta.54

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 (51) hide show
  1. package/dist/DropdownMenu-DJ2-gPoP.d.ts +54 -0
  2. package/dist/components/Accordion.d.ts +26 -0
  3. package/dist/components/Accordion.js +29 -0
  4. package/dist/components/Badge.d.ts +40 -0
  5. package/dist/components/Badge.js +63 -0
  6. package/dist/components/Button.d.ts +45 -0
  7. package/dist/components/Button.js +50 -0
  8. package/dist/components/Callout.d.ts +18 -0
  9. package/dist/components/Callout.js +26 -0
  10. package/dist/components/Steps.d.ts +17 -0
  11. package/dist/components/Steps.js +22 -0
  12. package/dist/components/dropdown/Dropdown.d.ts +63 -0
  13. package/dist/components/dropdown/Dropdown.js +52 -0
  14. package/dist/components/dropdown/DropdownButton.d.ts +61 -0
  15. package/dist/components/dropdown/DropdownButton.js +54 -0
  16. package/dist/components/dropdown/DropdownMenu.d.ts +2 -0
  17. package/dist/components/dropdown/DropdownMenu.js +76 -0
  18. package/dist/components/icons/Function.d.ts +9 -0
  19. package/dist/components/icons/Function.js +6 -0
  20. package/dist/components/icons/index.d.ts +2 -0
  21. package/dist/components/icons/index.js +2 -0
  22. package/dist/index.d.ts +8 -0
  23. package/dist/index.js +8 -0
  24. package/dist/scripts/index.d.ts +23 -0
  25. package/dist/scripts/index.js +162 -0
  26. package/dist/styles/starlight-compat.css +131 -0
  27. package/dist/styles/theme.css +183 -0
  28. package/dist/styles.css +1184 -0
  29. package/package.json +42 -24
  30. package/.env +0 -1
  31. package/CHANGELOG.md +0 -61
  32. package/eslint.config.js +0 -2
  33. package/src/components/Accordion.tsx +0 -41
  34. package/src/components/Button.tsx +0 -95
  35. package/src/components/Callout.tsx +0 -31
  36. package/src/components/DropdownButton.tsx +0 -109
  37. package/src/components/accordion.css +0 -145
  38. package/src/components/button.css +0 -187
  39. package/src/components/callout.css +0 -70
  40. package/src/components/dropdown-button.css +0 -164
  41. package/src/index.ts +0 -4
  42. package/src/scripts/dropdown-button.ts +0 -55
  43. package/src/scripts/index.ts +0 -1
  44. package/src/styles/layout.css +0 -11
  45. package/src/styles/scales.css +0 -129
  46. package/src/styles/starlight-compat.css +0 -160
  47. package/src/styles/swatches.css +0 -87
  48. package/src/styles/theme.css +0 -49
  49. package/src/styles/typography.css +0 -183
  50. package/src/styles.css +0 -11
  51. package/tsconfig.json +0 -11
@@ -1,160 +0,0 @@
1
- :root {
2
- /* Layout and Typography */
3
- --sl-font: var(--stl-ui-typography-font);
4
- --sl-font-mono: var(--stl-ui-typography-font-mono);
5
- --sl-line-height: var(--stl-ui-typography-line-height);
6
-
7
- /* Headings */
8
- --sl-text-h1: var(--stl-ui-typography-text-h1);
9
- --sl-text-h2: var(--stl-ui-typography-text-h2);
10
- --sl-text-h3: var(--stl-ui-typography-text-h3);
11
- --sl-text-h4: var(--stl-ui-typography-text-h4);
12
- --sl-text-h5: var(--stl-ui-typography-text-h5);
13
-
14
- /* Colors */
15
- --sl-color-bg: var(--stl-ui-background);
16
- --sl-color-bg-sidebar: var(--stl-ui-background);
17
- --sl-color-bg-ui: var(--stl-ui-card-background);
18
- --sl-color-bg-nav: var(--stl-ui-background);
19
- --sl-color-bg-inline-code: var(--stl-ui-muted-background);
20
- --sl-color-bg-accent: var(--stl-ui-accent-background);
21
-
22
- --sl-color-text: var(--stl-ui-foreground);
23
- --sl-color-text-secondary: var(--stl-ui-foreground-secondary);
24
- --sl-color-text-tertiary: var(--stl-ui-foreground-muted);
25
- --sl-color-text-accent: var(--stl-ui-foreground-accent);
26
- --sl-color-hairline: var(--stl-ui-border);
27
- --sl-color-hairline-light: var(--stl-ui-border-muted);
28
- --sl-color-hairline-shade: var(--stl-ui-border-emphasis);
29
- --sl-color-text-invert: var(--stl-ui-inverse-foreground);
30
-
31
- /* Primary colors */
32
- --sl-color-red-low: var(--stl-ui-swatch-red-faint);
33
- --sl-color-red: var(--stl-ui-swatch-red-base);
34
- --sl-color-red-high: var(--stl-ui-swatch-red-base);
35
-
36
- --sl-color-green-low: var(--stl-ui-swatch-green-faint);
37
- --sl-color-green: var(--stl-ui-swatch-green-base);
38
- --sl-color-green-high: var(--stl-ui-swatch-green-base);
39
-
40
- --sl-color-blue-low: var(--stl-ui-swatch-blue-faint);
41
- --sl-color-blue: var(--stl-ui-swatch-blue-base);
42
- --sl-color-blue-high: var(--stl-ui-swatch-blue-base);
43
-
44
- --sl-color-orange-low: var(--stl-ui-swatch-orange-faint);
45
- --sl-color-orange: var(--stl-ui-swatch-orange-base);
46
- --sl-color-orange-high: var(--stl-ui-swatch-orange-base);
47
-
48
- --sl-color-purple-low: var(--stl-ui-swatch-purple-faint);
49
- --sl-color-purple: var(--stl-ui-swatch-purple-base);
50
- --sl-color-purple-high: var(--stl-ui-swatch-purple-base);
51
-
52
- --sl-color-teal-low: var(--stl-ui-swatch-teal-faint);
53
- --sl-color-teal: var(--stl-ui-swatch-teal-base);
54
- --sl-color-teal-high: var(--stl-ui-swatch-teal-base);
55
-
56
- --sl-color-magenta-low: var(--stl-ui-swatch-pink-faint);
57
- --sl-color-magenta: var(--stl-ui-swatch-pink-base);
58
- --sl-color-magenta-high: var(--stl-ui-swatch-pink-base);
59
-
60
- --sl-color-yellow-low: var(--stl-ui-swatch-yellow-faint);
61
- --sl-color-yellow: var(--stl-ui-swatch-yellow-base);
62
- --sl-color-yellow-high: var(--stl-ui-swatch-yellow-base);
63
- }
64
-
65
- /* Starlight Compatibility */
66
- .stl-ui-prose {
67
- :is(h1, h2, h3, h4, h5) code {
68
- font-size: 0.9em;
69
- font-weight: inherit;
70
- }
71
- /* TODO: Disable starlight headingLinks and replace with our own */
72
- /* Duplicate styles from h1–5 in typography; TODO: move to mixins after adopting preprocessor */
73
- .sl-heading-wrapper.level-h1 {
74
- font-size: var(--stl-ui-typography-text-h1);
75
- letter-spacing: -0.03em;
76
- margin-top: 64px;
77
- line-height: var(--stl-ui-typography-line-height-headings);
78
- }
79
- .sl-heading-wrapper.level-h2 {
80
- font-size: var(--stl-ui-typography-text-h2);
81
- letter-spacing: -0.03em;
82
- margin-top: 48px;
83
- line-height: var(--stl-ui-typography-line-height-headings);
84
- }
85
-
86
- .sl-heading-wrapper.level-h3 {
87
- font-size: var(--stl-ui-typography-text-h3);
88
- letter-spacing: -0.02em;
89
- margin-top: 40px;
90
- line-height: var(--stl-ui-typography-line-height-headings);
91
- }
92
- .sl-heading-wrapper.level-h4 {
93
- font-size: var(--stl-ui-typography-text-h4);
94
- letter-spacing: -0.02em;
95
- margin-top: 32px;
96
- line-height: var(--stl-ui-typography-line-height-headings);
97
- }
98
- .sl-heading-wrapper.level-h5 {
99
- font-size: var(--stl-ui-typography-text-h5);
100
- letter-spacing: -0.02em;
101
- margin-top: 24px;
102
- line-height: var(--stl-ui-typography-line-height-headings);
103
- }
104
- .sl-heading-wrapper {
105
- --sl-anchor-icon-size: 0.8em;
106
- }
107
- /* TODO: replace with an icon that matches Stainless branding */
108
- .sl-anchor-link svg {
109
- margin-top: 0;
110
- }
111
- }
112
-
113
- /* TODO: remove these */
114
- .stl-ui-prose {
115
- /* Tab component */
116
- starlight-tabs {
117
- a {
118
- text-decoration: none;
119
- line-height: unset;
120
- color: var(--stl-ui-foreground);
121
-
122
- &[aria-selected='true'] {
123
- color: var(--stl-ui-foreground-accent);
124
- font-weight: normal;
125
- }
126
- }
127
-
128
- ol,
129
- ul {
130
- &:not(.stl-ui-not-prose *) {
131
- padding-left: 0;
132
- }
133
- }
134
-
135
- li:not(.stl-ui-not-prose *) {
136
- margin-bottom: -2px;
137
- &:not(:last-child) {
138
- margin-bottom: -2px;
139
- }
140
-
141
- a:first-child {
142
- display: flex;
143
- }
144
- }
145
- }
146
-
147
- /* Pagination Links */
148
-
149
- .pagination-links {
150
- a {
151
- color: var(--stl-ui-foreground);
152
- }
153
- }
154
-
155
- .starlight-aside {
156
- svg {
157
- margin-top: 0;
158
- }
159
- }
160
- }
@@ -1,87 +0,0 @@
1
- @layer stl-ui.tokens {
2
- /* --stl-ui-swatch-es - Light */
3
- :root {
4
- --stl-ui-swatch-gray-gray-1: var(--stl-ui-gray-800);
5
- --stl-ui-swatch-gray-gray-2: var(--stl-ui-gray-700);
6
- --stl-ui-swatch-gray-gray-3: var(--stl-ui-gray-600);
7
- --stl-ui-swatch-gray-gray-4: var(--stl-ui-gray-500);
8
- --stl-ui-swatch-gray-gray-5: var(--stl-ui-gray-400);
9
- --stl-ui-swatch-gray-gray-6: var(--stl-ui-gray-300);
10
- --stl-ui-swatch-gray-gray-7: var(--stl-ui-gray-200);
11
- --stl-ui-swatch-gray-gray-8: var(--stl-ui-gray-100);
12
- --stl-ui-swatch-gray-gray-9: var(--stl-ui-gray-50);
13
- --stl-ui-swatch-gray-black: var(--stl-ui-gray-950);
14
- --stl-ui-swatch-gray-white: rgb(255, 255, 255);
15
-
16
- --stl-ui-swatch-accent-base: var(--stl-ui-accent-600);
17
- --stl-ui-swatch-accent-muted: var(--stl-ui-accent-200);
18
- --stl-ui-swatch-accent-faint: var(--stl-ui-accent-50);
19
- --stl-ui-swatch-red-base: var(--stl-ui-red-600);
20
- --stl-ui-swatch-red-muted: var(--stl-ui-red-200);
21
- --stl-ui-swatch-red-faint: var(--stl-ui-red-50);
22
- --stl-ui-swatch-green-base: var(--stl-ui-green-600);
23
- --stl-ui-swatch-green-muted: var(--stl-ui-green-200);
24
- --stl-ui-swatch-green-faint: var(--stl-ui-green-50);
25
- --stl-ui-swatch-blue-base: var(--stl-ui-blue-600);
26
- --stl-ui-swatch-blue-muted: var(--stl-ui-blue-200);
27
- --stl-ui-swatch-blue-faint: var(--stl-ui-blue-50);
28
- --stl-ui-swatch-orange-base: var(--stl-ui-orange-600);
29
- --stl-ui-swatch-orange-muted: var(--stl-ui-orange-200);
30
- --stl-ui-swatch-orange-faint: var(--stl-ui-orange-50);
31
- --stl-ui-swatch-purple-base: var(--stl-ui-purple-600);
32
- --stl-ui-swatch-purple-muted: var(--stl-ui-purple-200);
33
- --stl-ui-swatch-purple-faint: var(--stl-ui-purple-50);
34
- --stl-ui-swatch-cyan-base: var(--stl-ui-cyan-600);
35
- --stl-ui-swatch-cyan-muted: var(--stl-ui-cyan-200);
36
- --stl-ui-swatch-cyan-faint: var(--stl-ui-cyan-50);
37
- --stl-ui-swatch-pink-base: var(--stl-ui-pink-600);
38
- --stl-ui-swatch-pink-muted: var(--stl-ui-pink-200);
39
- --stl-ui-swatch-pink-faint: var(--stl-ui-pink-50);
40
- --stl-ui-swatch-yellow-base: var(--stl-ui-yellow-600);
41
- --stl-ui-swatch-yellow-muted: var(--stl-ui-yellow-200);
42
- --stl-ui-swatch-yellow-faint: var(--stl-ui-yellow-50);
43
- }
44
-
45
- /* --stl-ui-swatch-es - Dark */
46
- :root[data-theme='dark'] {
47
- --stl-ui-swatch-gray-gray-1: var(--stl-ui-gray-100);
48
- --stl-ui-swatch-gray-gray-2: var(--stl-ui-gray-200);
49
- --stl-ui-swatch-gray-gray-3: var(--stl-ui-gray-300);
50
- --stl-ui-swatch-gray-gray-4: var(--stl-ui-gray-400);
51
- --stl-ui-swatch-gray-gray-5: var(--stl-ui-gray-500);
52
- --stl-ui-swatch-gray-gray-6: var(--stl-ui-gray-600);
53
- --stl-ui-swatch-gray-gray-7: var(--stl-ui-gray-700);
54
- --stl-ui-swatch-gray-gray-8: var(--stl-ui-gray-800);
55
- --stl-ui-swatch-gray-gray-9: var(--stl-ui-gray-900);
56
- --stl-ui-swatch-gray-black: var(--stl-ui-gray-950);
57
- --stl-ui-swatch-gray-white: rgb(255, 255, 255);
58
-
59
- --stl-ui-swatch-accent-base: var(--stl-ui-accent-500);
60
- --stl-ui-swatch-accent-muted: var(--stl-ui-accent-900);
61
- --stl-ui-swatch-accent-faint: var(--stl-ui-accent-950);
62
- --stl-ui-swatch-red-base: var(--stl-ui-red-500);
63
- --stl-ui-swatch-red-muted: var(--stl-ui-red-900);
64
- --stl-ui-swatch-red-faint: var(--stl-ui-red-950);
65
- --stl-ui-swatch-green-base: var(--stl-ui-green-500);
66
- --stl-ui-swatch-green-muted: var(--stl-ui-green-900);
67
- --stl-ui-swatch-green-faint: var(--stl-ui-green-950);
68
- --stl-ui-swatch-blue-base: var(--stl-ui-blue-500);
69
- --stl-ui-swatch-blue-muted: var(--stl-ui-blue-900);
70
- --stl-ui-swatch-blue-faint: var(--stl-ui-blue-950);
71
- --stl-ui-swatch-orange-base: var(--stl-ui-orange-500);
72
- --stl-ui-swatch-orange-muted: var(--stl-ui-orange-900);
73
- --stl-ui-swatch-orange-faint: var(--stl-ui-orange-950);
74
- --stl-ui-swatch-purple-base: var(--stl-ui-purple-500);
75
- --stl-ui-swatch-purple-muted: var(--stl-ui-purple-900);
76
- --stl-ui-swatch-purple-faint: var(--stl-ui-purple-950);
77
- --stl-ui-swatch-cyan-base: var(--stl-ui-cyan-500);
78
- --stl-ui-swatch-cyan-muted: var(--stl-ui-cyan-900);
79
- --stl-ui-swatch-cyan-faint: var(--stl-ui-cyan-950);
80
- --stl-ui-swatch-pink-base: var(--stl-ui-pink-500);
81
- --stl-ui-swatch-pink-muted: var(--stl-ui-pink-900);
82
- --stl-ui-swatch-pink-faint: var(--stl-ui-pink-950);
83
- --stl-ui-swatch-yellow-base: var(--stl-ui-yellow-500);
84
- --stl-ui-swatch-yellow-muted: var(--stl-ui-yellow-900);
85
- --stl-ui-swatch-yellow-faint: var(--stl-ui-yellow-950);
86
- }
87
- }
@@ -1,49 +0,0 @@
1
- @layer stl-ui.tokens {
2
- /* Swatches - Light */
3
- :root {
4
- --stl-ui-background: var(--stl-ui-swatch-gray-white);
5
- --stl-ui-card-background: var(--stl-ui-swatch-gray-white);
6
- --stl-ui-muted-background: var(--stl-ui-swatch-gray-gray-8);
7
- --stl-ui-foreground: var(--stl-ui-swatch-gray-gray-1);
8
- --stl-ui-foreground-secondary: var(--stl-ui-swatch-gray-gray-3);
9
- --stl-ui-foreground-muted: var(--stl-ui-swatch-gray-gray-4);
10
- --stl-ui-foreground-accent: var(--stl-ui-swatch-accent-base);
11
- --stl-ui-border: var(--stl-ui-swatch-gray-gray-7);
12
- --stl-ui-border-muted: var(--stl-ui-swatch-gray-gray-8);
13
- --stl-ui-border-emphasis: var(--stl-ui-swatch-gray-gray-6);
14
- --stl-ui-inverse-background: var(--stl-ui-swatch-gray-gray-1);
15
- --stl-ui-inverse-foreground: var(--stl-ui-swatch-gray-white);
16
- --stl-ui-accent-background: var(--stl-ui-swatch-accent-base);
17
- --stl-ui-accent-foreground: var(--stl-ui-swatch-gray-white);
18
- --stl-ui-accent-muted-background: var(--stl-ui-swatch-accent-faint);
19
- --stl-ui-accent-muted-foreground: var(--stl-ui-swatch-accent-base);
20
- --stl-ui-accent-border: var(--stl-ui-swatch-accent-muted);
21
- --stl-ui-accent-border-muted: var(--stl-ui-swatch-accent-faint);
22
- --stl-ui-accent-border-emphasis: var(--stl-ui-swatch-accent-base);
23
- --stl-ui-overlay-background: #0000000d;
24
- }
25
-
26
- /* Swatches - Dark */
27
- :root[data-theme='dark'] {
28
- --stl-ui-background: var(--stl-ui-swatch-gray-black);
29
- --stl-ui-card-background: var(--stl-ui-swatch-gray-gray-9);
30
- --stl-ui-muted-background: var(--stl-ui-swatch-gray-gray-9);
31
- --stl-ui-foreground: var(--stl-ui-swatch-gray-gray-1);
32
- --stl-ui-foreground-secondary: var(--stl-ui-swatch-gray-gray-3);
33
- --stl-ui-foreground-muted: var(--stl-ui-swatch-gray-gray-4);
34
- --stl-ui-foreground-accent: var(--stl-ui-swatch-accent-base);
35
- --stl-ui-border: var(--stl-ui-swatch-gray-gray-8);
36
- --stl-ui-border-muted: var(--stl-ui-swatch-gray-gray-9);
37
- --stl-ui-border-emphasis: var(--stl-ui-swatch-gray-gray-7);
38
- --stl-ui-inverse-background: var(--stl-ui-swatch-gray-gray-1);
39
- --stl-ui-inverse-foreground: var(--stl-ui-swatch-gray-black);
40
- --stl-ui-accent-background: var(--stl-ui-swatch-accent-base);
41
- --stl-ui-accent-foreground: var(--stl-ui-swatch-gray-white);
42
- --stl-ui-accent-muted-background: var(--stl-ui-swatch-accent-faint);
43
- --stl-ui-accent-muted-foreground: var(--stl-ui-swatch-accent-base);
44
- --stl-ui-accent-border: var(--stl-ui-swatch-accent-muted);
45
- --stl-ui-accent-border-muted: var(--stl-ui-swatch-accent-faint);
46
- --stl-ui-accent-border-emphasis: var(--stl-ui-swatch-accent-base);
47
- --stl-ui-overlay-background: #00000080;
48
- }
49
- }
@@ -1,183 +0,0 @@
1
- /* Typography - Stainless */
2
- @layer stl-ui.tokens {
3
- :root {
4
- --stl-ui-typography-font: 'Geist', system-ui, sans-serif;
5
- --stl-ui-typography-font-mono: 'Geist Mono', ui-monospace, monospace;
6
- --stl-ui-typography-line-height: 1.5;
7
- --stl-ui-typography-line-height-headings: 1.2;
8
-
9
- --stl-ui-typography-text-body: var(--stl-ui-type-scale-text);
10
- --stl-ui-typography-text-body-sm: var(--stl-ui-type-scale-text-sm);
11
- --stl-ui-typography-text-body-xs: var(--stl-ui-type-scale-text-xs);
12
-
13
- --stl-ui-typography-text-code: var(--stl-ui-type-scale-text-sm);
14
- --stl-ui-typography-text-code-sm: var(--stl-ui-type-scale-text-xs);
15
-
16
- --stl-ui-typography-text-h1: var(--stl-ui-type-scale-text-5xl);
17
- --stl-ui-typography-text-h2: var(--stl-ui-type-scale-text-4xl);
18
- --stl-ui-typography-text-h3: var(--stl-ui-type-scale-text-3xl);
19
- --stl-ui-typography-text-h4: var(--stl-ui-type-scale-text-2xl);
20
- --stl-ui-typography-text-h5: var(--stl-ui-type-scale-text-xl);
21
-
22
- --stl-ui-type-scale-text-xs: 12px;
23
- --stl-ui-type-scale-text-sm: 14px;
24
- --stl-ui-type-scale-text: 16px;
25
- --stl-ui-type-scale-text-lg: 18px;
26
- --stl-ui-type-scale-text-xl: 20px;
27
- --stl-ui-type-scale-text-2xl: 24px;
28
- --stl-ui-type-scale-text-3xl: 29px;
29
- --stl-ui-type-scale-text-4xl: 35px;
30
- --stl-ui-type-scale-text-5xl: 42px;
31
- --stl-ui-type-scale-text-6xl: 64px;
32
- }
33
- }
34
-
35
- /* Prose exists in its own sub-layer for easy reverting */
36
- body {
37
- font-family: var(--stl-ui-typography-font);
38
- font-feature-settings:
39
- 'ss01' on,
40
- 'ss03' on,
41
- 'ss04' on,
42
- 'ss06' on,
43
- 'ss08' on;
44
- }
45
-
46
- .stl-ui-prose {
47
- p:not(.stl-ui-not-prose *) {
48
- color: var(--stl-ui-foreground-secondary);
49
- font-weight: 400;
50
- line-height: var(--stl-ui-typography-line-height);
51
- letter-spacing: -0.01em;
52
- font-size: var(--stl-ui-typography-text-body);
53
- margin-top: 16px;
54
- }
55
-
56
- p,
57
- li {
58
- &:not(.stl-ui-not-prose *) {
59
- color: var(--stl-ui-foreground-secondary);
60
- }
61
- }
62
-
63
- strong:not(.stl-ui-not-prose *) {
64
- color: var(--stl-ui-foreground);
65
- }
66
-
67
- aside:not(.stl-ui-not-prose *) {
68
- p,
69
- li {
70
- color: var(--stl-ui-foreground);
71
- }
72
- }
73
-
74
- h1,
75
- h2,
76
- h3,
77
- h4,
78
- h5,
79
- h6 {
80
- &:not(.stl-ui-not-prose *) {
81
- &,
82
- * {
83
- color: var(--stl-ui-foreground);
84
- font-weight: 500;
85
- line-height: var(--stl-ui-typography-line-height-headings);
86
- }
87
- }
88
- }
89
-
90
- h1:not(.stl-ui-not-prose *) {
91
- /* Heading 1/Medium */
92
- font-size: var(--stl-ui-typography-text-h1);
93
- letter-spacing: -0.03em;
94
-
95
- margin-top: 64px;
96
- }
97
-
98
- h2:not(.stl-ui-not-prose *) {
99
- /* Heading 2/Medium */
100
- font-size: var(--stl-ui-typography-text-h2);
101
- letter-spacing: -0.03em;
102
-
103
- margin-top: 48px;
104
- }
105
-
106
- h3:not(.stl-ui-not-prose *) {
107
- /* Heading 3/Medium */
108
- font-size: var(--stl-ui-typography-text-h3);
109
- letter-spacing: -0.02em;
110
- margin-top: 40px;
111
- }
112
-
113
- h4:not(.stl-ui-not-prose *) {
114
- /* Heading 4/Medium */
115
- font-size: var(--stl-ui-typography-text-h4);
116
- letter-spacing: -0.02em;
117
- margin-top: 32px;
118
- }
119
-
120
- h5:not(.stl-ui-not-prose *) {
121
- /* Heading 5/Medium */
122
- font-size: var(--stl-ui-typography-text-h5);
123
- letter-spacing: -0.02em;
124
- margin-top: 24px;
125
- }
126
-
127
- li:not(.stl-ui-not-prose *) {
128
- &:not(:last-child) {
129
- margin-bottom: 8px;
130
- }
131
-
132
- h1,
133
- h2,
134
- h3,
135
- h4,
136
- h5,
137
- p,
138
- a {
139
- &:first-child {
140
- display: inline;
141
- }
142
- }
143
- }
144
-
145
- ol,
146
- ul {
147
- &:not(.stl-ui-not-prose *) {
148
- padding-left: 26px;
149
- }
150
- }
151
-
152
- ol,
153
- ul,
154
- aside,
155
- img,
156
- svg,
157
- figure,
158
- details {
159
- &:not(.stl-ui-not-prose *) {
160
- margin-top: 16px;
161
- }
162
- }
163
-
164
- :where(:not(pre) > code):not(.stl-ui-not-prose *) {
165
- color: var(--stl-ui-foreground);
166
- font-feature-settings:
167
- 'ss01' on,
168
- 'ss03' on,
169
- 'ss04' on,
170
- 'ss06' on;
171
-
172
- /* Code/Regular */
173
- font-family: var(--stl-ui-typography-font-mono);
174
- font-size: var(--stl-ui-typography-text-body-sm);
175
- font-style: normal;
176
- font-weight: 400;
177
- line-height: 150%; /* 21px */
178
-
179
- padding: 0 4px;
180
- background-color: oklch(from var(--stl-ui-foreground) l c h / 0.1);
181
- border-radius: var(--stl-ui-layout-border-radius-xs);
182
- }
183
- }
package/src/styles.css DELETED
@@ -1,11 +0,0 @@
1
- @import './styles/scales.css';
2
- @import './styles/swatches.css';
3
- @import './styles/typography.css';
4
- @import './styles/layout.css';
5
- @import './styles/theme.css';
6
- @import './styles/starlight-compat.css';
7
-
8
- @import './components/button.css';
9
- @import './components/dropdown-button.css';
10
- @import './components/callout.css';
11
- @import './components/accordion.css';
package/tsconfig.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "noEmit": false,
5
- "declaration": true,
6
- "declarationDir": "dist",
7
- "outDir": "dist",
8
- "jsx": "react-jsx",
9
- },
10
- "include": ["src"]
11
- }