@unabridged/midwest 0.23.3 → 0.23.4

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,9 +1,26 @@
1
+ /* Master cascade order. Declared BEFORE any @import so the plain layers that
2
+ `@plugin "@tailwindcss/forms"` / `@tailwindcss/typography` emit into
3
+ (theme/base/components/utilities) are slotted deliberately rather than
4
+ appended at the end of the stylesheet (where, being first-seen last, they
5
+ would win the whole cascade).
6
+
7
+ The `base` layer holds Tailwind preflight (imported into it, see
8
+ midwest/tailwind.css) followed by the plugins' addBase (forms/typography
9
+ input & checkbox resets) — canonical v4 order within the layer. `base` is
10
+ placed BEFORE every `midwest.*` layer so component CSS (rounded inputs, etc.)
11
+ overrides the forms reset, while checkbox/radio :checked fills still resolve
12
+ from the forms base (the text-input base rule excludes those controls, so
13
+ nothing in midwest re-overrides their background). Plugin `utilities` stays
14
+ last so generated utilities still beat components. */
15
+ @layer properties, theme, base, components, utilities, midwest.tailwindcss, midwest.vendor, midwest.color-system, midwest.tokens, midwest.responsive, midwest.dark-mode, midwest.typography, midwest.scrollbars, midwest.components, midwest.utilities;
16
+
1
17
  @import './midwest/tailwind.css';
2
18
 
3
19
  @layer
4
- midwest.color-system, midwest.responsive, midwest.dark-mode, midwest.typography, midwest.form-group, midwest.scrollbars, midwest.badge, midwest.card, midwest.input, midwest.file-input, midwest.label, midwest.checkbox, midwest.radio, midwest.select, midwest.switch, midwest.field-group, midwest.grid, midwest.icon, midwest.loading-icon, midwest.button, midwest.button-group, midwest.layout, midwest.prose, midwest.banner, midwest.callout, midwest.dropdown, midwest.avatar, midwest.avatar-group, midwest.dialog, midwest.video, midwest.tabs, midwest.tab, midwest.dropdown-item, midwest.tooltip, midwest.popover, midwest.step, midwest.steps, midwest.carousel, midwest.slide, midwest.form-live-summary, midwest.card-option, midwest.mobile-nav, midwest.countdown-timer, midwest.breadcrumb, midwest.breadcrumbs, midwest.pagination, midwest.empty-state, midwest.progress-bar, midwest.accordion, midwest.chart, midwest.range, midwest.repeatable, midwest.skeleton, midwest.rating, midwest.image, midwest.stat, midwest.color-picker, midwest.notification, midwest.horizontal-scroll, midwest.split-button, midwest.table, midwest.show-if, midwest.tree-view, midwest.command-palette, midwest.kbd, midwest.calendar-date, midwest.password-requirements, midwest.group, midwest.vendor.rouge, midwest.code-block, midwest.date-picker, midwest.time-picker, midwest.markdown, midwest.social-preview, midwest.social-preview-facebook, midwest.social-preview-instagram, midwest.social-preview-linkedin, midwest.social-preview-twitter, midwest.intersection-observer, midwest.skip-link, midwest.focus-trap, midwest.onboarding, midwest.onboarding-step, midwest.live-region;
20
+ midwest.components.form-group, midwest.components.badge, midwest.components.card, midwest.components.input, midwest.components.file-input, midwest.components.label, midwest.components.checkbox, midwest.components.radio, midwest.components.select, midwest.components.switch, midwest.components.field-group, midwest.components.grid, midwest.components.icon, midwest.components.loading-icon, midwest.components.button, midwest.components.button-group, midwest.components.layout, midwest.components.prose, midwest.components.banner, midwest.components.callout, midwest.components.dropdown, midwest.components.avatar, midwest.components.avatar-group, midwest.components.dialog, midwest.components.video, midwest.components.tabs, midwest.components.tab, midwest.components.dropdown-item, midwest.components.tooltip, midwest.components.popover, midwest.components.step, midwest.components.steps, midwest.components.carousel, midwest.components.slide, midwest.components.form-live-summary, midwest.components.card-option, midwest.components.mobile-nav, midwest.components.countdown-timer, midwest.components.breadcrumb, midwest.components.breadcrumbs, midwest.components.pagination, midwest.components.empty-state, midwest.components.progress-bar, midwest.components.accordion, midwest.components.chart, midwest.components.range, midwest.components.repeatable, midwest.components.skeleton, midwest.components.rating, midwest.components.image, midwest.components.stat, midwest.components.color-picker, midwest.components.notification, midwest.components.horizontal-scroll, midwest.components.split-button, midwest.components.table, midwest.components.show-if, midwest.components.tree-view, midwest.components.command-palette, midwest.components.kbd, midwest.components.calendar-date, midwest.components.password-requirements, midwest.components.group, midwest.vendor.rouge, midwest.components.code-block, midwest.components.date-picker, midwest.components.time-picker, midwest.components.markdown, midwest.components.social-preview, midwest.components.social-preview-facebook, midwest.components.social-preview-instagram, midwest.components.social-preview-linkedin, midwest.components.social-preview-twitter, midwest.components.intersection-observer, midwest.components.skip-link, midwest.components.focus-trap, midwest.components.onboarding, midwest.components.onboarding-step, midwest.components.live-region;
5
21
 
