@classic-homes/theme-tailwind-preset 0.13.1 → 0.13.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/theme.js +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classic-homes/theme-tailwind-preset",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "Tailwind CSS preset for the Classic theme system",
5
5
  "main": "index.js",
6
6
  "sideEffects": false,
package/theme.js CHANGED
@@ -70,9 +70,19 @@ const headingStyles = Object.fromEntries(
70
70
  * - fieldset defaults to `min-inline-size: min-content`, so a fieldset holding a wide row
71
71
  * (columns editor, radio grid) refuses to shrink and pushes the page sideways on phones.
72
72
  * - <summary> toggles get vertical padding on coarse pointers.
73
+ * - Body links (a bare <a> with no class, from markdown or hand-written copy)
74
+ * are Heritage Teal and underlined (Color Reference v2.5: links are never
75
+ * shown by colour alone). base.css says the same inside its layer, but
76
+ * preflight's unlayered `a { color: inherit; text-decoration: inherit }`
77
+ * outranks it, as with headings. Styled links (with a class) keep inheriting.
73
78
  */
74
79
  const responsiveBaseStyles = {
75
80
  fieldset: { minWidth: '0' },
81
+ 'a:not([class])': {
82
+ color: 'hsl(var(--link))',
83
+ textDecorationLine: 'underline',
84
+ textUnderlineOffset: '4px',
85
+ },
76
86
  // <details> toggles are usually one text line (16–20px); on touch give them a
77
87
  // 36px+ row. Padding utilities on the summary still win (utilities layer).
78
88
  '@media (pointer: coarse)': { summary: { paddingTop: '0.5rem', paddingBottom: '0.5rem' } },