@skewedaspect/sleekspace-ui 0.3.0 → 0.5.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.
@@ -26,6 +26,14 @@
26
26
  --sk-transition-easing-ease-out: ease-out;
27
27
  --sk-transition-easing-ease-in-out: ease-in-out;
28
28
 
29
+ /* ===================================================================
30
+ * Default Aliases
31
+ * Generic names that resolve to the most common values
32
+ * =================================================================== */
33
+
34
+ --sk-transition-duration-base: var(--sk-transition-duration-normal);
35
+ --sk-transition-easing: var(--sk-transition-easing-ease-out);
36
+
29
37
  /* ===================================================================
30
38
  * Common Transition Combinations
31
39
  * Convenience tokens for frequently used transitions
@@ -3,6 +3,10 @@
3
3
  *
4
4
  * Background and text colors for surfaces and general use.
5
5
  * These provide a consistent color system independent of component kinds.
6
+ *
7
+ * Defaults are defined on :root as fallbacks. Themes can override any of these
8
+ * via [data-scheme] selectors. The [data-scheme] rule also applies background
9
+ * and text color so that any themed element gets the correct surface treatment.
6
10
  */
7
11
 
8
12
  :root
@@ -34,3 +38,14 @@
34
38
  --sk-border-normal: var(--sk-color-gray-70); /* Standard borders */
35
39
  --sk-border-subtle: var(--sk-color-gray-80); /* Subtle borders/dividers */
36
40
  }
41
+
42
+ /**
43
+ * Apply text color to any themed element so descendants inherit the correct
44
+ * color without needing to set it themselves. Background is intentionally NOT
45
+ * set here — page-level containers like SkPage handle their own background
46
+ * via the surface tokens.
47
+ */
48
+ [data-scheme]
49
+ {
50
+ color: var(--sk-text-primary);
51
+ }
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "@skewedaspect/sleekspace-ui",
4
- "version": "0.2.0-beta.3",
4
+ "version": "0.5.0",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -141,7 +141,7 @@
141
141
  {
142
142
  "name": "kind",
143
143
  "required": false,
144
- "description": "Semantic kind that determines the alert's color scheme and default icon. Each kind\nconveys a different meaning: 'info' for general information, 'success' for positive\nconfirmations, 'warning' for cautionary messages, and 'danger' for errors or critical issues.",
144
+ "description": "Semantic kind that determines the alert's color scheme and default icon. Supports all\nsemantic kinds (neutral, primary, accent, info, success, warning, danger) as well as\ndirect color kinds (neon-blue, neon-purple, etc.). Default icons are provided for the\nfour feedback kinds (info, success, warning, danger).",
145
145
  "value": {
146
146
  "kind": "expression",
147
147
  "type": "SkAlertKind"
@@ -149,14 +149,24 @@
149
149
  "default": "'info'"
150
150
  },
151
151
  {
152
- "name": "prominent",
152
+ "name": "subtle",
153
153
  "required": false,
154
- "description": "When true, applies prominent styling with a more vivid background color and stronger\nvisual presence. Use prominent alerts for critical messages that require immediate\nuser attention, such as errors or important warnings.",
154
+ "description": "When true, applies subdued styling with a lighter, semi-transparent background.\nUse subtle alerts for less critical messages that shouldn't dominate the visual\nhierarchy, such as tips or supplementary information.",
155
155
  "value": {
156
156
  "kind": "expression",
157
157
  "type": "boolean"
158
158
  },
159
159
  "default": "false"
160
+ },
161
+ {
162
+ "name": "showIcon",
163
+ "required": false,
164
+ "description": "Controls visibility of the icon container. When undefined (default), the icon is shown\nautomatically if there's a default icon for the kind (info, success, warning, danger)\nor if custom content is provided via the icon slot. Set to false to force-hide the icon,\nor true to force-show the container even when empty.",
165
+ "value": {
166
+ "kind": "expression",
167
+ "type": "boolean"
168
+ },
169
+ "default": "undefined"
160
170
  }
161
171
  ],
162
172
  "slots": [
@@ -1579,6 +1589,16 @@
1579
1589
  "type": "string"
1580
1590
  },
1581
1591
  "default": "undefined"
1592
+ },
1593
+ {
1594
+ "name": "theme",
1595
+ "required": false,
1596
+ "description": "Optional theme name. When provided, SkPage acts as a theme provider — setting\n`data-scheme` on the root element and providing theme context for descendant\ncomponents (including portal components like dropdowns and modals).\nWhen omitted, SkPage has no theme behavior.",
1597
+ "value": {
1598
+ "kind": "expression",
1599
+ "type": "SkThemeName"
1600
+ },
1601
+ "default": "undefined"
1582
1602
  }
1583
1603
  ],
1584
1604
  "slots": [