@cmgfi/clear-ds 1.0.1 → 1.1.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 +478 -0
- package/dist/llms.txt +1642 -0
- package/dist/tokens/tokens.css +102 -0
- package/package.json +9 -3
package/dist/tokens/tokens.css
CHANGED
|
@@ -171,6 +171,108 @@
|
|
|
171
171
|
--scrim-color: #2A343D;
|
|
172
172
|
--scrim-opacity: 0.25;
|
|
173
173
|
--scrim: color-mix(in srgb, var(--scrim-color) calc(var(--scrim-opacity) * 100%), transparent);
|
|
174
|
+
|
|
175
|
+
/* ==========================================================================
|
|
176
|
+
SEMANTIC TOKENS
|
|
177
|
+
Purpose-named aliases over the primitive scale above.
|
|
178
|
+
Always prefer these in component styles and consumer code over raw
|
|
179
|
+
primitives — semantic names survive theme changes and communicate intent.
|
|
180
|
+
========================================================================== */
|
|
181
|
+
|
|
182
|
+
/* ── Text Colors ─────────────────────────────────────────────────────────
|
|
183
|
+
Named by role in the UI. heading/body/label share the same value today
|
|
184
|
+
but are kept separate so a future theme can differentiate them. */
|
|
185
|
+
--color-text-heading: var(--navy-800); /* Page headings, section titles, panel headers */
|
|
186
|
+
--color-text-body: var(--navy-800); /* Body copy, descriptions, content paragraphs */
|
|
187
|
+
--color-text-label: var(--navy-800); /* Form field labels, data column headers */
|
|
188
|
+
--color-text-helper: var(--navy-400); /* Helper text, subtitles, field descriptions */
|
|
189
|
+
--color-text-placeholder: var(--navy-300); /* Input placeholder text */
|
|
190
|
+
--color-text-disabled: var(--navy-300); /* Disabled input and control text */
|
|
191
|
+
--color-text-error: var(--red-600); /* Validation error messages */
|
|
192
|
+
--color-text-link: var(--teal-700); /* Hyperlinks, inline interactive text */
|
|
193
|
+
--color-text-link-hover: var(--teal-900); /* Hovered hyperlinks */
|
|
194
|
+
--color-text-inverse: var(--surface-50); /* Text on dark or brand-colored surfaces */
|
|
195
|
+
|
|
196
|
+
/* ── Text Sizes ──────────────────────────────────────────────────────────
|
|
197
|
+
Named by purpose in the UI. Base: 1rem = 12px. */
|
|
198
|
+
--font-size-hero: 48px; /* Hero banners, display text */
|
|
199
|
+
--font-size-title: 38px; /* Major page titles */
|
|
200
|
+
--font-size-section: 32px; /* Section headings */
|
|
201
|
+
--font-size-panel: 20px; /* Panel and card headings */
|
|
202
|
+
--font-size-subheading: 18px; /* Subheadings, intro paragraphs */
|
|
203
|
+
--font-size-label: 14px; /* Form labels, prominent body text */
|
|
204
|
+
--font-size-body: 12px; /* Standard body text (= 1rem) */
|
|
205
|
+
--font-size-caption: 10px; /* Captions, helper text, badge labels */
|
|
206
|
+
|
|
207
|
+
--font-weight-bold: 700; /* Headings, strong emphasis */
|
|
208
|
+
--font-weight-semibold: 600; /* Labels, medium emphasis */
|
|
209
|
+
--font-weight-regular: 400; /* Body copy, field values */
|
|
210
|
+
|
|
211
|
+
--line-height-heading: 1.2; /* Headings and titles — tight */
|
|
212
|
+
--line-height-body: 1.4; /* Body copy and labels — comfortable */
|
|
213
|
+
|
|
214
|
+
/* ── Surfaces / Backgrounds ──────────────────────────────────────────── */
|
|
215
|
+
--color-surface-default: var(--surface-50); /* White — base page/card/input background */
|
|
216
|
+
--color-surface-secondary: var(--surface-200); /* Secondary panels, alternate rows */
|
|
217
|
+
--color-surface-elevated: var(--surface-100); /* Popovers, dropdowns, cards that float */
|
|
218
|
+
--color-surface-hover: var(--surface-200); /* Hover background on list/menu items */
|
|
219
|
+
--color-surface-disabled: var(--surface-300); /* Disabled input/field background */
|
|
220
|
+
--color-surface-selected: var(--teal-50); /* Selected row or active item background */
|
|
221
|
+
--color-surface-overlay: var(--scrim); /* Modal and drawer backdrop */
|
|
222
|
+
|
|
223
|
+
/* ── Borders ─────────────────────────────────────────────────────────── */
|
|
224
|
+
--color-border-primary: var(--navy-100); /* Default input, card, and container borders */
|
|
225
|
+
--color-border-secondary: var(--navy-200); /* Stronger dividers, tab borders */
|
|
226
|
+
--color-border-tertiary: var(--surface-500); /* Very light internal dividers */
|
|
227
|
+
--color-border-brand: var(--teal-100); /* Soft brand-colored border */
|
|
228
|
+
--color-border-brand-strong: var(--teal-200); /* Stronger brand border — hover of soft elements */
|
|
229
|
+
--color-border-focus: var(--teal-500); /* Focused input border ring */
|
|
230
|
+
--color-border-error: var(--red-600); /* Error/invalid state border */
|
|
231
|
+
|
|
232
|
+
/* ── Brand ───────────────────────────────────────────────────────────── */
|
|
233
|
+
--color-brand-primary: var(--teal-700); /* Primary brand color — buttons, links, toggles */
|
|
234
|
+
--color-brand-primary-hover: var(--teal-800); /* Hover over primary brand elements */
|
|
235
|
+
--color-brand-primary-active: var(--teal-900); /* Pressed/active primary brand elements */
|
|
236
|
+
--color-brand-primary-bg: var(--teal-50); /* Tinted background for brand-highlighted areas */
|
|
237
|
+
--color-brand-secondary: var(--teal-500); /* Secondary brand — focus indicators, data markers */
|
|
238
|
+
--color-brand-secondary-hover: var(--teal-600); /* Hover over secondary brand elements */
|
|
239
|
+
|
|
240
|
+
/* ── Status ──────────────────────────────────────────────────────────── */
|
|
241
|
+
--color-status-error: var(--red-600); /* Error text, icons */
|
|
242
|
+
--color-status-error-hover: var(--red-700); /* Hovered error elements */
|
|
243
|
+
--color-status-error-bg: var(--red-50); /* Error background tint */
|
|
244
|
+
--color-status-error-border: var(--red-600); /* Error borders */
|
|
245
|
+
--color-status-warning: var(--yellow-600); /* Warning text, icons */
|
|
246
|
+
--color-status-warning-bg: var(--yellow-50); /* Warning background tint */
|
|
247
|
+
--color-status-warning-border: var(--yellow-200); /* Warning borders */
|
|
248
|
+
--color-status-success: var(--green-500); /* Success text, icons */
|
|
249
|
+
--color-status-success-bg: var(--green-50); /* Success background tint */
|
|
250
|
+
--color-status-success-border: var(--green-200); /* Success borders */
|
|
251
|
+
--color-status-info: var(--blue-500); /* Info text, icons */
|
|
252
|
+
--color-status-info-bg: var(--blue-50); /* Info background tint */
|
|
253
|
+
--color-status-info-border: var(--blue-200); /* Info borders */
|
|
254
|
+
|
|
255
|
+
/* ── Focus Rings ─────────────────────────────────────────────────────── */
|
|
256
|
+
--focus-ring: 0 0 0 2px var(--surface-50), 0 0 0 6px var(--teal-700); /* Standard keyboard focus */
|
|
257
|
+
--focus-ring-inset: inset 0 0 0 2px var(--teal-700); /* Inset variant — menus, popovers */
|
|
258
|
+
|
|
259
|
+
/* ── Border Radius ───────────────────────────────────────────────────── */
|
|
260
|
+
--radius-sm: 4px; /* Small chips, tags, badges */
|
|
261
|
+
--radius-md: 6px; /* Standard — inputs, cards, buttons */
|
|
262
|
+
--radius-lg: 8px; /* Modals, drawers, larger containers */
|
|
263
|
+
--radius-full: 9999px; /* Pill buttons, circular avatars */
|
|
264
|
+
|
|
265
|
+
/* ── Motion ──────────────────────────────────────────────────────────── */
|
|
266
|
+
--transition-fast: 80ms ease; /* Hover color changes */
|
|
267
|
+
--transition-normal: 120ms ease; /* Standard state changes */
|
|
268
|
+
--transition-slow: 200ms ease; /* Expand/collapse, panel slides */
|
|
269
|
+
|
|
270
|
+
/* ── Z-Index Scale ───────────────────────────────────────────────────── */
|
|
271
|
+
--z-sticky: 100; /* Sticky headers, persistent bars */
|
|
272
|
+
--z-dropdown: 200; /* Dropdowns, menus, date pickers */
|
|
273
|
+
--z-overlay: 300; /* Modals, drawers */
|
|
274
|
+
--z-notification: 400; /* Toast notifications */
|
|
275
|
+
--z-tooltip: 500; /* Tooltips */
|
|
174
276
|
}
|
|
175
277
|
|
|
176
278
|
/* --- Headings --- */
|
package/package.json
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmgfi/clear-ds",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "CMG Financial — Clear Design System React component library",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cmg",
|
|
7
|
+
"clear-ds",
|
|
8
|
+
"design-system",
|
|
9
|
+
"react",
|
|
10
|
+
"components"
|
|
11
|
+
],
|
|
6
12
|
"license": "UNLICENSED",
|
|
7
13
|
"repository": {
|
|
8
14
|
"type": "git",
|
|
9
|
-
"url": "https://
|
|
15
|
+
"url": "https://github.com/cmg-pilot-program/clear-ds.git"
|
|
10
16
|
},
|
|
11
17
|
"publishConfig": {
|
|
12
18
|
"access": "public"
|