@simpleplatform/ui-kit 0.1.1 → 0.2.1

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 CHANGED
@@ -30,9 +30,11 @@ by itself.
30
30
 
31
31
  ## Current component: StatusBadge
32
32
 
33
+ Load the stylesheet as described in [Loading the stylesheet](#loading-the-stylesheet)
34
+ before using this example.
35
+
33
36
  ```tsx
34
37
  import { StatusBadge } from '@simpleplatform/ui-kit/react'
35
- import '@simpleplatform/ui-kit/theme.css'
36
38
 
37
39
  export function DeploymentState() {
38
40
  return <StatusBadge label="Ready" tone="success" />
@@ -59,26 +61,62 @@ Both exports are also available from the package root, `@simpleplatform/ui-kit`.
59
61
  props; the package provides no React provider or implicit SDK client.
60
62
 
61
63
  The Web Component can also be used without React. Import the `elements`
62
- entry once before using its tag in HTML:
64
+ entry once before using its tag in HTML, and load the stylesheet as described
65
+ in [Loading the stylesheet](#loading-the-stylesheet):
63
66
 
64
67
  ```ts
65
68
  import '@simpleplatform/ui-kit/elements'
66
- import '@simpleplatform/ui-kit/theme.css'
67
69
  ```
68
70
 
69
71
  ```html
70
72
  <simple-status-badge label="Ready" tone="success"></simple-status-badge>
71
73
  ```
72
74
 
73
- Import `theme.css` in the Space entry point. It bundles the Geist font files
74
- with the Space (so they load inside its cross-origin iframe) and provides
75
- `StatusBadge` defaults that use the platform's own light and dark colors and
76
- dimensions. The neutral tone follows the Space's `--secondary`, `--border`, and
77
- `--secondary-foreground` tokens when defined (as HSL triplets, the platform's
78
- convention), with fallback colors otherwise. A Space may override any
79
- `--simple-status-badge-*` variable in its own CSS, and may override the default
80
- font stack as well. These names stay component-local: the platform-wide semantic
81
- CSS-variable contract is a separate project.
75
+ ### Loading the stylesheet
76
+
77
+ In a Space that uses Tailwind 4, import the kit's stylesheet inside the Space's
78
+ Tailwind stylesheet, directly after `@import "tailwindcss";`. For example,
79
+ `src/styles/theme.css` should begin with:
80
+
81
+ ```css
82
+ @import "tailwindcss";
83
+ @import "@simpleplatform/ui-kit/theme.css";
84
+ ```
85
+
86
+ Import that Space stylesheet once from the entry point, such as `src/main.tsx`:
87
+
88
+ ```ts
89
+ import './styles/theme.css'
90
+ ```
91
+
92
+ The kit contains an `@theme` block that maps Tailwind names to the platform's
93
+ theme tokens and an `@layer utilities` block, so both stylesheets need to pass
94
+ through Tailwind together. Importing the kit's stylesheet separately from
95
+ JavaScript can leave its `@theme` block unprocessed, which the browser ignores,
96
+ and place the utilities layer before Tailwind's base layer. The base reset then
97
+ overrides utilities, removing padding, margins, and borders.
98
+
99
+ In a Space without Tailwind, import `@simpleplatform/ui-kit/theme.css` in the
100
+ Space's own stylesheet and import that stylesheet once from the entry point.
101
+ A plain import supplies the Geist and Geist Mono font files, the `:root`
102
+ platform theme tokens and `.dark` color overrides, the responsive `.container`
103
+ width rules, and the Lucide icon sizing rules. These are ordinary CSS and work
104
+ without Tailwind; the browser ignores the `@theme` block, so a plain import does
105
+ not generate Tailwind utilities or provide its theme aliases. The kit's
106
+ stylesheet does not bundle Tailwind or its base reset.
107
+
108
+ The fonts are bundled with the Space so they load inside its cross-origin
109
+ iframe. `StatusBadge` uses the shared platform tokens for its light and dark
110
+ colors and dimensions. Its neutral tone uses `--simple-color-surface-sunken`
111
+ for the background, `--simple-color-border-default` for the border, and
112
+ `--simple-color-text-secondary` for the text; these tokens contain complete
113
+ CSS color values, not bare HSL triplets. The other tones use the corresponding
114
+ `--simple-color-status-info*`, `--simple-color-status-success*`,
115
+ `--simple-color-status-warning*`, and `--simple-color-status-danger*` tokens.
116
+ A Space may override the `--simple-*` tokens in its own CSS after the imports,
117
+ including `--simple-font-family-sans` for the font stack. These tokens are shared
118
+ with other UI that uses the platform theme; they are not component-local
119
+ `--simple-status-badge-*` variables.
82
120
 
83
121
  ### Runtime boundary
84
122
 
@@ -113,12 +151,14 @@ itself remains available only through the React entry point.
113
151
  `RecordForm` is the default choice for a Record Space that wants the complete
114
152
  Simple record experience without rebuilding it.
115
153
 
154
+ Load the stylesheet as described in [Loading the stylesheet](#loading-the-stylesheet)
155
+ before using this example.
156
+
116
157
  ```tsx
117
158
  import type { RecordHandle } from '@simpleplatform/sdk/space'
118
159
  import { connect } from '@simpleplatform/sdk/space'
119
160
  import { RecordForm } from '@simpleplatform/ui-kit/react'
120
161
  import { useEffect, useState } from 'react'
121
- import '@simpleplatform/ui-kit/theme.css'
122
162
 
123
163
  const client = connect({ targetOrigin: new URL(document.referrer).origin })
124
164
 
@@ -209,12 +249,14 @@ customer Spaces to track internal form contracts.
209
249
  `RecordActivity` is the managed component for displaying the platform activity
210
250
  stream (audit log changes and notes) for a record handle.
211
251
 
252
+ Load the stylesheet as described in [Loading the stylesheet](#loading-the-stylesheet)
253
+ before using this example.
254
+
212
255
  ```tsx
213
256
  import type { RecordHandle } from '@simpleplatform/sdk/space'
214
257
  import { connect } from '@simpleplatform/sdk/space'
215
258
  import { RecordActivity } from '@simpleplatform/ui-kit/react'
216
259
  import { useEffect, useState } from 'react'
217
- import '@simpleplatform/ui-kit/theme.css'
218
260
 
219
261
  const client = connect({ targetOrigin: new URL(document.referrer).origin })
220
262
 
@@ -3,48 +3,48 @@ const STATUS_BADGE_TAG_NAME = 'simple-status-badge';
3
3
  const STATUS_BADGE_STYLES = `
4
4
  :host {
5
5
  display: inline-block;
6
- font-family: var(--simple-status-badge-font-family);
6
+ font-family: var(--simple-font-family-sans);
7
7
  }
8
8
 
9
9
  [part="base"] {
10
10
  align-items: center;
11
- background: var(--simple-status-badge-neutral-background);
12
- border: 1px solid var(--simple-status-badge-neutral-border);
13
- border-radius: var(--simple-status-badge-radius);
11
+ background: var(--simple-color-surface-sunken);
12
+ border: 1px solid var(--simple-color-border-default);
13
+ border-radius: var(--simple-radius-round);
14
14
  box-sizing: border-box;
15
- color: var(--simple-status-badge-neutral-foreground);
15
+ color: var(--simple-color-text-secondary);
16
16
  display: inline-flex;
17
- font-size: var(--simple-status-badge-font-size);
18
- font-weight: var(--simple-status-badge-font-weight);
19
- line-height: var(--simple-status-badge-line-height);
17
+ font-size: var(--simple-font-size-xs);
18
+ font-weight: var(--simple-font-weight-medium);
19
+ line-height: var(--simple-line-height-tight);
20
20
  max-width: 100%;
21
- min-height: var(--simple-status-badge-min-height);
21
+ min-height: var(--simple-control-height-sm);
22
22
  overflow-wrap: anywhere;
23
- padding: 0 var(--simple-status-badge-padding-inline);
23
+ padding: 0 var(--simple-space-2);
24
24
  }
25
25
 
26
26
  [part="base"][data-tone="info"] {
27
- background: var(--simple-status-badge-info-background);
28
- border-color: var(--simple-status-badge-info-border);
29
- color: var(--simple-status-badge-info-foreground);
27
+ background: var(--simple-color-status-info-background);
28
+ border-color: var(--simple-color-status-info);
29
+ color: var(--simple-color-status-info-foreground);
30
30
  }
31
31
 
32
32
  [part="base"][data-tone="success"] {
33
- background: var(--simple-status-badge-success-background);
34
- border-color: var(--simple-status-badge-success-border);
35
- color: var(--simple-status-badge-success-foreground);
33
+ background: var(--simple-color-status-success-background);
34
+ border-color: var(--simple-color-status-success);
35
+ color: var(--simple-color-status-success-foreground);
36
36
  }
37
37
 
38
38
  [part="base"][data-tone="warning"] {
39
- background: var(--simple-status-badge-warning-background);
40
- border-color: var(--simple-status-badge-warning-border);
41
- color: var(--simple-status-badge-warning-foreground);
39
+ background: var(--simple-color-status-warning-background);
40
+ border-color: var(--simple-color-status-warning);
41
+ color: var(--simple-color-status-warning-foreground);
42
42
  }
43
43
 
44
44
  [part="base"][data-tone="danger"] {
45
- background: var(--simple-status-badge-danger-background);
46
- border-color: var(--simple-status-badge-danger-border);
47
- color: var(--simple-status-badge-danger-foreground);
45
+ background: var(--simple-color-status-danger-background);
46
+ border-color: var(--simple-color-status-danger);
47
+ color: var(--simple-color-status-danger-foreground);
48
48
  }
49
49
 
50
50
  [part="description"] {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simpleplatform/ui-kit",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.2.1",
5
5
  "description": "Supported UI contracts and framework bridges for Simple Spaces",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
package/theme.css CHANGED
@@ -7,50 +7,482 @@
7
7
  * customers can override them in their own stylesheet.
8
8
  */
9
9
  :root {
10
- --font-sans: 'Geist Variable', ui-sans-serif, system-ui, sans-serif;
11
- --font-mono: 'Geist Mono Variable', ui-monospace, SFMono-Regular, Menlo, monospace;
10
+ /* Native controls, scrollbars and autofill follow the mode; the SDK only toggles .dark. */
11
+ color-scheme: light;
12
+ /* Local-development defaults. A host may replace these with a resolved tenant theme snapshot. */
13
+ --simple-color-canvas: hsl(0 0% 100%);
14
+ --simple-color-canvas-inverse: hsl(240 10% 3.9%);
15
+ --simple-color-surface: hsl(0 0% 100%);
16
+ --simple-color-surface-raised: hsl(0 0% 100%);
17
+ --simple-color-surface-sunken: hsl(240 4.8% 95.9%);
18
+ --simple-color-surface-overlay: hsl(0 0% 100%);
19
+ --simple-color-surface-hover: hsl(240 4.8% 93%);
20
+ --simple-color-surface-active: hsl(240 4.8% 90%);
21
+ --simple-color-surface-selected: hsl(240 4.8% 95.9%);
22
+ --simple-color-surface-disabled: hsl(240 4.8% 95.9%);
23
+ --simple-color-overlay-backdrop: hsl(0 0% 0% / 80%);
24
+ --simple-color-text-primary: hsl(240 10% 3.9%);
25
+ --simple-color-text-secondary: hsl(240 3.8% 46.1%);
26
+ --simple-color-text-tertiary: hsl(240 3.8% 46.1%);
27
+ --simple-color-text-disabled: hsl(240 3.8% 64%);
28
+ --simple-color-text-inverse: hsl(0 0% 98%);
29
+ --simple-color-text-link: hsl(240 5.9% 10%);
30
+ --simple-color-text-link-hover: hsl(240 5.9% 25%);
31
+ --simple-color-icon-primary: hsl(240 10% 3.9%);
32
+ --simple-color-icon-secondary: hsl(240 3.8% 46.1%);
33
+ --simple-color-icon-disabled: hsl(240 3.8% 66%);
34
+ --simple-color-border-subtle: hsl(240 5.9% 94%);
35
+ --simple-color-border-default: hsl(240 5.9% 90%);
36
+ --simple-color-border-strong: hsl(240 5.9% 70%);
37
+ --simple-color-border-disabled: hsl(240 5.9% 90%);
38
+ --simple-color-focus-ring: hsl(240 10% 3.9%);
39
+ --simple-color-header-background: hsl(0 0% 100%);
40
+ --simple-color-header-foreground: hsl(240 10% 3.9%);
41
+ --simple-color-navbar-background: hsl(0 0% 98%);
42
+ --simple-color-navbar-foreground: hsl(240 5.3% 26.1%);
43
+ --simple-color-navbar-primary: hsl(240 5.9% 10%);
44
+ --simple-color-navbar-primary-foreground: hsl(0 0% 98%);
45
+ --simple-color-navbar-accent: hsl(240 4.8% 95.9%);
46
+ --simple-color-navbar-accent-foreground: hsl(240 5.9% 10%);
47
+ --simple-color-navbar-ring: hsl(217.2 91.2% 59.8%);
48
+ --simple-color-accent-1: hsl(221.2 83.2% 53.3%);
49
+ --simple-color-accent-2: hsl(212 95% 68%);
50
+ --simple-color-accent-3: hsl(216 92% 60%);
51
+ --simple-color-accent-4: hsl(210 98% 78%);
52
+ --simple-color-accent-5: hsl(212 97% 87%);
53
+ --simple-color-action-primary: #0070DD;
54
+ --simple-color-action-primary-hover: #005BB5;
55
+ --simple-color-action-primary-active: #004A99;
56
+ --simple-color-action-primary-foreground: #FFFFFF;
57
+ --simple-color-action-secondary: hsl(240 4.8% 95.9%);
58
+ --simple-color-action-secondary-hover: hsl(240 4.8% 93%);
59
+ --simple-color-action-secondary-active: hsl(240 4.8% 90%);
60
+ --simple-color-action-secondary-foreground: hsl(240 5.9% 10%);
61
+ --simple-color-action-danger: hsl(0 84.2% 60.2%);
62
+ --simple-color-action-danger-hover: hsl(0 84.2% 57%);
63
+ --simple-color-action-danger-active: hsl(0 84.2% 54%);
64
+ --simple-color-action-danger-foreground: hsl(0 0% 98%);
65
+ --simple-gradient-action-primary: none;
66
+ --simple-color-status-info: hsl(221 83% 35%);
67
+ --simple-color-status-info-background: hsl(214 95% 93%);
68
+ --simple-color-status-info-foreground: hsl(221 83% 35%);
69
+ --simple-color-status-success: hsl(142 72% 25%);
70
+ --simple-color-status-success-background: hsl(142 76% 90%);
71
+ --simple-color-status-success-foreground: hsl(142 72% 25%);
72
+ --simple-color-status-warning: hsl(28 80% 25%);
73
+ --simple-color-status-warning-background: hsl(38 92% 90%);
74
+ --simple-color-status-warning-foreground: hsl(28 80% 25%);
75
+ --simple-color-status-danger: hsl(0 84.2% 60.2%);
76
+ --simple-color-status-danger-background: hsl(0 84% 95%);
77
+ --simple-color-status-danger-foreground: hsl(0 72% 35%);
78
+ --simple-color-field-background: hsl(0 0% 100%);
79
+ --simple-color-field-background-disabled: hsl(240 4.8% 95.9%);
80
+ --simple-color-field-border: hsl(240 5.9% 90%);
81
+ --simple-color-field-border-hover: hsl(240 5.9% 70%);
82
+ --simple-color-field-border-invalid: hsl(0 84.2% 60.2%);
83
+ --simple-color-field-placeholder: hsl(240 3.8% 46.1%);
84
+ --simple-color-field-text: hsl(240 10% 3.9%);
85
+ --simple-font-family-sans: 'Geist Variable', ui-sans-serif, system-ui, sans-serif;
86
+ --simple-font-family-mono: 'Geist Mono Variable', ui-monospace, SFMono-Regular, Menlo, monospace;
87
+ --simple-font-size-2xs: 0.625rem;
88
+ --simple-font-size-xs: 0.75rem;
89
+ --simple-font-size-sm: 0.875rem;
90
+ --simple-font-size-md: 1rem;
91
+ --simple-font-size-lg: 1.125rem;
92
+ --simple-font-size-xl: 1.25rem;
93
+ --simple-font-size-2xl: 1.5rem;
94
+ --simple-font-size-3xl: 1.875rem;
95
+ --simple-font-weight-regular: 400;
96
+ --simple-font-weight-medium: 500;
97
+ --simple-font-weight-semibold: 600;
98
+ --simple-font-weight-bold: 700;
99
+ --simple-line-height-tight: 1.25;
100
+ --simple-line-height-normal: 1.5;
101
+ --simple-line-height-relaxed: 1.625;
102
+ --simple-letter-spacing-tight: -0.01em;
103
+ --simple-letter-spacing-normal: 0;
104
+ --simple-space-0: 0;
105
+ --simple-space-1: 0.25rem;
106
+ --simple-space-2: 0.5rem;
107
+ --simple-space-3: 0.75rem;
108
+ --simple-space-4: 1rem;
109
+ --simple-space-5: 1.25rem;
110
+ --simple-space-6: 1.5rem;
111
+ --simple-space-8: 2rem;
112
+ --simple-space-10: 2.5rem;
113
+ --simple-space-12: 3rem;
114
+ --simple-space-16: 4rem;
115
+ --simple-space-20: 5rem;
116
+ --simple-space-24: 6rem;
117
+ --simple-control-height-sm: 2rem;
118
+ --simple-control-height-md: 2.5rem;
119
+ --simple-control-height-lg: 3rem;
120
+ --simple-icon-size-sm: 1rem;
121
+ --simple-icon-size-md: 1.25rem;
122
+ --simple-icon-size-lg: 1.5rem;
123
+ --simple-content-width-sm: 24rem;
124
+ --simple-content-width-md: 42rem;
125
+ --simple-content-width-lg: 64rem;
126
+ --simple-content-width-xl: 80rem;
127
+ --simple-content-width-2xl: 96rem;
128
+ --simple-sidebar-width: 16rem;
129
+ --simple-radius-none: 0;
130
+ --simple-radius-sm: 0.25rem;
131
+ --simple-radius-md: 0.5rem;
132
+ --simple-radius-lg: 0.75rem;
133
+ --simple-radius-xl: 1rem;
134
+ --simple-radius-round: 9999px;
135
+ --simple-shadow-none: none;
136
+ --simple-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.08);
137
+ --simple-shadow-md: 0 4px 6px rgb(0 0 0 / 0.1);
138
+ --simple-shadow-lg: 0 10px 15px rgb(0 0 0 / 0.12);
139
+ --simple-shadow-overlay: 0 20px 25px rgb(0 0 0 / 0.18);
140
+ --simple-duration-instant: 0ms;
141
+ --simple-duration-fast: 120ms;
142
+ --simple-duration-normal: 180ms;
143
+ --simple-duration-slow: 280ms;
144
+ --simple-easing-standard: cubic-bezier(0.2, 0, 0, 1);
145
+ --simple-easing-emphasized: cubic-bezier(0.2, 0.8, 0.2, 1);
146
+ --simple-z-base: 0;
147
+ --simple-z-sticky: 100;
148
+ --simple-z-dropdown: 200;
149
+ --simple-z-overlay: 300;
150
+ --simple-z-modal: 400;
151
+ --simple-z-toast: 500;
152
+ }
153
+
154
+
155
+ .dark {
156
+ /* Native controls, scrollbars and autofill follow the mode; the SDK only toggles .dark. */
157
+ color-scheme: dark;
158
+ --simple-color-action-danger: hsl(0 62.8% 30.6%);
159
+ --simple-color-action-danger-active: hsl(0 62.8% 25%);
160
+ --simple-color-action-danger-hover: hsl(0 62.8% 27%);
161
+ --simple-color-action-primary: #0070DD;
162
+ --simple-color-action-primary-active: #004A99;
163
+ --simple-color-action-primary-foreground: #FFFFFF;
164
+ --simple-color-action-primary-hover: #005BB5;
165
+ --simple-color-action-secondary: hsl(240 3.7% 15.9%);
166
+ --simple-color-action-secondary-active: hsl(240 3.7% 21%);
167
+ --simple-color-action-secondary-foreground: hsl(0 0% 98%);
168
+ --simple-color-action-secondary-hover: hsl(240 3.7% 18%);
169
+ --simple-color-border-default: hsl(240 3.7% 15.9%);
170
+ --simple-color-border-disabled: hsl(240 3.7% 15.9%);
171
+ --simple-color-border-strong: hsl(240 3.7% 30%);
172
+ --simple-color-border-subtle: hsl(240 3.7% 13%);
173
+ --simple-color-canvas: hsl(240 10% 3.9%);
174
+ --simple-color-canvas-inverse: hsl(0 0% 98%);
175
+ --simple-color-field-background: hsl(240 10% 3.9%);
176
+ --simple-color-field-background-disabled: hsl(240 3.7% 15.9%);
177
+ --simple-color-field-border: hsl(240 3.7% 15.9%);
178
+ --simple-color-field-border-hover: hsl(240 3.7% 30%);
179
+ --simple-color-field-border-invalid: hsl(0 62.8% 30.6%);
180
+ --simple-color-field-placeholder: hsl(240 5% 64.9%);
181
+ --simple-color-field-text: hsl(0 0% 98%);
182
+ --simple-color-focus-ring: hsl(240 4.9% 83.9%);
183
+ --simple-color-header-background: hsl(240 10% 3.9%);
184
+ --simple-color-header-foreground: hsl(0 0% 98%);
185
+ --simple-color-icon-disabled: hsl(240 5% 56%);
186
+ --simple-color-icon-primary: hsl(0 0% 98%);
187
+ --simple-color-icon-secondary: hsl(240 5% 64.9%);
188
+ --simple-color-navbar-accent: hsl(240 3.7% 15.9%);
189
+ --simple-color-navbar-accent-foreground: hsl(240 4.8% 95.9%);
190
+ --simple-color-navbar-background: hsl(240 5.9% 10%);
191
+ --simple-color-navbar-foreground: hsl(240 4.8% 95.9%);
192
+ --simple-color-navbar-primary: hsl(224.3 76.3% 48%);
193
+ --simple-color-navbar-primary-foreground: hsl(0 0% 100%);
194
+ --simple-color-status-danger: hsl(0 55% 42%);
195
+ --simple-color-status-danger-background: hsl(0 45% 24%);
196
+ --simple-color-status-danger-foreground: hsl(0 85% 88%);
197
+ --simple-color-status-info: hsl(214 70% 45%);
198
+ --simple-color-status-info-background: hsl(214 60% 25%);
199
+ --simple-color-status-info-foreground: hsl(214 95% 90%);
200
+ --simple-color-status-success: hsl(142 50% 38%);
201
+ --simple-color-status-success-background: hsl(142 45% 22%);
202
+ --simple-color-status-success-foreground: hsl(142 65% 85%);
203
+ --simple-color-status-warning: hsl(38 65% 42%);
204
+ --simple-color-status-warning-background: hsl(38 55% 24%);
205
+ --simple-color-status-warning-foreground: hsl(38 90% 85%);
206
+ --simple-color-surface: hsl(240 10% 3.9%);
207
+ --simple-color-surface-active: hsl(240 3.7% 21%);
208
+ --simple-color-surface-disabled: hsl(240 3.7% 15.9%);
209
+ --simple-color-surface-hover: hsl(240 3.7% 18%);
210
+ --simple-color-surface-overlay: hsl(240 10% 3.9%);
211
+ --simple-color-surface-raised: hsl(240 10% 3.9%);
212
+ --simple-color-surface-selected: hsl(240 3.7% 15.9%);
213
+ --simple-color-surface-sunken: hsl(240 3.7% 15.9%);
214
+ --simple-color-text-disabled: hsl(240 5% 50%);
215
+ --simple-color-text-inverse: hsl(240 10% 3.9%);
216
+ --simple-color-text-link: hsl(240 4.9% 83.9%);
217
+ --simple-color-text-link-hover: hsl(0 0% 98%);
218
+ --simple-color-text-primary: hsl(0 0% 98%);
219
+ --simple-color-text-secondary: hsl(240 5% 64.9%);
220
+ }
221
+
222
+ @theme {
223
+ /* shadcn color tokens */
224
+ --color-background: var(--simple-color-canvas);
225
+ --color-foreground: var(--simple-color-text-primary);
226
+ --color-card: var(--simple-color-surface-raised);
227
+ --color-card-foreground: var(--simple-color-text-primary);
228
+ --color-popover: var(--simple-color-surface-overlay);
229
+ --color-popover-foreground: var(--simple-color-text-primary);
230
+ --color-primary: var(--simple-color-action-primary);
231
+ --color-primary-foreground: var(--simple-color-action-primary-foreground);
232
+ --color-secondary: var(--simple-color-action-secondary);
233
+ --color-secondary-foreground: var(--simple-color-action-secondary-foreground);
234
+ --color-muted: var(--simple-color-surface-sunken);
235
+ --color-muted-foreground: var(--simple-color-text-secondary);
236
+ --color-accent: var(--simple-color-surface-hover);
237
+ --color-accent-foreground: var(--simple-color-text-primary);
238
+ --color-destructive: var(--simple-color-action-danger);
239
+ --color-destructive-foreground: var(--simple-color-action-danger-foreground);
240
+ --color-border: var(--simple-color-border-default);
241
+ --color-input: var(--simple-color-field-border);
242
+ --color-ring: var(--simple-color-focus-ring);
243
+
244
+ /* shadcn sidebar color tokens */
245
+ --color-sidebar: var(--simple-color-navbar-background);
246
+ --color-sidebar-background: var(--simple-color-navbar-background);
247
+ --color-sidebar-foreground: var(--simple-color-navbar-foreground);
248
+ --color-sidebar-primary: var(--simple-color-navbar-primary);
249
+ --color-sidebar-primary-foreground: var(--simple-color-navbar-primary-foreground);
250
+ --color-sidebar-accent: var(--simple-color-navbar-accent);
251
+ --color-sidebar-accent-foreground: var(--simple-color-navbar-accent-foreground);
252
+ --color-sidebar-border: var(--simple-color-border-default);
253
+ --color-sidebar-ring: var(--simple-color-navbar-ring);
254
+
255
+ --color-navbar: var(--simple-color-navbar-background);
256
+ --color-navbar-background: var(--simple-color-navbar-background);
257
+ --color-navbar-foreground: var(--simple-color-navbar-foreground);
258
+ --color-navbar-primary: var(--simple-color-navbar-primary);
259
+ --color-navbar-primary-foreground: var(--simple-color-navbar-primary-foreground);
260
+ --color-navbar-accent: var(--simple-color-navbar-accent);
261
+ --color-navbar-accent-foreground: var(--simple-color-navbar-accent-foreground);
262
+ --color-navbar-border: var(--simple-color-border-default);
263
+ --color-navbar-ring: var(--simple-color-navbar-ring);
264
+
265
+ /* Semantic utility families: header */
266
+ --color-header-background: var(--simple-color-header-background);
267
+ --color-header-foreground: var(--simple-color-header-foreground);
268
+ --color-header-border: var(--simple-color-border-default);
269
+
270
+ /* shadcn chart utilities */
271
+ --color-chart-1: var(--simple-color-accent-1);
272
+ --color-chart-2: var(--simple-color-accent-2);
273
+ --color-chart-3: var(--simple-color-accent-3);
274
+ --color-chart-4: var(--simple-color-accent-4);
275
+ --color-chart-5: var(--simple-color-accent-5);
276
+
277
+ /* Semantic utility families: canvas */
278
+ --color-canvas: var(--simple-color-canvas);
279
+ --color-canvas-inverse: var(--simple-color-canvas-inverse);
280
+
281
+ /* Semantic utility families: surface */
282
+ --color-surface: var(--simple-color-surface);
283
+ --color-surface-raised: var(--simple-color-surface-raised);
284
+ --color-surface-sunken: var(--simple-color-surface-sunken);
285
+ --color-surface-overlay: var(--simple-color-surface-overlay);
286
+ --color-surface-hover: var(--simple-color-surface-hover);
287
+ --color-surface-active: var(--simple-color-surface-active);
288
+ --color-surface-selected: var(--simple-color-surface-selected);
289
+ --color-surface-disabled: var(--simple-color-surface-disabled);
290
+
291
+ /* Semantic utility families: text */
292
+ --color-text-primary: var(--simple-color-text-primary);
293
+ --color-text-secondary: var(--simple-color-text-secondary);
294
+ --color-text-tertiary: var(--simple-color-text-tertiary);
295
+ --color-text-disabled: var(--simple-color-text-disabled);
296
+ --color-text-inverse: var(--simple-color-text-inverse);
297
+ --color-text-link: var(--simple-color-text-link);
298
+ --color-text-link-hover: var(--simple-color-text-link-hover);
299
+
300
+ /* Semantic utility families: icon */
301
+ --color-icon-primary: var(--simple-color-icon-primary);
302
+ --color-icon-secondary: var(--simple-color-icon-secondary);
303
+ --color-icon-disabled: var(--simple-color-icon-disabled);
304
+
305
+ /* Semantic utility families: border */
306
+ --color-border-subtle: var(--simple-color-border-subtle);
307
+ --color-border-default: var(--simple-color-border-default);
308
+ --color-border-strong: var(--simple-color-border-strong);
309
+ --color-border-disabled: var(--simple-color-border-disabled);
310
+
311
+ /* Semantic utility families: focus */
312
+ --color-focus-ring: var(--simple-color-focus-ring);
313
+ --color-overlay-backdrop: var(--simple-color-overlay-backdrop);
314
+
315
+ /* Semantic utility families: action */
316
+ --color-action-primary: var(--simple-color-action-primary);
317
+ --color-action-primary-hover: var(--simple-color-action-primary-hover);
318
+ --color-action-primary-active: var(--simple-color-action-primary-active);
319
+ --color-action-primary-foreground: var(--simple-color-action-primary-foreground);
320
+ --color-action-secondary: var(--simple-color-action-secondary);
321
+ --color-action-secondary-hover: var(--simple-color-action-secondary-hover);
322
+ --color-action-secondary-active: var(--simple-color-action-secondary-active);
323
+ --color-action-secondary-foreground: var(--simple-color-action-secondary-foreground);
324
+ --color-action-danger: var(--simple-color-action-danger);
325
+ --color-action-danger-hover: var(--simple-color-action-danger-hover);
326
+ --color-action-danger-active: var(--simple-color-action-danger-active);
327
+ --color-action-danger-foreground: var(--simple-color-action-danger-foreground);
328
+ --background-image-action-primary-gradient: var(--simple-gradient-action-primary);
329
+
330
+ /* Semantic utility families: status */
331
+ --color-status-info: var(--simple-color-status-info);
332
+ --color-status-info-background: var(--simple-color-status-info-background);
333
+ --color-status-info-foreground: var(--simple-color-status-info-foreground);
334
+ --color-status-success: var(--simple-color-status-success);
335
+ --color-status-success-background: var(--simple-color-status-success-background);
336
+ --color-status-success-foreground: var(--simple-color-status-success-foreground);
337
+ --color-status-warning: var(--simple-color-status-warning);
338
+ --color-status-warning-background: var(--simple-color-status-warning-background);
339
+ --color-status-warning-foreground: var(--simple-color-status-warning-foreground);
340
+ --color-status-danger: var(--simple-color-status-danger);
341
+ --color-status-danger-background: var(--simple-color-status-danger-background);
342
+ --color-status-danger-foreground: var(--simple-color-status-danger-foreground);
343
+
344
+ /* Semantic utility families: field */
345
+ --color-field-background: var(--simple-color-field-background);
346
+ --color-field-background-disabled: var(--simple-color-field-background-disabled);
347
+ --color-field-border: var(--simple-color-field-border);
348
+ --color-field-border-hover: var(--simple-color-field-border-hover);
349
+ --color-field-border-invalid: var(--simple-color-field-border-invalid);
350
+ --color-field-placeholder: var(--simple-color-field-placeholder);
351
+ --color-field-text: var(--simple-color-field-text);
12
352
 
13
- /* StatusBadge defaults follow the platform palette and remain Space-overridable. */
14
- --simple-status-badge-font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
15
- --simple-status-badge-font-size: 0.75rem;
16
- --simple-status-badge-font-weight: 500;
17
- --simple-status-badge-line-height: 1rem;
18
- --simple-status-badge-min-height: 1.5rem;
19
- --simple-status-badge-padding-inline: 0.5rem;
20
- --simple-status-badge-radius: 9999px;
353
+ /* Semantic utility families: chart */
354
+ --color-chart-series-1: var(--simple-color-accent-1);
355
+ --color-chart-series-2: var(--simple-color-accent-2);
356
+ --color-chart-series-3: var(--simple-color-accent-3);
357
+ --color-chart-series-4: var(--simple-color-accent-4);
358
+ --color-chart-series-5: var(--simple-color-accent-5);
21
359
 
22
- --simple-status-badge-neutral-background: hsl(var(--secondary, 210 40% 98%));
23
- --simple-status-badge-neutral-border: hsl(var(--border, 213 27% 84%));
24
- --simple-status-badge-neutral-foreground: hsl(var(--secondary-foreground, 215 19% 35%));
360
+ /* Typography: font families */
361
+ --font-sans: var(--simple-font-family-sans);
362
+ --font-mono: var(--simple-font-family-mono);
25
363
 
26
- --simple-status-badge-info-background: hsl(214 95% 93%);
27
- --simple-status-badge-info-border: hsl(214 95% 75%);
28
- --simple-status-badge-info-foreground: hsl(221 83% 35%);
364
+ /* Typography: text size utilities */
365
+ --text-2xs: var(--simple-font-size-2xs);
366
+ --text-xs: var(--simple-font-size-xs);
367
+ --text-sm: var(--simple-font-size-sm);
368
+ --text-base: var(--simple-font-size-md);
369
+ --text-md: var(--simple-font-size-md);
370
+ --text-lg: var(--simple-font-size-lg);
371
+ --text-xl: var(--simple-font-size-xl);
372
+ --text-2xl: var(--simple-font-size-2xl);
373
+ --text-3xl: var(--simple-font-size-3xl);
29
374
 
30
- --simple-status-badge-success-background: hsl(142 76% 90%);
31
- --simple-status-badge-success-border: hsl(142 76% 65%);
32
- --simple-status-badge-success-foreground: hsl(142 72% 25%);
375
+ /* Typography: font weights */
376
+ --font-weight-regular: var(--simple-font-weight-regular);
377
+ --font-weight-normal: var(--simple-font-weight-regular);
378
+ --font-weight-medium: var(--simple-font-weight-medium);
379
+ --font-weight-semibold: var(--simple-font-weight-semibold);
380
+ --font-weight-bold: var(--simple-font-weight-bold);
33
381
 
34
- --simple-status-badge-warning-background: hsl(38 92% 90%);
35
- --simple-status-badge-warning-border: hsl(38 92% 65%);
36
- --simple-status-badge-warning-foreground: hsl(28 80% 25%);
382
+ /* Typography: line heights */
383
+ --leading-tight: var(--simple-line-height-tight);
384
+ --leading-normal: var(--simple-line-height-normal);
385
+ --leading-relaxed: var(--simple-line-height-relaxed);
37
386
 
38
- --simple-status-badge-danger-background: hsl(0 84% 95%);
39
- --simple-status-badge-danger-border: hsl(0 84% 75%);
40
- --simple-status-badge-danger-foreground: hsl(0 72% 35%);
387
+ /* Typography: tracking */
388
+ --tracking-tight: var(--simple-letter-spacing-tight);
389
+ --tracking-normal: var(--simple-letter-spacing-normal);
390
+
391
+ /* Spacing and layout utilities */
392
+ --spacing-0: var(--simple-space-0);
393
+ --spacing-1: var(--simple-space-1);
394
+ --spacing-2: var(--simple-space-2);
395
+ --spacing-3: var(--simple-space-3);
396
+ --spacing-4: var(--simple-space-4);
397
+ --spacing-5: var(--simple-space-5);
398
+ --spacing-6: var(--simple-space-6);
399
+ --spacing-8: var(--simple-space-8);
400
+ --spacing-10: var(--simple-space-10);
401
+ --spacing-12: var(--simple-space-12);
402
+ --spacing-16: var(--simple-space-16);
403
+ --spacing-20: var(--simple-space-20);
404
+ --spacing-24: var(--simple-space-24);
405
+
406
+ --height-control-sm: var(--simple-control-height-sm);
407
+ --height-control-md: var(--simple-control-height-md);
408
+ --height-control-lg: var(--simple-control-height-lg);
409
+
410
+ --height-icon-sm: var(--simple-icon-size-sm);
411
+ --height-icon-md: var(--simple-icon-size-md);
412
+ --height-icon-lg: var(--simple-icon-size-lg);
413
+ --size-icon-sm: var(--simple-icon-size-sm);
414
+ --size-icon-md: var(--simple-icon-size-md);
415
+ --size-icon-lg: var(--simple-icon-size-lg);
416
+
417
+ --container-content-sm: var(--simple-content-width-sm);
418
+ --container-content-md: var(--simple-content-width-md);
419
+ --container-content-lg: var(--simple-content-width-lg);
420
+ --container-content-xl: var(--simple-content-width-xl);
421
+ --container-content-2xl: var(--simple-content-width-2xl);
422
+ --width-sidebar: var(--simple-sidebar-width);
423
+
424
+ /* Radii */
425
+ --radius: var(--simple-radius-md);
426
+ --radius-none: var(--simple-radius-none);
427
+ --radius-sm: var(--simple-radius-sm);
428
+ --radius-md: var(--simple-radius-md);
429
+ --radius-lg: var(--simple-radius-lg);
430
+ --radius-xl: var(--simple-radius-xl);
431
+ --radius-round: var(--simple-radius-round);
432
+ --radius-full: var(--simple-radius-round);
433
+
434
+ /* Shadows */
435
+ --shadow: var(--simple-shadow-md);
436
+ --shadow-none: var(--simple-shadow-none);
437
+ --shadow-sm: var(--simple-shadow-sm);
438
+ --shadow-md: var(--simple-shadow-md);
439
+ --shadow-lg: var(--simple-shadow-lg);
440
+ --shadow-overlay: var(--simple-shadow-overlay);
41
441
  }
42
442
 
43
- .dark {
44
- --simple-status-badge-info-background: hsl(214 60% 25%);
45
- --simple-status-badge-info-border: hsl(214 70% 45%);
46
- --simple-status-badge-info-foreground: hsl(214 95% 90%);
47
- --simple-status-badge-success-background: hsl(142 45% 22%);
48
- --simple-status-badge-success-border: hsl(142 50% 38%);
49
- --simple-status-badge-success-foreground: hsl(142 65% 85%);
50
- --simple-status-badge-warning-background: hsl(38 55% 24%);
51
- --simple-status-badge-warning-border: hsl(38 65% 42%);
52
- --simple-status-badge-warning-foreground: hsl(38 90% 85%);
53
- --simple-status-badge-danger-background: hsl(0 45% 24%);
54
- --simple-status-badge-danger-border: hsl(0 55% 42%);
55
- --simple-status-badge-danger-foreground: hsl(0 85% 88%);
443
+ @media (min-width: 40rem) {
444
+ .container {
445
+ max-width: var(--simple-content-width-sm);
446
+ }
447
+ }
448
+
449
+ @media (min-width: 48rem) {
450
+ .container {
451
+ max-width: var(--simple-content-width-md);
452
+ }
453
+ }
454
+
455
+ @media (min-width: 64rem) {
456
+ .container {
457
+ max-width: var(--simple-content-width-lg);
458
+ }
459
+ }
460
+
461
+ @media (min-width: 80rem) {
462
+ .container {
463
+ max-width: var(--simple-content-width-xl);
464
+ }
465
+ }
466
+
467
+ @media (min-width: 96rem) {
468
+ .container {
469
+ max-width: var(--simple-content-width-2xl);
470
+ }
471
+ }
472
+
473
+ @layer utilities {
474
+ .lucide:is([class~='size-icon-sm'], [class~='size-4'], [class~='h-4'][class~='w-4']) {
475
+ height: var(--simple-icon-size-sm);
476
+ width: var(--simple-icon-size-sm);
477
+ }
478
+
479
+ .lucide:is([class~='size-icon-md'], [class~='size-5'], [class~='h-5'][class~='w-5']) {
480
+ height: var(--simple-icon-size-md);
481
+ width: var(--simple-icon-size-md);
482
+ }
483
+
484
+ .lucide:is([class~='size-icon-lg'], [class~='size-6'], [class~='h-6'][class~='w-6']) {
485
+ height: var(--simple-icon-size-lg);
486
+ width: var(--simple-icon-size-lg);
487
+ }
56
488
  }