You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document provides precise implementation instructions for creating embedded applications using the Bespoke generalized components. Follow these instructions exactly to ensure consistency across all applications.
4
+
5
+
## REQUIRED FILES STRUCTURE
6
+
7
+
Every application MUST include these files in the following order:
8
+
9
+
1. bespoke.css (core styling framework)
10
+
2. help-modal.js (help system)
11
+
3. app.js (application logic)
12
+
4. server.js (server)
13
+
14
+
## HTML TEMPLATE IMPLEMENTATION
15
+
16
+
1. REPLACE the following placeholders in index.html EXACTLY as specified:
17
+
18
+
a) `<!-- APP_TITLE -->`
19
+
Replace with your application's page title
20
+
Example: "Database Designer" or "Task Manager"
21
+
22
+
b) `<!-- APP_NAME -->`
23
+
Replace with your application's display name (appears in header)
24
+
Example: "Database Designer" or "Task Manager"
25
+
26
+
c) `<!-- APP_SPECIFIC_MAIN_CONTENT -->`
27
+
Add your application's main content area
28
+
Example: `<div id="canvas"></div>` or `<div id="editor"></div>`
# This document explains how to use the Bespoke CSS framework for embedded applications.
99
+
100
+
This section explains how to use the Bespoke CSS framework for embedded applications.
5
101
6
102
## OVERVIEW
7
103
The Bespoke CSS framework provides a scoped, reusable set of components that can be embedded in any website without conflicts. All styles are scoped under the `.bespoke` class to prevent interference with parent site styles.
@@ -112,7 +208,7 @@ The Bespoke CSS framework provides a scoped, reusable set of components that can
112
208
<!-- Checkbox -->
113
209
<inputtype="checkbox" />
114
210
115
-
<!-- Radio buttons (NON TESTED) -->
211
+
<!-- Radio buttons -->
116
212
<divclass="radio-group">
117
213
<labelclass="row">
118
214
<inputtype="radio"name="option"value="a" />
@@ -124,7 +220,7 @@ The Bespoke CSS framework provides a scoped, reusable set of components that can
124
220
</label>
125
221
</div>
126
222
127
-
<!-- Horizontal radio group (NON TESTED) -->
223
+
<!-- Horizontal radio group -->
128
224
<divclass="radio-group horizontal">
129
225
<labelclass="row">
130
226
<inputtype="radio"name="size"value="small" />
@@ -136,10 +232,10 @@ The Bespoke CSS framework provides a scoped, reusable set of components that can
136
232
</label>
137
233
</div>
138
234
139
-
<!-- Textarea (NON TESTED) -->
235
+
<!-- Textarea -->
140
236
<textareaplaceholder="Enter your message here..."></textarea>
141
237
142
-
<!-- Toggle switch (NON TESTED) -->
238
+
<!-- Toggle switch -->
143
239
<labelclass="row">
144
240
<divclass="toggle">
145
241
<inputtype="checkbox"class="toggle-input" />
@@ -163,35 +259,6 @@ The Bespoke CSS framework provides a scoped, reusable set of components that can
163
259
<ahref="#"class="as-button">Link Button</a>
164
260
```
165
261
166
-
### UTILITY COMPONENTS
167
-
168
-
#### Flexbox Utilities
169
-
```html
170
-
<!-- Horizontal row -->
171
-
<div class="row">
172
-
<span>Item 1</span>
173
-
<span>Item 2</span>
174
-
</div>
175
-
176
-
<!-- Space between items -->
177
-
<div class="row-between">
178
-
<span>Left</span>
179
-
<span>Right</span>
180
-
</div>
181
-
182
-
<!-- Spacer -->
183
-
<div class="row">
184
-
<span>Left</span>
185
-
<div class="spacer"></div>
186
-
<span>Right</span>
187
-
</div>
188
-
```
189
-
190
-
#### Dividers
191
-
```html
192
-
<hr />
193
-
```
194
-
195
262
### MODAL COMPONENTS
196
263
197
264
#### Basic Modal
@@ -269,32 +336,6 @@ You can override any CSS custom property to customize the appearance:
269
336
### Automatic Dark Mode
270
337
The framework automatically detects the user's system preference and switches between light and dark themes. No additional configuration is needed.
271
338
272
-
### Manual Theme Override
273
-
You can force a specific theme by overriding the CSS custom properties:
0 commit comments