@meteo28093/equinox-ui 0.1.6 → 0.1.8

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/README.md CHANGED
@@ -1,8 +1,38 @@
1
- ## Equinox UI
1
+ # Equinox UI
2
2
 
3
3
  Equinox UI is a web component library for blogs or small web projects.
4
4
 
5
- You can use the bundled `equinox.css`, use a classless framework like water.css or pico.css or style the components.
5
+ ## Use with a CDN
6
+
7
+ ### For Existing Websites (Component Styles Only)
8
+ Load only the design tokens to ensure your site's existing styles are **not** altered.
9
+ ```html
10
+ <link href="https://unpkg.com/@meteo28093/equinox-ui/tokens.css" rel="stylesheet">
11
+ <script src="https://unpkg.com/@meteo28093/equinox-ui" defer></script>
12
+ ```
13
+
14
+
15
+
16
+ ## CSS Integration Modes
17
+
18
+ Equinox UI offers two stylesheet integration pathways depending on whether you are embedding components into an **existing website** or building a **new project from scratch**.
19
+
20
+ | Stylesheet | Content | Safe for Existing Sites? | Recommended Use Case |
21
+ | :--- | :--- | :--- | :--- |
22
+ | `tokens.css` | CSS Custom Properties only (`--ee-*`) | **Yes** | Integrating custom elements into existing sites. |
23
+ | `reset.css` | Tag-level resets (`body`, `a`, `button`, etc.) | **No** (will overwrite styles) | Clean-slate blogs or new projects. |
24
+ | `equinox.css` | Combined bundle (`tokens.css` + `reset.css`) | **No** (will overwrite styles) | Quick-start prototypes or new projects. |
25
+
26
+ ---
27
+
28
+ ### For New Websites (Full Reset & Layout)
29
+ Load the combined sheet to establish global styles for the viewport, links, and buttons.
30
+ ```html
31
+ <link href="https://unpkg.com/@meteo28093/equinox-ui/equinox.css" rel="stylesheet">
32
+ <script src="https://unpkg.com/@meteo28093/equinox-ui" defer></script>
33
+ ```
34
+
35
+ ---
6
36
 
7
37
  ## Install from npm
8
38
 
@@ -15,13 +45,13 @@ Import the package once in your browser entrypoint to register all custom elemen
15
45
  ```js
16
46
  // main.js
17
47
  import "@meteo28093/equinox-ui";
18
- import "@meteo28093/equinox-ui/equinox.css";
19
- ```
20
48
 
21
- If you only want the design tokens, import the exported token file instead:
22
-
23
- ```js
49
+ // Choose your style mode:
50
+ // A) SAFE MODE (For existing websites - variables only)
24
51
  import "@meteo28093/equinox-ui/tokens.css";
52
+
53
+ // B) RESET MODE (For brand new websites - full layout reset)
54
+ // import "@meteo28093/equinox-ui/equinox.css";
25
55
  ```
26
56
 
27
57
  Importing `@meteo28093/equinox-ui` registers the components globally with `customElements.define(...)`.
@@ -54,7 +84,7 @@ document.body.innerHTML = `
54
84
  `;
55
85
  ```
56
86
 
57
- ## Vue / Vite
87
+ ## Vue
58
88
 
59
89
  Import Equinox UI once in your client bootstrap file, then use the elements directly in Vue templates.
60
90
 
@@ -105,22 +135,6 @@ export default function App() {
105
135
 
106
136
  For custom DOM events or imperative APIs, use refs and `addEventListener(...)` instead of expecting React's synthetic event system to map custom events automatically.
107
137
 
108
- ## SSR and client-only loading
109
-
110
- The ESM bundle touches `window` and `document` during module evaluation, so load it only in browser/client code.
111
-
112
- - Import it from `main.js`, `main.jsx`, or another browser entrypoint
113
- - In SSR-capable frameworks, keep the import behind a client boundary such as a client-only component or browser-only bootstrap file
114
- - Do not import the package from server-rendered modules
115
-
116
- If smoother SSR support is needed later, the next packaging improvement would be to split browser-only side effects from import-safe exports.
117
-
118
- ## Use with a CDN
119
-
120
- ```html
121
- <script src="https://unpkg.com/@meteo28093/equinox-ui"></script>
122
- ```
123
-
124
138
  This registers components globally.
125
139
 
126
140
  ## Components