@code-sherpas/pharos-tokens 0.8.1 → 1.0.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/dist/index.js CHANGED
@@ -122,17 +122,6 @@ export const tokens = {
122
122
  "toast": "1700",
123
123
  "tooltip": "1800"
124
124
  },
125
- "z": {
126
- "0": "0",
127
- "header": "1000",
128
- "above-header": "1100",
129
- "modal-overlay": "9998",
130
- "modal": "9999",
131
- "drawer-overlay": "9999",
132
- "drawer": "10000",
133
- "dropdown": "10001",
134
- "tooltip": "10002"
135
- },
136
125
  "duration": {
137
126
  "fast": "100ms",
138
127
  "normal": "200ms",
@@ -230,13 +219,6 @@ export const tokens = {
230
219
  "lineHeight": "1.25",
231
220
  "letterSpacing": "0"
232
221
  },
233
- "lesson-title": {
234
- "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
235
- "fontSize": "1.25rem",
236
- "fontWeight": "600",
237
- "lineHeight": "1.25",
238
- "letterSpacing": "0"
239
- },
240
222
  "subtitle": {
241
223
  "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
242
224
  "fontSize": "1.125rem",
package/dist/styles.css CHANGED
@@ -71,15 +71,6 @@
71
71
  --pharos-z-index-popover: 1500; /** Anchored floating UI: Popover, DropdownMenu, Select and Combobox lists. Above modal so it can open from inside a Dialog or Sheet. */
72
72
  --pharos-z-index-toast: 1700; /** Toasts and transient notifications. */
73
73
  --pharos-z-index-tooltip: 1800; /** Tooltips: always on top. */
74
- --pharos-z-0: 0; /** DEPRECATED: use --pharos-z-index-base (decision D29). Removed in the next major. */
75
- --pharos-z-header: 1000; /** DEPRECATED: use --pharos-z-index-sticky (decision D29). Removed in the next major. */
76
- --pharos-z-above-header: 1100; /** DEPRECATED: use --pharos-z-index-sticky (decision D29). Removed in the next major. */
77
- --pharos-z-modal-overlay: 9998; /** DEPRECATED: use --pharos-z-index-overlay (decision D29). Removed in the next major. */
78
- --pharos-z-modal: 9999; /** DEPRECATED: use --pharos-z-index-modal (decision D29). Removed in the next major. */
79
- --pharos-z-drawer-overlay: 9999; /** DEPRECATED: use --pharos-z-index-overlay (decision D29). Removed in the next major. */
80
- --pharos-z-drawer: 10000; /** DEPRECATED: use --pharos-z-index-modal (decision D29). Removed in the next major. */
81
- --pharos-z-dropdown: 10001; /** DEPRECATED: use --pharos-z-index-popover (decision D29). Removed in the next major. */
82
- --pharos-z-tooltip: 10002; /** DEPRECATED: use --pharos-z-index-tooltip (decision D29). Removed in the next major. */
83
74
  --pharos-duration-fast: 0.1s; /** Micro interactions (hover). */
84
75
  --pharos-duration-normal: 0.2s; /** Default transitions. */
85
76
  --pharos-duration-slow: 0.3s; /** Panel slide, overlay fade. */
@@ -164,11 +155,6 @@
164
155
  --pharos-type-h4-font-weight: var(--pharos-font-weight-semibold); /** H4 (xl). */
165
156
  --pharos-type-h4-line-height: var(--pharos-font-line-height-tight); /** H4 (xl). */
166
157
  --pharos-type-h4-letter-spacing: var(--pharos-font-letter-spacing-normal); /** H4 (xl). */
167
- --pharos-type-lesson-title-font-family: var(--pharos-font-family-sans); /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
168
- --pharos-type-lesson-title-font-size: var(--pharos-font-size-xl); /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
169
- --pharos-type-lesson-title-font-weight: var(--pharos-font-weight-semibold); /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
170
- --pharos-type-lesson-title-line-height: var(--pharos-font-line-height-tight); /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
171
- --pharos-type-lesson-title-letter-spacing: var(--pharos-font-letter-spacing-normal); /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
172
158
  --pharos-type-subtitle-font-family: var(--pharos-font-family-sans); /** Subtitles (lg). */
173
159
  --pharos-type-subtitle-font-size: var(--pharos-font-size-lg); /** Subtitles (lg). */
174
160
  --pharos-type-subtitle-font-weight: var(--pharos-font-weight-medium); /** Subtitles (lg). */
package/dist/tokens.d.ts CHANGED
@@ -162,24 +162,6 @@ export const PharosZIndexPopover: string;
162
162
  export const PharosZIndexToast: string;
163
163
  /** Tooltips: always on top. */
164
164
  export const PharosZIndexTooltip: string;
165
- /** DEPRECATED: use --pharos-z-index-base (decision D29). Removed in the next major. */
166
- export const PharosZ0: string;
167
- /** DEPRECATED: use --pharos-z-index-sticky (decision D29). Removed in the next major. */
168
- export const PharosZHeader: string;
169
- /** DEPRECATED: use --pharos-z-index-sticky (decision D29). Removed in the next major. */
170
- export const PharosZAboveHeader: string;
171
- /** DEPRECATED: use --pharos-z-index-overlay (decision D29). Removed in the next major. */
172
- export const PharosZModalOverlay: string;
173
- /** DEPRECATED: use --pharos-z-index-modal (decision D29). Removed in the next major. */
174
- export const PharosZModal: string;
175
- /** DEPRECATED: use --pharos-z-index-overlay (decision D29). Removed in the next major. */
176
- export const PharosZDrawerOverlay: string;
177
- /** DEPRECATED: use --pharos-z-index-modal (decision D29). Removed in the next major. */
178
- export const PharosZDrawer: string;
179
- /** DEPRECATED: use --pharos-z-index-popover (decision D29). Removed in the next major. */
180
- export const PharosZDropdown: string;
181
- /** DEPRECATED: use --pharos-z-index-tooltip (decision D29). Removed in the next major. */
182
- export const PharosZTooltip: string;
183
165
  /** Micro interactions (hover). */
184
166
  export const PharosDurationFast: string;
185
167
  /** Default transitions. */
@@ -308,16 +290,6 @@ export const PharosTypeH4FontWeight: string;
308
290
  export const PharosTypeH4LineHeight: string;
309
291
  /** H4 (xl). */
310
292
  export const PharosTypeH4LetterSpacing: string;
311
- /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
312
- export const PharosTypeLessonTitleFontFamily: string;
313
- /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
314
- export const PharosTypeLessonTitleFontSize: string;
315
- /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
316
- export const PharosTypeLessonTitleFontWeight: string;
317
- /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
318
- export const PharosTypeLessonTitleLineHeight: string;
319
- /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
320
- export const PharosTypeLessonTitleLetterSpacing: string;
321
293
  /** Subtitles (lg). */
322
294
  export const PharosTypeSubtitleFontFamily: string;
323
295
  /** Subtitles (lg). */
package/dist/tokens.js CHANGED
@@ -86,15 +86,6 @@ export const PharosZIndexModal = "1400"; // Modal UI: Dialog and Sheet panels.
86
86
  export const PharosZIndexPopover = "1500"; // Anchored floating UI: Popover, DropdownMenu, Select and Combobox lists. Above modal so it can open from inside a Dialog or Sheet.
87
87
  export const PharosZIndexToast = "1700"; // Toasts and transient notifications.
88
88
  export const PharosZIndexTooltip = "1800"; // Tooltips: always on top.
89
- export const PharosZ0 = "0"; // DEPRECATED: use --pharos-z-index-base (decision D29). Removed in the next major.
90
- export const PharosZHeader = "1000"; // DEPRECATED: use --pharos-z-index-sticky (decision D29). Removed in the next major.
91
- export const PharosZAboveHeader = "1100"; // DEPRECATED: use --pharos-z-index-sticky (decision D29). Removed in the next major.
92
- export const PharosZModalOverlay = "9998"; // DEPRECATED: use --pharos-z-index-overlay (decision D29). Removed in the next major.
93
- export const PharosZModal = "9999"; // DEPRECATED: use --pharos-z-index-modal (decision D29). Removed in the next major.
94
- export const PharosZDrawerOverlay = "9999"; // DEPRECATED: use --pharos-z-index-overlay (decision D29). Removed in the next major.
95
- export const PharosZDrawer = "10000"; // DEPRECATED: use --pharos-z-index-modal (decision D29). Removed in the next major.
96
- export const PharosZDropdown = "10001"; // DEPRECATED: use --pharos-z-index-popover (decision D29). Removed in the next major.
97
- export const PharosZTooltip = "10002"; // DEPRECATED: use --pharos-z-index-tooltip (decision D29). Removed in the next major.
98
89
  export const PharosDurationFast = "100ms"; // Micro interactions (hover).
99
90
  export const PharosDurationNormal = "200ms"; // Default transitions.
100
91
  export const PharosDurationSlow = "300ms"; // Panel slide, overlay fade.
@@ -173,12 +164,6 @@ export const PharosTypeH4FontSize = "1.25rem"; // H4 (xl).
173
164
  export const PharosTypeH4FontWeight = "600"; // H4 (xl).
174
165
  export const PharosTypeH4LineHeight = "1.25"; // H4 (xl).
175
166
  export const PharosTypeH4LetterSpacing = "0"; // H4 (xl).
176
- export const PharosTypeLessonTitleFontFamily =
177
- '"Outfit", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'; // DEPRECATED: use --pharos-type-h4. Removed in the next major.
178
- export const PharosTypeLessonTitleFontSize = "1.25rem"; // DEPRECATED: use --pharos-type-h4. Removed in the next major.
179
- export const PharosTypeLessonTitleFontWeight = "600"; // DEPRECATED: use --pharos-type-h4. Removed in the next major.
180
- export const PharosTypeLessonTitleLineHeight = "1.25"; // DEPRECATED: use --pharos-type-h4. Removed in the next major.
181
- export const PharosTypeLessonTitleLetterSpacing = "0"; // DEPRECATED: use --pharos-type-h4. Removed in the next major.
182
167
  export const PharosTypeSubtitleFontFamily =
183
168
  '"Outfit", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'; // Subtitles (lg).
184
169
  export const PharosTypeSubtitleFontSize = "1.125rem"; // Subtitles (lg).
package/dist/tokens.json CHANGED
@@ -115,17 +115,6 @@
115
115
  "toast": "1700",
116
116
  "tooltip": "1800"
117
117
  },
118
- "z": {
119
- "0": "0",
120
- "header": "1000",
121
- "above-header": "1100",
122
- "modal-overlay": "9998",
123
- "modal": "9999",
124
- "drawer-overlay": "9999",
125
- "drawer": "10000",
126
- "dropdown": "10001",
127
- "tooltip": "10002"
128
- },
129
118
  "duration": {
130
119
  "fast": "100ms",
131
120
  "normal": "200ms",
@@ -223,13 +212,6 @@
223
212
  "lineHeight": "1.25",
224
213
  "letterSpacing": "0"
225
214
  },
226
- "lesson-title": {
227
- "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
228
- "fontSize": "1.25rem",
229
- "fontWeight": "600",
230
- "lineHeight": "1.25",
231
- "letterSpacing": "0"
232
- },
233
215
  "subtitle": {
234
216
  "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
235
217
  "fontSize": "1.125rem",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-sherpas/pharos-tokens",
3
- "version": "0.8.1",
3
+ "version": "1.0.0",
4
4
  "description": "Design tokens de Code Sherpas — agnóstico de framework. DTCG + Style Dictionary + OKLCH.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -58,62 +58,6 @@
58
58
  "$description": "Tooltips: always on top."
59
59
  }
60
60
  },
