@dads-framework/ui 0.2.0 → 0.3.0
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/README.md +2 -2
- package/dist/copy/index.d.ts +17 -0
- package/dist/copy/index.d.ts.map +1 -0
- package/dist/copy/index.js +17 -0
- package/dist/copy/index.js.map +1 -0
- package/dist/copy/lib/catalog-parity.d.ts +55 -0
- package/dist/copy/lib/catalog-parity.d.ts.map +1 -0
- package/dist/copy/lib/catalog-parity.js +134 -0
- package/dist/copy/lib/catalog-parity.js.map +1 -0
- package/dist/copy/lib/copy-descriptor.d.ts +31 -0
- package/dist/copy/lib/copy-descriptor.d.ts.map +1 -0
- package/dist/copy/lib/copy-descriptor.js +35 -0
- package/dist/copy/lib/copy-descriptor.js.map +1 -0
- package/dist/copy/lib/create-copy-hook.d.ts +23 -0
- package/dist/copy/lib/create-copy-hook.d.ts.map +1 -0
- package/dist/copy/lib/create-copy-hook.js +17 -0
- package/dist/copy/lib/create-copy-hook.js.map +1 -0
- package/dist/copy/lib/english-chrome-case.d.ts +16 -0
- package/dist/copy/lib/english-chrome-case.d.ts.map +1 -0
- package/dist/copy/lib/english-chrome-case.js +111 -0
- package/dist/copy/lib/english-chrome-case.js.map +1 -0
- package/dist/copy/lib/formatted-values.d.ts +16 -0
- package/dist/copy/lib/formatted-values.d.ts.map +1 -0
- package/dist/copy/lib/formatted-values.js +15 -0
- package/dist/copy/lib/formatted-values.js.map +1 -0
- package/dist/copy/lib/glossary.d.ts +28 -0
- package/dist/copy/lib/glossary.d.ts.map +1 -0
- package/dist/copy/lib/glossary.js +22 -0
- package/dist/copy/lib/glossary.js.map +1 -0
- package/dist/copy/lib/locale-formatting.d.ts +62 -0
- package/dist/copy/lib/locale-formatting.d.ts.map +1 -0
- package/dist/copy/lib/locale-formatting.js +172 -0
- package/dist/copy/lib/locale-formatting.js.map +1 -0
- package/dist/copy/lib/locale-metadata.d.ts +15 -0
- package/dist/copy/lib/locale-metadata.d.ts.map +1 -0
- package/dist/copy/lib/locale-metadata.js +9 -0
- package/dist/copy/lib/locale-metadata.js.map +1 -0
- package/dist/copy/lib/locale-provider.d.ts +36 -0
- package/dist/copy/lib/locale-provider.d.ts.map +1 -0
- package/dist/copy/lib/locale-provider.js +41 -0
- package/dist/copy/lib/locale-provider.js.map +1 -0
- package/dist/copy/lib/localized-text.d.ts +41 -0
- package/dist/copy/lib/localized-text.d.ts.map +1 -0
- package/dist/copy/lib/localized-text.js +42 -0
- package/dist/copy/lib/localized-text.js.map +1 -0
- package/dist/copy/lib/logic/calendar-date-boundaries.d.ts +5 -0
- package/dist/copy/lib/logic/calendar-date-boundaries.d.ts.map +1 -0
- package/dist/copy/lib/logic/calendar-date-boundaries.js +69 -0
- package/dist/copy/lib/logic/calendar-date-boundaries.js.map +1 -0
- package/dist/copy/lib/logic/locale-provider-state.d.ts +12 -0
- package/dist/copy/lib/logic/locale-provider-state.d.ts.map +1 -0
- package/dist/copy/lib/logic/locale-provider-state.js +17 -0
- package/dist/copy/lib/logic/locale-provider-state.js.map +1 -0
- package/dist/copy/lib/merge-copy.d.ts +43 -0
- package/dist/copy/lib/merge-copy.d.ts.map +1 -0
- package/dist/copy/lib/merge-copy.js +26 -0
- package/dist/copy/lib/merge-copy.js.map +1 -0
- package/dist/copy/lib/placeholder-syntax.d.ts +12 -0
- package/dist/copy/lib/placeholder-syntax.d.ts.map +1 -0
- package/dist/copy/lib/placeholder-syntax.js +36 -0
- package/dist/copy/lib/placeholder-syntax.js.map +1 -0
- package/dist/copy/lib/product-vocabulary.d.ts +42 -0
- package/dist/copy/lib/product-vocabulary.d.ts.map +1 -0
- package/dist/copy/lib/product-vocabulary.js +126 -0
- package/dist/copy/lib/product-vocabulary.js.map +1 -0
- package/dist/copy/lib/resolve-initial-locale.d.ts +37 -0
- package/dist/copy/lib/resolve-initial-locale.d.ts.map +1 -0
- package/dist/copy/lib/resolve-initial-locale.js +55 -0
- package/dist/copy/lib/resolve-initial-locale.js.map +1 -0
- package/dist/copy/lib/translate.d.ts +18 -0
- package/dist/copy/lib/translate.d.ts.map +1 -0
- package/dist/copy/lib/translate.js +90 -0
- package/dist/copy/lib/translate.js.map +1 -0
- package/dist/copy/lib/use-locale-formatting.d.ts +18 -0
- package/dist/copy/lib/use-locale-formatting.d.ts.map +1 -0
- package/dist/copy/lib/use-locale-formatting.js +21 -0
- package/dist/copy/lib/use-locale-formatting.js.map +1 -0
- package/dist/data-table/components/data-table/data-table-date-filter.js +1 -1
- package/dist/data-table/components/data-table/data-table-date-filter.js.map +1 -1
- package/dist/data-table/components/data-table/data-table-faceted-filter.js +1 -1
- package/dist/data-table/components/data-table/data-table-faceted-filter.js.map +1 -1
- package/dist/data-table/components/data-table/data-table-filter-date-input.js +1 -1
- package/dist/data-table/components/data-table/data-table-filter-date-input.js.map +1 -1
- package/dist/data-table/components/data-table/data-table-filter-input-shared.d.ts +1 -1
- package/dist/data-table/components/data-table/data-table-filter-input-shared.d.ts.map +1 -1
- package/dist/data-table/components/data-table/data-table-filter-list-input.js +1 -1
- package/dist/data-table/components/data-table/data-table-filter-list-input.js.map +1 -1
- package/dist/data-table/components/data-table/data-table-filter-list-item.js +1 -1
- package/dist/data-table/components/data-table/data-table-filter-list-item.js.map +1 -1
- package/dist/data-table/components/data-table/data-table-filter-list.js +1 -1
- package/dist/data-table/components/data-table/data-table-filter-list.js.map +1 -1
- package/dist/data-table/components/data-table/data-table-filter-menu-item.js +1 -1
- package/dist/data-table/components/data-table/data-table-filter-menu-item.js.map +1 -1
- package/dist/data-table/components/data-table/data-table-filter-menu-value-selector.js +1 -1
- package/dist/data-table/components/data-table/data-table-filter-menu-value-selector.js.map +1 -1
- package/dist/data-table/components/data-table/data-table-pagination.js +1 -1
- package/dist/data-table/components/data-table/data-table-pagination.js.map +1 -1
- package/dist/data-table/components/data-table/data-table-slider-filter.js +1 -1
- package/dist/data-table/components/data-table/data-table-slider-filter.js.map +1 -1
- package/dist/data-table/components/data-table/data-table-sort-list.js +1 -1
- package/dist/data-table/components/data-table/data-table-sort-list.js.map +1 -1
- package/dist/data-table/components/data-table/data-table-toolbar.js +1 -1
- package/dist/data-table/components/data-table/data-table-toolbar.js.map +1 -1
- package/dist/data-table/components/data-table/filter-pill.js +1 -1
- package/dist/data-table/components/data-table/filter-pill.js.map +1 -1
- package/dist/data-table/copy/data-table-copy.d.ts +1 -1
- package/dist/data-table/copy/data-table-copy.d.ts.map +1 -1
- package/dist/data-table/copy/data-table-copy.js +1 -1
- package/dist/data-table/copy/data-table-copy.js.map +1 -1
- package/dist/data-table/lib/format.d.ts +1 -1
- package/dist/data-table/lib/format.d.ts.map +1 -1
- package/dist/elements/copy/elements-copy.d.ts +1 -1
- package/dist/elements/copy/elements-copy.d.ts.map +1 -1
- package/dist/elements/copy/elements-copy.js +1 -1
- package/dist/elements/copy/elements-copy.js.map +1 -1
- package/dist/overlays/components/attachment-viewer/attachment-viewer.js +1 -1
- package/dist/overlays/components/attachment-viewer/attachment-viewer.js.map +1 -1
- package/dist/overlays/components/attachment-viewer/image-stage.js +1 -1
- package/dist/overlays/components/attachment-viewer/image-stage.js.map +1 -1
- package/dist/overlays/components/attachment-viewer/pdf-document-view.js +1 -1
- package/dist/overlays/components/attachment-viewer/pdf-document-view.js.map +1 -1
- package/dist/overlays/copy/overlays-copy.d.ts +1 -1
- package/dist/overlays/copy/overlays-copy.d.ts.map +1 -1
- package/dist/overlays/copy/overlays-copy.js +1 -1
- package/dist/overlays/copy/overlays-copy.js.map +1 -1
- package/dist/page/components/attachment-list.js +1 -1
- package/dist/page/components/attachment-list.js.map +1 -1
- package/dist/page/components/list-view-tabs.js +1 -1
- package/dist/page/components/list-view-tabs.js.map +1 -1
- package/dist/page/copy/page-copy.d.ts +1 -1
- package/dist/page/copy/page-copy.d.ts.map +1 -1
- package/dist/page/copy/page-copy.js +1 -1
- package/dist/page/copy/page-copy.js.map +1 -1
- package/dist/shell/copy/shell-copy.d.ts +1 -1
- package/dist/shell/copy/shell-copy.d.ts.map +1 -1
- package/dist/shell/copy/shell-copy.js +1 -1
- package/dist/shell/copy/shell-copy.js.map +1 -1
- package/package.json +46 -4
- package/styles/base.css +63 -0
- package/styles/fonts.css +8 -0
- package/styles/index.css +14 -0
- package/styles/theme.css +140 -0
- package/styles/tokens.dark.css +95 -0
- package/styles/tokens.palette.css +90 -0
- package/styles/tokens.semantic.css +119 -0
- package/styles/utilities.css +12 -0
- package/tokens/default.tokens.json +1162 -0
package/styles/theme.css
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
The bridge — the one file that turns a role into a Tailwind utility.
|
|
3
|
+
|
|
4
|
+
Nothing else in this library declares `@theme`. If `bg-card` paints the
|
|
5
|
+
wrong thing, the answer is in this file or in the role it points at, and
|
|
6
|
+
there is no third place to look.
|
|
7
|
+
========================================================================== */
|
|
8
|
+
|
|
9
|
+
/* The theme is a class on an ancestor, not the OS preference: the app owns
|
|
10
|
+
the switch, and the gallery can put `.dark` on a wrapper to show both
|
|
11
|
+
themes on one page. */
|
|
12
|
+
@custom-variant dark (&:is(.dark *));
|
|
13
|
+
|
|
14
|
+
/* --------------------------------------------------------------------------
|
|
15
|
+
Theme-switching values. `inline` keeps utilities pointing at the custom
|
|
16
|
+
property itself, so `.dark` swaps them without regenerating a single class.
|
|
17
|
+
-------------------------------------------------------------------------- */
|
|
18
|
+
|
|
19
|
+
@theme inline {
|
|
20
|
+
--color-background: var(--background);
|
|
21
|
+
--color-foreground: var(--foreground);
|
|
22
|
+
--color-card: var(--card);
|
|
23
|
+
--color-card-foreground: var(--card-foreground);
|
|
24
|
+
--color-popover: var(--popover);
|
|
25
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
26
|
+
--color-primary: var(--primary);
|
|
27
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
28
|
+
--color-primary-hover: var(--primary-hover);
|
|
29
|
+
--color-brand: var(--brand);
|
|
30
|
+
--color-brand-foreground: var(--brand-foreground);
|
|
31
|
+
--color-secondary: var(--secondary);
|
|
32
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
33
|
+
--color-muted: var(--muted);
|
|
34
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
35
|
+
--color-accent: var(--accent);
|
|
36
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
37
|
+
--color-destructive: var(--destructive);
|
|
38
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
39
|
+
--color-scrim: var(--scrim);
|
|
40
|
+
--color-success: var(--success);
|
|
41
|
+
--color-success-foreground: var(--success-foreground);
|
|
42
|
+
--color-warning: var(--warning);
|
|
43
|
+
--color-warning-foreground: var(--warning-foreground);
|
|
44
|
+
--color-warning-wash: var(--warning-wash);
|
|
45
|
+
--color-warning-edge: var(--warning-edge);
|
|
46
|
+
--color-info: var(--info);
|
|
47
|
+
--color-info-foreground: var(--info-foreground);
|
|
48
|
+
--color-link: var(--link);
|
|
49
|
+
--color-border: var(--border);
|
|
50
|
+
--color-input: var(--input);
|
|
51
|
+
--color-ring: var(--ring);
|
|
52
|
+
--color-chart-1: var(--chart-1);
|
|
53
|
+
--color-chart-2: var(--chart-2);
|
|
54
|
+
--color-chart-3: var(--chart-3);
|
|
55
|
+
--color-chart-4: var(--chart-4);
|
|
56
|
+
--color-chart-5: var(--chart-5);
|
|
57
|
+
--color-sidebar: var(--sidebar);
|
|
58
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
59
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
60
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
61
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
62
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
63
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
64
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
65
|
+
--color-sidebar-active: var(--sidebar-active);
|
|
66
|
+
--color-sidebar-active-foreground: var(--sidebar-active-foreground);
|
|
67
|
+
--color-sidebar-link: var(--sidebar-link);
|
|
68
|
+
--color-table-header: var(--table-header);
|
|
69
|
+
--color-table-row-hover: var(--table-row-hover);
|
|
70
|
+
--color-table-row-selected: var(--table-row-selected);
|
|
71
|
+
--color-scrim: var(--scrim);
|
|
72
|
+
|
|
73
|
+
--shadow-2xs: var(--elevation-1);
|
|
74
|
+
--shadow-xs: var(--elevation-2);
|
|
75
|
+
--shadow-sm: var(--elevation-3);
|
|
76
|
+
--shadow-md: var(--elevation-4);
|
|
77
|
+
--shadow-lg: var(--elevation-5);
|
|
78
|
+
--shadow-xl: var(--elevation-6);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* --------------------------------------------------------------------------
|
|
82
|
+
Fixed values. Declared as real theme variables (not `inline`) because
|
|
83
|
+
Tailwind's preflight reads --font-sans and --font-mono to set the document
|
|
84
|
+
defaults, and none of these change between themes.
|
|
85
|
+
-------------------------------------------------------------------------- */
|
|
86
|
+
|
|
87
|
+
@theme {
|
|
88
|
+
--font-sans:
|
|
89
|
+
"IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
|
|
90
|
+
sans-serif;
|
|
91
|
+
--font-mono:
|
|
92
|
+
"IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono",
|
|
93
|
+
monospace;
|
|
94
|
+
|
|
95
|
+
/* Fixed rem steps, ratio ~1.125–1.2. text-sm (14px) is the workhorse: table
|
|
96
|
+
cells, buttons, labels, field text. Tracking opens up as size drops so
|
|
97
|
+
13–14px data stays crisp, and closes as it grows so headings stay set. */
|
|
98
|
+
--text-2xs: 0.6875rem;
|
|
99
|
+
--text-2xs--line-height: 0.9375rem;
|
|
100
|
+
--text-2xs--letter-spacing: 0.012em;
|
|
101
|
+
--text-xs: 0.75rem;
|
|
102
|
+
--text-xs--line-height: 1rem;
|
|
103
|
+
--text-xs--letter-spacing: 0.006em;
|
|
104
|
+
--text-sm: 0.875rem;
|
|
105
|
+
--text-sm--line-height: 1.25rem;
|
|
106
|
+
--text-sm--letter-spacing: 0.001em;
|
|
107
|
+
--text-base: 1rem;
|
|
108
|
+
--text-base--line-height: 1.5rem;
|
|
109
|
+
--text-base--letter-spacing: -0.003em;
|
|
110
|
+
--text-lg: 1.125rem;
|
|
111
|
+
--text-lg--line-height: 1.625rem;
|
|
112
|
+
--text-lg--letter-spacing: -0.007em;
|
|
113
|
+
--text-xl: 1.25rem;
|
|
114
|
+
--text-xl--line-height: 1.75rem;
|
|
115
|
+
--text-xl--letter-spacing: -0.011em;
|
|
116
|
+
--text-2xl: 1.5rem;
|
|
117
|
+
--text-2xl--line-height: 1.95rem;
|
|
118
|
+
--text-2xl--letter-spacing: -0.015em;
|
|
119
|
+
--text-3xl: 1.875rem;
|
|
120
|
+
--text-3xl--line-height: 2.25rem;
|
|
121
|
+
--text-3xl--letter-spacing: -0.019em;
|
|
122
|
+
--text-4xl: 2.25rem;
|
|
123
|
+
--text-4xl--line-height: 2.5rem;
|
|
124
|
+
--text-4xl--letter-spacing: -0.022em;
|
|
125
|
+
--text-5xl: 3rem;
|
|
126
|
+
--text-5xl--line-height: 3.125rem;
|
|
127
|
+
--text-5xl--letter-spacing: -0.026em;
|
|
128
|
+
|
|
129
|
+
--radius-xs: calc(var(--radius) - 6px);
|
|
130
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
131
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
132
|
+
--radius-lg: var(--radius);
|
|
133
|
+
--radius-xl: calc(var(--radius) + 2px);
|
|
134
|
+
--radius-2xl: calc(var(--radius) + 6px);
|
|
135
|
+
|
|
136
|
+
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
137
|
+
--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
|
138
|
+
--default-transition-duration: 150ms;
|
|
139
|
+
--default-transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
140
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Dark — the roles that change, and nothing else. Dark keeps the warm
|
|
3
|
+
`greige` neutrals; light's are untinted `grey`.
|
|
4
|
+
|
|
5
|
+
This file restates roles; it never mints one. A name that appears here and
|
|
6
|
+
not in `tokens.semantic.css` is a role with no light value, which is a bug
|
|
7
|
+
a reader would only find at night.
|
|
8
|
+
========================================================================== */
|
|
9
|
+
|
|
10
|
+
.dark {
|
|
11
|
+
color-scheme: dark;
|
|
12
|
+
|
|
13
|
+
--background: var(--palette-greige-198);
|
|
14
|
+
--foreground: var(--palette-greige-960);
|
|
15
|
+
--card: var(--palette-greige-229);
|
|
16
|
+
--card-foreground: var(--palette-greige-960);
|
|
17
|
+
--popover: var(--palette-greige-258);
|
|
18
|
+
--popover-foreground: var(--palette-greige-960);
|
|
19
|
+
|
|
20
|
+
--muted: var(--palette-greige-280);
|
|
21
|
+
--muted-foreground: var(--palette-greige-750);
|
|
22
|
+
--secondary: var(--palette-greige-322);
|
|
23
|
+
--secondary-foreground: var(--palette-greige-960);
|
|
24
|
+
--accent: var(--palette-greige-342);
|
|
25
|
+
--accent-foreground: var(--palette-greige-960);
|
|
26
|
+
|
|
27
|
+
--table-header: var(--palette-grey-255);
|
|
28
|
+
--table-row-hover: var(--palette-action-gray-287);
|
|
29
|
+
--table-row-selected: var(--palette-action-gray-318);
|
|
30
|
+
|
|
31
|
+
--primary: var(--palette-action-gray-648);
|
|
32
|
+
--primary-foreground: var(--palette-action-gray-185);
|
|
33
|
+
--primary-hover: var(--palette-action-gray-620);
|
|
34
|
+
|
|
35
|
+
--brand: var(--palette-accent-gray-640);
|
|
36
|
+
--brand-foreground: var(--palette-greige-198);
|
|
37
|
+
|
|
38
|
+
--destructive: var(--palette-crimson-700);
|
|
39
|
+
--destructive-foreground: var(--palette-greige-198);
|
|
40
|
+
|
|
41
|
+
--border: var(--palette-greige-342);
|
|
42
|
+
--input: var(--palette-greige-580);
|
|
43
|
+
--ring: var(--palette-action-gray-648);
|
|
44
|
+
|
|
45
|
+
--success: var(--palette-green-725);
|
|
46
|
+
--success-foreground: var(--palette-greige-198);
|
|
47
|
+
--warning: var(--palette-amber-795);
|
|
48
|
+
--warning-foreground: var(--palette-greige-198);
|
|
49
|
+
--warning-wash: var(--palette-amber-290);
|
|
50
|
+
--warning-edge: var(--palette-amber-600);
|
|
51
|
+
--info: var(--palette-action-gray-685);
|
|
52
|
+
--info-foreground: var(--palette-greige-198);
|
|
53
|
+
|
|
54
|
+
--link: var(--palette-action-gray-742);
|
|
55
|
+
|
|
56
|
+
--chart-1: var(--palette-action-gray-648);
|
|
57
|
+
--chart-2: var(--palette-verdigris-738);
|
|
58
|
+
--chart-3: var(--palette-moss-780);
|
|
59
|
+
--chart-4: var(--palette-crimson-700);
|
|
60
|
+
--chart-5: var(--palette-slate-695);
|
|
61
|
+
|
|
62
|
+
--sidebar: var(--palette-black);
|
|
63
|
+
--sidebar-foreground: var(--palette-greige-960);
|
|
64
|
+
--sidebar-primary: var(--palette-accent-gray-640);
|
|
65
|
+
--sidebar-primary-foreground: var(--palette-greige-198);
|
|
66
|
+
--sidebar-accent: var(--palette-grey-246);
|
|
67
|
+
--sidebar-accent-foreground: var(--palette-greige-960);
|
|
68
|
+
--sidebar-border: var(--palette-grey-260);
|
|
69
|
+
--sidebar-ring: var(--palette-action-gray-648);
|
|
70
|
+
|
|
71
|
+
--sidebar-active: var(--palette-action-gray-318);
|
|
72
|
+
--sidebar-active-foreground: var(--palette-action-gray-865);
|
|
73
|
+
--sidebar-link: var(--palette-action-gray-742);
|
|
74
|
+
|
|
75
|
+
--selection: var(--palette-accent-gray-640-a34);
|
|
76
|
+
|
|
77
|
+
/* Depth on dark comes from black, not from tinted ink — and it has to be
|
|
78
|
+
stronger than on light, because a dark surface has less room to darken. */
|
|
79
|
+
--elevation-1: 0 1px 1px 0 var(--palette-black-a36);
|
|
80
|
+
--elevation-2:
|
|
81
|
+
0 1px 1px -0.5px var(--palette-black-a36),
|
|
82
|
+
0 1px 2px 0 var(--palette-black-a48);
|
|
83
|
+
--elevation-3:
|
|
84
|
+
0 1px 2px -1px var(--palette-black-a56),
|
|
85
|
+
0 3px 6px -2px var(--palette-black-a48);
|
|
86
|
+
--elevation-4:
|
|
87
|
+
0 2px 4px -2px var(--palette-black-a58),
|
|
88
|
+
0 8px 16px -6px var(--palette-black-a55);
|
|
89
|
+
--elevation-5:
|
|
90
|
+
0 4px 8px -4px var(--palette-black-a62),
|
|
91
|
+
0 16px 32px -12px var(--palette-black-a62);
|
|
92
|
+
--elevation-6:
|
|
93
|
+
0 8px 16px -8px var(--palette-black-a68),
|
|
94
|
+
0 32px 64px -20px var(--palette-black-a72);
|
|
95
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--palette-black: oklch(0 0 0);
|
|
3
|
+
--palette-white: oklch(1 0 0);
|
|
4
|
+
|
|
5
|
+
--palette-grey-198: oklch(0.198 0 0);
|
|
6
|
+
--palette-grey-246: oklch(0.246 0 0);
|
|
7
|
+
--palette-grey-255: oklch(0.255 0 70);
|
|
8
|
+
--palette-grey-260: oklch(0.26 0 0);
|
|
9
|
+
--palette-grey-292: oklch(0.292 0 0);
|
|
10
|
+
--palette-grey-318: oklch(0.318 0 0);
|
|
11
|
+
--palette-grey-470: oklch(0.47 0 0);
|
|
12
|
+
--palette-grey-600: oklch(0.6 0 0);
|
|
13
|
+
--palette-grey-880: oklch(0.88 0 0);
|
|
14
|
+
--palette-grey-915: oklch(0.915 0 0);
|
|
15
|
+
--palette-grey-935: oklch(0.935 0 0);
|
|
16
|
+
--palette-grey-965: oklch(0.965 0 70);
|
|
17
|
+
--palette-grey-970: oklch(0.97 0 70);
|
|
18
|
+
|
|
19
|
+
--palette-greige-198: oklch(0.198 0.006 70);
|
|
20
|
+
--palette-greige-229: oklch(0.229 0.007 70);
|
|
21
|
+
--palette-greige-258: oklch(0.258 0.0075 70);
|
|
22
|
+
--palette-greige-280: oklch(0.28 0.0078 70);
|
|
23
|
+
--palette-greige-322: oklch(0.322 0.0085 70);
|
|
24
|
+
--palette-greige-342: oklch(0.342 0.009 70);
|
|
25
|
+
--palette-greige-580: oklch(0.58 0.011 70);
|
|
26
|
+
--palette-greige-750: oklch(0.75 0.013 70);
|
|
27
|
+
--palette-greige-960: oklch(0.96 0.0035 70);
|
|
28
|
+
|
|
29
|
+
/* The light theme's shadow ink at the alphas the elevation ramp stacks. Untinted, like every light-theme neutral. */
|
|
30
|
+
--palette-grey-240-a07: oklch(0.24 0 0 / 0.07);
|
|
31
|
+
--palette-grey-240-a11: oklch(0.24 0 0 / 0.11);
|
|
32
|
+
--palette-grey-240-a12: oklch(0.24 0 0 / 0.12);
|
|
33
|
+
--palette-grey-240-a15: oklch(0.24 0 0 / 0.15);
|
|
34
|
+
--palette-grey-240-a16: oklch(0.24 0 0 / 0.16);
|
|
35
|
+
--palette-grey-240-a17: oklch(0.24 0 0 / 0.17);
|
|
36
|
+
--palette-grey-240-a19: oklch(0.24 0 0 / 0.19);
|
|
37
|
+
--palette-grey-240-a20: oklch(0.24 0 0 / 0.2);
|
|
38
|
+
--palette-grey-240-a26: oklch(0.24 0 0 / 0.26);
|
|
39
|
+
|
|
40
|
+
/* Depth on a dark surface comes from black, not from tinted ink. */
|
|
41
|
+
--palette-black-a36: oklch(0 0 0 / 0.36);
|
|
42
|
+
--palette-black-a48: oklch(0 0 0 / 0.48);
|
|
43
|
+
--palette-black-a55: oklch(0 0 0 / 0.55);
|
|
44
|
+
--palette-black-a56: oklch(0 0 0 / 0.56);
|
|
45
|
+
--palette-black-a58: oklch(0 0 0 / 0.58);
|
|
46
|
+
--palette-black-a62: oklch(0 0 0 / 0.62);
|
|
47
|
+
--palette-black-a68: oklch(0 0 0 / 0.68);
|
|
48
|
+
--palette-black-a72: oklch(0 0 0 / 0.72);
|
|
49
|
+
|
|
50
|
+
--palette-action-gray-185: oklch(0.185 0 0);
|
|
51
|
+
--palette-action-gray-287: oklch(0.287 0 0);
|
|
52
|
+
--palette-action-gray-318: oklch(0.318 0 0);
|
|
53
|
+
--palette-action-gray-455: oklch(0.455 0 0);
|
|
54
|
+
--palette-action-gray-512: oklch(0.512 0 0);
|
|
55
|
+
--palette-action-gray-537: oklch(0.5369 0 0);
|
|
56
|
+
--palette-action-gray-620: oklch(0.62 0 0);
|
|
57
|
+
--palette-action-gray-648: oklch(0.648 0 0);
|
|
58
|
+
--palette-action-gray-685: oklch(0.685 0 0);
|
|
59
|
+
--palette-action-gray-742: oklch(0.742 0 0);
|
|
60
|
+
--palette-action-gray-865: oklch(0.865 0 0);
|
|
61
|
+
--palette-action-gray-912: oklch(0.912 0 0);
|
|
62
|
+
--palette-action-gray-933: oklch(0.933 0 0);
|
|
63
|
+
|
|
64
|
+
--palette-accent-gray-318: oklch(0.318 0 0);
|
|
65
|
+
--palette-accent-gray-328: oklch(0.328 0 0);
|
|
66
|
+
--palette-accent-gray-493: oklch(0.4927 0 0);
|
|
67
|
+
--palette-accent-gray-493-a22: oklch(0.4927 0 0 / 0.22);
|
|
68
|
+
--palette-accent-gray-640: oklch(0.64 0 0);
|
|
69
|
+
--palette-accent-gray-640-a34: oklch(0.64 0 0 / 0.34);
|
|
70
|
+
--palette-accent-gray-882: oklch(0.882 0 0);
|
|
71
|
+
|
|
72
|
+
--palette-crimson-420: oklch(0.42 0.185 22);
|
|
73
|
+
--palette-crimson-700: oklch(0.7 0.188 20);
|
|
74
|
+
|
|
75
|
+
--palette-green-500: oklch(0.5 0.115 158);
|
|
76
|
+
--palette-green-725: oklch(0.725 0.138 158);
|
|
77
|
+
--palette-amber-290: oklch(0.29 0.05 82);
|
|
78
|
+
--palette-amber-500: oklch(0.5 0.11 70);
|
|
79
|
+
--palette-amber-600: oklch(0.6 0.11 80);
|
|
80
|
+
--palette-amber-720: oklch(0.72 0.13 80);
|
|
81
|
+
--palette-amber-795: oklch(0.795 0.14 80);
|
|
82
|
+
--palette-amber-970: oklch(0.97 0.05 94);
|
|
83
|
+
|
|
84
|
+
--palette-verdigris-528: oklch(0.528 0.096 188);
|
|
85
|
+
--palette-verdigris-738: oklch(0.738 0.102 188);
|
|
86
|
+
--palette-moss-520: oklch(0.52 0.12 135);
|
|
87
|
+
--palette-moss-780: oklch(0.78 0.14 135);
|
|
88
|
+
--palette-slate-550: oklch(0.55 0.075 292);
|
|
89
|
+
--palette-slate-695: oklch(0.695 0.084 292);
|
|
90
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme: light;
|
|
3
|
+
|
|
4
|
+
/* --- surfaces: the page is dead concrete, so the white card has something
|
|
5
|
+
to lift off. No warm paper tint — chroma stays at zero. Popover shares
|
|
6
|
+
the card's white and is separated by elevation instead — a menu is the
|
|
7
|
+
same material as the panel it opens over, only higher. --- */
|
|
8
|
+
--background: var(--palette-grey-970);
|
|
9
|
+
--foreground: var(--palette-grey-255);
|
|
10
|
+
--card: var(--palette-white);
|
|
11
|
+
--card-foreground: var(--palette-grey-255);
|
|
12
|
+
--popover: var(--palette-white);
|
|
13
|
+
--popover-foreground: var(--palette-grey-255);
|
|
14
|
+
|
|
15
|
+
/* --- neutral fills: muted, accent and secondary, each a distinct step
|
|
16
|
+
(in light, secondary sits darkest so a secondary control reads on a card).
|
|
17
|
+
--muted is the one the table leans on hardest: rows hover at `bg-muted/50`
|
|
18
|
+
and select at full strength, so it has to survive being halved. --- */
|
|
19
|
+
--muted: var(--palette-grey-970);
|
|
20
|
+
--muted-foreground: var(--palette-grey-470);
|
|
21
|
+
--secondary: var(--palette-grey-915);
|
|
22
|
+
--secondary-foreground: var(--palette-grey-255);
|
|
23
|
+
--accent: var(--palette-grey-935);
|
|
24
|
+
--accent-foreground: var(--palette-grey-255);
|
|
25
|
+
|
|
26
|
+
/* --- a header band is structure, not a row: dense data needs somewhere for
|
|
27
|
+
the eye to stop. Near-white (0.9835) disappeared into the card; this sits
|
|
28
|
+
a step darker than the concrete page so the band reads. --- */
|
|
29
|
+
--table-header: var(--palette-grey-965);
|
|
30
|
+
|
|
31
|
+
--table-row-hover: var(--palette-action-gray-933);
|
|
32
|
+
--table-row-selected: var(--palette-action-gray-912);
|
|
33
|
+
|
|
34
|
+
--primary: var(--palette-action-gray-537);
|
|
35
|
+
--primary-foreground: var(--palette-white);
|
|
36
|
+
--primary-hover: var(--palette-action-gray-512);
|
|
37
|
+
|
|
38
|
+
--brand: var(--palette-accent-gray-493);
|
|
39
|
+
--brand-foreground: var(--palette-white);
|
|
40
|
+
|
|
41
|
+
--destructive: var(--palette-crimson-420);
|
|
42
|
+
--destructive-foreground: var(--palette-white);
|
|
43
|
+
|
|
44
|
+
/* --- lines: --border is structure, --input is an interactive boundary --- */
|
|
45
|
+
--border: var(--palette-grey-880);
|
|
46
|
+
--input: var(--palette-grey-600);
|
|
47
|
+
--ring: var(--palette-action-gray-537);
|
|
48
|
+
|
|
49
|
+
/* --- status ramp: deep enough to carry white text on a filled chip --- */
|
|
50
|
+
--success: var(--palette-green-500);
|
|
51
|
+
--success-foreground: var(--palette-white);
|
|
52
|
+
--warning: var(--palette-amber-500);
|
|
53
|
+
--warning-foreground: var(--palette-white);
|
|
54
|
+
--warning-wash: var(--palette-amber-970);
|
|
55
|
+
--warning-edge: var(--palette-amber-720);
|
|
56
|
+
--info: var(--palette-action-gray-512);
|
|
57
|
+
--info-foreground: var(--palette-white);
|
|
58
|
+
|
|
59
|
+
/* --- Operations Blue: navigation and inline links, never a commit action --- */
|
|
60
|
+
--link: var(--palette-action-gray-455);
|
|
61
|
+
|
|
62
|
+
/* --- instrument palette: steel, verdigris, moss, oxide, slate. Deep
|
|
63
|
+
enough to carry --background as a label, because that is how a swatch and
|
|
64
|
+
a filled series both get read. Moss replaced brass, which sat on the warning
|
|
65
|
+
amber and made a series read as an alarm. --- */
|
|
66
|
+
--chart-1: var(--palette-action-gray-537);
|
|
67
|
+
--chart-2: var(--palette-verdigris-528);
|
|
68
|
+
--chart-3: var(--palette-moss-520);
|
|
69
|
+
--chart-4: var(--palette-crimson-420);
|
|
70
|
+
--chart-5: var(--palette-slate-550);
|
|
71
|
+
|
|
72
|
+
/* --- chrome rail: black, the deepest plane in the system. Ink, hover,
|
|
73
|
+
and the "you are here" wash are authored for this dark surface — page ink
|
|
74
|
+
would disappear on it. --- */
|
|
75
|
+
--sidebar: var(--palette-black);
|
|
76
|
+
--sidebar-foreground: var(--palette-grey-970);
|
|
77
|
+
--sidebar-primary: var(--palette-accent-gray-640);
|
|
78
|
+
--sidebar-primary-foreground: var(--palette-grey-198);
|
|
79
|
+
--sidebar-accent: var(--palette-grey-292);
|
|
80
|
+
--sidebar-accent-foreground: var(--palette-grey-970);
|
|
81
|
+
--sidebar-border: var(--palette-grey-318);
|
|
82
|
+
--sidebar-ring: var(--palette-action-gray-648);
|
|
83
|
+
--sidebar-link: var(--palette-action-gray-742);
|
|
84
|
+
|
|
85
|
+
--sidebar-active: var(--palette-action-gray-318);
|
|
86
|
+
--sidebar-active-foreground: var(--palette-action-gray-865);
|
|
87
|
+
|
|
88
|
+
--selection: var(--palette-accent-gray-493-a22);
|
|
89
|
+
|
|
90
|
+
/* --- the dim laid over the page behind a dialog or sheet, used at an alpha
|
|
91
|
+
(`bg-scrim/50`), and the dark stage an image or PDF is shown on --- */
|
|
92
|
+
--scrim: var(--palette-black);
|
|
93
|
+
|
|
94
|
+
/* --- elevation 1..6 map to shadow-2xs, -xs, -sm, -md, -lg, -xl ---
|
|
95
|
+
Two layers each: a tight contact shadow that says the edge is resting on
|
|
96
|
+
something, and a wider ambient one that says how far above it is. Depth is
|
|
97
|
+
this ramp's job — a hairline border cannot carry a plane on its own, which
|
|
98
|
+
is what a card outlined on a near-white page was trying to do. */
|
|
99
|
+
--elevation-1: 0 1px 1px 0 var(--palette-grey-240-a07);
|
|
100
|
+
--elevation-2:
|
|
101
|
+
0 1px 1px -0.5px var(--palette-grey-240-a07),
|
|
102
|
+
0 1px 2px 0 var(--palette-grey-240-a11);
|
|
103
|
+
--elevation-3:
|
|
104
|
+
0 1px 2px -1px var(--palette-grey-240-a15),
|
|
105
|
+
0 3px 6px -2px var(--palette-grey-240-a12);
|
|
106
|
+
--elevation-4:
|
|
107
|
+
0 2px 4px -2px var(--palette-grey-240-a15),
|
|
108
|
+
0 8px 16px -6px var(--palette-grey-240-a16);
|
|
109
|
+
--elevation-5:
|
|
110
|
+
0 4px 8px -4px var(--palette-grey-240-a17),
|
|
111
|
+
0 16px 32px -12px var(--palette-grey-240-a20);
|
|
112
|
+
--elevation-6:
|
|
113
|
+
0 8px 16px -8px var(--palette-grey-240-a19),
|
|
114
|
+
0 32px 64px -20px var(--palette-grey-240-a26);
|
|
115
|
+
|
|
116
|
+
/* Modest and industrial: 4px on chips, 6px on buttons and fields, 10px on
|
|
117
|
+
cards. Nothing in the system is bubbly. */
|
|
118
|
+
--radius: 0.5rem;
|
|
119
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Utilities — the classes the system adds to Tailwind's own.
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
/* Measurements, identifiers, and sequence numbers: monospaced,
|
|
6
|
+
column-aligned, slashed zero so 0 never reads as O. */
|
|
7
|
+
@utility readout {
|
|
8
|
+
font-family: var(--font-mono);
|
|
9
|
+
font-variant-numeric: tabular-nums lining-nums;
|
|
10
|
+
font-feature-settings: "zero" 1;
|
|
11
|
+
letter-spacing: 0.005em;
|
|
12
|
+
}
|