@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.
- package/dist/components/Alert/SkAlert.vue.d.ts +18 -8
- package/dist/components/Alert/types.d.ts +3 -2
- package/dist/components/Page/SkPage.vue.d.ts +9 -0
- package/dist/components/Page/types.d.ts +3 -0
- package/dist/sleekspace-ui.css +47 -24
- package/dist/sleekspace-ui.es.js +67 -41
- package/dist/sleekspace-ui.umd.js +67 -41
- package/dist/tokens.css +23 -0
- package/docs/guides/design-tokens/foundation-other.md +16 -3
- package/docs/guides/design-tokens/semantic-states.md +26 -11
- package/docs/guides/design-tokens/themes.md +13 -2
- package/docs/guides/getting-started.md +31 -30
- package/docs/guides/theming.md +262 -8
- package/package.json +4 -4
- package/src/components/Alert/SkAlert.vue +50 -17
- package/src/components/Alert/types.ts +7 -2
- package/src/components/Page/SkPage.vue +36 -2
- package/src/components/Page/types.ts +6 -0
- package/src/styles/_scrollbar.scss +2 -2
- package/src/styles/base/_global.scss +3 -3
- package/src/styles/components/_alert.scss +5 -5
- package/src/styles/components/_page.scss +2 -2
- package/src/styles/tokens/_foundation-colors.scss +4 -0
- package/src/styles/tokens/_foundation-transitions.scss +8 -0
- package/src/styles/tokens/_semantic-surfaces.scss +15 -0
- package/web-types.json +24 -4
|
@@ -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.
|
|
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.
|
|
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": "
|
|
152
|
+
"name": "subtle",
|
|
153
153
|
"required": false,
|
|
154
|
-
"description": "When true, applies
|
|
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": [
|