6
22
  @import './midwest/color-system.css';
23
+ @import './midwest/tokens.css';
7
24
  @import './midwest/responsive-system.css';
8
25
  @import './midwest/dark-mode.css';
9
26
  @import './midwest/typography.css';
@@ -0,0 +1,59 @@
1
+ /*
2
+ * Midwest colour scales for Tailwind CSS v4 consumers.
3
+ *
4
+ * Import this into your app's Tailwind entry to expose Midwest's theme /
5
+ * complement / gray scales as first-class utilities in YOUR OWN markup:
6
+ *
7
+ * @import "tailwindcss";
8
+ * @import "@unabridged/midwest/config/tailwind.theme.css";
9
+ *
10
+ * The colour VALUES come from the `--*-channels` custom properties in Midwest's
11
+ * compiled stylesheet, so keep linking it (e.g. `stylesheet_link_tag "midwest"`)
12
+ * — this file only maps those channels into Tailwind's theme. `inline` keeps
13
+ * element/section-scoped theming (`.theme-teal`, `bg-theme-6/50`) working. It
14
+ * intentionally does NOT reset `--color-*`, so it augments your palette rather
15
+ * than replacing it.
16
+ *
17
+ * Tailwind v3 apps: use the legacy `tailwind.theme.js` instead.
18
+ */
19
+ @theme inline {
20
+ --color-theme-0: rgb(var(--theme-0-channels));
21
+ --color-theme-1: rgb(var(--theme-1-channels));
22
+ --color-theme-2: rgb(var(--theme-2-channels));
23
+ --color-theme-3: rgb(var(--theme-3-channels));
24
+ --color-theme-4: rgb(var(--theme-4-channels));
25
+ --color-theme-5: rgb(var(--theme-5-channels));
26
+ --color-theme-6: rgb(var(--theme-6-channels));
27
+ --color-theme-7: rgb(var(--theme-7-channels));
28
+ --color-theme-8: rgb(var(--theme-8-channels));
29
+ --color-theme-9: rgb(var(--theme-9-channels));
30
+ --color-theme-10: rgb(var(--theme-10-channels));
31
+ --color-theme-11: rgb(var(--theme-11-channels));
32
+ --color-theme-12: rgb(var(--theme-12-channels));
33
+ --color-complement-0: rgb(var(--complement-0-channels));
34
+ --color-complement-1: rgb(var(--complement-1-channels));
35
+ --color-complement-2: rgb(var(--complement-2-channels));
36
+ --color-complement-3: rgb(var(--complement-3-channels));
37
+ --color-complement-4: rgb(var(--complement-4-channels));
38
+ --color-complement-5: rgb(var(--complement-5-channels));
39
+ --color-complement-6: rgb(var(--complement-6-channels));
40
+ --color-complement-7: rgb(var(--complement-7-channels));
41
+ --color-complement-8: rgb(var(--complement-8-channels));
42
+ --color-complement-9: rgb(var(--complement-9-channels));
43
+ --color-complement-10: rgb(var(--complement-10-channels));
44
+ --color-complement-11: rgb(var(--complement-11-channels));
45
+ --color-complement-12: rgb(var(--complement-12-channels));
46
+ --color-gray-0: rgb(var(--gray-0-channels));
47
+ --color-gray-1: rgb(var(--gray-1-channels));
48
+ --color-gray-2: rgb(var(--gray-2-channels));
49
+ --color-gray-3: rgb(var(--gray-3-channels));
50
+ --color-gray-4: rgb(var(--gray-4-channels));
51
+ --color-gray-5: rgb(var(--gray-5-channels));
52
+ --color-gray-6: rgb(var(--gray-6-channels));
53
+ --color-gray-7: rgb(var(--gray-7-channels));
54
+ --color-gray-8: rgb(var(--gray-8-channels));
55
+ --color-gray-9: rgb(var(--gray-9-channels));
56
+ --color-gray-10: rgb(var(--gray-10-channels));
57
+ --color-gray-11: rgb(var(--gray-11-channels));
58
+ --color-gray-12: rgb(var(--gray-12-channels));
59
+ }
@@ -1,7 +1,11 @@
1
1
  // Midwest design system — Tailwind theme only (no plugins).
2
- // Safe to require from any project without midwest's own node_modules present.
3
2
  //
4
- // Usage:
3
+ // LEGACY (Tailwind v3): Midwest itself now builds on Tailwind v4. v4 consumers
4
+ // should import the CSS-first partial instead — see tailwind.theme.css:
5
+ // @import "@unabridged/midwest/config/tailwind.theme.css";
6
+ // This file remains for apps still on Tailwind v3.
7
+ //
8
+ // Usage (Tailwind v3 only):
5
9
  // const { midwestTheme } = require('@unabridged/midwest/config/tailwind.theme')
6
10
  // module.exports = { theme: { ...midwestTheme, extend: { ...midwestTheme.extend } } }
7
11