@nyxwire/css 0.0.0-stage → 0.1.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.
Files changed (134) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +133 -2
  3. package/dist/base.css +850 -0
  4. package/dist/components.css +10508 -0
  5. package/dist/docs/components/accordion.md +83 -0
  6. package/dist/docs/components/alert.md +52 -0
  7. package/dist/docs/components/avatar.md +55 -0
  8. package/dist/docs/components/badge.md +64 -0
  9. package/dist/docs/components/breadcrumbs.md +64 -0
  10. package/dist/docs/components/button.md +197 -0
  11. package/dist/docs/components/card.md +103 -0
  12. package/dist/docs/components/checkbox.md +45 -0
  13. package/dist/docs/components/chip.md +30 -0
  14. package/dist/docs/components/cluster.md +33 -0
  15. package/dist/docs/components/code.md +65 -0
  16. package/dist/docs/components/container.md +24 -0
  17. package/dist/docs/components/dialog.md +199 -0
  18. package/dist/docs/components/divider.md +31 -0
  19. package/dist/docs/components/dl.md +24 -0
  20. package/dist/docs/components/effect-utilities.md +82 -0
  21. package/dist/docs/components/empty.md +40 -0
  22. package/dist/docs/components/frame.md +27 -0
  23. package/dist/docs/components/grid.md +31 -0
  24. package/dist/docs/components/hud.md +75 -0
  25. package/dist/docs/components/input-group.md +28 -0
  26. package/dist/docs/components/input.md +52 -0
  27. package/dist/docs/components/kbd.md +42 -0
  28. package/dist/docs/components/label-and-field.md +31 -0
  29. package/dist/docs/components/link.md +41 -0
  30. package/dist/docs/components/list.md +67 -0
  31. package/dist/docs/components/menu.md +85 -0
  32. package/dist/docs/components/meter.md +77 -0
  33. package/dist/docs/components/navbar.md +66 -0
  34. package/dist/docs/components/pagination.md +64 -0
  35. package/dist/docs/components/popover.md +59 -0
  36. package/dist/docs/components/progress.md +32 -0
  37. package/dist/docs/components/prose.md +29 -0
  38. package/dist/docs/components/select.md +51 -0
  39. package/dist/docs/components/sidebar.md +35 -0
  40. package/dist/docs/components/sidenav.md +45 -0
  41. package/dist/docs/components/skeleton.md +36 -0
  42. package/dist/docs/components/slider.md +32 -0
  43. package/dist/docs/components/spinner.md +30 -0
  44. package/dist/docs/components/stack.md +26 -0
  45. package/dist/docs/components/steps.md +49 -0
  46. package/dist/docs/components/switch.md +19 -0
  47. package/dist/docs/components/table.md +83 -0
  48. package/dist/docs/components/tabs.md +207 -0
  49. package/dist/docs/components/textarea.md +13 -0
  50. package/dist/docs/components/toast.md +86 -0
  51. package/dist/docs/components/tooltip.md +39 -0
  52. package/dist/docs/components/typography-classes.md +38 -0
  53. package/dist/docs/families/data-display.md +15 -0
  54. package/dist/docs/families/feedback.md +13 -0
  55. package/dist/docs/families/forms.md +141 -0
  56. package/dist/docs/families/layout-typography.md +17 -0
  57. package/dist/docs/families/navigation.md +13 -0
  58. package/dist/docs/families/overlays.md +13 -0
  59. package/dist/docs/families/surfaces.md +11 -0
  60. package/dist/docs/foundations/accessibility.md +71 -0
  61. package/dist/docs/foundations/color-roles.md +114 -0
  62. package/dist/docs/foundations/effects-motion.md +150 -0
  63. package/dist/docs/foundations/flavors.md +156 -0
  64. package/dist/docs/foundations/icons.md +45 -0
  65. package/dist/docs/foundations/palette.md +180 -0
  66. package/dist/docs/foundations/spacing-elevation.md +168 -0
  67. package/dist/docs/foundations/typography.md +80 -0
  68. package/dist/docs/index.md +233 -0
  69. package/dist/docs/manifest.json +859 -0
  70. package/dist/fonts/inter-OFL.txt +93 -0
  71. package/dist/fonts/inter-latin-ext-wght-italic.woff2 +0 -0
  72. package/dist/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
  73. package/dist/fonts/inter-latin-wght-italic.woff2 +0 -0
  74. package/dist/fonts/inter-latin-wght-normal.woff2 +0 -0
  75. package/dist/fonts/martian-mono-OFL.txt +93 -0
  76. package/dist/fonts/martian-mono-latin-ext-wdth-normal.woff2 +0 -0
  77. package/dist/fonts/martian-mono-latin-wdth-normal.woff2 +0 -0
  78. package/dist/fonts/space-grotesk-OFL.txt +93 -0
  79. package/dist/fonts/space-grotesk-latin-ext-wght-normal.woff2 +0 -0
  80. package/dist/fonts/space-grotesk-latin-wght-normal.woff2 +0 -0
  81. package/dist/fonts.css +73 -0
  82. package/dist/nyxwire.css +12183 -0
  83. package/dist/tokens.css +579 -0
  84. package/dist/utilities.css +176 -0
  85. package/nyxwire.d.ts +2 -0
  86. package/package.json +66 -3
  87. package/skills/nyxwire/SKILL.md +63 -0
  88. package/src/base.css +158 -0
  89. package/src/components/accordion.css +280 -0
  90. package/src/components/alert.css +176 -0
  91. package/src/components/avatar.css +262 -0
  92. package/src/components/badge.css +193 -0
  93. package/src/components/breadcrumbs.css +209 -0
  94. package/src/components/btn.css +517 -0
  95. package/src/components/card.css +327 -0
  96. package/src/components/checkbox.css +202 -0
  97. package/src/components/chip.css +345 -0
  98. package/src/components/code.css +340 -0
  99. package/src/components/dialog.css +411 -0
  100. package/src/components/divider.css +201 -0
  101. package/src/components/empty.css +216 -0
  102. package/src/components/field.css +161 -0
  103. package/src/components/hud.css +212 -0
  104. package/src/components/index.css +50 -0
  105. package/src/components/input.css +383 -0
  106. package/src/components/kbd.css +197 -0
  107. package/src/components/layout.css +344 -0
  108. package/src/components/link.css +178 -0
  109. package/src/components/list.css +353 -0
  110. package/src/components/menu.css +347 -0
  111. package/src/components/meter.css +238 -0
  112. package/src/components/navbar.css +309 -0
  113. package/src/components/pagination.css +302 -0
  114. package/src/components/popover.css +352 -0
  115. package/src/components/progress.css +241 -0
  116. package/src/components/select.css +121 -0
  117. package/src/components/sidenav.css +326 -0
  118. package/src/components/skeleton.css +193 -0
  119. package/src/components/slider.css +201 -0
  120. package/src/components/spinner.css +200 -0
  121. package/src/components/stat.css +263 -0
  122. package/src/components/steps.css +311 -0
  123. package/src/components/switch.css +183 -0
  124. package/src/components/table.css +290 -0
  125. package/src/components/tabs.css +271 -0
  126. package/src/components/toast.css +413 -0
  127. package/src/components/tooltip.css +288 -0
  128. package/src/fonts.css +92 -0
  129. package/src/index.css +6 -0
  130. package/src/motion.css +177 -0
  131. package/src/semantic.css +85 -0
  132. package/src/tokens.css +276 -0
  133. package/src/typography.css +430 -0
  134. package/src/utilities.css +198 -0
