meowtail 0.4.0-alpha.2 → 0.4.0-alpha.3
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/CHANGELOG.md +5 -0
- package/README.md +17 -3
- package/dist/src/theme/index.d.ts +212 -0
- package/dist/src/theme/index.js +16 -0
- package/dist/src/theme/ottr.tokens.d.ts +360 -0
- package/dist/src/theme/ottr.tokens.js +145 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -116,6 +116,11 @@
|
|
|
116
116
|
- Add `journalFonts` and the `ThemeFont` type: the Fontsource packages that carry the faces Journal
|
|
117
117
|
names. Meowtail ships no font files. The gallery paints Journal stories with those faces.
|
|
118
118
|
|
|
119
|
+
## 0.4.0-alpha.3
|
|
120
|
+
|
|
121
|
+
- Add `ottrTheme`: a compact workbench theme with warm light and dark surfaces and mint interaction
|
|
122
|
+
states, selectable in the gallery and docs. It reuses the standard component rules.
|
|
123
|
+
|
|
119
124
|
## 0.3.0-alpha.0
|
|
120
125
|
|
|
121
126
|
Local breaking authoring candidate; no npm release is implied. It includes the previous unreleased
|
package/README.md
CHANGED
|
@@ -565,10 +565,24 @@ mountStyles(document, meowTheme.cssText);
|
|
|
565
565
|
applyTheme(document.documentElement, meowTheme);
|
|
566
566
|
```
|
|
567
567
|
|
|
568
|
-
|
|
569
|
-
|
|
568
|
+
### Ottr theme
|
|
569
|
+
|
|
570
|
+
`ottrTheme` translates the Tasks workbench prototype into a reusable theme: warm paper or charcoal,
|
|
571
|
+
mint actions and selected rows, compact system typography, quiet borders, and softly rounded panels.
|
|
572
|
+
It supports light, dark and system appearance, with no additional fonts or business-specific markup.
|
|
573
|
+
It shares the standard component styles; the theme supplies `ottrUiTokenValues` (compiled as
|
|
574
|
+
`ottrUiTokens`) and keeps the large control size available for touch layouts.
|
|
575
|
+
|
|
576
|
+
```ts
|
|
577
|
+
import { ottrTheme } from "meowtail/theme";
|
|
578
|
+
import { createMeowUITheme } from "meowtail/web";
|
|
579
|
+
|
|
580
|
+
const theme = createMeowUITheme({ theme: ottrTheme });
|
|
581
|
+
```
|
|
582
|
+
|
|
583
|
+
All four themes share one theme root name and one set of `--ui-*` variables, so mount one theme per document. `standardUiTokenValues` and the `UiTokenValues` type let a host value the same roles for its own
|
|
570
584
|
theme; a value tree that misses or adds a role does not typecheck. In Meowbook, the gallery's Theme
|
|
571
|
-
control paints every story with any of them, and `?theme=journal
|
|
585
|
+
control paints every story with any of them, and `?theme=journal`, `?theme=meow`, or `?theme=ottr` selects one in a link.
|
|
572
586
|
|
|
573
587
|
Style files use `<responsibility>.styles.ts`; the standard theme groups them by component and conversation responsibility, and application styles are maintained with application modules.
|
|
574
588
|
See the style file organization (historical reference in the original product repository) for naming, component family boundaries, and cascade organization.
|
|
@@ -3,6 +3,7 @@ import type { TokenSet } from "meowcss";
|
|
|
3
3
|
export { standardOptions, standardUiTokenValues, uiTokens, chatTokens, logoTokens, type TokenValues, type UiTokenValues, } from "./tokens.js";
|
|
4
4
|
export { journalFonts, journalUiTokenValues, journalUiTokens, type ThemeFont, } from "./journal.tokens.js";
|
|
5
5
|
export { meowUiTokenValues, meowUiTokens } from "./meow.tokens.js";
|
|
6
|
+
export { ottrUiTokenValues, ottrUiTokens } from "./ottr.tokens.js";
|
|
6
7
|
export { ui, utilityStyles } from "./utilities.js";
|
|
7
8
|
export { chartTokens } from "./shared/chart.tokens.js";
|
|
8
9
|
export declare const standardThemeTokens: readonly [import("meowcss").TokenRefs<{
|
|
@@ -645,6 +646,217 @@ export declare const meowThemeTokens: readonly [import("meowcss").TokenRefs<{
|
|
|
645
646
|
readonly series8: readonly ["#e34948", "#e66767"];
|
|
646
647
|
}> & TokenSet];
|
|
647
648
|
export declare const meowTheme: import("meowcss").ThemeDefinition;
|
|
649
|
+
/** Ottr is a compact workbench theme with warm surfaces and mint interaction states. */
|
|
650
|
+
export declare const ottrThemeTokens: readonly [import("meowcss").TokenRefs<{
|
|
651
|
+
readonly icon: {
|
|
652
|
+
readonly small: "14px";
|
|
653
|
+
readonly size: "16px";
|
|
654
|
+
readonly large: "18px";
|
|
655
|
+
readonly stroke: "1.75";
|
|
656
|
+
};
|
|
657
|
+
readonly layout: {
|
|
658
|
+
readonly gridCompact: "160px";
|
|
659
|
+
readonly gridNormal: "240px";
|
|
660
|
+
readonly gridWide: "320px";
|
|
661
|
+
readonly containerNarrow: "480px";
|
|
662
|
+
readonly containerContent: "720px";
|
|
663
|
+
readonly containerWide: "1120px";
|
|
664
|
+
readonly containerPage: "1040px";
|
|
665
|
+
readonly measure: "70ch";
|
|
666
|
+
};
|
|
667
|
+
readonly surface: {
|
|
668
|
+
readonly canvas: readonly ["#faf9f5", "#1f1e1d"];
|
|
669
|
+
readonly reading: readonly ["#faf9f5", "#1f1e1d"];
|
|
670
|
+
readonly raised: readonly ["#ffffff", "#262523"];
|
|
671
|
+
readonly overlay: readonly ["#ffffff", "#2d2b29"];
|
|
672
|
+
readonly fill: readonly ["#f0eee6", "#34322f"];
|
|
673
|
+
readonly field: readonly ["#ffffff", "#191918"];
|
|
674
|
+
readonly tint: readonly ["rgb(20 20 19 / 4.5%)", "rgb(255 245 230 / 4.5%)"];
|
|
675
|
+
readonly knockout: readonly ["#ffffff", "#262523"];
|
|
676
|
+
readonly scrim: readonly ["rgb(20 20 19 / 24%)", "rgb(0 0 0 / 56%)"];
|
|
677
|
+
};
|
|
678
|
+
readonly inverse: {
|
|
679
|
+
readonly surface: readonly ["#141413", "#34322f"];
|
|
680
|
+
readonly ink: "#faf9f5";
|
|
681
|
+
readonly action: "#8ad3bd";
|
|
682
|
+
};
|
|
683
|
+
readonly line: {
|
|
684
|
+
readonly width: "1px";
|
|
685
|
+
readonly edge: readonly ["#e3dfd3", "#3b3834"];
|
|
686
|
+
readonly divider: readonly ["#ece9df", "#34322f"];
|
|
687
|
+
readonly control: readonly ["#d4cfbf", "#514d47"];
|
|
688
|
+
readonly controlHover: readonly ["#928b7b", "#8e887d"];
|
|
689
|
+
};
|
|
690
|
+
readonly ink: {
|
|
691
|
+
readonly primary: readonly ["#141413", "#e8e6dc"];
|
|
692
|
+
readonly secondary: readonly ["#6b675f", "#b4aea2"];
|
|
693
|
+
readonly tertiary: readonly ["#6b675f", "#a39e93"];
|
|
694
|
+
readonly chip: readonly ["#5f5b52", "#c0baaf"];
|
|
695
|
+
readonly reading: readonly ["#34322c", "#d1cdc1"];
|
|
696
|
+
};
|
|
697
|
+
readonly state: {
|
|
698
|
+
readonly hover: readonly ["rgb(20 20 19 / 4.5%)", "rgb(255 245 230 / 4.5%)"];
|
|
699
|
+
readonly active: readonly ["rgb(20 20 19 / 8%)", "rgb(255 245 230 / 9%)"];
|
|
700
|
+
readonly focus: readonly ["#2c7765", "#5bb99f"];
|
|
701
|
+
readonly focusRing: readonly ["rgb(63 143 122 / 25%)", "rgb(91 185 159 / 30%)"];
|
|
702
|
+
};
|
|
703
|
+
readonly action: {
|
|
704
|
+
readonly primary: readonly ["#2c7765", "#3f9c82"];
|
|
705
|
+
readonly primaryHover: readonly ["#246654", "#5bb99f"];
|
|
706
|
+
readonly onPrimary: readonly ["#ffffff", "#101b16"];
|
|
707
|
+
readonly soft: readonly ["#f0eee6", "#34322f"];
|
|
708
|
+
readonly danger: readonly ["#ad3b2b", "#e8705f"];
|
|
709
|
+
readonly onDanger: readonly ["#fff8ee", "#211613"];
|
|
710
|
+
};
|
|
711
|
+
readonly control: {
|
|
712
|
+
readonly small: "28px";
|
|
713
|
+
readonly large: "44px";
|
|
714
|
+
readonly trackInset: "3px";
|
|
715
|
+
readonly regular: "32px";
|
|
716
|
+
readonly inset: "8px";
|
|
717
|
+
readonly fieldInset: "10px";
|
|
718
|
+
readonly thumb: readonly ["#ffffff", "#4a4741"];
|
|
719
|
+
readonly knob: readonly ["#ffffff", "#e8e6dc"];
|
|
720
|
+
};
|
|
721
|
+
readonly accent: {
|
|
722
|
+
readonly base: readonly ["#2b705e", "#5bb99f"];
|
|
723
|
+
readonly soft: readonly ["rgb(63 143 122 / 6%)", "rgb(91 185 159 / 7%)"];
|
|
724
|
+
readonly selected: readonly ["rgb(63 143 122 / 13%)", "rgb(91 185 159 / 16%)"];
|
|
725
|
+
readonly ink: readonly ["#246654", "#87d1bb"];
|
|
726
|
+
readonly line: readonly ["rgb(63 143 122 / 25%)", "rgb(91 185 159 / 28%)"];
|
|
727
|
+
readonly halo: readonly ["rgb(63 143 122 / 25%)", "rgb(91 185 159 / 28%)"];
|
|
728
|
+
};
|
|
729
|
+
readonly status: {
|
|
730
|
+
readonly info: readonly ["#336592", "#81afd9"];
|
|
731
|
+
readonly success: readonly ["#426b29", "#9abc7b"];
|
|
732
|
+
readonly warning: readonly ["#84560f", "#e3b25f"];
|
|
733
|
+
readonly danger: readonly ["#a8392a", "#f08d7e"];
|
|
734
|
+
readonly unknown: readonly ["#938d82", "#928c81"];
|
|
735
|
+
};
|
|
736
|
+
readonly type: {
|
|
737
|
+
readonly micro: "11px";
|
|
738
|
+
readonly caption: "12px";
|
|
739
|
+
readonly code: "12px";
|
|
740
|
+
readonly title: "16px";
|
|
741
|
+
readonly hero: "40px";
|
|
742
|
+
readonly touchField: "16px";
|
|
743
|
+
readonly trackingCaps: "0.04em";
|
|
744
|
+
readonly quoteStyle: "normal";
|
|
745
|
+
readonly sans: "-apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Helvetica Neue\", \"PingFang SC\", \"Segoe UI\", system-ui, sans-serif";
|
|
746
|
+
readonly display: "-apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Helvetica Neue\", \"PingFang SC\", \"Segoe UI\", system-ui, sans-serif";
|
|
747
|
+
readonly reading: "-apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Helvetica Neue\", \"PingFang SC\", \"Segoe UI\", system-ui, sans-serif";
|
|
748
|
+
readonly mono: "\"SF Mono\", ui-monospace, Menlo, Consolas, monospace";
|
|
749
|
+
readonly label: "12px";
|
|
750
|
+
readonly body: "13px";
|
|
751
|
+
readonly readingSize: "14px";
|
|
752
|
+
readonly heading: "19px";
|
|
753
|
+
readonly pageTitle: "23px";
|
|
754
|
+
readonly line: {
|
|
755
|
+
readonly micro: "16px";
|
|
756
|
+
readonly caption: "18px";
|
|
757
|
+
readonly code: "18px";
|
|
758
|
+
readonly bodyCompact: "20px";
|
|
759
|
+
readonly title: "24px";
|
|
760
|
+
readonly hero: "48px";
|
|
761
|
+
readonly label: "18px";
|
|
762
|
+
readonly body: "20px";
|
|
763
|
+
readonly reading: "22px";
|
|
764
|
+
readonly heading: "26px";
|
|
765
|
+
readonly pageTitle: "30px";
|
|
766
|
+
};
|
|
767
|
+
readonly weight: {
|
|
768
|
+
readonly regular: "400";
|
|
769
|
+
readonly medium: "500";
|
|
770
|
+
readonly semibold: "600";
|
|
771
|
+
readonly display: "650";
|
|
772
|
+
};
|
|
773
|
+
readonly leading: "1.5";
|
|
774
|
+
readonly trackingTight: "-0.02em";
|
|
775
|
+
};
|
|
776
|
+
readonly space: {
|
|
777
|
+
readonly prose: "12px";
|
|
778
|
+
readonly pageBlockCompact: "20px";
|
|
779
|
+
readonly pageInlineCompact: "16px";
|
|
780
|
+
readonly group: "6px";
|
|
781
|
+
readonly section: "18px";
|
|
782
|
+
readonly panel: "22px";
|
|
783
|
+
readonly insetBlock: "10px";
|
|
784
|
+
readonly insetInline: "12px";
|
|
785
|
+
readonly pageBlock: "24px";
|
|
786
|
+
readonly pageInline: "26px";
|
|
787
|
+
};
|
|
788
|
+
readonly radius: {
|
|
789
|
+
readonly xs: "5px";
|
|
790
|
+
readonly sm: "7px";
|
|
791
|
+
readonly md: "8px";
|
|
792
|
+
readonly lg: "9px";
|
|
793
|
+
readonly xl: "11px";
|
|
794
|
+
readonly xxl: "14px";
|
|
795
|
+
readonly full: "999px";
|
|
796
|
+
};
|
|
797
|
+
readonly shadow: {
|
|
798
|
+
readonly raised: readonly ["none", "inset 0 1px 0 rgb(255 255 255 / 3%)"];
|
|
799
|
+
readonly field: readonly ["0 1px 1px rgb(0 0 0 / 2.5%)", "none"];
|
|
800
|
+
readonly thumb: readonly ["0 0 0 1px rgb(0 0 0 / 6%), 0 1px 2px rgb(0 0 0 / 8%)", "0 0 0 1px rgb(255 255 255 / 8%), 0 1px 2px rgb(0 0 0 / 32%)"];
|
|
801
|
+
readonly pressed: "inset 0 1px 2px rgb(0 0 0 / 12%)";
|
|
802
|
+
readonly sheet: readonly ["12px 0 40px rgb(0 0 0 / 12%)", "12px 0 40px rgb(0 0 0 / 50%)"];
|
|
803
|
+
readonly knob: readonly ["0 1px 2px rgb(0 0 0 / 16%)", "0 1px 2px rgb(0 0 0 / 40%)"];
|
|
804
|
+
readonly action: readonly ["0 1px 2px rgb(20 20 19 / 4%)", "0 1px 2px rgb(0 0 0 / 24%)"];
|
|
805
|
+
readonly filled: readonly ["0 1px 2px rgb(20 20 19 / 10%)", "0 1px 2px rgb(0 0 0 / 30%)"];
|
|
806
|
+
readonly float: readonly ["0 1px 2px rgb(20 20 19 / 4%), 0 8px 24px rgb(20 20 19 / 6%)", "0 1px 2px rgb(0 0 0 / 25%), 0 10px 30px rgb(0 0 0 / 35%)"];
|
|
807
|
+
readonly dock: readonly ["0 1px 2px rgb(20 20 19 / 4%), 0 8px 24px rgb(20 20 19 / 6%)", "0 1px 2px rgb(0 0 0 / 25%), 0 10px 30px rgb(0 0 0 / 35%)"];
|
|
808
|
+
};
|
|
809
|
+
readonly motion: {
|
|
810
|
+
readonly instant: "40ms";
|
|
811
|
+
readonly settle: "200ms";
|
|
812
|
+
readonly draw: "360ms";
|
|
813
|
+
readonly loop: "1.2s";
|
|
814
|
+
readonly sweep: "1.6s";
|
|
815
|
+
readonly ease: "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
816
|
+
readonly enter: "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
817
|
+
readonly response: "120ms";
|
|
818
|
+
};
|
|
819
|
+
readonly glyph: {
|
|
820
|
+
readonly chevron: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")`;
|
|
821
|
+
readonly check: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")`;
|
|
822
|
+
readonly arrow: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E")`;
|
|
823
|
+
readonly cross: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E")`;
|
|
824
|
+
readonly selectChevron: readonly [string, string];
|
|
825
|
+
};
|
|
826
|
+
}> & TokenSet, import("meowcss").TokenRefs<{
|
|
827
|
+
readonly fontBody: "14px";
|
|
828
|
+
readonly leading: "1.7142857143";
|
|
829
|
+
readonly listGap: "24px";
|
|
830
|
+
readonly listMaxWidth: "720px";
|
|
831
|
+
readonly readingInset: "24px";
|
|
832
|
+
readonly leadingGap: "6px";
|
|
833
|
+
readonly rowLine: "24px";
|
|
834
|
+
readonly userMaxWidth: "70.2%";
|
|
835
|
+
readonly bubbleRadius: "18px";
|
|
836
|
+
readonly composerRadius: "24px";
|
|
837
|
+
}> & TokenSet, import("meowcss").TokenRefs<{
|
|
838
|
+
readonly accent: import("meowcss").ConditionalValue;
|
|
839
|
+
}> & TokenSet, import("meowcss").TokenRefs<{
|
|
840
|
+
readonly constant: readonly ["#1b64a8", "#4dabf7"];
|
|
841
|
+
readonly string: readonly ["#1e6b30", "#69db7c"];
|
|
842
|
+
readonly comment: readonly ["#656a71", "#adb5bd"];
|
|
843
|
+
readonly keyword: readonly ["#b02a5b", "#faa2c1"];
|
|
844
|
+
readonly parameter: readonly ["#b34700", "#ffa94d"];
|
|
845
|
+
readonly function: readonly ["#6741d9", "#b197fc"];
|
|
846
|
+
readonly stringExpression: readonly ["#1e6b30", "#8ce99a"];
|
|
847
|
+
readonly punctuation: readonly ["#495057", "#ced4da"];
|
|
848
|
+
readonly link: readonly ["#1971c2", "#74c0fc"];
|
|
849
|
+
}> & TokenSet, import("meowcss").TokenRefs<{
|
|
850
|
+
readonly series1: readonly ["#2a78d6", "#3987e5"];
|
|
851
|
+
readonly series2: readonly ["#eb6834", "#d95926"];
|
|
852
|
+
readonly series3: readonly ["#1baf7a", "#199e70"];
|
|
853
|
+
readonly series4: readonly ["#eda100", "#c98500"];
|
|
854
|
+
readonly series5: readonly ["#e87ba4", "#d55181"];
|
|
855
|
+
readonly series6: readonly ["#008300", "#008300"];
|
|
856
|
+
readonly series7: readonly ["#6250d6", "#9085e9"];
|
|
857
|
+
readonly series8: readonly ["#e34948", "#e66767"];
|
|
858
|
+
}> & TokenSet];
|
|
859
|
+
export declare const ottrTheme: import("meowcss").ThemeDefinition;
|
|
648
860
|
/** The floor every Meowland region starts from; an extended theme places it first. */
|
|
649
861
|
export { foundationStyles as standardFoundationStyles } from "./base.styles.js";
|
|
650
862
|
export { standardAuditRules } from "./audit.js";
|
package/dist/src/theme/index.js
CHANGED
|
@@ -17,6 +17,7 @@ import { menuStyles } from "./components/menu.styles.js";
|
|
|
17
17
|
import { toastStyles } from "./components/toast.styles.js";
|
|
18
18
|
import { standardOptions, uiTokens, chatTokens, alertTokens } from "./tokens.js";
|
|
19
19
|
import { journalUiTokens } from "./journal.tokens.js";
|
|
20
|
+
import { ottrUiTokens } from "./ottr.tokens.js";
|
|
20
21
|
import { meowUiTokens } from "./meow.tokens.js";
|
|
21
22
|
import { utilityStyles } from "./utilities.js";
|
|
22
23
|
import { choiceSelectStyles } from "./components/choice-select.styles.js";
|
|
@@ -114,6 +115,7 @@ import { contextMenuStyles } from "./components/context-menu.styles.js";
|
|
|
114
115
|
export { standardOptions, standardUiTokenValues, uiTokens, chatTokens, logoTokens, } from "./tokens.js";
|
|
115
116
|
export { journalFonts, journalUiTokenValues, journalUiTokens, } from "./journal.tokens.js";
|
|
116
117
|
export { meowUiTokenValues, meowUiTokens } from "./meow.tokens.js";
|
|
118
|
+
export { ottrUiTokenValues, ottrUiTokens } from "./ottr.tokens.js";
|
|
117
119
|
export { ui, utilityStyles } from "./utilities.js";
|
|
118
120
|
export { chartTokens } from "./shared/chart.tokens.js";
|
|
119
121
|
export const standardThemeTokens = [
|
|
@@ -281,6 +283,20 @@ export const meowTheme = /* @__PURE__ */ defineTheme({
|
|
|
281
283
|
tokens: meowThemeTokens,
|
|
282
284
|
styles: standardThemeStyles,
|
|
283
285
|
});
|
|
286
|
+
/** Ottr is a compact workbench theme with warm surfaces and mint interaction states. */
|
|
287
|
+
export const ottrThemeTokens = [
|
|
288
|
+
ottrUiTokens,
|
|
289
|
+
chatTokens,
|
|
290
|
+
alertTokens,
|
|
291
|
+
codeHighlightTokens,
|
|
292
|
+
chartTokens,
|
|
293
|
+
];
|
|
294
|
+
export const ottrTheme = /* @__PURE__ */ defineTheme({
|
|
295
|
+
options: standardOptions,
|
|
296
|
+
defaults: { scheme: "auto" },
|
|
297
|
+
tokens: ottrThemeTokens,
|
|
298
|
+
styles: standardThemeStyles,
|
|
299
|
+
});
|
|
284
300
|
/** The floor every Meowland region starts from; an extended theme places it first. */
|
|
285
301
|
export { foundationStyles as standardFoundationStyles } from "./base.styles.js";
|
|
286
302
|
export { standardAuditRules } from "./audit.js";
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ottr translates the Tasks prototype into shared roles: warm paper and charcoal, mint for
|
|
3
|
+
* primary actions and selection, compact system type, soft corners, and hairline-separated planes.
|
|
4
|
+
* Text uses stronger variants of the prototype colors where small labels need more contrast.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ottrUiTokenValues: {
|
|
7
|
+
readonly icon: {
|
|
8
|
+
readonly small: "14px";
|
|
9
|
+
readonly size: "16px";
|
|
10
|
+
readonly large: "18px";
|
|
11
|
+
readonly stroke: "1.75";
|
|
12
|
+
};
|
|
13
|
+
readonly layout: {
|
|
14
|
+
readonly gridCompact: "160px";
|
|
15
|
+
readonly gridNormal: "240px";
|
|
16
|
+
readonly gridWide: "320px";
|
|
17
|
+
readonly containerNarrow: "480px";
|
|
18
|
+
readonly containerContent: "720px";
|
|
19
|
+
readonly containerWide: "1120px";
|
|
20
|
+
readonly containerPage: "1040px";
|
|
21
|
+
readonly measure: "70ch";
|
|
22
|
+
};
|
|
23
|
+
readonly surface: {
|
|
24
|
+
readonly canvas: readonly ["#faf9f5", "#1f1e1d"];
|
|
25
|
+
readonly reading: readonly ["#faf9f5", "#1f1e1d"];
|
|
26
|
+
readonly raised: readonly ["#ffffff", "#262523"];
|
|
27
|
+
readonly overlay: readonly ["#ffffff", "#2d2b29"];
|
|
28
|
+
readonly fill: readonly ["#f0eee6", "#34322f"];
|
|
29
|
+
readonly field: readonly ["#ffffff", "#191918"];
|
|
30
|
+
readonly tint: readonly ["rgb(20 20 19 / 4.5%)", "rgb(255 245 230 / 4.5%)"];
|
|
31
|
+
readonly knockout: readonly ["#ffffff", "#262523"];
|
|
32
|
+
readonly scrim: readonly ["rgb(20 20 19 / 24%)", "rgb(0 0 0 / 56%)"];
|
|
33
|
+
};
|
|
34
|
+
readonly inverse: {
|
|
35
|
+
readonly surface: readonly ["#141413", "#34322f"];
|
|
36
|
+
readonly ink: "#faf9f5";
|
|
37
|
+
readonly action: "#8ad3bd";
|
|
38
|
+
};
|
|
39
|
+
readonly line: {
|
|
40
|
+
readonly width: "1px";
|
|
41
|
+
readonly edge: readonly ["#e3dfd3", "#3b3834"];
|
|
42
|
+
readonly divider: readonly ["#ece9df", "#34322f"];
|
|
43
|
+
readonly control: readonly ["#d4cfbf", "#514d47"];
|
|
44
|
+
readonly controlHover: readonly ["#928b7b", "#8e887d"];
|
|
45
|
+
};
|
|
46
|
+
readonly ink: {
|
|
47
|
+
readonly primary: readonly ["#141413", "#e8e6dc"];
|
|
48
|
+
readonly secondary: readonly ["#6b675f", "#b4aea2"];
|
|
49
|
+
readonly tertiary: readonly ["#6b675f", "#a39e93"];
|
|
50
|
+
readonly chip: readonly ["#5f5b52", "#c0baaf"];
|
|
51
|
+
readonly reading: readonly ["#34322c", "#d1cdc1"];
|
|
52
|
+
};
|
|
53
|
+
readonly state: {
|
|
54
|
+
readonly hover: readonly ["rgb(20 20 19 / 4.5%)", "rgb(255 245 230 / 4.5%)"];
|
|
55
|
+
readonly active: readonly ["rgb(20 20 19 / 8%)", "rgb(255 245 230 / 9%)"];
|
|
56
|
+
readonly focus: readonly ["#2c7765", "#5bb99f"];
|
|
57
|
+
readonly focusRing: readonly ["rgb(63 143 122 / 25%)", "rgb(91 185 159 / 30%)"];
|
|
58
|
+
};
|
|
59
|
+
readonly action: {
|
|
60
|
+
readonly primary: readonly ["#2c7765", "#3f9c82"];
|
|
61
|
+
readonly primaryHover: readonly ["#246654", "#5bb99f"];
|
|
62
|
+
readonly onPrimary: readonly ["#ffffff", "#101b16"];
|
|
63
|
+
readonly soft: readonly ["#f0eee6", "#34322f"];
|
|
64
|
+
readonly danger: readonly ["#ad3b2b", "#e8705f"];
|
|
65
|
+
readonly onDanger: readonly ["#fff8ee", "#211613"];
|
|
66
|
+
};
|
|
67
|
+
readonly control: {
|
|
68
|
+
readonly small: "28px";
|
|
69
|
+
readonly large: "44px";
|
|
70
|
+
readonly trackInset: "3px";
|
|
71
|
+
readonly regular: "32px";
|
|
72
|
+
readonly inset: "8px";
|
|
73
|
+
readonly fieldInset: "10px";
|
|
74
|
+
readonly thumb: readonly ["#ffffff", "#4a4741"];
|
|
75
|
+
readonly knob: readonly ["#ffffff", "#e8e6dc"];
|
|
76
|
+
};
|
|
77
|
+
readonly accent: {
|
|
78
|
+
readonly base: readonly ["#2b705e", "#5bb99f"];
|
|
79
|
+
readonly soft: readonly ["rgb(63 143 122 / 6%)", "rgb(91 185 159 / 7%)"];
|
|
80
|
+
readonly selected: readonly ["rgb(63 143 122 / 13%)", "rgb(91 185 159 / 16%)"];
|
|
81
|
+
readonly ink: readonly ["#246654", "#87d1bb"];
|
|
82
|
+
readonly line: readonly ["rgb(63 143 122 / 25%)", "rgb(91 185 159 / 28%)"];
|
|
83
|
+
readonly halo: readonly ["rgb(63 143 122 / 25%)", "rgb(91 185 159 / 28%)"];
|
|
84
|
+
};
|
|
85
|
+
readonly status: {
|
|
86
|
+
readonly info: readonly ["#336592", "#81afd9"];
|
|
87
|
+
readonly success: readonly ["#426b29", "#9abc7b"];
|
|
88
|
+
readonly warning: readonly ["#84560f", "#e3b25f"];
|
|
89
|
+
readonly danger: readonly ["#a8392a", "#f08d7e"];
|
|
90
|
+
readonly unknown: readonly ["#938d82", "#928c81"];
|
|
91
|
+
};
|
|
92
|
+
readonly type: {
|
|
93
|
+
readonly micro: "11px";
|
|
94
|
+
readonly caption: "12px";
|
|
95
|
+
readonly code: "12px";
|
|
96
|
+
readonly title: "16px";
|
|
97
|
+
readonly hero: "40px";
|
|
98
|
+
readonly touchField: "16px";
|
|
99
|
+
readonly trackingCaps: "0.04em";
|
|
100
|
+
readonly quoteStyle: "normal";
|
|
101
|
+
readonly sans: "-apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Helvetica Neue\", \"PingFang SC\", \"Segoe UI\", system-ui, sans-serif";
|
|
102
|
+
readonly display: "-apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Helvetica Neue\", \"PingFang SC\", \"Segoe UI\", system-ui, sans-serif";
|
|
103
|
+
readonly reading: "-apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Helvetica Neue\", \"PingFang SC\", \"Segoe UI\", system-ui, sans-serif";
|
|
104
|
+
readonly mono: "\"SF Mono\", ui-monospace, Menlo, Consolas, monospace";
|
|
105
|
+
readonly label: "12px";
|
|
106
|
+
readonly body: "13px";
|
|
107
|
+
readonly readingSize: "14px";
|
|
108
|
+
readonly heading: "19px";
|
|
109
|
+
readonly pageTitle: "23px";
|
|
110
|
+
readonly line: {
|
|
111
|
+
readonly micro: "16px";
|
|
112
|
+
readonly caption: "18px";
|
|
113
|
+
readonly code: "18px";
|
|
114
|
+
readonly bodyCompact: "20px";
|
|
115
|
+
readonly title: "24px";
|
|
116
|
+
readonly hero: "48px";
|
|
117
|
+
readonly label: "18px";
|
|
118
|
+
readonly body: "20px";
|
|
119
|
+
readonly reading: "22px";
|
|
120
|
+
readonly heading: "26px";
|
|
121
|
+
readonly pageTitle: "30px";
|
|
122
|
+
};
|
|
123
|
+
readonly weight: {
|
|
124
|
+
readonly regular: "400";
|
|
125
|
+
readonly medium: "500";
|
|
126
|
+
readonly semibold: "600";
|
|
127
|
+
readonly display: "650";
|
|
128
|
+
};
|
|
129
|
+
readonly leading: "1.5";
|
|
130
|
+
readonly trackingTight: "-0.02em";
|
|
131
|
+
};
|
|
132
|
+
readonly space: {
|
|
133
|
+
readonly prose: "12px";
|
|
134
|
+
readonly pageBlockCompact: "20px";
|
|
135
|
+
readonly pageInlineCompact: "16px";
|
|
136
|
+
readonly group: "6px";
|
|
137
|
+
readonly section: "18px";
|
|
138
|
+
readonly panel: "22px";
|
|
139
|
+
readonly insetBlock: "10px";
|
|
140
|
+
readonly insetInline: "12px";
|
|
141
|
+
readonly pageBlock: "24px";
|
|
142
|
+
readonly pageInline: "26px";
|
|
143
|
+
};
|
|
144
|
+
readonly radius: {
|
|
145
|
+
readonly xs: "5px";
|
|
146
|
+
readonly sm: "7px";
|
|
147
|
+
readonly md: "8px";
|
|
148
|
+
readonly lg: "9px";
|
|
149
|
+
readonly xl: "11px";
|
|
150
|
+
readonly xxl: "14px";
|
|
151
|
+
readonly full: "999px";
|
|
152
|
+
};
|
|
153
|
+
readonly shadow: {
|
|
154
|
+
readonly raised: readonly ["none", "inset 0 1px 0 rgb(255 255 255 / 3%)"];
|
|
155
|
+
readonly field: readonly ["0 1px 1px rgb(0 0 0 / 2.5%)", "none"];
|
|
156
|
+
readonly thumb: readonly ["0 0 0 1px rgb(0 0 0 / 6%), 0 1px 2px rgb(0 0 0 / 8%)", "0 0 0 1px rgb(255 255 255 / 8%), 0 1px 2px rgb(0 0 0 / 32%)"];
|
|
157
|
+
readonly pressed: "inset 0 1px 2px rgb(0 0 0 / 12%)";
|
|
158
|
+
readonly sheet: readonly ["12px 0 40px rgb(0 0 0 / 12%)", "12px 0 40px rgb(0 0 0 / 50%)"];
|
|
159
|
+
readonly knob: readonly ["0 1px 2px rgb(0 0 0 / 16%)", "0 1px 2px rgb(0 0 0 / 40%)"];
|
|
160
|
+
readonly action: readonly ["0 1px 2px rgb(20 20 19 / 4%)", "0 1px 2px rgb(0 0 0 / 24%)"];
|
|
161
|
+
readonly filled: readonly ["0 1px 2px rgb(20 20 19 / 10%)", "0 1px 2px rgb(0 0 0 / 30%)"];
|
|
162
|
+
readonly float: readonly ["0 1px 2px rgb(20 20 19 / 4%), 0 8px 24px rgb(20 20 19 / 6%)", "0 1px 2px rgb(0 0 0 / 25%), 0 10px 30px rgb(0 0 0 / 35%)"];
|
|
163
|
+
readonly dock: readonly ["0 1px 2px rgb(20 20 19 / 4%), 0 8px 24px rgb(20 20 19 / 6%)", "0 1px 2px rgb(0 0 0 / 25%), 0 10px 30px rgb(0 0 0 / 35%)"];
|
|
164
|
+
};
|
|
165
|
+
readonly motion: {
|
|
166
|
+
readonly instant: "40ms";
|
|
167
|
+
readonly settle: "200ms";
|
|
168
|
+
readonly draw: "360ms";
|
|
169
|
+
readonly loop: "1.2s";
|
|
170
|
+
readonly sweep: "1.6s";
|
|
171
|
+
readonly ease: "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
172
|
+
readonly enter: "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
173
|
+
readonly response: "120ms";
|
|
174
|
+
};
|
|
175
|
+
readonly glyph: {
|
|
176
|
+
readonly chevron: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")`;
|
|
177
|
+
readonly check: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")`;
|
|
178
|
+
readonly arrow: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E")`;
|
|
179
|
+
readonly cross: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E")`;
|
|
180
|
+
readonly selectChevron: readonly [string, string];
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
/** The Ottr values under the shared `ui` token names. */
|
|
184
|
+
export declare const ottrUiTokens: import("meowcss").TokenRefs<{
|
|
185
|
+
readonly icon: {
|
|
186
|
+
readonly small: "14px";
|
|
187
|
+
readonly size: "16px";
|
|
188
|
+
readonly large: "18px";
|
|
189
|
+
readonly stroke: "1.75";
|
|
190
|
+
};
|
|
191
|
+
readonly layout: {
|
|
192
|
+
readonly gridCompact: "160px";
|
|
193
|
+
readonly gridNormal: "240px";
|
|
194
|
+
readonly gridWide: "320px";
|
|
195
|
+
readonly containerNarrow: "480px";
|
|
196
|
+
readonly containerContent: "720px";
|
|
197
|
+
readonly containerWide: "1120px";
|
|
198
|
+
readonly containerPage: "1040px";
|
|
199
|
+
readonly measure: "70ch";
|
|
200
|
+
};
|
|
201
|
+
readonly surface: {
|
|
202
|
+
readonly canvas: readonly ["#faf9f5", "#1f1e1d"];
|
|
203
|
+
readonly reading: readonly ["#faf9f5", "#1f1e1d"];
|
|
204
|
+
readonly raised: readonly ["#ffffff", "#262523"];
|
|
205
|
+
readonly overlay: readonly ["#ffffff", "#2d2b29"];
|
|
206
|
+
readonly fill: readonly ["#f0eee6", "#34322f"];
|
|
207
|
+
readonly field: readonly ["#ffffff", "#191918"];
|
|
208
|
+
readonly tint: readonly ["rgb(20 20 19 / 4.5%)", "rgb(255 245 230 / 4.5%)"];
|
|
209
|
+
readonly knockout: readonly ["#ffffff", "#262523"];
|
|
210
|
+
readonly scrim: readonly ["rgb(20 20 19 / 24%)", "rgb(0 0 0 / 56%)"];
|
|
211
|
+
};
|
|
212
|
+
readonly inverse: {
|
|
213
|
+
readonly surface: readonly ["#141413", "#34322f"];
|
|
214
|
+
readonly ink: "#faf9f5";
|
|
215
|
+
readonly action: "#8ad3bd";
|
|
216
|
+
};
|
|
217
|
+
readonly line: {
|
|
218
|
+
readonly width: "1px";
|
|
219
|
+
readonly edge: readonly ["#e3dfd3", "#3b3834"];
|
|
220
|
+
readonly divider: readonly ["#ece9df", "#34322f"];
|
|
221
|
+
readonly control: readonly ["#d4cfbf", "#514d47"];
|
|
222
|
+
readonly controlHover: readonly ["#928b7b", "#8e887d"];
|
|
223
|
+
};
|
|
224
|
+
readonly ink: {
|
|
225
|
+
readonly primary: readonly ["#141413", "#e8e6dc"];
|
|
226
|
+
readonly secondary: readonly ["#6b675f", "#b4aea2"];
|
|
227
|
+
readonly tertiary: readonly ["#6b675f", "#a39e93"];
|
|
228
|
+
readonly chip: readonly ["#5f5b52", "#c0baaf"];
|
|
229
|
+
readonly reading: readonly ["#34322c", "#d1cdc1"];
|
|
230
|
+
};
|
|
231
|
+
readonly state: {
|
|
232
|
+
readonly hover: readonly ["rgb(20 20 19 / 4.5%)", "rgb(255 245 230 / 4.5%)"];
|
|
233
|
+
readonly active: readonly ["rgb(20 20 19 / 8%)", "rgb(255 245 230 / 9%)"];
|
|
234
|
+
readonly focus: readonly ["#2c7765", "#5bb99f"];
|
|
235
|
+
readonly focusRing: readonly ["rgb(63 143 122 / 25%)", "rgb(91 185 159 / 30%)"];
|
|
236
|
+
};
|
|
237
|
+
readonly action: {
|
|
238
|
+
readonly primary: readonly ["#2c7765", "#3f9c82"];
|
|
239
|
+
readonly primaryHover: readonly ["#246654", "#5bb99f"];
|
|
240
|
+
readonly onPrimary: readonly ["#ffffff", "#101b16"];
|
|
241
|
+
readonly soft: readonly ["#f0eee6", "#34322f"];
|
|
242
|
+
readonly danger: readonly ["#ad3b2b", "#e8705f"];
|
|
243
|
+
readonly onDanger: readonly ["#fff8ee", "#211613"];
|
|
244
|
+
};
|
|
245
|
+
readonly control: {
|
|
246
|
+
readonly small: "28px";
|
|
247
|
+
readonly large: "44px";
|
|
248
|
+
readonly trackInset: "3px";
|
|
249
|
+
readonly regular: "32px";
|
|
250
|
+
readonly inset: "8px";
|
|
251
|
+
readonly fieldInset: "10px";
|
|
252
|
+
readonly thumb: readonly ["#ffffff", "#4a4741"];
|
|
253
|
+
readonly knob: readonly ["#ffffff", "#e8e6dc"];
|
|
254
|
+
};
|
|
255
|
+
readonly accent: {
|
|
256
|
+
readonly base: readonly ["#2b705e", "#5bb99f"];
|
|
257
|
+
readonly soft: readonly ["rgb(63 143 122 / 6%)", "rgb(91 185 159 / 7%)"];
|
|
258
|
+
readonly selected: readonly ["rgb(63 143 122 / 13%)", "rgb(91 185 159 / 16%)"];
|
|
259
|
+
readonly ink: readonly ["#246654", "#87d1bb"];
|
|
260
|
+
readonly line: readonly ["rgb(63 143 122 / 25%)", "rgb(91 185 159 / 28%)"];
|
|
261
|
+
readonly halo: readonly ["rgb(63 143 122 / 25%)", "rgb(91 185 159 / 28%)"];
|
|
262
|
+
};
|
|
263
|
+
readonly status: {
|
|
264
|
+
readonly info: readonly ["#336592", "#81afd9"];
|
|
265
|
+
readonly success: readonly ["#426b29", "#9abc7b"];
|
|
266
|
+
readonly warning: readonly ["#84560f", "#e3b25f"];
|
|
267
|
+
readonly danger: readonly ["#a8392a", "#f08d7e"];
|
|
268
|
+
readonly unknown: readonly ["#938d82", "#928c81"];
|
|
269
|
+
};
|
|
270
|
+
readonly type: {
|
|
271
|
+
readonly micro: "11px";
|
|
272
|
+
readonly caption: "12px";
|
|
273
|
+
readonly code: "12px";
|
|
274
|
+
readonly title: "16px";
|
|
275
|
+
readonly hero: "40px";
|
|
276
|
+
readonly touchField: "16px";
|
|
277
|
+
readonly trackingCaps: "0.04em";
|
|
278
|
+
readonly quoteStyle: "normal";
|
|
279
|
+
readonly sans: "-apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Helvetica Neue\", \"PingFang SC\", \"Segoe UI\", system-ui, sans-serif";
|
|
280
|
+
readonly display: "-apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Helvetica Neue\", \"PingFang SC\", \"Segoe UI\", system-ui, sans-serif";
|
|
281
|
+
readonly reading: "-apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Helvetica Neue\", \"PingFang SC\", \"Segoe UI\", system-ui, sans-serif";
|
|
282
|
+
readonly mono: "\"SF Mono\", ui-monospace, Menlo, Consolas, monospace";
|
|
283
|
+
readonly label: "12px";
|
|
284
|
+
readonly body: "13px";
|
|
285
|
+
readonly readingSize: "14px";
|
|
286
|
+
readonly heading: "19px";
|
|
287
|
+
readonly pageTitle: "23px";
|
|
288
|
+
readonly line: {
|
|
289
|
+
readonly micro: "16px";
|
|
290
|
+
readonly caption: "18px";
|
|
291
|
+
readonly code: "18px";
|
|
292
|
+
readonly bodyCompact: "20px";
|
|
293
|
+
readonly title: "24px";
|
|
294
|
+
readonly hero: "48px";
|
|
295
|
+
readonly label: "18px";
|
|
296
|
+
readonly body: "20px";
|
|
297
|
+
readonly reading: "22px";
|
|
298
|
+
readonly heading: "26px";
|
|
299
|
+
readonly pageTitle: "30px";
|
|
300
|
+
};
|
|
301
|
+
readonly weight: {
|
|
302
|
+
readonly regular: "400";
|
|
303
|
+
readonly medium: "500";
|
|
304
|
+
readonly semibold: "600";
|
|
305
|
+
readonly display: "650";
|
|
306
|
+
};
|
|
307
|
+
readonly leading: "1.5";
|
|
308
|
+
readonly trackingTight: "-0.02em";
|
|
309
|
+
};
|
|
310
|
+
readonly space: {
|
|
311
|
+
readonly prose: "12px";
|
|
312
|
+
readonly pageBlockCompact: "20px";
|
|
313
|
+
readonly pageInlineCompact: "16px";
|
|
314
|
+
readonly group: "6px";
|
|
315
|
+
readonly section: "18px";
|
|
316
|
+
readonly panel: "22px";
|
|
317
|
+
readonly insetBlock: "10px";
|
|
318
|
+
readonly insetInline: "12px";
|
|
319
|
+
readonly pageBlock: "24px";
|
|
320
|
+
readonly pageInline: "26px";
|
|
321
|
+
};
|
|
322
|
+
readonly radius: {
|
|
323
|
+
readonly xs: "5px";
|
|
324
|
+
readonly sm: "7px";
|
|
325
|
+
readonly md: "8px";
|
|
326
|
+
readonly lg: "9px";
|
|
327
|
+
readonly xl: "11px";
|
|
328
|
+
readonly xxl: "14px";
|
|
329
|
+
readonly full: "999px";
|
|
330
|
+
};
|
|
331
|
+
readonly shadow: {
|
|
332
|
+
readonly raised: readonly ["none", "inset 0 1px 0 rgb(255 255 255 / 3%)"];
|
|
333
|
+
readonly field: readonly ["0 1px 1px rgb(0 0 0 / 2.5%)", "none"];
|
|
334
|
+
readonly thumb: readonly ["0 0 0 1px rgb(0 0 0 / 6%), 0 1px 2px rgb(0 0 0 / 8%)", "0 0 0 1px rgb(255 255 255 / 8%), 0 1px 2px rgb(0 0 0 / 32%)"];
|
|
335
|
+
readonly pressed: "inset 0 1px 2px rgb(0 0 0 / 12%)";
|
|
336
|
+
readonly sheet: readonly ["12px 0 40px rgb(0 0 0 / 12%)", "12px 0 40px rgb(0 0 0 / 50%)"];
|
|
337
|
+
readonly knob: readonly ["0 1px 2px rgb(0 0 0 / 16%)", "0 1px 2px rgb(0 0 0 / 40%)"];
|
|
338
|
+
readonly action: readonly ["0 1px 2px rgb(20 20 19 / 4%)", "0 1px 2px rgb(0 0 0 / 24%)"];
|
|
339
|
+
readonly filled: readonly ["0 1px 2px rgb(20 20 19 / 10%)", "0 1px 2px rgb(0 0 0 / 30%)"];
|
|
340
|
+
readonly float: readonly ["0 1px 2px rgb(20 20 19 / 4%), 0 8px 24px rgb(20 20 19 / 6%)", "0 1px 2px rgb(0 0 0 / 25%), 0 10px 30px rgb(0 0 0 / 35%)"];
|
|
341
|
+
readonly dock: readonly ["0 1px 2px rgb(20 20 19 / 4%), 0 8px 24px rgb(20 20 19 / 6%)", "0 1px 2px rgb(0 0 0 / 25%), 0 10px 30px rgb(0 0 0 / 35%)"];
|
|
342
|
+
};
|
|
343
|
+
readonly motion: {
|
|
344
|
+
readonly instant: "40ms";
|
|
345
|
+
readonly settle: "200ms";
|
|
346
|
+
readonly draw: "360ms";
|
|
347
|
+
readonly loop: "1.2s";
|
|
348
|
+
readonly sweep: "1.6s";
|
|
349
|
+
readonly ease: "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
350
|
+
readonly enter: "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
351
|
+
readonly response: "120ms";
|
|
352
|
+
};
|
|
353
|
+
readonly glyph: {
|
|
354
|
+
readonly chevron: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")`;
|
|
355
|
+
readonly check: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")`;
|
|
356
|
+
readonly arrow: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E")`;
|
|
357
|
+
readonly cross: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E")`;
|
|
358
|
+
readonly selectChevron: readonly [string, string];
|
|
359
|
+
};
|
|
360
|
+
}> & import("meowcss").TokenSet;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { defineTokens } from "meowcss";
|
|
2
|
+
import { standardUiTokenValues } from "./tokens.js";
|
|
3
|
+
const sans = '-apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Segoe UI", system-ui, sans-serif';
|
|
4
|
+
const mono = '"SF Mono", ui-monospace, Menlo, Consolas, monospace';
|
|
5
|
+
const softDepth = [
|
|
6
|
+
"0 1px 2px rgb(20 20 19 / 4%), 0 8px 24px rgb(20 20 19 / 6%)",
|
|
7
|
+
"0 1px 2px rgb(0 0 0 / 25%), 0 10px 30px rgb(0 0 0 / 35%)",
|
|
8
|
+
];
|
|
9
|
+
function selectChevron(ink) {
|
|
10
|
+
return `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23${ink}' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Ottr translates the Tasks prototype into shared roles: warm paper and charcoal, mint for
|
|
14
|
+
* primary actions and selection, compact system type, soft corners, and hairline-separated planes.
|
|
15
|
+
* Text uses stronger variants of the prototype colors where small labels need more contrast.
|
|
16
|
+
*/
|
|
17
|
+
export const ottrUiTokenValues = {
|
|
18
|
+
...standardUiTokenValues,
|
|
19
|
+
surface: {
|
|
20
|
+
canvas: ["#faf9f5", "#1f1e1d"],
|
|
21
|
+
reading: ["#faf9f5", "#1f1e1d"],
|
|
22
|
+
raised: ["#ffffff", "#262523"],
|
|
23
|
+
overlay: ["#ffffff", "#2d2b29"],
|
|
24
|
+
fill: ["#f0eee6", "#34322f"],
|
|
25
|
+
field: ["#ffffff", "#191918"],
|
|
26
|
+
tint: ["rgb(20 20 19 / 4.5%)", "rgb(255 245 230 / 4.5%)"],
|
|
27
|
+
knockout: ["#ffffff", "#262523"],
|
|
28
|
+
scrim: ["rgb(20 20 19 / 24%)", "rgb(0 0 0 / 56%)"],
|
|
29
|
+
},
|
|
30
|
+
inverse: {
|
|
31
|
+
surface: ["#141413", "#34322f"],
|
|
32
|
+
ink: "#faf9f5",
|
|
33
|
+
action: "#8ad3bd",
|
|
34
|
+
},
|
|
35
|
+
line: {
|
|
36
|
+
width: "1px",
|
|
37
|
+
edge: ["#e3dfd3", "#3b3834"],
|
|
38
|
+
divider: ["#ece9df", "#34322f"],
|
|
39
|
+
control: ["#d4cfbf", "#514d47"],
|
|
40
|
+
controlHover: ["#928b7b", "#8e887d"],
|
|
41
|
+
},
|
|
42
|
+
ink: {
|
|
43
|
+
primary: ["#141413", "#e8e6dc"],
|
|
44
|
+
secondary: ["#6b675f", "#b4aea2"],
|
|
45
|
+
tertiary: ["#6b675f", "#a39e93"],
|
|
46
|
+
chip: ["#5f5b52", "#c0baaf"],
|
|
47
|
+
reading: ["#34322c", "#d1cdc1"],
|
|
48
|
+
},
|
|
49
|
+
state: {
|
|
50
|
+
hover: ["rgb(20 20 19 / 4.5%)", "rgb(255 245 230 / 4.5%)"],
|
|
51
|
+
active: ["rgb(20 20 19 / 8%)", "rgb(255 245 230 / 9%)"],
|
|
52
|
+
focus: ["#2c7765", "#5bb99f"],
|
|
53
|
+
focusRing: ["rgb(63 143 122 / 25%)", "rgb(91 185 159 / 30%)"],
|
|
54
|
+
},
|
|
55
|
+
action: {
|
|
56
|
+
primary: ["#2c7765", "#3f9c82"],
|
|
57
|
+
primaryHover: ["#246654", "#5bb99f"],
|
|
58
|
+
onPrimary: ["#ffffff", "#101b16"],
|
|
59
|
+
soft: ["#f0eee6", "#34322f"],
|
|
60
|
+
danger: ["#ad3b2b", "#e8705f"],
|
|
61
|
+
onDanger: ["#fff8ee", "#211613"],
|
|
62
|
+
},
|
|
63
|
+
control: {
|
|
64
|
+
...standardUiTokenValues.control,
|
|
65
|
+
regular: "32px",
|
|
66
|
+
inset: "8px",
|
|
67
|
+
fieldInset: "10px",
|
|
68
|
+
thumb: ["#ffffff", "#4a4741"],
|
|
69
|
+
knob: ["#ffffff", "#e8e6dc"],
|
|
70
|
+
},
|
|
71
|
+
accent: {
|
|
72
|
+
base: ["#2b705e", "#5bb99f"],
|
|
73
|
+
soft: ["rgb(63 143 122 / 6%)", "rgb(91 185 159 / 7%)"],
|
|
74
|
+
selected: ["rgb(63 143 122 / 13%)", "rgb(91 185 159 / 16%)"],
|
|
75
|
+
ink: ["#246654", "#87d1bb"],
|
|
76
|
+
line: ["rgb(63 143 122 / 25%)", "rgb(91 185 159 / 28%)"],
|
|
77
|
+
halo: ["rgb(63 143 122 / 25%)", "rgb(91 185 159 / 28%)"],
|
|
78
|
+
},
|
|
79
|
+
status: {
|
|
80
|
+
info: ["#336592", "#81afd9"],
|
|
81
|
+
success: ["#426b29", "#9abc7b"],
|
|
82
|
+
warning: ["#84560f", "#e3b25f"],
|
|
83
|
+
danger: ["#a8392a", "#f08d7e"],
|
|
84
|
+
unknown: ["#938d82", "#928c81"],
|
|
85
|
+
},
|
|
86
|
+
type: {
|
|
87
|
+
...standardUiTokenValues.type,
|
|
88
|
+
sans,
|
|
89
|
+
display: sans,
|
|
90
|
+
reading: sans,
|
|
91
|
+
mono,
|
|
92
|
+
label: "12px",
|
|
93
|
+
body: "13px",
|
|
94
|
+
readingSize: "14px",
|
|
95
|
+
heading: "19px",
|
|
96
|
+
pageTitle: "23px",
|
|
97
|
+
line: {
|
|
98
|
+
...standardUiTokenValues.type.line,
|
|
99
|
+
label: "18px",
|
|
100
|
+
body: "20px",
|
|
101
|
+
reading: "22px",
|
|
102
|
+
heading: "26px",
|
|
103
|
+
pageTitle: "30px",
|
|
104
|
+
},
|
|
105
|
+
weight: {
|
|
106
|
+
...standardUiTokenValues.type.weight,
|
|
107
|
+
display: "650",
|
|
108
|
+
},
|
|
109
|
+
leading: "1.5",
|
|
110
|
+
trackingTight: "-0.02em",
|
|
111
|
+
},
|
|
112
|
+
space: {
|
|
113
|
+
...standardUiTokenValues.space,
|
|
114
|
+
group: "6px",
|
|
115
|
+
section: "18px",
|
|
116
|
+
panel: "22px",
|
|
117
|
+
insetBlock: "10px",
|
|
118
|
+
insetInline: "12px",
|
|
119
|
+
pageBlock: "24px",
|
|
120
|
+
pageInline: "26px",
|
|
121
|
+
},
|
|
122
|
+
radius: {
|
|
123
|
+
xs: "5px",
|
|
124
|
+
sm: "7px",
|
|
125
|
+
md: "8px",
|
|
126
|
+
lg: "9px",
|
|
127
|
+
xl: "11px",
|
|
128
|
+
xxl: "14px",
|
|
129
|
+
full: "999px",
|
|
130
|
+
},
|
|
131
|
+
shadow: {
|
|
132
|
+
...standardUiTokenValues.shadow,
|
|
133
|
+
action: ["0 1px 2px rgb(20 20 19 / 4%)", "0 1px 2px rgb(0 0 0 / 24%)"],
|
|
134
|
+
filled: ["0 1px 2px rgb(20 20 19 / 10%)", "0 1px 2px rgb(0 0 0 / 30%)"],
|
|
135
|
+
float: softDepth,
|
|
136
|
+
dock: softDepth,
|
|
137
|
+
},
|
|
138
|
+
motion: { ...standardUiTokenValues.motion, response: "120ms" },
|
|
139
|
+
glyph: {
|
|
140
|
+
...standardUiTokenValues.glyph,
|
|
141
|
+
selectChevron: [selectChevron("6b675f"), selectChevron("b4aea2")],
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
/** The Ottr values under the shared `ui` token names. */
|
|
145
|
+
export const ottrUiTokens = /* @__PURE__ */ defineTokens("ui", ottrUiTokenValues);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meowtail",
|
|
3
|
-
"version": "0.4.0-alpha.
|
|
3
|
+
"version": "0.4.0-alpha.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@fontsource-variable/newsreader": "^5.3.0",
|
|
78
78
|
"meowbook": "0.3.0-alpha.1",
|
|
79
79
|
"meowcss": "0.3.0-alpha.2",
|
|
80
|
-
"meowjsx": "0.3.0-alpha.
|
|
80
|
+
"meowjsx": "0.3.0-alpha.2"
|
|
81
81
|
},
|
|
82
82
|
"repository": {
|
|
83
83
|
"type": "git",
|