@altafusion/fugue-theme 0.0.0-stage → 0.2.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.
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./.nuxt/tsconfig.json",
3
+ "include": [
4
+ "**/*.ts",
5
+ "**/*.vue",
6
+ "types/**/*.d.ts",
7
+ ".nuxt/nuxt.d.ts",
8
+ ".nuxt/**/*.d.ts"
9
+ ]
10
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Layout debug borders (xd = debug layout).
3
+ * Shared by UI (Uno + this file) and Nuxt (via tailwind.css).
4
+ *
5
+ * Colors: xdb xdr xdg xdf xdo xdw — 1px dotted
6
+ * Thick: xdt — 2px width (pair with a color class, e.g. xdr xdt)
7
+ *
8
+ * Grep "xd" to find usages. Not production UX — layout debugging only.
9
+ */
10
+
11
+ .xdb {
12
+ border: 1px dotted #60a5fa; /* blue-400 */
13
+ }
14
+
15
+ .xdr {
16
+ border: 1px dotted #f87171; /* red-400 */
17
+ }
18
+
19
+ .xdg {
20
+ border: 1px dotted #22c55e; /* green-500 */
21
+ }
22
+
23
+ .xdf {
24
+ border: 1px dotted #e879f9; /* fuchsia-400 */
25
+ }
26
+
27
+ .xdo {
28
+ border: 1px dotted #fdba74; /* orange-300 */
29
+ }
30
+
31
+ .xdw {
32
+ border: 1px dotted #e5e7eb; /* visible on light canvas */
33
+ }
34
+
35
+ .xdt {
36
+ border-width: 2px;
37
+ }
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Product-agnostic Tailwind theme entry — chains unbranded root from @altafusion/fugue-nuxt-ui, then default @theme.
3
+ * Order matters: base root → @theme extensions → debug (Docus docs layout breaks without @nuxt/ui in the chain).
4
+ */
5
+ @import "@altafusion/fugue-nuxt-ui/assets/css/nuxt-ui.css";
6
+
7
+ @theme static {
8
+ --font-sans:
9
+ Inter,
10
+ system-ui,
11
+ Avenir,
12
+ Helvetica,
13
+ Arial,
14
+ sans-serif;
15
+
16
+ --font-heading:
17
+ Inter,
18
+ system-ui,
19
+ Avenir,
20
+ Helvetica,
21
+ Arial,
22
+ sans-serif;
23
+
24
+ /* Type scale mirrors tokens/base.css so text-* utilities and --font-size-* agree.
25
+ xs and sm stay on Tailwind defaults — they drive Nuxt UI chrome. */
26
+ --text-base: 1.0625rem;
27
+ --text-base--line-height: 1.47;
28
+ --text-lg: 1.1875rem;
29
+ --text-xl: 1.5rem;
30
+ --text-2xl: 2rem;
31
+ --text-3xl: 2.5rem;
32
+ --text-4xl: 3rem;
33
+ --text-5xl: 3.5rem;
34
+ /* Display / hero (Nuxt UI page hero defaults use 5xl→7xl; define so overrides compile). */
35
+ --text-6xl: 3.75rem;
36
+ --text-6xl--line-height: 1.05;
37
+ --text-7xl: 4.5rem;
38
+ --text-7xl--line-height: 1.05;
39
+ --text-8xl: 5.25rem;
40
+ --text-8xl--line-height: 1;
41
+
42
+ --color-green-50: #EFFDF5;
43
+ --color-green-100: #D9FBE8;
44
+ --color-green-200: #B3F5D1;
45
+ --color-green-300: #75EDAE;
46
+ --color-green-400: #00DC82;
47
+ --color-green-500: #00C16A;
48
+ --color-green-600: #00A155;
49
+ --color-green-700: #007F45;
50
+ --color-green-800: #016538;
51
+ --color-green-900: #0A5331;
52
+ --color-green-950: #052E16;
53
+ }
54
+
55
+ @import "./debug.css";
@@ -0,0 +1,209 @@
1
+ /**
2
+ * Design-system theme entry — product-independent Nuxt UI layer.
3
+ *
4
+ * Foundational scales: assets/css/tokens/*; semantic overrides: ./tokens.css.
5
+ * Critical first-paint values in consuming apps must match tokens.css canvas:
6
+ * - dark: --color-background (#000000)
7
+ * - light: --color-background (#ffffff)
8
+ */
9
+
10
+ @import '../assets/css/tokens/base.css';
11
+ @import '../assets/css/tokens/dark-canvas.css';
12
+ @import '../assets/css/tokens/colors.css';
13
+ @import './tokens.css';
14
+ @import '../assets/css/tokens/components.css';
15
+
16
+ :root {
17
+ /* ===== COMPONENT TOKEN CUSTOMIZATIONS (light) ===== */
18
+ --button-padding-x: var(--space-5);
19
+ --button-padding-y: var(--space-2_5);
20
+ --button-border-radius: var(--border-radius-lg);
21
+
22
+ --card-border-radius: var(--border-radius-xl);
23
+ --card-shadow: var(--shadow-lg);
24
+ --card-padding: var(--space-8);
25
+
26
+ --header-shadow: var(--shadow-md);
27
+
28
+ /* AccentSectionCard header (Fugue UI) */
29
+ --accent-section-title-size: var(--text-sm);
30
+ --accent-section-title-line-height: 1.35;
31
+ --accent-section-title-weight: 600;
32
+ --accent-section-icon-size: 1rem;
33
+ --accent-section-title-gap: 0.625rem;
34
+ --accent-section-header-py: var(--space-4, 1rem);
35
+ --accent-section-header-px: var(--space-6, 1.5rem);
36
+
37
+ /* ===== TYPOGRAPHY ===== */
38
+ /* --font-sans / --font-heading: tailwind.css @theme static */
39
+ /*
40
+ * Same scale as tailwind.css @theme static. Unlayered so it wins as soon as this
41
+ * sheet applies. Otherwise text-5xl paints at Tailwind's 3rem (48px) and jumps
42
+ * to 3.5rem (56px) when main.css arrives.
43
+ */
44
+ --text-base: 1.0625rem;
45
+ --text-base--line-height: 1.47;
46
+ --text-lg: 1.1875rem;
47
+ --text-xl: 1.5rem;
48
+ --text-2xl: 2rem;
49
+ --text-3xl: 2.5rem;
50
+ --text-4xl: 3rem;
51
+ --text-5xl: 3.5rem;
52
+ --text-6xl: 3.75rem;
53
+ --text-6xl--line-height: 1.05;
54
+ --text-7xl: 4.5rem;
55
+ --text-7xl--line-height: 1.05;
56
+ --text-8xl: 5.25rem;
57
+ --text-8xl--line-height: 1;
58
+
59
+ /*
60
+ * Unlayered so they beat Nuxt UI's @layer theme defaults (system font, 4rem header).
61
+ * shell tailwind-shell.css repeats these inside main.css; waiting for that sheet
62
+ * snaps the header from 64px to 49px and swaps the title face on refresh.
63
+ */
64
+ --font-sans: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
65
+ --font-heading: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
66
+ --font-serif: 'Noto Sans Display', ui-serif, Georgia, serif;
67
+ --font-mono: 'DM Mono', ui-monospace, monospace;
68
+ --ui-header-height: calc(2.5rem + 1px);
69
+
70
+ font-family: var(--font-sans);
71
+ line-height: 1.5;
72
+ font-weight: 400;
73
+ font-synthesis: none;
74
+ text-rendering: optimizeLegibility;
75
+ -webkit-font-smoothing: antialiased;
76
+ -moz-osx-font-smoothing: grayscale;
77
+ }
78
+
79
+ @media (width >= 48rem) {
80
+ :root {
81
+ --ui-header-height: calc(3rem + 1px);
82
+ }
83
+ }
84
+
85
+ @reference "./tailwind.css";
86
+
87
+ @layer components {
88
+ .accent-section-title-row {
89
+ display: flex;
90
+ align-items: center;
91
+ gap: var(--accent-section-title-gap);
92
+ }
93
+
94
+ .accent-section-icon {
95
+ display: inline-flex;
96
+ flex-shrink: 0;
97
+ align-items: center;
98
+ justify-content: center;
99
+ width: var(--accent-section-icon-size);
100
+ height: var(--accent-section-icon-size);
101
+ @apply text-default;
102
+ }
103
+
104
+ .accent-section-title {
105
+ margin: 0;
106
+ min-width: 0;
107
+ font-size: var(--accent-section-title-size);
108
+ line-height: var(--accent-section-title-line-height);
109
+ font-weight: var(--accent-section-title-weight);
110
+ @apply text-default;
111
+ }
112
+ }
113
+
114
+ @layer base {
115
+ /* ===== GLOBAL RESET & BASE STYLES ===== */
116
+ *,
117
+ *::before,
118
+ *::after {
119
+ box-sizing: border-box;
120
+ }
121
+
122
+ html {
123
+ line-height: var(--line-height-normal);
124
+ -webkit-text-size-adjust: 100%;
125
+ -moz-tab-size: 4;
126
+ tab-size: 4;
127
+ font-family: var(--font-sans);
128
+ font-feature-settings: normal;
129
+ font-variation-settings: normal;
130
+ }
131
+
132
+ body {
133
+ margin: 0;
134
+ font-size: var(--font-size-base);
135
+ line-height: inherit;
136
+ letter-spacing: var(--tracking-text);
137
+ background-color: var(--color-background);
138
+ color: var(--color-text);
139
+ }
140
+
141
+ /*
142
+ * Layout shells (UHeader, UMain, Docus) own structure and spacing.
143
+ * Color comes from semantic / component tokens only — no global header/main rules.
144
+ */
145
+
146
+ /* ===== TYPOGRAPHY DEFAULTS ===== */
147
+ /* Size/weight in @layer base so Tailwind utilities can override. */
148
+ h1, h2, h3, h4, h5, h6 {
149
+ line-height: var(--line-height-tight);
150
+ margin-top: 0;
151
+ }
152
+
153
+ h1, h2, h3 {
154
+ font-family: var(--font-heading, var(--font-sans));
155
+ letter-spacing: var(--tracking-display);
156
+ }
157
+
158
+ h1, h2 {
159
+ font-weight: var(--font-weight-normal);
160
+ }
161
+
162
+ h3 {
163
+ font-weight: var(--font-weight-medium);
164
+ }
165
+
166
+ h4, h5, h6 {
167
+ font-weight: var(--font-weight-semibold);
168
+ }
169
+
170
+ h1 { font-size: var(--font-size-3xl); margin-bottom: var(--space-6); }
171
+ h2 { font-size: var(--font-size-2xl); margin-bottom: var(--space-5); }
172
+ h3 { font-size: var(--font-size-xl); margin-bottom: var(--space-4); }
173
+ h4 { font-size: var(--font-size-lg); margin-bottom: var(--space-3); }
174
+ h5 { font-size: var(--font-size-base); margin-bottom: var(--space-2); }
175
+ h6 { font-size: var(--font-size-sm); margin-bottom: var(--space-2); }
176
+
177
+ h1 {
178
+ letter-spacing: var(--tracking-display-lg);
179
+ }
180
+
181
+ p {
182
+ margin-top: 0;
183
+ margin-bottom: var(--space-4);
184
+ color: var(--color-text-secondary);
185
+ line-height: var(--line-height-relaxed);
186
+ }
187
+
188
+ code, pre, kbd, samp {
189
+ letter-spacing: normal;
190
+ }
191
+
192
+ /* ===== ACCESSIBILITY & FOCUS STYLES ===== */
193
+ *:focus-visible {
194
+ outline: 2px solid var(--color-border-focus);
195
+ outline-offset: 2px;
196
+ }
197
+
198
+ button:focus-visible,
199
+ input:focus-visible,
200
+ select:focus-visible,
201
+ textarea:focus-visible {
202
+ outline: 2px solid var(--color-border-focus);
203
+ outline-offset: -2px;
204
+ }
205
+ }
206
+
207
+ .theme-transition {
208
+ transition: all 0.3s ease;
209
+ }
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Semantic brand / canvas tokens — product-agnostic defaults.
3
+ * Altafusion product brand → @altafusion/shell (Nuxt) and app-local CSS.
4
+ *
5
+ * Light canvas #ffffff; dark canvas #000000 (critical CSS first-paint sync in consuming apps).
6
+ * Primary aligns with assets/css/tokens/colors.css neutral blue scale.
7
+ */
8
+
9
+ :root {
10
+ --color-primary: var(--color-blue-600);
11
+ --color-primary-hover: var(--color-blue-700);
12
+ --color-primary-active: var(--color-blue-800);
13
+ --color-accent: var(--color-blue-500);
14
+
15
+ --color-background: #ffffff;
16
+ --color-background-secondary: #f9fafb;
17
+ --color-background-tertiary: #f3f4f6;
18
+ /* Body and headings sit in from the extremes, matching developer-docs. */
19
+ --color-text: var(--ui-color-neutral-500);
20
+ --color-text-secondary: var(--ui-color-neutral-500);
21
+ --color-text-tertiary: var(--ui-color-neutral-400);
22
+ --ui-text-dimmed: var(--ui-color-neutral-400);
23
+ --ui-text-muted: var(--ui-color-neutral-500);
24
+ --ui-text-toned: var(--ui-color-neutral-500);
25
+ --ui-text: var(--ui-color-neutral-500);
26
+ --ui-text-highlighted: var(--ui-color-neutral-700);
27
+ --color-border: #e5e7eb;
28
+ --color-border-hover: #d1d5db;
29
+
30
+ --header-bg: var(--color-background);
31
+ }
32
+
33
+ /* Dark canvas — must follow :root so tokens win over colors.css on html[data-theme="dark"] */
34
+ .dark,
35
+ [data-theme='dark'] {
36
+ --color-primary: var(--color-blue-400);
37
+ --color-primary-hover: var(--color-blue-300);
38
+ --color-primary-active: var(--color-blue-200);
39
+
40
+ --color-background: #000000;
41
+ --color-background-secondary: #111827;
42
+ --color-background-tertiary: #1f2937;
43
+ --color-text: var(--ui-color-neutral-400);
44
+ --color-text-secondary: var(--ui-color-neutral-400);
45
+ --color-text-tertiary: var(--ui-color-neutral-500);
46
+ --ui-text-dimmed: var(--ui-color-neutral-500);
47
+ --ui-text-muted: var(--ui-color-neutral-400);
48
+ --ui-text-toned: var(--ui-color-neutral-300);
49
+ --ui-text: var(--ui-color-neutral-400);
50
+ --ui-text-highlighted: var(--ui-color-neutral-100);
51
+ --color-border: #424245;
52
+ --color-border-hover: #52525b;
53
+
54
+ --header-bg: var(--color-background);
55
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../tsconfig.packages.json",
3
+ "include": ["**/*.ts", "**/*.vue", "types/**/*.d.ts"]
4
+ }