@nextlyhq/ui 0.0.2-alpha.67 → 0.0.2-alpha.69

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.
@@ -1,120 +1,122 @@
1
- /** @experimental */
2
- declare const uiPreset: {
3
- theme: {
4
- extend: {
5
- colors: {
6
- overlay: string;
7
- "overlay-soft": string;
8
- "overlay-strong": string;
9
- border: {
10
- DEFAULT: string;
11
- subtle: string;
12
- strong: string;
13
- };
14
- input: string;
15
- "control-border": string;
16
- ring: string;
17
- background: string;
18
- foreground: string;
19
- primary: {
20
- DEFAULT: string;
21
- foreground: string;
22
- };
23
- secondary: {
24
- DEFAULT: string;
25
- foreground: string;
26
- };
27
- destructive: {
28
- DEFAULT: string;
29
- solid: string;
30
- foreground: string;
31
- };
32
- success: {
33
- DEFAULT: string;
34
- solid: string;
35
- foreground: string;
36
- };
37
- warning: {
38
- DEFAULT: string;
39
- foreground: string;
40
- };
41
- muted: {
42
- DEFAULT: string;
43
- foreground: string;
44
- };
45
- accent: {
46
- DEFAULT: string;
47
- foreground: string;
48
- };
49
- highlight: {
50
- DEFAULT: string;
51
- foreground: string;
52
- };
53
- code: {
54
- bg: string;
55
- fg: string;
56
- comment: string;
57
- keyword: string;
58
- string: string;
59
- number: string;
60
- function: string;
61
- operator: string;
62
- punctuation: string;
63
- variable: string;
64
- tag: string;
65
- deleted: string;
66
- inserted: string;
67
- };
68
- sidebar: {
69
- DEFAULT: string;
70
- background: string;
71
- foreground: string;
72
- primary: string;
73
- "primary-foreground": string;
74
- accent: string;
75
- "accent-background": string;
76
- "accent-foreground": string;
77
- border: string;
78
- ring: string;
79
- };
80
- popover: {
81
- DEFAULT: string;
82
- foreground: string;
83
- };
84
- card: {
85
- DEFAULT: string;
86
- foreground: string;
87
- };
88
- };
89
- borderRadius: {
90
- lg: string;
91
- md: string;
92
- sm: string;
93
- };
94
- keyframes: {
95
- "accordion-down": {
96
- from: {
97
- height: string;
98
- };
99
- to: {
100
- height: string;
101
- };
102
- };
103
- "accordion-up": {
104
- from: {
105
- height: string;
106
- };
107
- to: {
108
- height: string;
109
- };
110
- };
111
- };
112
- animation: {
113
- "accordion-down": string;
114
- "accordion-up": string;
115
- };
1
+ /** The shape of {@link uiPreset}: the tokens it maps, each to its CSS custom property. */
2
+ type UiPreset = {
3
+ theme: {
4
+ extend: {
5
+ colors: {
6
+ overlay: string;
7
+ "overlay-soft": string;
8
+ "overlay-strong": string;
9
+ border: {
10
+ DEFAULT: string;
11
+ subtle: string;
12
+ strong: string;
13
+ };
14
+ input: string;
15
+ "control-border": string;
16
+ ring: string;
17
+ background: string;
18
+ foreground: string;
19
+ primary: {
20
+ DEFAULT: string;
21
+ foreground: string;
22
+ };
23
+ secondary: {
24
+ DEFAULT: string;
25
+ foreground: string;
26
+ };
27
+ destructive: {
28
+ DEFAULT: string;
29
+ solid: string;
30
+ foreground: string;
31
+ };
32
+ success: {
33
+ DEFAULT: string;
34
+ solid: string;
35
+ foreground: string;
36
+ };
37
+ warning: {
38
+ DEFAULT: string;
39
+ foreground: string;
40
+ };
41
+ muted: {
42
+ DEFAULT: string;
43
+ foreground: string;
44
+ };
45
+ accent: {
46
+ DEFAULT: string;
47
+ foreground: string;
116
48
  };
49
+ highlight: {
50
+ DEFAULT: string;
51
+ foreground: string;
52
+ };
53
+ code: {
54
+ bg: string;
55
+ fg: string;
56
+ comment: string;
57
+ keyword: string;
58
+ string: string;
59
+ number: string;
60
+ function: string;
61
+ operator: string;
62
+ punctuation: string;
63
+ variable: string;
64
+ tag: string;
65
+ deleted: string;
66
+ inserted: string;
67
+ };
68
+ sidebar: {
69
+ DEFAULT: string;
70
+ background: string;
71
+ foreground: string;
72
+ primary: string;
73
+ "primary-foreground": string;
74
+ accent: string;
75
+ "accent-background": string;
76
+ "accent-foreground": string;
77
+ border: string;
78
+ ring: string;
79
+ };
80
+ popover: {
81
+ DEFAULT: string;
82
+ foreground: string;
83
+ };
84
+ card: {
85
+ DEFAULT: string;
86
+ foreground: string;
87
+ };
88
+ };
89
+ borderRadius: {
90
+ lg: string;
91
+ md: string;
92
+ sm: string;
93
+ };
94
+ keyframes: {
95
+ "accordion-down": {
96
+ from: {
97
+ height: string;
98
+ };
99
+ to: {
100
+ height: string;
101
+ };
102
+ };
103
+ "accordion-up": {
104
+ from: {
105
+ height: string;
106
+ };
107
+ to: {
108
+ height: string;
109
+ };
110
+ };
111
+ };
112
+ animation: {
113
+ "accordion-down": string;
114
+ "accordion-up": string;
115
+ };
117
116
  };
117
+ };
118
118
  };
119
-
119
+ /** @experimental */
120
+ declare const uiPreset: UiPreset;
120
121
  export { uiPreset as default, uiPreset };
122
+ //# sourceMappingURL=tailwind-preset.d.ts.map
@@ -1,148 +1,166 @@
1
1
  // src/tailwind-preset.ts
2
- var tintScale = (base) => ({
3
- 50: `color-mix(in srgb, var(${base}), white 95%)`,
4
- 100: `color-mix(in srgb, var(${base}), white 90%)`,
5
- 200: `color-mix(in srgb, var(${base}), white 70%)`,
6
- 300: `color-mix(in srgb, var(${base}), white 50%)`,
7
- 400: `color-mix(in srgb, var(${base}), white 30%)`,
8
- 500: `var(${base})`,
9
- 600: `color-mix(in srgb, var(${base}), black 10%)`,
10
- 700: `color-mix(in srgb, var(${base}), black 30%)`,
11
- 800: `color-mix(in srgb, var(${base}), black 50%)`,
12
- 900: `color-mix(in srgb, var(${base}), black 70%)`,
13
- 950: `color-mix(in srgb, var(${base}), black 85%)`
2
+ /**
3
+ * Tailwind CSS preset for @nextlyhq/ui components.
4
+ *
5
+ * Defines the CSS custom property contract that all UI components expect.
6
+ * Consumers must provide the actual CSS variable values in their stylesheets.
7
+ *
8
+ * Usage (Tailwind v3, ESM):
9
+ * // tailwind.config.ts
10
+ * import uiPreset from "@nextlyhq/ui/tailwind-preset";
11
+ * export default { presets: [uiPreset], ... };
12
+ *
13
+ * Usage (Tailwind v3, CommonJS):
14
+ * // tailwind.config.js
15
+ * const { uiPreset } = require("@nextlyhq/ui/tailwind-preset");
16
+ * module.exports = { presets: [uiPreset], ... };
17
+ *
18
+ * Usage (Tailwind v4 with @config):
19
+ * Consumers define the equivalent @theme tokens in their CSS.
20
+ * This file serves as the reference contract.
21
+ *
22
+ * Scope: tokens and the utilities derived from them, and nothing else. The
23
+ * component classes the library writes into its own markup — `.nx-page-shell`,
24
+ * `.nx-bleed`, `.nx-form-section-rows` — are CSS rules rather than token
25
+ * mappings, and they ship in `theme.css` for every consumer alike. Restating
26
+ * one of them here would express a single decision in two places that agree
27
+ * until one of them is edited, and would still leave the others missing; the
28
+ * boundary holds for all of them or it holds for none. `theme.css` is
29
+ * therefore required alongside this preset, not an alternative to it, and
30
+ * `tailwind-preset.test.ts` fails if a component selector reappears here.
31
+ */
32
+ /**
33
+ * The numbered shade scale for a color, mixed from its base the same way the v4
34
+ * `@theme` block does, so v3 preset consumers get the same utilities the
35
+ * components emit (`bg-destructive-700`, `bg-primary-500`, `border-primary-300`).
36
+ *
37
+ * Named for the derivation rather than for one caller: the status colors, the
38
+ * primary and the accent all use it, and `@theme` derives all five identically.
39
+ */
40
+ const tintScale = (base) => ({
41
+ 50: `color-mix(in srgb, var(${base}), white 95%)`,
42
+ 100: `color-mix(in srgb, var(${base}), white 90%)`,
43
+ 200: `color-mix(in srgb, var(${base}), white 70%)`,
44
+ 300: `color-mix(in srgb, var(${base}), white 50%)`,
45
+ 400: `color-mix(in srgb, var(${base}), white 30%)`,
46
+ 500: `var(${base})`,
47
+ 600: `color-mix(in srgb, var(${base}), black 10%)`,
48
+ 700: `color-mix(in srgb, var(${base}), black 30%)`,
49
+ 800: `color-mix(in srgb, var(${base}), black 50%)`,
50
+ 900: `color-mix(in srgb, var(${base}), black 70%)`,
51
+ 950: `color-mix(in srgb, var(${base}), black 85%)`
14
52
  });
15
- var uiPreset = {
16
- theme: {
17
- extend: {
18
- colors: {
19
- // The modal scrim. Mapped here as well as in the v4 `@theme` block,
20
- // because this preset is the documented Tailwind v3 path and reads
21
- // none of that: without these two, `bg-overlay` generates no rule at
22
- // all and every backdrop is transparent rather than merely unthemed.
23
- overlay: "var(--nx-overlay)",
24
- "overlay-soft": "var(--nx-overlay-soft)",
25
- "overlay-strong": "var(--nx-overlay-strong)",
26
- border: {
27
- DEFAULT: "var(--nx-border)",
28
- subtle: "var(--nx-border-subtle)",
29
- strong: "var(--nx-border-strong)"
30
- },
31
- input: "var(--nx-input)",
32
- // The boundary of a control that draws no fill of its own -- an
33
- // unchecked checkbox, radio or switch. Separate from `input` because
34
- // that one is the field border weight, which sits below the 3:1
35
- // non-text minimum by design.
36
- "control-border": "var(--nx-control-border)",
37
- ring: "var(--nx-ring)",
38
- background: "var(--nx-background)",
39
- foreground: "var(--nx-foreground)",
40
- primary: {
41
- DEFAULT: "var(--nx-primary)",
42
- foreground: "var(--nx-primary-foreground)",
43
- ...tintScale("--nx-primary")
44
- },
45
- secondary: {
46
- DEFAULT: "var(--nx-secondary)",
47
- foreground: "var(--nx-secondary-foreground)"
48
- },
49
- destructive: {
50
- DEFAULT: "var(--nx-destructive)",
51
- // Saturated fill for solid buttons, distinct from the text-tuned base.
52
- solid: "var(--nx-destructive-solid)",
53
- foreground: "var(--nx-destructive-foreground)",
54
- ...tintScale("--nx-destructive")
55
- },
56
- success: {
57
- DEFAULT: "var(--nx-success)",
58
- solid: "var(--nx-success-solid)",
59
- foreground: "var(--nx-success-foreground)",
60
- ...tintScale("--nx-success")
61
- },
62
- warning: {
63
- DEFAULT: "var(--nx-warning)",
64
- foreground: "var(--nx-warning-foreground)",
65
- ...tintScale("--nx-warning")
66
- },
67
- muted: {
68
- DEFAULT: "var(--nx-muted)",
69
- foreground: "var(--nx-muted-foreground)"
70
- },
71
- accent: {
72
- DEFAULT: "var(--nx-accent)",
73
- foreground: "var(--nx-accent-foreground)",
74
- ...tintScale("--nx-accent")
75
- },
76
- // The editor's highlight mark, and the syntax colors, so authored
77
- // content and code blocks theme like everything else.
78
- highlight: {
79
- DEFAULT: "var(--nx-highlight)",
80
- foreground: "var(--nx-highlight-foreground)"
81
- },
82
- code: {
83
- bg: "var(--nx-code-bg)",
84
- fg: "var(--nx-code-fg)",
85
- comment: "var(--nx-code-comment)",
86
- keyword: "var(--nx-code-keyword)",
87
- string: "var(--nx-code-string)",
88
- number: "var(--nx-code-number)",
89
- function: "var(--nx-code-function)",
90
- operator: "var(--nx-code-operator)",
91
- punctuation: "var(--nx-code-punctuation)",
92
- variable: "var(--nx-code-variable)",
93
- tag: "var(--nx-code-tag)",
94
- deleted: "var(--nx-code-deleted)",
95
- inserted: "var(--nx-code-inserted)"
96
- },
97
- // `sidebar` and `sidebar-background` are the same value under two
98
- // names, and `sidebar-accent` and `sidebar-accent-background` likewise.
99
- // Both pairs exist in the v4 block and both spellings are in use, so
100
- // dropping either here would leave a live utility generating nothing.
101
- sidebar: {
102
- DEFAULT: "var(--nx-sidebar-background)",
103
- background: "var(--nx-sidebar-background)",
104
- foreground: "var(--nx-sidebar-foreground)",
105
- primary: "var(--nx-sidebar-primary)",
106
- "primary-foreground": "var(--nx-sidebar-primary-foreground)",
107
- accent: "var(--nx-sidebar-accent)",
108
- "accent-background": "var(--nx-sidebar-accent)",
109
- "accent-foreground": "var(--nx-sidebar-accent-foreground)",
110
- border: "var(--nx-sidebar-border)",
111
- ring: "var(--nx-sidebar-ring)"
112
- },
113
- popover: {
114
- DEFAULT: "var(--nx-popover)",
115
- foreground: "var(--nx-popover-foreground)"
116
- },
117
- card: {
118
- DEFAULT: "var(--nx-card)",
119
- foreground: "var(--nx-card-foreground)"
120
- }
121
- },
122
- borderRadius: {
123
- lg: "var(--radius)",
124
- md: "calc(var(--radius) - 2px)",
125
- sm: "calc(var(--radius) - 4px)"
126
- },
127
- keyframes: {
128
- "accordion-down": {
129
- from: { height: "0" },
130
- to: { height: "var(--radix-accordion-content-height)" }
131
- },
132
- "accordion-up": {
133
- from: { height: "var(--radix-accordion-content-height)" },
134
- to: { height: "0" }
135
- }
136
- },
137
- animation: {
138
- "accordion-down": "accordion-down 0.3s cubic-bezier(0.87, 0, 0.13, 1)",
139
- "accordion-up": "accordion-up 0.3s cubic-bezier(0.87, 0, 0.13, 1)"
140
- }
141
- }
142
- }
143
- };
144
- var tailwind_preset_default = uiPreset;
53
+ /** @experimental */
54
+ const uiPreset = { theme: { extend: {
55
+ colors: {
56
+ overlay: "var(--nx-overlay)",
57
+ "overlay-soft": "var(--nx-overlay-soft)",
58
+ "overlay-strong": "var(--nx-overlay-strong)",
59
+ border: {
60
+ DEFAULT: "var(--nx-border)",
61
+ subtle: "var(--nx-border-subtle)",
62
+ strong: "var(--nx-border-strong)"
63
+ },
64
+ input: "var(--nx-input)",
65
+ "control-border": "var(--nx-control-border)",
66
+ ring: "var(--nx-ring)",
67
+ background: "var(--nx-background)",
68
+ foreground: "var(--nx-foreground)",
69
+ primary: {
70
+ DEFAULT: "var(--nx-primary)",
71
+ foreground: "var(--nx-primary-foreground)",
72
+ ...tintScale("--nx-primary")
73
+ },
74
+ secondary: {
75
+ DEFAULT: "var(--nx-secondary)",
76
+ foreground: "var(--nx-secondary-foreground)"
77
+ },
78
+ destructive: {
79
+ DEFAULT: "var(--nx-destructive)",
80
+ solid: "var(--nx-destructive-solid)",
81
+ foreground: "var(--nx-destructive-foreground)",
82
+ ...tintScale("--nx-destructive")
83
+ },
84
+ success: {
85
+ DEFAULT: "var(--nx-success)",
86
+ solid: "var(--nx-success-solid)",
87
+ foreground: "var(--nx-success-foreground)",
88
+ ...tintScale("--nx-success")
89
+ },
90
+ warning: {
91
+ DEFAULT: "var(--nx-warning)",
92
+ foreground: "var(--nx-warning-foreground)",
93
+ ...tintScale("--nx-warning")
94
+ },
95
+ muted: {
96
+ DEFAULT: "var(--nx-muted)",
97
+ foreground: "var(--nx-muted-foreground)"
98
+ },
99
+ accent: {
100
+ DEFAULT: "var(--nx-accent)",
101
+ foreground: "var(--nx-accent-foreground)",
102
+ ...tintScale("--nx-accent")
103
+ },
104
+ highlight: {
105
+ DEFAULT: "var(--nx-highlight)",
106
+ foreground: "var(--nx-highlight-foreground)"
107
+ },
108
+ code: {
109
+ bg: "var(--nx-code-bg)",
110
+ fg: "var(--nx-code-fg)",
111
+ comment: "var(--nx-code-comment)",
112
+ keyword: "var(--nx-code-keyword)",
113
+ string: "var(--nx-code-string)",
114
+ number: "var(--nx-code-number)",
115
+ function: "var(--nx-code-function)",
116
+ operator: "var(--nx-code-operator)",
117
+ punctuation: "var(--nx-code-punctuation)",
118
+ variable: "var(--nx-code-variable)",
119
+ tag: "var(--nx-code-tag)",
120
+ deleted: "var(--nx-code-deleted)",
121
+ inserted: "var(--nx-code-inserted)"
122
+ },
123
+ sidebar: {
124
+ DEFAULT: "var(--nx-sidebar-background)",
125
+ background: "var(--nx-sidebar-background)",
126
+ foreground: "var(--nx-sidebar-foreground)",
127
+ primary: "var(--nx-sidebar-primary)",
128
+ "primary-foreground": "var(--nx-sidebar-primary-foreground)",
129
+ accent: "var(--nx-sidebar-accent)",
130
+ "accent-background": "var(--nx-sidebar-accent)",
131
+ "accent-foreground": "var(--nx-sidebar-accent-foreground)",
132
+ border: "var(--nx-sidebar-border)",
133
+ ring: "var(--nx-sidebar-ring)"
134
+ },
135
+ popover: {
136
+ DEFAULT: "var(--nx-popover)",
137
+ foreground: "var(--nx-popover-foreground)"
138
+ },
139
+ card: {
140
+ DEFAULT: "var(--nx-card)",
141
+ foreground: "var(--nx-card-foreground)"
142
+ }
143
+ },
144
+ borderRadius: {
145
+ lg: "var(--radius)",
146
+ md: "calc(var(--radius) - 2px)",
147
+ sm: "calc(var(--radius) - 4px)"
148
+ },
149
+ keyframes: {
150
+ "accordion-down": {
151
+ from: { height: "0" },
152
+ to: { height: "var(--radix-accordion-content-height)" }
153
+ },
154
+ "accordion-up": {
155
+ from: { height: "var(--radix-accordion-content-height)" },
156
+ to: { height: "0" }
157
+ }
158
+ },
159
+ animation: {
160
+ "accordion-down": "accordion-down 0.3s cubic-bezier(0.87, 0, 0.13, 1)",
161
+ "accordion-up": "accordion-up 0.3s cubic-bezier(0.87, 0, 0.13, 1)"
162
+ }
163
+ } } };
164
+ export { uiPreset as default, uiPreset };
145
165
 
146
- export { tailwind_preset_default as default, uiPreset };
147
- //# sourceMappingURL=tailwind-preset.mjs.map
148
166
  //# sourceMappingURL=tailwind-preset.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/tailwind-preset.ts"],"names":[],"mappings":";AAsCA,IAAM,SAAA,GAAY,CAAC,IAAA,MAA0C;AAAA,EAC3D,EAAA,EAAI,0BAA0B,IAAI,CAAA,aAAA,CAAA;AAAA,EAClC,GAAA,EAAK,0BAA0B,IAAI,CAAA,aAAA,CAAA;AAAA,EACnC,GAAA,EAAK,0BAA0B,IAAI,CAAA,aAAA,CAAA;AAAA,EACnC,GAAA,EAAK,0BAA0B,IAAI,CAAA,aAAA,CAAA;AAAA,EACnC,GAAA,EAAK,0BAA0B,IAAI,CAAA,aAAA,CAAA;AAAA,EACnC,GAAA,EAAK,OAAO,IAAI,CAAA,CAAA,CAAA;AAAA,EAChB,GAAA,EAAK,0BAA0B,IAAI,CAAA,aAAA,CAAA;AAAA,EACnC,GAAA,EAAK,0BAA0B,IAAI,CAAA,aAAA,CAAA;AAAA,EACnC,GAAA,EAAK,0BAA0B,IAAI,CAAA,aAAA,CAAA;AAAA,EACnC,GAAA,EAAK,0BAA0B,IAAI,CAAA,aAAA,CAAA;AAAA,EACnC,GAAA,EAAK,0BAA0B,IAAI,CAAA,aAAA;AACrC,CAAA,CAAA;AAGA,IAAM,QAAA,GAAW;AAAA,EACf,KAAA,EAAO;AAAA,IACL,MAAA,EAAQ;AAAA,MACN,MAAA,EAAQ;AAAA;AAAA;AAAA;AAAA;AAAA,QAKN,OAAA,EAAS,mBAAA;AAAA,QACT,cAAA,EAAgB,wBAAA;AAAA,QAChB,gBAAA,EAAkB,0BAAA;AAAA,QAClB,MAAA,EAAQ;AAAA,UACN,OAAA,EAAS,kBAAA;AAAA,UACT,MAAA,EAAQ,yBAAA;AAAA,UACR,MAAA,EAAQ;AAAA,SAC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AAE,MAAA,EAAQ,uCAAA,EAAwC;AAAA,UACxD,EAAA,EAAI,EAAE,MAAA,EAAQ,GAAA;AAAI;AACpB,OACF;AAAA,MACA,SAAA,EAAW;AAAA,QACT,gBAAA,EAAkB,oDAAA;AAAA,QAClB,cAAA,EAAgB;AAAA;AAClB;AACF;AAEJ;AAOA,IAAO,uBAAA,GAAQ","file":"tailwind-preset.mjs","sourcesContent":["/**\n * Tailwind CSS preset for @nextlyhq/ui components.\n *\n * Defines the CSS custom property contract that all UI components expect.\n * Consumers must provide the actual CSS variable values in their stylesheets.\n *\n * Usage (Tailwind v3, ESM):\n * // tailwind.config.ts\n * import uiPreset from \"@nextlyhq/ui/tailwind-preset\";\n * export default { presets: [uiPreset], ... };\n *\n * Usage (Tailwind v3, CommonJS):\n * // tailwind.config.js\n * const { uiPreset } = require(\"@nextlyhq/ui/tailwind-preset\");\n * module.exports = { presets: [uiPreset], ... };\n *\n * Usage (Tailwind v4 with @config):\n * Consumers define the equivalent @theme tokens in their CSS.\n * This file serves as the reference contract.\n *\n * Scope: tokens and the utilities derived from them, and nothing else. The\n * component classes the library writes into its own markup — `.nx-page-shell`,\n * `.nx-bleed`, `.nx-form-section-rows` — are CSS rules rather than token\n * mappings, and they ship in `theme.css` for every consumer alike. Restating\n * one of them here would express a single decision in two places that agree\n * until one of them is edited, and would still leave the others missing; the\n * boundary holds for all of them or it holds for none. `theme.css` is\n * therefore required alongside this preset, not an alternative to it, and\n * `tailwind-preset.test.ts` fails if a component selector reappears here.\n */\n/**\n * The numbered shade scale for a color, mixed from its base the same way the v4\n * `@theme` block does, so v3 preset consumers get the same utilities the\n * components emit (`bg-destructive-700`, `bg-primary-500`, `border-primary-300`).\n *\n * Named for the derivation rather than for one caller: the status colors, the\n * primary and the accent all use it, and `@theme` derives all five identically.\n */\nconst tintScale = (base: string): Record<number, string> => ({\n 50: `color-mix(in srgb, var(${base}), white 95%)`,\n 100: `color-mix(in srgb, var(${base}), white 90%)`,\n 200: `color-mix(in srgb, var(${base}), white 70%)`,\n 300: `color-mix(in srgb, var(${base}), white 50%)`,\n 400: `color-mix(in srgb, var(${base}), white 30%)`,\n 500: `var(${base})`,\n 600: `color-mix(in srgb, var(${base}), black 10%)`,\n 700: `color-mix(in srgb, var(${base}), black 30%)`,\n 800: `color-mix(in srgb, var(${base}), black 50%)`,\n 900: `color-mix(in srgb, var(${base}), black 70%)`,\n 950: `color-mix(in srgb, var(${base}), black 85%)`,\n});\n\n/** @experimental */\nconst uiPreset = {\n theme: {\n extend: {\n colors: {\n // The modal scrim. Mapped here as well as in the v4 `@theme` block,\n // because this preset is the documented Tailwind v3 path and reads\n // none of that: without these two, `bg-overlay` generates no rule at\n // all and every backdrop is transparent rather than merely unthemed.\n overlay: \"var(--nx-overlay)\",\n \"overlay-soft\": \"var(--nx-overlay-soft)\",\n \"overlay-strong\": \"var(--nx-overlay-strong)\",\n border: {\n DEFAULT: \"var(--nx-border)\",\n subtle: \"var(--nx-border-subtle)\",\n strong: \"var(--nx-border-strong)\",\n },\n input: \"var(--nx-input)\",\n // The boundary of a control that draws no fill of its own -- an\n // unchecked checkbox, radio or switch. Separate from `input` because\n // that one is the field border weight, which sits below the 3:1\n // non-text minimum by design.\n \"control-border\": \"var(--nx-control-border)\",\n ring: \"var(--nx-ring)\",\n background: \"var(--nx-background)\",\n foreground: \"var(--nx-foreground)\",\n primary: {\n DEFAULT: \"var(--nx-primary)\",\n foreground: \"var(--nx-primary-foreground)\",\n ...tintScale(\"--nx-primary\"),\n },\n secondary: {\n DEFAULT: \"var(--nx-secondary)\",\n foreground: \"var(--nx-secondary-foreground)\",\n },\n destructive: {\n DEFAULT: \"var(--nx-destructive)\",\n // Saturated fill for solid buttons, distinct from the text-tuned base.\n solid: \"var(--nx-destructive-solid)\",\n foreground: \"var(--nx-destructive-foreground)\",\n ...tintScale(\"--nx-destructive\"),\n },\n success: {\n DEFAULT: \"var(--nx-success)\",\n solid: \"var(--nx-success-solid)\",\n foreground: \"var(--nx-success-foreground)\",\n ...tintScale(\"--nx-success\"),\n },\n warning: {\n DEFAULT: \"var(--nx-warning)\",\n foreground: \"var(--nx-warning-foreground)\",\n ...tintScale(\"--nx-warning\"),\n },\n muted: {\n DEFAULT: \"var(--nx-muted)\",\n foreground: \"var(--nx-muted-foreground)\",\n },\n accent: {\n DEFAULT: \"var(--nx-accent)\",\n foreground: \"var(--nx-accent-foreground)\",\n ...tintScale(\"--nx-accent\"),\n },\n // The editor's highlight mark, and the syntax colors, so authored\n // content and code blocks theme like everything else.\n highlight: {\n DEFAULT: \"var(--nx-highlight)\",\n foreground: \"var(--nx-highlight-foreground)\",\n },\n code: {\n bg: \"var(--nx-code-bg)\",\n fg: \"var(--nx-code-fg)\",\n comment: \"var(--nx-code-comment)\",\n keyword: \"var(--nx-code-keyword)\",\n string: \"var(--nx-code-string)\",\n number: \"var(--nx-code-number)\",\n function: \"var(--nx-code-function)\",\n operator: \"var(--nx-code-operator)\",\n punctuation: \"var(--nx-code-punctuation)\",\n variable: \"var(--nx-code-variable)\",\n tag: \"var(--nx-code-tag)\",\n deleted: \"var(--nx-code-deleted)\",\n inserted: \"var(--nx-code-inserted)\",\n },\n // `sidebar` and `sidebar-background` are the same value under two\n // names, and `sidebar-accent` and `sidebar-accent-background` likewise.\n // Both pairs exist in the v4 block and both spellings are in use, so\n // dropping either here would leave a live utility generating nothing.\n sidebar: {\n DEFAULT: \"var(--nx-sidebar-background)\",\n background: \"var(--nx-sidebar-background)\",\n foreground: \"var(--nx-sidebar-foreground)\",\n primary: \"var(--nx-sidebar-primary)\",\n \"primary-foreground\": \"var(--nx-sidebar-primary-foreground)\",\n accent: \"var(--nx-sidebar-accent)\",\n \"accent-background\": \"var(--nx-sidebar-accent)\",\n \"accent-foreground\": \"var(--nx-sidebar-accent-foreground)\",\n border: \"var(--nx-sidebar-border)\",\n ring: \"var(--nx-sidebar-ring)\",\n },\n popover: {\n DEFAULT: \"var(--nx-popover)\",\n foreground: \"var(--nx-popover-foreground)\",\n },\n card: {\n DEFAULT: \"var(--nx-card)\",\n foreground: \"var(--nx-card-foreground)\",\n },\n },\n borderRadius: {\n lg: \"var(--radius)\",\n md: \"calc(var(--radius) - 2px)\",\n sm: \"calc(var(--radius) - 4px)\",\n },\n keyframes: {\n \"accordion-down\": {\n from: { height: \"0\" },\n to: { height: \"var(--radix-accordion-content-height)\" },\n },\n \"accordion-up\": {\n from: { height: \"var(--radix-accordion-content-height)\" },\n to: { height: \"0\" },\n },\n },\n animation: {\n \"accordion-down\": \"accordion-down 0.3s cubic-bezier(0.87, 0, 0.13, 1)\",\n \"accordion-up\": \"accordion-up 0.3s cubic-bezier(0.87, 0, 0.13, 1)\",\n },\n },\n },\n};\n\n// Exported both ways on purpose. CommonJS cannot represent a default-only\n// module without `module.exports =`, which makes the emitted declarations\n// disagree with the runtime shape (attw's FalseExportDefault); a named export\n// alongside it keeps `require()` and `import` consistent and typed.\nexport { uiPreset };\nexport default uiPreset;\n"]}
1
+ {"version":3,"file":"tailwind-preset.mjs","names":[],"sources":["../src/tailwind-preset.ts"],"sourcesContent":["/**\n * Tailwind CSS preset for @nextlyhq/ui components.\n *\n * Defines the CSS custom property contract that all UI components expect.\n * Consumers must provide the actual CSS variable values in their stylesheets.\n *\n * Usage (Tailwind v3, ESM):\n * // tailwind.config.ts\n * import uiPreset from \"@nextlyhq/ui/tailwind-preset\";\n * export default { presets: [uiPreset], ... };\n *\n * Usage (Tailwind v3, CommonJS):\n * // tailwind.config.js\n * const { uiPreset } = require(\"@nextlyhq/ui/tailwind-preset\");\n * module.exports = { presets: [uiPreset], ... };\n *\n * Usage (Tailwind v4 with @config):\n * Consumers define the equivalent @theme tokens in their CSS.\n * This file serves as the reference contract.\n *\n * Scope: tokens and the utilities derived from them, and nothing else. The\n * component classes the library writes into its own markup — `.nx-page-shell`,\n * `.nx-bleed`, `.nx-form-section-rows` — are CSS rules rather than token\n * mappings, and they ship in `theme.css` for every consumer alike. Restating\n * one of them here would express a single decision in two places that agree\n * until one of them is edited, and would still leave the others missing; the\n * boundary holds for all of them or it holds for none. `theme.css` is\n * therefore required alongside this preset, not an alternative to it, and\n * `tailwind-preset.test.ts` fails if a component selector reappears here.\n */\n/**\n * The numbered shade scale for a color, mixed from its base the same way the v4\n * `@theme` block does, so v3 preset consumers get the same utilities the\n * components emit (`bg-destructive-700`, `bg-primary-500`, `border-primary-300`).\n *\n * Named for the derivation rather than for one caller: the status colors, the\n * primary and the accent all use it, and `@theme` derives all five identically.\n */\nconst tintScale = (base: string): Record<number, string> => ({\n 50: `color-mix(in srgb, var(${base}), white 95%)`,\n 100: `color-mix(in srgb, var(${base}), white 90%)`,\n 200: `color-mix(in srgb, var(${base}), white 70%)`,\n 300: `color-mix(in srgb, var(${base}), white 50%)`,\n 400: `color-mix(in srgb, var(${base}), white 30%)`,\n 500: `var(${base})`,\n 600: `color-mix(in srgb, var(${base}), black 10%)`,\n 700: `color-mix(in srgb, var(${base}), black 30%)`,\n 800: `color-mix(in srgb, var(${base}), black 50%)`,\n 900: `color-mix(in srgb, var(${base}), black 70%)`,\n 950: `color-mix(in srgb, var(${base}), black 85%)`,\n});\n\n/** The shape of {@link uiPreset}: the tokens it maps, each to its CSS custom property. */\ntype UiPreset = {\n theme: {\n extend: {\n colors: {\n overlay: string;\n \"overlay-soft\": string;\n \"overlay-strong\": string;\n border: {\n DEFAULT: string;\n subtle: string;\n strong: string;\n };\n input: string;\n \"control-border\": string;\n ring: string;\n background: string;\n foreground: string;\n primary: {\n DEFAULT: string;\n foreground: string;\n };\n secondary: {\n DEFAULT: string;\n foreground: string;\n };\n destructive: {\n DEFAULT: string;\n solid: string;\n foreground: string;\n };\n success: {\n DEFAULT: string;\n solid: string;\n foreground: string;\n };\n warning: {\n DEFAULT: string;\n foreground: string;\n };\n muted: {\n DEFAULT: string;\n foreground: string;\n };\n accent: {\n DEFAULT: string;\n foreground: string;\n };\n highlight: {\n DEFAULT: string;\n foreground: string;\n };\n code: {\n bg: string;\n fg: string;\n comment: string;\n keyword: string;\n string: string;\n number: string;\n function: string;\n operator: string;\n punctuation: string;\n variable: string;\n tag: string;\n deleted: string;\n inserted: string;\n };\n sidebar: {\n DEFAULT: string;\n background: string;\n foreground: string;\n primary: string;\n \"primary-foreground\": string;\n accent: string;\n \"accent-background\": string;\n \"accent-foreground\": string;\n border: string;\n ring: string;\n };\n popover: {\n DEFAULT: string;\n foreground: string;\n };\n card: {\n DEFAULT: string;\n foreground: string;\n };\n };\n borderRadius: {\n lg: string;\n md: string;\n sm: string;\n };\n keyframes: {\n \"accordion-down\": {\n from: {\n height: string;\n };\n to: {\n height: string;\n };\n };\n \"accordion-up\": {\n from: {\n height: string;\n };\n to: {\n height: string;\n };\n };\n };\n animation: {\n \"accordion-down\": string;\n \"accordion-up\": string;\n };\n };\n };\n};\n\n/** @experimental */\nconst uiPreset: UiPreset = {\n theme: {\n extend: {\n colors: {\n // The modal scrim. Mapped here as well as in the v4 `@theme` block,\n // because this preset is the documented Tailwind v3 path and reads\n // none of that: without these two, `bg-overlay` generates no rule at\n // all and every backdrop is transparent rather than merely unthemed.\n overlay: \"var(--nx-overlay)\",\n \"overlay-soft\": \"var(--nx-overlay-soft)\",\n \"overlay-strong\": \"var(--nx-overlay-strong)\",\n border: {\n DEFAULT: \"var(--nx-border)\",\n subtle: \"var(--nx-border-subtle)\",\n strong: \"var(--nx-border-strong)\",\n },\n input: \"var(--nx-input)\",\n // The boundary of a control that draws no fill of its own -- an\n // unchecked checkbox, radio or switch. Separate from `input` because\n // that one is the field border weight, which sits below the 3:1\n // non-text minimum by design.\n \"control-border\": \"var(--nx-control-border)\",\n ring: \"var(--nx-ring)\",\n background: \"var(--nx-background)\",\n foreground: \"var(--nx-foreground)\",\n primary: {\n DEFAULT: \"var(--nx-primary)\",\n foreground: \"var(--nx-primary-foreground)\",\n ...tintScale(\"--nx-primary\"),\n },\n secondary: {\n DEFAULT: \"var(--nx-secondary)\",\n foreground: \"var(--nx-secondary-foreground)\",\n },\n destructive: {\n DEFAULT: \"var(--nx-destructive)\",\n // Saturated fill for solid buttons, distinct from the text-tuned base.\n solid: \"var(--nx-destructive-solid)\",\n foreground: \"var(--nx-destructive-foreground)\",\n ...tintScale(\"--nx-destructive\"),\n },\n success: {\n DEFAULT: \"var(--nx-success)\",\n solid: \"var(--nx-success-solid)\",\n foreground: \"var(--nx-success-foreground)\",\n ...tintScale(\"--nx-success\"),\n },\n warning: {\n DEFAULT: \"var(--nx-warning)\",\n foreground: \"var(--nx-warning-foreground)\",\n ...tintScale(\"--nx-warning\"),\n },\n muted: {\n DEFAULT: \"var(--nx-muted)\",\n foreground: \"var(--nx-muted-foreground)\",\n },\n accent: {\n DEFAULT: \"var(--nx-accent)\",\n foreground: \"var(--nx-accent-foreground)\",\n ...tintScale(\"--nx-accent\"),\n },\n // The editor's highlight mark, and the syntax colors, so authored\n // content and code blocks theme like everything else.\n highlight: {\n DEFAULT: \"var(--nx-highlight)\",\n foreground: \"var(--nx-highlight-foreground)\",\n },\n code: {\n bg: \"var(--nx-code-bg)\",\n fg: \"var(--nx-code-fg)\",\n comment: \"var(--nx-code-comment)\",\n keyword: \"var(--nx-code-keyword)\",\n string: \"var(--nx-code-string)\",\n number: \"var(--nx-code-number)\",\n function: \"var(--nx-code-function)\",\n operator: \"var(--nx-code-operator)\",\n punctuation: \"var(--nx-code-punctuation)\",\n variable: \"var(--nx-code-variable)\",\n tag: \"var(--nx-code-tag)\",\n deleted: \"var(--nx-code-deleted)\",\n inserted: \"var(--nx-code-inserted)\",\n },\n // `sidebar` and `sidebar-background` are the same value under two\n // names, and `sidebar-accent` and `sidebar-accent-background` likewise.\n // Both pairs exist in the v4 block and both spellings are in use, so\n // dropping either here would leave a live utility generating nothing.\n sidebar: {\n DEFAULT: \"var(--nx-sidebar-background)\",\n background: \"var(--nx-sidebar-background)\",\n foreground: \"var(--nx-sidebar-foreground)\",\n primary: \"var(--nx-sidebar-primary)\",\n \"primary-foreground\": \"var(--nx-sidebar-primary-foreground)\",\n accent: \"var(--nx-sidebar-accent)\",\n \"accent-background\": \"var(--nx-sidebar-accent)\",\n \"accent-foreground\": \"var(--nx-sidebar-accent-foreground)\",\n border: \"var(--nx-sidebar-border)\",\n ring: \"var(--nx-sidebar-ring)\",\n },\n popover: {\n DEFAULT: \"var(--nx-popover)\",\n foreground: \"var(--nx-popover-foreground)\",\n },\n card: {\n DEFAULT: \"var(--nx-card)\",\n foreground: \"var(--nx-card-foreground)\",\n },\n },\n borderRadius: {\n lg: \"var(--radius)\",\n md: \"calc(var(--radius) - 2px)\",\n sm: \"calc(var(--radius) - 4px)\",\n },\n keyframes: {\n \"accordion-down\": {\n from: { height: \"0\" },\n to: { height: \"var(--radix-accordion-content-height)\" },\n },\n \"accordion-up\": {\n from: { height: \"var(--radix-accordion-content-height)\" },\n to: { height: \"0\" },\n },\n },\n animation: {\n \"accordion-down\": \"accordion-down 0.3s cubic-bezier(0.87, 0, 0.13, 1)\",\n \"accordion-up\": \"accordion-up 0.3s cubic-bezier(0.87, 0, 0.13, 1)\",\n },\n },\n },\n};\n\n// Exported both ways on purpose. CommonJS cannot represent a default-only\n// module without `module.exports =`, which makes the emitted declarations\n// disagree with the runtime shape (attw's FalseExportDefault); a named export\n// alongside it keeps `require()` and `import` consistent and typed.\nexport { uiPreset };\nexport default uiPreset;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,MAAM,aAAa,UAA0C;CAC3D,IAAI,0BAA0B,KAAK;CACnC,KAAK,0BAA0B,KAAK;CACpC,KAAK,0BAA0B,KAAK;CACpC,KAAK,0BAA0B,KAAK;CACpC,KAAK,0BAA0B,KAAK;CACpC,KAAK,OAAO,KAAK;CACjB,KAAK,0BAA0B,KAAK;CACpC,KAAK,0BAA0B,KAAK;CACpC,KAAK,0BAA0B,KAAK;CACpC,KAAK,0BAA0B,KAAK;CACpC,KAAK,0BAA0B,KAAK;AACtC;;AA0HA,MAAM,WAAqB,EACzB,OAAO,EACL,QAAQ;CACN,QAAQ;EA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WAAW;EACT,kBAAkB;EAClB,gBAAgB;CAClB;AACF,EACF,EACF"}
package/dist/theme.css CHANGED
@@ -874,12 +874,16 @@
874
874
  * mode do not reach it: slots 2 and 4 measured 2.21:1 and 2.15:1 at cyan-500
875
875
  * and amber-500, and moved down the ramp rather than being re-hued. Dark mode
876
876
  * keeps the lighter steps, where they measure 9.0:1 and 9.3:1 -- the two modes
877
- * need different steps of the same ramp, not one shared value. */
877
+ * need different steps of the same ramp, not one shared value. A bar is drawn
878
+ * over its track (--nx-muted) and a tooltip on --nx-popover, both darker than
879
+ * the card, so every slot is held there too; slot 3 moved down a step for
880
+ * them, as 2 and 4 did for the card: at green-600 it measured 3.02:1 on the
881
+ * track. */
878
882
  --nx-chart-1: var(--nx-primary);
879
883
  --nx-chart-2: oklch(0.6089 0.1109 221.72);
880
884
  /* cyan-600 */
881
- --nx-chart-3: oklch(0.6273 0.17 149.2);
882
- /* green-600 */
885
+ --nx-chart-3: oklch(0.527 0.154 150.069);
886
+ /* green-700 */
883
887
  --nx-chart-4: oklch(0.5553 0.1455 49);
884
888
  /* amber-700 */
885
889
  --nx-chart-5: oklch(0.6368 0.2078 25.33);