@@ -0,0 +1,176 @@
1
+ @layer theme, base, components, utilities;
2
+ @layer base {
3
+ :where(a, span, b, strong, i, em, small, code, mark, abbr, cite, label).nw-glitch {
4
+ display: inline-block;
5
+ }
6
+ }
7
+
8
+ @layer utilities {
9
+ .nw-cut {
10
+ --_cut-edge: var(--nw-edge, var(--nw-line));
11
+ isolation: isolate;
12
+ background: var(--nw-cut-surface);
13
+ border: 0;
14
+ border-radius: 0;
15
+ position: relative;
16
+ }
17
+
18
+ .nw-cut:before {
19
+ content: "";
20
+ z-index: 1;
21
+ pointer-events: none;
22
+ background: var(--_cut-edge);
23
+ clip-path: var(--nw-cut-ring);
24
+ position: absolute;
25
+ inset: 0;
26
+ }
27
+
28
+ :where(img, video, canvas, svg, iframe).nw-cut {
29
+ clip-path: var(--nw-cut-path);
30
+ background: none;
31
+ }
32
+
33
+ .nw-wire {
34
+ --_wire-fill: var(--nw-fill, var(--nw-panel));
35
+ background: linear-gradient(var(--_wire-fill), var(--_wire-fill)) padding-box,
36
+ var(--nw-gradient-wire) border-box;
37
+ border: 1px solid #0000;
38
+ }
39
+
40
+ .nw-wire-glow {
41
+ box-shadow: var(--nw-glow-wire);
42
+ }
43
+
44
+ .nw-cut.nw-wire {
45
+ --_cut-edge: var(--nw-gradient-wire);
46
+ background: var(--nw-cut-surface);
47
+ border: 0;
48
+ }
49
+
50
+ .nw-glow-sm {
51
+ box-shadow: var(--nw-glow-sm);
52
+ }
53
+
54
+ .nw-glow-md {
55
+ box-shadow: var(--nw-glow-md);
56
+ }
57
+
58
+ .nw-glow-lg {
59
+ box-shadow: var(--nw-glow-lg);
60
+ }
61
+
62
+ .nw-text-glow {
63
+ text-shadow: var(--nw-glow-text);
64
+ }
65
+
66
+ .nw-cut.nw-glow-sm {
67
+ box-shadow: none;
68
+ filter: var(--nw-glow-drop-sm);
69
+ }
70
+
71
+ .nw-cut.nw-glow-md {
72
+ box-shadow: none;
73
+ filter: var(--nw-glow-drop-md);
74
+ }
75
+
76
+ .nw-cut.nw-glow-lg {
77
+ box-shadow: none;
78
+ filter: var(--nw-glow-drop-lg);
79
+ }
80
+
81
+ .nw-cut.nw-wire-glow {
82
+ box-shadow: none;
83
+ filter: var(--nw-glow-drop-wire);
84
+ }
85
+
86
+ .nw-glow-primary {
87
+ --nw-glow-color: var(--nw-primary);
88
+ }
89
+
90
+ .nw-glow-secondary {
91
+ --nw-glow-color: var(--nw-secondary);
92
+ }
93
+
94
+ .nw-glow-tertiary {
95
+ --nw-glow-color: var(--nw-tertiary);
96
+ }
97
+
98
+ .nw-glow-info {
99
+ --nw-glow-color: var(--nw-info);
100
+ }
101
+
102
+ .nw-glow-success {
103
+ --nw-glow-color: var(--nw-success);
104
+ }
105
+
106
+ .nw-glow-warning {
107
+ --nw-glow-color: var(--nw-warning);
108
+ }
109
+
110
+ .nw-glow-danger {
111
+ --nw-glow-color: var(--nw-danger);
112
+ }
113
+
114
+ .nw-scanlines {
115
+ isolation: isolate;
116
+ position: relative;
117
+ }
118
+
119
+ .nw-scanlines:after {
120
+ content: "";
121
+ z-index: 1;
122
+ pointer-events: none;
123
+ border-radius: inherit;
124
+ background-image: var(--nw-scanlines);
125
+ position: absolute;
126
+ inset: 0;
127
+ }
128
+
129
+ .nw-cut.nw-scanlines:after {
130
+ clip-path: var(--nw-cut-path);
131
+ }
132
+
133
+ .nw-grid-bg {
134
+ background-image: radial-gradient(circle at calc(50% + .5px) calc(50% + .5px),
135
+ color-mix(in oklab, var(--nw-primary) 55%, transparent) 1px,
136
+ transparent 2px),
137
+ linear-gradient(to right, var(--nw-grid-line) 1px, transparent 1px),
138
+ linear-gradient(to bottom, var(--nw-grid-line) 1px, transparent 1px);
139
+ background-size: calc(var(--nw-grid-size) * 4) calc(var(--nw-grid-size) * 4),
140
+ var(--nw-grid-size) var(--nw-grid-size),
141
+ var(--nw-grid-size) var(--nw-grid-size);
142
+ }
143
+
144
+ @media (prefers-reduced-motion: no-preference) {
145
+ .nw-glitch:is(:hover, :focus-visible), :is(a, button):is(:hover, :focus-visible) .nw-glitch {
146
+ animation: .48s step-end nw-glitch;
147
+ }
148
+ }
149
+
150
+ .nw-sr-only {
151
+ clip-path: inset(50%);
152
+ white-space: nowrap;
153
+ border: 0;
154
+ block-size: 1px;
155
+ inline-size: 1px;
156
+ margin: -1px;
157
+ padding: 0;
158
+ position: absolute;
159
+ overflow: hidden;
160
+ }
161
+
162
+ @media (forced-colors: active) {
163
+ .nw-cut, .nw-wire, .nw-cut.nw-wire {
164
+ background: canvas;
165
+ border: 1px solid canvastext;
166
+ }
167
+
168
+ .nw-cut:before, .nw-scanlines:after {
169
+ display: none;
170
+ }
171
+
172
+ .nw-grid-bg {
173
+ background-image: none;
174
+ }
175
+ }
176
+ }
package/nyxwire.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ // `import '@nyxwire/css'` loads a stylesheet for its side effect; it has no exports.
2
+ export {}
package/package.json CHANGED
@@ -1,6 +1,69 @@
1
1
  {
2
2
  "name": "@nyxwire/css",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "Nyxwire's CSS: tokens, fonts, typography and nw-* components for any HTML page, in four flavors.",
5
+ "keywords": [
6
+ "nyxwire",
7
+ "design-system",
8
+ "css",
9
+ "css-components",
10
+ "design-tokens",
11
+ "dark-mode",
12
+ "cyberpunk"
13
+ ],
14
+ "homepage": "https://nyxwire.dissidence.ovh/css-components/",
15
+ "bugs": {
16
+ "url": "https://github.com/fmauNeko/nyxwire/issues"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/fmauNeko/nyxwire.git",
21
+ "directory": "packages/css"
22
+ },
23
+ "license": "MIT",
24
+ "author": "Florian Maunier",
25
+ "type": "module",
26
+ "files": [
27
+ "dist",
28
+ "skills",
29
+ "src",
30
+ "nyxwire.d.ts"
31
+ ],
32
+ "sideEffects": [
33
+ "**/*.css"
34
+ ],
35
+ "exports": {
36
+ ".": {
37
+ "types": "./nyxwire.d.ts",
38
+ "default": "./dist/nyxwire.css"
39
+ },
40
+ "./tokens.css": "./dist/tokens.css",
41
+ "./fonts.css": "./dist/fonts.css",
42
+ "./base.css": "./dist/base.css",
43
+ "./components.css": "./dist/components.css",
44
+ "./utilities.css": "./dist/utilities.css",
45
+ "./fonts/*": "./dist/fonts/*",
46
+ "./src/*": "./src/*"
47
+ },
48
+ "dependencies": {
49
+ "@nyxwire/palette": "0.1.0"
50
+ },
51
+ "devDependencies": {
52
+ "@fontsource-variable/inter": "5.3.0",
53
+ "@fontsource-variable/martian-mono": "5.3.0",
54
+ "@fontsource-variable/space-grotesk": "5.3.0",
55
+ "@types/node": "^26",
56
+ "lightningcss": "1.33.0",
57
+ "typescript": "6.0.3",
58
+ "vitest": "5.1.0"
59
+ },
60
+ "publishConfig": {
61
+ "access": "public"
62
+ },
63
+ "scripts": {
64
+ "build": "node scripts/build.ts && node ../agent-docs/src/run.ts",
65
+ "dev": "node --watch-path=src scripts/build.ts",
66
+ "test": "vitest run",
67
+ "typecheck": "tsc --noEmit"
68
+ }
6
69
  }
