@flytedan/flytebot-design-system 0.2.1 → 0.2.2
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +10 -3
package/package.json
CHANGED
package/styles/components.css
CHANGED
|
@@ -2034,9 +2034,6 @@
|
|
|
2034
2034
|
display: inline-flex;
|
|
2035
2035
|
align-items: center;
|
|
2036
2036
|
line-height: 0;
|
|
2037
|
-
background: #fff;
|
|
2038
|
-
border-radius: var(--r-sm);
|
|
2039
|
-
padding: 4px 8px;
|
|
2040
2037
|
flex: none;
|
|
2041
2038
|
}
|
|
2042
2039
|
.fd-brand-mark img {
|
|
@@ -2044,6 +2041,16 @@
|
|
|
2044
2041
|
height: 26px;
|
|
2045
2042
|
width: auto;
|
|
2046
2043
|
}
|
|
2044
|
+
/* The mark's own artwork is a fixed dark navy with no light colorway (see
|
|
2045
|
+
FlytedeskBrand.tsx's comment) — on a dark surface it would otherwise vanish.
|
|
2046
|
+
brightness(0) turns every opaque ink pixel pure black while leaving transparent
|
|
2047
|
+
pixels transparent; invert(1) flips that black to white — same trick as
|
|
2048
|
+
forcing a single-color mark to work on both themes without a second asset to
|
|
2049
|
+
keep in sync. Light theme (the default, no selector needed) gets no filter and
|
|
2050
|
+
shows the real navy ink, which is what the mark was actually drawn in. */
|
|
2051
|
+
[data-theme="dark"] .fd-brand-mark img {
|
|
2052
|
+
filter: brightness(0) invert(1);
|
|
2053
|
+
}
|
|
2047
2054
|
.fd-brand-sm .fd-brand-mark img,
|
|
2048
2055
|
.fd-brand-mark-sm img {
|
|
2049
2056
|
height: 19px;
|