@keboola/tailwind-config 0.4.0 → 0.6.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/colors.ts +4 -0
- package/index.js +51 -1
- package/package.json +1 -1
package/colors.ts
CHANGED
|
@@ -96,6 +96,10 @@ export default {
|
|
|
96
96
|
foreground: 'rgb(var(--color-muted-foreground) / <alpha-value>)',
|
|
97
97
|
},
|
|
98
98
|
|
|
99
|
+
// Loading-placeholder fill (Skeleton). Darker than `muted` in light, lighter
|
|
100
|
+
// than card/background in dark, so the block is perceptible in both schemes.
|
|
101
|
+
skeleton: 'rgb(var(--color-skeleton) / <alpha-value>)',
|
|
102
|
+
|
|
99
103
|
// Sidebar semantic colors
|
|
100
104
|
sidebar: {
|
|
101
105
|
DEFAULT: 'rgb(var(--color-sidebar) / <alpha-value>)',
|
package/index.js
CHANGED
|
@@ -126,6 +126,11 @@ const baseConfig = {
|
|
|
126
126
|
},
|
|
127
127
|
backgroundImage: {
|
|
128
128
|
'loader-gradient': 'radial-gradient(circle closest-side,#000 90%,#0000)',
|
|
129
|
+
// Brand gradient — `tw-bg-brand`. Set via `theme.gradient.brand`; the
|
|
130
|
+
// inline fallback equals the stylesheet default (primary→accent), so the
|
|
131
|
+
// utility stays valid even without `@keboola/design/styles`.
|
|
132
|
+
brand:
|
|
133
|
+
'var(--gradient-brand, linear-gradient(135deg, rgb(var(--color-primary)), rgb(var(--color-accent, var(--color-primary)))))',
|
|
129
134
|
},
|
|
130
135
|
ringWidth: {
|
|
131
136
|
3: '3px',
|
|
@@ -134,16 +139,61 @@ const baseConfig = {
|
|
|
134
139
|
outline: '0 0 0 3px rgba(34, 141, 255, 0.25)',
|
|
135
140
|
table: '0px 6px 6px -4px rgba(100, 135, 153, 0.13)',
|
|
136
141
|
card: '0px 1px 4px rgba(100, 135, 153, 0.15)',
|
|
142
|
+
// Brand-driven elevation. The inline fallbacks equal the stock Tailwind
|
|
143
|
+
// shadow scale, so `tw-shadow-sm/md/lg` are unchanged until a brand sets
|
|
144
|
+
// `theme.shadows`. `tw-shadow-lift` is a stronger raised shadow.
|
|
145
|
+
sm: 'var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05))',
|
|
146
|
+
md: 'var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1))',
|
|
147
|
+
lg: 'var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1))',
|
|
148
|
+
lift: 'var(--shadow-lift, 0 10px 30px -12px rgb(0 0 0 / 0.28), 0 2px 6px rgb(0 0 0 / 0.06))',
|
|
149
|
+
// Raised-surface elevation for Card / Search — dark-aware via the
|
|
150
|
+
// `--shadow-raised` token (flips to a black shadow under `[data-theme=dark]`).
|
|
151
|
+
raised: 'var(--shadow-raised, 0 2px 6px 0 rgb(100 135 153 / 0.13))',
|
|
137
152
|
},
|
|
138
153
|
borderRadius: {
|
|
139
154
|
card: '10px',
|
|
140
155
|
},
|
|
156
|
+
transitionDuration: {
|
|
157
|
+
brand: 'var(--motion-duration, 200ms)',
|
|
158
|
+
},
|
|
159
|
+
transitionTimingFunction: {
|
|
160
|
+
brand: 'var(--motion-easing, cubic-bezier(0.2, 0.7, 0.2, 1))',
|
|
161
|
+
},
|
|
162
|
+
spacing: {
|
|
163
|
+
// Brand-driven density: `tw-p-inset`, `tw-gap-gutter`, etc.
|
|
164
|
+
gutter: 'var(--space-gutter, 1.5rem)',
|
|
165
|
+
inset: 'var(--space-inset, 1.5rem)',
|
|
166
|
+
},
|
|
141
167
|
typography: typography,
|
|
142
168
|
colors,
|
|
143
169
|
},
|
|
144
170
|
fontFamily: {
|
|
171
|
+
// Display face for headings — `tw-font-display`. Set via
|
|
172
|
+
// `theme.typography.fontDisplay`; when unset it resolves to `--font-sans`
|
|
173
|
+
// then the Inter stack, so it defaults to the body face rather than a
|
|
174
|
+
// generic `sans-serif`. The fallback chain lives *inside* the `var()` so
|
|
175
|
+
// the declaration stays valid when the vars are undefined — a bare
|
|
176
|
+
// undefined `var()` invalidates the whole `font-family` at
|
|
177
|
+
// computed-value time, and the later families would not rescue it.
|
|
178
|
+
display: [
|
|
179
|
+
'var(--font-display, var(--font-sans, Inter))',
|
|
180
|
+
'system-ui',
|
|
181
|
+
'-apple-system',
|
|
182
|
+
'Segoe UI',
|
|
183
|
+
'Roboto',
|
|
184
|
+
'Helvetica Neue',
|
|
185
|
+
'Arial',
|
|
186
|
+
'Noto Sans',
|
|
187
|
+
'Liberation Sans',
|
|
188
|
+
'sans-serif',
|
|
189
|
+
// Match the canonical sans stack so emoji render consistently.
|
|
190
|
+
'Apple Color Emoji',
|
|
191
|
+
'Segoe UI Emoji',
|
|
192
|
+
'Segoe UI Symbol',
|
|
193
|
+
'Noto Color Emoji',
|
|
194
|
+
],
|
|
145
195
|
mono: [
|
|
146
|
-
'SFMono-Regular',
|
|
196
|
+
'var(--font-mono, SFMono-Regular)',
|
|
147
197
|
'Menlo',
|
|
148
198
|
'Monaco',
|
|
149
199
|
'Consolas',
|
package/package.json
CHANGED