@@ -0,0 +1,63 @@
1
+ ---
2
+ name: nyxwire
3
+ description: Builds and styles interfaces with Nyxwire, an indigo neon design system shipped as plain CSS (nw-* classes), a Tailwind CSS v4 theme, Vue 3 components (Nw*, built on Reka UI), an Astro integration and a Starlight theme. Use when a project depends on an @nyxwire/* package, or when asked to build, style or theme UI with Nyxwire.
4
+ ---
5
+
6
+ # Nyxwire
7
+
8
+ Nyxwire is newer than your training data, so do not write its APIs from memory: every
9
+ `@nyxwire/*` package ships Markdown docs for its exact version. Read them before writing code.
10
+
11
+ ## Read the installed docs
12
+
13
+ 1. See which packages the project has: `node_modules/@nyxwire/`, or the dependencies in
14
+ `package.json`.
15
+ 2. Open `node_modules/@nyxwire/<package>/dist/docs/index.md` for each one. It covers setup and
16
+ conventions, and lists the package's other doc files.
17
+ 3. Before you use a component or a topic, open its file, such as
18
+ `node_modules/@nyxwire/vue/dist/docs/components/dialog.md`.
19
+
20
+ A "Nyxwire docs index" block in `AGENTS.md` lists the same files; `npx @nyxwire/cli agents-md`
21
+ writes or refreshes it. `npx @nyxwire/cli mcp` serves the docs over MCP. When no package is
22
+ installed yet, read https://nyxwire.dissidence.ovh/llms.txt.
23
+
24
+ ## Pick the packages
25
+
26
+ | Project | Install | Wire it up |
27
+ | -------------------- | -------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
28
+ | Any HTML page | `@nyxwire/css` | `@import '@nyxwire/css';`, then the `nw-*` classes |
29
+ | Tailwind CSS 4 | `@nyxwire/tailwind` and `@nyxwire/css` | `@import 'tailwindcss';` then `@import '@nyxwire/tailwind';`, then utilities such as `bg-canvas` and `text-fg` |
30
+ | Vue 3 | `@nyxwire/vue` and `@nyxwire/tailwind` | the Tailwind lines plus `@import '@nyxwire/vue/tailwind.css';`, then `Nw*` components inside `NwProvider` |
31
+ | Astro | `@nyxwire/astro` and `@nyxwire/css` | `integrations: [nyxwire()]` with `nyxwire` from `@nyxwire/astro`; components in `@nyxwire/astro/components/` |
32
+ | Starlight | `@nyxwire/starlight` | `plugins: [nyxwireStarlight()]` inside `starlight({ ... })` |
33
+ | Colors in JavaScript | `@nyxwire/palette` | `palette`, `flavors` and `semanticRoles` |
34
+
35
+ ## Rules
36
+
37
+ - Flavors are `abyss`, `nocturne` (the default) and `twilight`, which are dark, and `lumen`,
38
+ which is light. Set `data-flavor` with the matching `data-theme` (`dark` or `light`) on
39
+ `<html>`, or on any element to give it its own scope. `data-accent` re-points the primary color
40
+ to one of the twelve accents.
41
+ - Color by role, never by hue: `primary`, `secondary`, `tertiary`, `neutral`, `info`,
42
+ `success`, `warning` and `danger`.
43
+ - CSS classes start with `nw-` (`nw-btn nw-btn-primary`), CSS variables with `--nw-`, Vue
44
+ components with `Nw` (`NwButton`).
45
+ - In Vue, wrap the app, and every Astro island, in `NwProvider`. Styled components take `intent`,
46
+ `variant` (`solid`, `soft`, `outline`, `ghost`, `link`), `size` (`xs` to `lg`) and the motifs
47
+ `cut`, `wire` and `glow`. Compound components follow Reka UI's anatomy (`NwSelect`,
48
+ `NwSelectTrigger`, `NwSelectContent`, `NwSelectItem`) and forward Reka's props and events.
49
+ - Persist the visitor's flavor with `useFlavor()` in Vue or the flavor script of the Astro
50
+ integration: they share one runtime, the `nyxwire-flavor` storage key and the `nyxwire:flavor`
51
+ event.
52
+ - Merge classes with `cn()`, from `@nyxwire/tailwind/merge` or `@nyxwire/vue`, so your utilities
53
+ replace a component's own instead of fighting them.
54
+
55
+ ## Workflow
56
+
57
+ 1. Detect the stack and the installed `@nyxwire/*` packages, and add the missing ones from the
58
+ table.
59
+ 2. Read each package's `dist/docs/index.md`, then the files of the components you will use.
60
+ 3. Write the code with documented names only: a prop, part or class that the docs do not list
61
+ does not exist.
62
+ 4. Check the result: type-check Vue code with `vue-tsc --noEmit`, and make sure every `nw-*` class
63
+ you used exists in `@nyxwire/css/dist/nyxwire.css`.
package/src/base.css ADDED
@@ -0,0 +1,158 @@
1
+ @import './motion.css';
2
+ @import './typography.css';
3
+
4
+ /* Reset and element defaults. Element selectors sit inside :where(), so every rule here has zero
5
+ specificity and any class wins. */
6
+ @layer base {
7
+ *,
8
+ ::before,
9
+ ::after {
10
+ box-sizing: border-box;
11
+ }
12
+
13
+ :where(html) {
14
+ font-family: var(--nw-font-sans);
15
+ line-height: var(--nw-leading-normal);
16
+ text-size-adjust: 100%;
17
+ -webkit-font-smoothing: antialiased;
18
+ -moz-osx-font-smoothing: grayscale;
19
+ text-rendering: optimizeLegibility;
20
+ tab-size: 2;
21
+ -webkit-tap-highlight-color: transparent;
22
+ }
23
+
24
+ /* color and background-color inherit as resolved values, so every flavor scope sets them again
25
+ from its own palette; without this a nested scope would keep its container's ink. */
26
+ :where(html, [data-flavor]) {
27
+ color: var(--nw-fg);
28
+ background-color: var(--nw-canvas);
29
+ scrollbar-color: var(--nw-line-strong) transparent;
30
+ }
31
+ :where(html, [data-flavor], [data-accent]) {
32
+ accent-color: var(--nw-primary);
33
+ caret-color: var(--nw-primary);
34
+ }
35
+
36
+ :where(body) {
37
+ margin: 0;
38
+ min-block-size: 100dvh;
39
+ }
40
+
41
+ :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, pre, hr) {
42
+ margin: 0;
43
+ }
44
+ :where(ul, ol, menu) {
45
+ margin: 0;
46
+ padding: 0;
47
+ list-style: none;
48
+ }
49
+ :where(p, li, dd, figcaption) {
50
+ text-wrap: pretty;
51
+ }
52
+
53
+ :where(img, picture, video, canvas) {
54
+ display: block;
55
+ max-inline-size: 100%;
56
+ }
57
+ :where(img, video) {
58
+ block-size: auto;
59
+ }
60
+ :where(iframe) {
61
+ border: 0;
62
+ }
63
+
64
+ :where(button, input, select, textarea, optgroup) {
65
+ margin: 0;
66
+ font: inherit;
67
+ letter-spacing: inherit;
68
+ color: inherit;
69
+ }
70
+ :where(button, [type='button'], [type='submit'], [type='reset'], [role='button'], summary) {
71
+ cursor: pointer;
72
+ }
73
+ :where(:disabled, [aria-disabled='true']) {
74
+ cursor: not-allowed;
75
+ }
76
+ :where(textarea) {
77
+ resize: vertical;
78
+ }
79
+ :where(input, textarea)::placeholder {
80
+ color: var(--nw-fg-faint);
81
+ opacity: 1;
82
+ }
83
+ :where(fieldset) {
84
+ min-inline-size: 0;
85
+ margin: 0;
86
+ padding: 0;
87
+ border: 0;
88
+ }
89
+ :where(legend) {
90
+ padding: 0;
91
+ }
92
+ :where(table) {
93
+ border-collapse: collapse;
94
+ border-spacing: 0;
95
+ }
96
+ :where([hidden]:not([hidden='until-found'])) {
97
+ display: none !important;
98
+ }
99
+
100
+ ::selection {
101
+ background-color: var(--nw-selection);
102
+ }
103
+
104
+ :where(:focus-visible) {
105
+ outline: var(--nw-ring-width) solid var(--nw-ring);
106
+ outline-offset: var(--nw-ring-offset);
107
+ }
108
+
109
+ :where(a) {
110
+ color: var(--nw-link);
111
+ text-decoration-line: underline;
112
+ text-decoration-thickness: 1px;
113
+ text-decoration-color: color-mix(in oklab, currentColor 40%, transparent);
114
+ text-underline-offset: 0.2em;
115
+ transition: text-decoration-color var(--nw-duration-fast) var(--nw-ease-standard);
116
+ }
117
+ :where(a):hover {
118
+ text-decoration-color: currentColor;
119
+ }
120
+
121
+ :where(b, strong) {
122
+ font-weight: 600;
123
+ }
124
+ :where(code, kbd, samp, pre) {
125
+ font-family: var(--nw-font-mono);
126
+ font-size: 0.875em;
127
+ }
128
+ :where(pre) {
129
+ overflow: auto;
130
+ }
131
+ :where(abbr[title]) {
132
+ text-decoration: underline dotted;
133
+ text-decoration-color: var(--nw-line-bright);
134
+ }
135
+ :where(mark) {
136
+ padding-inline: var(--nw-space-0-5);
137
+ border-radius: var(--nw-radius-xs);
138
+ color: inherit;
139
+ background-color: color-mix(in oklab, var(--nw-warning) 30%, transparent);
140
+ }
141
+ :where(hr) {
142
+ block-size: 0;
143
+ border: 0;
144
+ border-block-start: 1px solid var(--nw-line);
145
+ }
146
+ :where(sub, sup) {
147
+ position: relative;
148
+ font-size: 0.75em;
149
+ line-height: 0;
150
+ vertical-align: baseline;
151
+ }
152
+ :where(sub) {
153
+ inset-block-end: -0.25em;
154
+ }
155
+ :where(sup) {
156
+ inset-block-start: -0.5em;
157
+ }
158
+ }