@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,198 @@
1
+ /* The five signature motifs and the screen-reader helper. Pseudo-element budget: .nw-cut draws its
2
+ edge with ::before, .nw-scanlines overlays with ::after, and wire, glow, grid and glitch use
3
+ none. Cut, wire, glow, scanlines and glitch combine on one element; the grid does not combine
4
+ with cut or wire, because all three paint `background`. */
5
+ @layer base {
6
+ /* transform has no effect on an inline box. This sits in the base layer so that a component's
7
+ own display (an inline-flex button, say) still wins. */
8
+ :where(a, span, b, strong, i, em, small, code, mark, abbr, cite, label).nw-glitch {
9
+ display: inline-block;
10
+ }
11
+ }
12
+
13
+ @layer utilities {
14
+ /* 1. Cut corners --------------------------------------------------------------------------- */
15
+
16
+ /* The element paints the chamfered fill itself and stays unclipped; ::before adds the 1px edge
17
+ on top of the content. A clip-path on the element would also clip its glow, because filters
18
+ run before clipping. Paint through --nw-fill (a flat color, default panel) and --nw-edge (any
19
+ paint, default line), not through background and border. */
20
+ .nw-cut {
21
+ --_cut-edge: var(--nw-edge, var(--nw-line));
22
+ position: relative;
23
+ isolation: isolate;
24
+ border: 0;
25
+ border-radius: 0;
26
+ background: var(--nw-cut-surface);
27
+ }
28
+ .nw-cut::before {
29
+ content: '';
30
+ position: absolute;
31
+ inset: 0;
32
+ z-index: 1;
33
+ pointer-events: none;
34
+ background: var(--_cut-edge);
35
+ clip-path: var(--nw-cut-ring);
36
+ }
37
+ /* Replaced elements have no pseudo-elements and no fill to paint, so they are clipped directly.
38
+ They cannot glow; wrap one to give it a glow. */
39
+ :where(img, video, canvas, svg, iframe).nw-cut {
40
+ background: none;
41
+ clip-path: var(--nw-cut-path);
42
+ }
43
+
44
+ /* 2. Wire edge ----------------------------------------------------------------------------- */
45
+
46
+ /* The gradient fills the border box and a fill layer covers all of it but the 1px border, so
47
+ --nw-fill has to be opaque here. */
48
+ .nw-wire {
49
+ --_wire-fill: var(--nw-fill, var(--nw-panel));
50
+ border: 1px solid transparent;
51
+ background:
52
+ linear-gradient(var(--_wire-fill), var(--_wire-fill)) padding-box,
53
+ var(--nw-gradient-wire) border-box;
54
+ }
55
+ .nw-wire-glow {
56
+ box-shadow: var(--nw-glow-wire);
57
+ }
58
+ /* On a cut surface the wire is the edge paint, which also works over a translucent fill. */
59
+ .nw-cut.nw-wire {
60
+ --_cut-edge: var(--nw-gradient-wire);
61
+ border: 0;
62
+ background: var(--nw-cut-surface);
63
+ }
64
+
65
+ /* 3. Neon glow ----------------------------------------------------------------------------- */
66
+
67
+ .nw-glow-sm {
68
+ box-shadow: var(--nw-glow-sm);
69
+ }
70
+ .nw-glow-md {
71
+ box-shadow: var(--nw-glow-md);
72
+ }
73
+ .nw-glow-lg {
74
+ box-shadow: var(--nw-glow-lg);
75
+ }
76
+ .nw-text-glow {
77
+ text-shadow: var(--nw-glow-text);
78
+ }
79
+
80
+ /* A box-shadow would trace the unclipped rectangle; a drop-shadow follows the chamfer. */
81
+ .nw-cut.nw-glow-sm {
82
+ box-shadow: none;
83
+ filter: var(--nw-glow-drop-sm);
84
+ }
85
+ .nw-cut.nw-glow-md {
86
+ box-shadow: none;
87
+ filter: var(--nw-glow-drop-md);
88
+ }
89
+ .nw-cut.nw-glow-lg {
90
+ box-shadow: none;
91
+ filter: var(--nw-glow-drop-lg);
92
+ }
93
+ .nw-cut.nw-wire-glow {
94
+ box-shadow: none;
95
+ filter: var(--nw-glow-drop-wire);
96
+ }
97
+
98
+ /* Glow color; the default is the primary intent. */
99
+ .nw-glow-primary {
100
+ --nw-glow-color: var(--nw-primary);
101
+ }
102
+ .nw-glow-secondary {
103
+ --nw-glow-color: var(--nw-secondary);
104
+ }
105
+ .nw-glow-tertiary {
106
+ --nw-glow-color: var(--nw-tertiary);
107
+ }
108
+ .nw-glow-info {
109
+ --nw-glow-color: var(--nw-info);
110
+ }
111
+ .nw-glow-success {
112
+ --nw-glow-color: var(--nw-success);
113
+ }
114
+ .nw-glow-warning {
115
+ --nw-glow-color: var(--nw-warning);
116
+ }
117
+ .nw-glow-danger {
118
+ --nw-glow-color: var(--nw-danger);
119
+ }
120
+
121
+ /* 4. Scanlines and grid -------------------------------------------------------------------- */
122
+
123
+ .nw-scanlines {
124
+ position: relative;
125
+ isolation: isolate;
126
+ }
127
+ .nw-scanlines::after {
128
+ content: '';
129
+ position: absolute;
130
+ inset: 0;
131
+ z-index: 1;
132
+ pointer-events: none;
133
+ border-radius: inherit;
134
+ background-image: var(--nw-scanlines);
135
+ }
136
+ .nw-cut.nw-scanlines::after {
137
+ clip-path: var(--nw-cut-path);
138
+ }
139
+
140
+ /* Lines every --nw-grid-size, with a node on every fourth crossing. The node tile is four cells
141
+ wide and centers its dot, which lands on a crossing; 0.5px is the middle of the 1px line. */
142
+ .nw-grid-bg {
143
+ background-image:
144
+ radial-gradient(
145
+ circle at calc(50% + 0.5px) calc(50% + 0.5px),
146
+ color-mix(in oklab, var(--nw-primary) 55%, transparent) 1px,
147
+ transparent 2px
148
+ ),
149
+ linear-gradient(to right, var(--nw-grid-line) 1px, transparent 1px),
150
+ linear-gradient(to bottom, var(--nw-grid-line) 1px, transparent 1px);
151
+ background-size:
152
+ calc(var(--nw-grid-size) * 4) calc(var(--nw-grid-size) * 4),
153
+ var(--nw-grid-size) var(--nw-grid-size),
154
+ var(--nw-grid-size) var(--nw-grid-size);
155
+ }
156
+
157
+ /* 5. Glitch -------------------------------------------------------------------------------- */
158
+
159
+ /* One burst when the text, or the link or button around it, is hovered or focused. */
160
+ @media (prefers-reduced-motion: no-preference) {
161
+ .nw-glitch:is(:hover, :focus-visible),
162
+ :is(a, button):is(:hover, :focus-visible) .nw-glitch {
163
+ animation: nw-glitch 480ms steps(1, end) 1;
164
+ }
165
+ }
166
+
167
+ /* Visually hidden, still read by assistive technology ---------------------------------------- */
168
+
169
+ .nw-sr-only {
170
+ position: absolute;
171
+ inline-size: 1px;
172
+ block-size: 1px;
173
+ margin: -1px;
174
+ padding: 0;
175
+ border: 0;
176
+ overflow: hidden;
177
+ clip-path: inset(50%);
178
+ white-space: nowrap;
179
+ }
180
+
181
+ /* Forced colors drop background images and shadows. The cut and wire surfaces fall back to a
182
+ plain system-colored box with a real border; the decorative overlays are removed. */
183
+ @media (forced-colors: active) {
184
+ .nw-cut,
185
+ .nw-wire,
186
+ .nw-cut.nw-wire {
187
+ border: 1px solid CanvasText;
188
+ background: Canvas;
189
+ }
190
+ .nw-cut::before,
191
+ .nw-scanlines::after {
192
+ display: none;
193
+ }
194
+ .nw-grid-bg {
195
+ background-image: none;
196
+ }
197
+ }
198
+ }