61
- "z": {
62
- "0": {
63
- "$value": "0",
64
- "$type": "number",
65
- "$description": "DEPRECATED: use --pharos-z-index-base (decision D29). Removed in the next major.",
66
- "$deprecated": "Use {zIndex.base} (decision D29). Removed in the next major."
67
- },
68
- "header": {
69
- "$value": "1000",
70
- "$type": "number",
71
- "$deprecated": "Use {zIndex.sticky} (decision D29). Removed in the next major.",
72
- "$description": "DEPRECATED: use --pharos-z-index-sticky (decision D29). Removed in the next major."
73
- },
74
- "above-header": {
75
- "$value": "1100",
76
- "$type": "number",
77
- "$deprecated": "Use {zIndex.sticky} (decision D29). Removed in the next major.",
78
- "$description": "DEPRECATED: use --pharos-z-index-sticky (decision D29). Removed in the next major."
79
- },
80
- "modal-overlay": {
81
- "$value": "9998",
82
- "$type": "number",
83
- "$deprecated": "Use {zIndex.overlay} (decision D29). Removed in the next major.",
84
- "$description": "DEPRECATED: use --pharos-z-index-overlay (decision D29). Removed in the next major."
85
- },
86
- "modal": {
87
- "$value": "9999",
88
- "$type": "number",
89
- "$deprecated": "Use {zIndex.modal} (decision D29). Removed in the next major.",
90
- "$description": "DEPRECATED: use --pharos-z-index-modal (decision D29). Removed in the next major."
91
- },
92
- "drawer-overlay": {
93
- "$value": "9999",
94
- "$type": "number",
95
- "$deprecated": "Use {zIndex.overlay} (decision D29). Removed in the next major.",
96
- "$description": "DEPRECATED: use --pharos-z-index-overlay (decision D29). Removed in the next major."
97
- },
98
- "drawer": {
99
- "$value": "10000",
100
- "$type": "number",
101
- "$deprecated": "Use {zIndex.modal} (decision D29). Removed in the next major.",
102
- "$description": "DEPRECATED: use --pharos-z-index-modal (decision D29). Removed in the next major."
103
- },
104
- "dropdown": {
105
- "$value": "10001",
106
- "$type": "number",
107
- "$deprecated": "Use {zIndex.popover} (decision D29). Removed in the next major.",
108
- "$description": "DEPRECATED: use --pharos-z-index-popover (decision D29). Removed in the next major."
109
- },
110
- "tooltip": {
111
- "$value": "10002",
112
- "$type": "number",
113
- "$description": "DEPRECATED: use --pharos-z-index-tooltip (decision D29). Removed in the next major.",
114
- "$deprecated": "Use {zIndex.tooltip} (decision D29). Removed in the next major."
115
- }
116
- },
117
61
  "duration": {
118
62
  "fast": {
119
63
  "$value": "100ms",
@@ -171,18 +171,6 @@
171
171
  },
172
172
  "$description": "H4 (xl)."
173
173
  },
174
- "lesson-title": {
175
- "$type": "typography",
176
- "$value": {
177
- "fontFamily": "{font.family.sans}",
178
- "fontSize": "{font.size.xl}",
179
- "fontWeight": "{font.weight.semibold}",
180
- "lineHeight": "{font.lineHeight.tight}",
181
- "letterSpacing": "{font.letterSpacing.normal}"
182
- },
183
- "$description": "DEPRECATED: use --pharos-type-h4. Removed in the next major.",
184
- "$deprecated": "Use --pharos-type-h4: Pharos names text styles by their level, not by one product's content. Removed in the next major."
185
- },
186
174
  "subtitle": {
187
175
  "$type": "typography",
188
176
  "$value": {