@keboola/tailwind-config 1.1.1 → 1.1.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @keboola/tailwind-config
2
2
 
3
+ ## 1.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - `AIKit/Markdown` code surfaces follow the colour scheme and the brand.
8
+
9
+ Fenced blocks and inline code were painted with `neutral-50` / `neutral-800`, literals that cannot take part in the `[data-theme='dark']` variable swap. In dark mode `prose-invert` flipped the surrounding text to light while the pinned fill stayed near-white, leaving inline code unreadable. Both now use the semantic `muted` / `foreground` pair, the same one the stylesheet already gives a prose blockquote.
10
+
11
+ Typography's inverted palette pinned the ink of a fenced block and of code in a quote to `#c7254e` regardless of the fill beneath it — 2.72:1 once that fill follows the dark scheme. Both now inherit the surface they sit on, so the ink moves with the fill.
12
+
3
13
  ## 1.1.1
4
14
 
5
15
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keboola/tailwind-config",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Shared Tailwind CSS v4 design tokens for the Keboola UI platform — semantic color palette, type scale, radii and shadows as a `theme` object.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/typography.ts CHANGED
@@ -6,11 +6,25 @@ export const typography = {
6
6
  'h1, h2, h3, h4, h5, h6': {
7
7
  color: 'inherit',
8
8
  },
9
- 'blockquote code': {
10
- color: 'var(--tw-prose-code)',
11
- },
12
- 'pre code': {
13
- color: 'var(--tw-prose-code)',
9
+ // Code in a quote or a fenced block takes the ink of the surface it sits
10
+ // on rather than a pinned one.
11
+ //
12
+ // - `--tw-prose-code` is `#c7254e` in both schemes; the fill under it is
13
+ // not. On a dark `--muted` slab that pin measures 2.72:1.
14
+ // - A colour declared here lands on the `<code>`, so it beats the one a
15
+ // call site puts on the `<pre>` — inheritance loses to any declaration.
16
+ // - Raising the call site's specificity is not an escape either: under
17
+ // `[data-theme='dark'] .tw\:prose` this rule is `(0,2,0)`, above the
18
+ // `(0,1,2)` of a `[&_pre_code]:…` arbitrary variant.
19
+ // - Bare inline `code` is deliberately not in the list. It keeps
20
+ // `--tw-prose-invert-code`, 3.36:1 on the dark page. The chat surfaces
21
+ // that render most of it put it on their own chip — `AIKit/Markdown`
22
+ // and kbc-ui's chat both do. A bare `.tw\:prose` does not, and
23
+ // kbc-ui's `react/common/Markdown` is one: there the 3.36:1 stands.
24
+ // The fix still belongs with the chip — a rule here would strip the
25
+ // accent from every call site at once, including the ones that want it.
26
+ 'blockquote code, pre code': {
27
+ color: 'inherit',
14
28
  },
15
29
  },
16
30
  },