@sybilion/uilib 1.4.6 → 1.4.7
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/assets/globals.css +9 -7
- package/assets/logo-favicon.svg +3 -0
- package/dist/esm/components/ui/InteractiveContent/InteractiveContent.styl.js +1 -1
- package/dist/esm/components/ui/LegacyPlatformLink/LegacyPlatformLink.styl.js +1 -1
- package/package.json +1 -1
- package/src/components/ui/InteractiveContent/InteractiveContent.styl +2 -8
- package/src/components/ui/LegacyPlatformLink/LegacyPlatformLink.styl +1 -1
- package/src/docs/agent-guidance/colors.md +1 -1
- package/src/docs/config/webpack.config.js +4 -2
- package/src/docs/pages/ColorsPage.tsx +3 -0
package/assets/globals.css
CHANGED
|
@@ -39,6 +39,9 @@
|
|
|
39
39
|
--color-primary-foreground: var(--primary-foreground);
|
|
40
40
|
--color-primary: var(--primary);
|
|
41
41
|
--color-brand: var(--brand-color);
|
|
42
|
+
--color-link: var(--link-color);
|
|
43
|
+
--color-link-hover: var(--link-color-hover);
|
|
44
|
+
--color-link-active: var(--link-color-active);
|
|
42
45
|
--color-popover-foreground: var(--popover-foreground);
|
|
43
46
|
--color-popover: var(--popover);
|
|
44
47
|
--color-card-foreground: var(--card-foreground);
|
|
@@ -360,9 +363,9 @@
|
|
|
360
363
|
--sidebar-border: oklch(0.9 0 0);
|
|
361
364
|
--sidebar-ring: oklch(0.65 0 0);
|
|
362
365
|
|
|
363
|
-
--
|
|
364
|
-
--
|
|
365
|
-
--
|
|
366
|
+
--link-color: var(--sb-cyan-700);
|
|
367
|
+
--link-color-hover: color-mix(in oklch, var(--link-color) 80%, black);
|
|
368
|
+
--link-color-active: color-mix(in oklch, var(--link-color) 65%, black);
|
|
366
369
|
}
|
|
367
370
|
|
|
368
371
|
@media (max-width: var(--bp-mobile)) {
|
|
@@ -415,8 +418,6 @@
|
|
|
415
418
|
--sidebar-accent-foreground: oklch(0.95 0 0);
|
|
416
419
|
--sidebar-border: oklch(0.3 0 0);
|
|
417
420
|
--sidebar-ring: oklch(0.5 0 0);
|
|
418
|
-
--sb-link-color: var(--brand-color-400);
|
|
419
|
-
--sb-link-visited-color: var(--brand-color-600);
|
|
420
421
|
--status-positive: var(--sb-green-400);
|
|
421
422
|
--status-positive-bg: var(--sb-green-900);
|
|
422
423
|
--status-negative: var(--sb-red-400);
|
|
@@ -533,16 +534,17 @@
|
|
|
533
534
|
}
|
|
534
535
|
|
|
535
536
|
a {
|
|
536
|
-
color: var(--
|
|
537
|
+
color: var(--link-color);
|
|
537
538
|
cursor: pointer;
|
|
538
539
|
}
|
|
539
540
|
|
|
540
541
|
a:visited {
|
|
541
|
-
color: var(--
|
|
542
|
+
color: var(--link-color-active);
|
|
542
543
|
}
|
|
543
544
|
|
|
544
545
|
a:hover {
|
|
545
546
|
text-decoration: underline;
|
|
547
|
+
color: var(--link-color-hover);
|
|
546
548
|
}
|
|
547
549
|
|
|
548
550
|
::selection {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
2
|
+
<path fill="#C259FF" d="M13.43 24.023h-2.836v-2.836h2.836zm-2.835-2.844H5.63v-2.74h4.965Zm10.527-2.74h-2.726v2.74h-4.965v-2.74h4.952v-4.965h2.74zm-15.5 0h-2.74v-4.965h2.74ZM2.87 13.462H.034v-2.836H2.87Zm21.096 0H21.13v-2.836h2.836zM5.617 10.635h-2.74V5.669h2.74zm15.505 0h-2.74V5.669h2.74zM10.588 2.927v2.74H5.623v-2.74Zm2.842 0h4.96v2.74h-4.966v-2.74h-2.83V.09h2.836z" style="stroke-width:.13252" />
|
|
3
|
+
</svg>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styleInject from 'style-inject';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".InteractiveContent_root__FHnlY{box-sizing:border-box;display:inline-block;max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:break-word}.InteractiveContent_root__FHnlY strong{font-weight:600}.InteractiveContent_root__FHnlY em{font-style:italic}.InteractiveContent_root__FHnlY code{background-color:var(--background);border-radius:var(--p-1);box-shadow:0 0 1px var(--foreground);color:var(--foreground);font-family:ui-monospace,SF Mono,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.875em;padding:.2em .35em}.InteractiveContent_textLink__Ubh4i{
|
|
3
|
+
var css_248z = ".InteractiveContent_root__FHnlY{box-sizing:border-box;display:inline-block;max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:break-word}.InteractiveContent_root__FHnlY strong{font-weight:600}.InteractiveContent_root__FHnlY em{font-style:italic}.InteractiveContent_root__FHnlY code{background-color:var(--background);border-radius:var(--p-1);box-shadow:0 0 1px var(--foreground);color:var(--foreground);font-family:ui-monospace,SF Mono,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.875em;padding:.2em .35em}.InteractiveContent_textLink__Ubh4i{text-decoration:underline;text-underline-offset:2px}.InteractiveContent_textLink__Ubh4i:hover{color:var(--link-color-hover);text-decoration:none}.InteractiveContent_autolinkUrl__W0tQH{align-items:center;border-radius:var(--p-2);box-sizing:border-box;color:var(--link-color);display:inline-flex;font-size:var(--text-xs);gap:6px;line-height:1.4;margin:0 1px;max-width:100%;padding:2px 8px 2px 6px;position:relative;text-decoration:none;vertical-align:middle}.InteractiveContent_autolinkUrl__W0tQH:before{background-color:var(--link-color);border-radius:inherit;content:\"\";display:inline-block;height:100%;left:0;opacity:.1;position:absolute;top:0;width:100%}.InteractiveContent_autolinkUrl__W0tQH:hover:before{opacity:.2}.InteractiveContent_autolinkUrlIcon__QoqlQ{flex-shrink:0}.InteractiveContent_autolinkUrlLabel__CcJOG{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
|
|
4
4
|
var S = {"root":"InteractiveContent_root__FHnlY","textLink":"InteractiveContent_textLink__Ubh4i","autolinkUrl":"InteractiveContent_autolinkUrl__W0tQH","autolinkUrlIcon":"InteractiveContent_autolinkUrlIcon__QoqlQ","autolinkUrlLabel":"InteractiveContent_autolinkUrlLabel__CcJOG"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styleInject from 'style-inject';
|
|
2
2
|
|
|
3
|
-
var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.LegacyPlatformLink_link__Ul3uT{color:var(--foreground);text-decoration:underline;text-underline-offset:2px;white-space:nowrap}.LegacyPlatformLink_link__Ul3uT:hover{color:var(--
|
|
3
|
+
var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.LegacyPlatformLink_link__Ul3uT{color:var(--foreground);text-decoration:underline;text-underline-offset:2px;white-space:nowrap}.LegacyPlatformLink_link__Ul3uT:hover{color:var(--link-color-hover)}";
|
|
4
4
|
var S = {"link":"LegacyPlatformLink_link__Ul3uT"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -22,18 +22,12 @@
|
|
|
22
22
|
box-shadow 0 0 1px var(--foreground)
|
|
23
23
|
|
|
24
24
|
.textLink
|
|
25
|
-
color var(--sb-green-600)
|
|
26
25
|
text-decoration underline
|
|
27
26
|
text-underline-offset 2px
|
|
28
27
|
|
|
29
28
|
&:hover
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
:global(.dark) &
|
|
33
|
-
color var(--sb-green-400)
|
|
34
|
-
|
|
35
|
-
&:hover
|
|
36
|
-
color var(--sb-green-300)
|
|
29
|
+
text-decoration none
|
|
30
|
+
color var(--link-color-hover)
|
|
37
31
|
|
|
38
32
|
.autolinkUrl
|
|
39
33
|
position relative
|
|
@@ -2,7 +2,7 @@ Colour is defined as a set of core ramps (--sb-cyan/purple/red/green/yellow/gray
|
|
|
2
2
|
|
|
3
3
|
## When to use
|
|
4
4
|
|
|
5
|
-
- Semantic tokens for surfaces, text, borders, and status colour in components.
|
|
5
|
+
- Semantic tokens for surfaces, text, borders, links, and status colour in components. For links, set only `--link-color` per theme; `--link-color-hover` and `--link-color-active` derive from it via `color-mix`.
|
|
6
6
|
- Ramp steps for data visualisation or decorative accents where a specific hue is needed.
|
|
7
7
|
|
|
8
8
|
## When not to use
|
|
@@ -21,6 +21,8 @@ const pkg = require('../../../package.json');
|
|
|
21
21
|
|
|
22
22
|
const themeStyl = pathResolve(paths.src, 'theme.styl');
|
|
23
23
|
const logoSvgPath = pathResolve(paths.assets, 'logo.svg');
|
|
24
|
+
/** Favicon rasterization has no CSS context; currentColor in logo.svg renders black. */
|
|
25
|
+
const faviconLogoSvgPath = pathResolve(paths.assets, 'logo-favicon.svg');
|
|
24
26
|
|
|
25
27
|
/** GitHub Pages project sites live at /<repo>/; set PUBLIC_PATH=/repo-name/ for production deploy. */
|
|
26
28
|
function normalizePublicPath(raw) {
|
|
@@ -233,9 +235,9 @@ export default (env, argv) => {
|
|
|
233
235
|
...docsHtmlPluginBase,
|
|
234
236
|
filename: '404.html',
|
|
235
237
|
}),
|
|
236
|
-
existsSync(
|
|
238
|
+
existsSync(faviconLogoSvgPath) &&
|
|
237
239
|
new FaviconWebpackPlugin({
|
|
238
|
-
logo:
|
|
240
|
+
logo: faviconLogoSvgPath,
|
|
239
241
|
mode: 'webapp',
|
|
240
242
|
devMode: 'webapp',
|
|
241
243
|
favicons: {
|