@everscribe/components-styles 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.
- package/LICENSE +21 -0
- package/README.md +102 -0
- package/default.css +1316 -0
- package/package.json +39 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Everscribe
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/everscribe/components/main/assets/everscribe.svg" alt="Everscribe" height="64">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://www.npmjs.com/package/@everscribe/components-styles"><img src="https://img.shields.io/npm/v/@everscribe/components-styles.svg" alt="npm"></a>
|
|
7
|
+
<a href="https://github.com/everscribe/components/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
# @everscribe/components-styles
|
|
11
|
+
|
|
12
|
+
Default theme stylesheet for [@everscribe/components-react](https://github.com/everscribe/components/tree/main/packages/react#readme) and [@everscribe/components-element](https://github.com/everscribe/components/tree/main/packages/element#readme). Required by both - install it alongside whichever component package you're using.
|
|
13
|
+
|
|
14
|
+
Part of [@everscribe/components](https://github.com/everscribe/components#readme).
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install @everscribe/components-styles
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
No build step, no JS - it's a static `.css` file.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import '@everscribe/components-styles/default.css'
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Or via a `<link>` tag for plain HTML:
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<link rel="stylesheet" href="https://unpkg.com/@everscribe/components-styles/default.css">
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Theming via CSS variables
|
|
37
|
+
|
|
38
|
+
Brand-match by overriding CSS variables on `.audit-trail-root`:
|
|
39
|
+
|
|
40
|
+
```css
|
|
41
|
+
.my-app .audit-trail-root {
|
|
42
|
+
--audit-trail-accent: #ff6b35;
|
|
43
|
+
--audit-trail-radius: 10px;
|
|
44
|
+
--audit-trail-font-family: 'Inter', sans-serif;
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
All variables (light theme defaults):
|
|
49
|
+
|
|
50
|
+
| Token | Default |
|
|
51
|
+
|---|---|
|
|
52
|
+
| `--audit-trail-bg` | `#ffffff` |
|
|
53
|
+
| `--audit-trail-fg` | `#1f2328` |
|
|
54
|
+
| `--audit-trail-fg-muted` | `#656d76` |
|
|
55
|
+
| `--audit-trail-border` | `#d0d7de` |
|
|
56
|
+
| `--audit-trail-border-strong` | `#afb8c1` |
|
|
57
|
+
| `--audit-trail-surface` | `#f6f8fa` |
|
|
58
|
+
| `--audit-trail-surface-hover` | `#eaeef2` |
|
|
59
|
+
| `--audit-trail-accent` | `#0969da` |
|
|
60
|
+
| `--audit-trail-accent-fg` | `#ffffff` |
|
|
61
|
+
| `--audit-trail-danger` | `#cf222e` |
|
|
62
|
+
| `--audit-trail-overlay` | `rgba(0, 0, 0, 0.5)` |
|
|
63
|
+
| `--audit-trail-font-family` | system sans stack |
|
|
64
|
+
| `--audit-trail-font-mono` | system mono stack |
|
|
65
|
+
| `--audit-trail-font-size` | `14px` |
|
|
66
|
+
| `--audit-trail-font-size-sm` | `12px` |
|
|
67
|
+
| `--audit-trail-line-height` | `1.5` |
|
|
68
|
+
| `--audit-trail-spacing-xs` | `4px` |
|
|
69
|
+
| `--audit-trail-spacing-sm` | `8px` |
|
|
70
|
+
| `--audit-trail-spacing` | `12px` |
|
|
71
|
+
| `--audit-trail-spacing-lg` | `16px` |
|
|
72
|
+
| `--audit-trail-spacing-xl` | `24px` |
|
|
73
|
+
| `--audit-trail-radius-sm` | `4px` |
|
|
74
|
+
| `--audit-trail-radius` | `6px` |
|
|
75
|
+
| `--audit-trail-shadow` | `0 8px 24px rgba(0, 0, 0, 0.12)` |
|
|
76
|
+
|
|
77
|
+
## Dark theme
|
|
78
|
+
|
|
79
|
+
Swap to dark by setting the `theme="dark"` attribute on `<audit-trail>`, the `theme="dark"` prop on `<AuditTrail>`, or by manually applying the `.audit-trail-theme-dark` class to the root element. The class swaps the color tokens to a dark palette; spacing/sizing/radius tokens are unchanged.
|
|
80
|
+
|
|
81
|
+
## Class hooks
|
|
82
|
+
|
|
83
|
+
When CSS variables aren't enough, override class names directly. The full surface of stable, public classes:
|
|
84
|
+
|
|
85
|
+
- Root / portal: `.audit-trail-root`, `.audit-trail-portal`, `.audit-trail-theme-light`, `.audit-trail-theme-dark`
|
|
86
|
+
- Toolbar: `.audit-trail-toolbar`, `.audit-trail-toolbar-spacer`, `.audit-trail-live`, `.audit-trail-live-dot`
|
|
87
|
+
- Filter toggle: `.audit-trail-filter-toggle`, `.audit-trail-filter-toggle-badge`, `.audit-trail-filter-toggle-caret`
|
|
88
|
+
- Filters panel: `.audit-trail-filter-panel`, `.audit-trail-filter-tabs`, `.audit-trail-filter-tab`, `.audit-trail-filter-tab-selected`, `.audit-trail-filter-row`, `.audit-trail-filter-field`, `.audit-trail-filter-field-label`, `.audit-trail-filter-input`, `.audit-trail-filter-actor-input`, `.audit-trail-filter-select`, `.audit-trail-filter-actions`
|
|
89
|
+
- Picker: `.audit-trail-picker`, `.audit-trail-picker-summary`, `.audit-trail-picker-content`, `.audit-trail-picker-item`
|
|
90
|
+
- Table: `.audit-trail-table`, `.audit-trail-th`, `.audit-trail-th-{column}`, `.audit-trail-row`, `.audit-trail-cell`, `.audit-trail-cell-{column}`, `.audit-trail-cell-presence`, `.audit-trail-status`, `.audit-trail-status-{kind}`
|
|
91
|
+
- States: `.audit-trail-state`, `.audit-trail-state-loading`, `.audit-trail-state-error`, `.audit-trail-state-empty`
|
|
92
|
+
- Buttons: `.audit-trail-button`, `.audit-trail-button-secondary`, `.audit-trail-load-more`
|
|
93
|
+
- Inspect modal: `.audit-trail-inspect-backdrop`, `.audit-trail-inspect-modal`, `.audit-trail-inspect-close`, `.audit-trail-inspect-title`, `.audit-trail-inspect-subtitle`, `.audit-trail-inspect-tabs`, `.audit-trail-inspect-tab`, `.audit-trail-inspect-tab-active`, `.audit-trail-inspect-panel`
|
|
94
|
+
- Code block / copy: `.audit-trail-code-block`, `.audit-trail-code-block-wrap`, `.audit-trail-copy-button`
|
|
95
|
+
- Diff: `.audit-trail-diff-wrap`, `.audit-trail-diff-table`, `.audit-trail-diff-cell`, `.audit-trail-diff-before-{same|removed|blank}`, `.audit-trail-diff-after-{same|added|blank}`
|
|
96
|
+
- Export modal: `.audit-trail-export-backdrop`, `.audit-trail-export-modal`, `.audit-trail-export-title`, `.audit-trail-export-blurb`, `.audit-trail-export-options`, `.audit-trail-export-card`, `.audit-trail-export-card-selected`, `.audit-trail-export-card-title`, `.audit-trail-export-card-body`, `.audit-trail-export-actions`, `.audit-trail-export-error`
|
|
97
|
+
|
|
98
|
+
These are part of the public API; they're not renamed casually.
|
|
99
|
+
|
|
100
|
+
## License
|
|
101
|
+
|
|
102
|
+
MIT
|