lookbook 1.0.0.beta.5 → 1.0.0.beta.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +29 -254
- data/app/assets/lookbook/css/lookbook.css +1 -1
- data/app/assets/lookbook/css/themes/blue.css +58 -37
- data/app/assets/lookbook/css/themes/indigo.css +58 -37
- data/app/assets/lookbook/css/themes/zinc.css +58 -37
- data/app/assets/lookbook/css/tooltip.css +5 -5
- data/app/components/lookbook/base_component.rb +0 -1
- data/app/components/lookbook/button/component.html.erb +2 -2
- data/app/components/lookbook/embed/component.html.erb +5 -5
- data/app/components/lookbook/embed/component.rb +8 -0
- data/app/components/lookbook/filter/component.html.erb +1 -1
- data/app/components/lookbook/header/component.html.erb +1 -1
- data/app/components/lookbook/inspector_panel/component.css +5 -0
- data/app/components/lookbook/inspector_panel/component.html.erb +6 -0
- data/app/components/lookbook/inspector_panel/component.rb +36 -0
- data/app/components/lookbook/nav/component.rb +1 -2
- data/app/components/lookbook/nav/item/component.html.erb +1 -1
- data/app/components/lookbook/params_editor/field/component.rb +2 -1
- data/app/components/lookbook/prose/component.html.erb +1 -1
- data/app/components/lookbook/tab_panels/component.rb +1 -1
- data/app/components/lookbook/tab_panels/panel/component.rb +2 -2
- data/app/components/lookbook/tabs/dropdown_tab/component.html.erb +1 -1
- data/app/components/lookbook/tabs/tab/component.html.erb +1 -1
- data/app/components/lookbook/tag_component.rb +1 -1
- data/app/components/lookbook/toolbar/component.html.erb +1 -1
- data/app/components/lookbook/viewport/component.css +1 -1
- data/app/components/lookbook/viewport/component.html.erb +1 -1
- data/app/controllers/lookbook/application_controller.rb +1 -1
- data/app/controllers/lookbook/pages_controller.rb +1 -0
- data/app/controllers/lookbook/previews_controller.rb +21 -9
- data/app/helpers/lookbook/application_helper.rb +9 -6
- data/app/helpers/lookbook/preview_helper.rb +2 -3
- data/app/views/layouts/lookbook/application.html.erb +1 -1
- data/app/views/layouts/lookbook/page.html.erb +2 -2
- data/app/views/layouts/lookbook/shell.html.erb +6 -0
- data/app/views/layouts/lookbook/skeleton.html.erb +15 -14
- data/app/views/lookbook/previews/panels/_content.html.erb +1 -1
- data/app/views/lookbook/previews/panels/_notes.html.erb +2 -2
- data/app/views/lookbook/previews/panels/_params.html.erb +1 -1
- data/app/views/lookbook/previews/show.html.erb +7 -5
- data/lib/lookbook/code_formatter.rb +1 -1
- data/lib/lookbook/collection.rb +1 -1
- data/lib/lookbook/component.rb +2 -3
- data/lib/lookbook/config.rb +68 -46
- data/lib/lookbook/data.rb +11 -0
- data/lib/lookbook/engine.rb +64 -68
- data/lib/lookbook/entity.rb +1 -1
- data/lib/lookbook/hooks.rb +21 -0
- data/lib/lookbook/markdown.rb +1 -1
- data/lib/lookbook/page.rb +4 -5
- data/lib/lookbook/page_section.rb +2 -4
- data/lib/lookbook/panels.rb +15 -0
- data/lib/lookbook/params.rb +12 -0
- data/lib/lookbook/parser.rb +4 -1
- data/lib/lookbook/preview.rb +9 -11
- data/lib/lookbook/preview_example.rb +1 -1
- data/lib/lookbook/preview_group.rb +8 -0
- data/lib/lookbook/source_inspector.rb +9 -0
- data/lib/lookbook/store.rb +14 -2
- data/lib/lookbook/tag.rb +112 -0
- data/lib/lookbook/tags.rb +22 -0
- data/lib/lookbook/theme.rb +38 -9
- data/lib/lookbook/version.rb +1 -1
- data/lib/lookbook.rb +1 -0
- data/lib/tasks/lookbook_tasks.rake +1 -2
- data/public/lookbook-assets/css/lookbook.css +307 -150
- data/public/lookbook-assets/css/lookbook.css.map +1 -1
- data/public/lookbook-assets/css/themes/blue.css +57 -36
- data/public/lookbook-assets/css/themes/blue.css.map +1 -1
- data/public/lookbook-assets/css/themes/indigo.css +57 -36
- data/public/lookbook-assets/css/themes/indigo.css.map +1 -1
- data/public/lookbook-assets/css/themes/zinc.css +57 -36
- data/public/lookbook-assets/css/themes/zinc.css.map +1 -1
- data/public/lookbook-assets/js/embed.js +193 -193
- data/public/lookbook-assets/js/lookbook.js +1151 -1308
- data/public/lookbook-assets/js/lookbook.js.map +1 -1
- metadata +12 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6db7e9d13ee8598e93dd86dfb32db3e0794ae33934075286203e74428df3a92
|
4
|
+
data.tar.gz: ceb9b3c0050b40c8370a04d30a26b79afecdfc3b9b434346537d695de4731a77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e424de07347103593d71cc389daa097cfa159949f6c6352d1e3b76e7a3f32709551dd25a4fd51ad7499c79bd3228a689affecfe06c0d4bcf74d2f070f62041d
|
7
|
+
data.tar.gz: 7a3680ad7c88cd5d5b15f761311ccb28e3f5f2a57e36a4a67b3b015aecea0ea6ee182babbf9b8bc7daa27c0350e201f0096731b59b656138e13fd694c388414d
|
data/README.md
CHANGED
@@ -1,280 +1,55 @@
|
|
1
|
-
# Lookbook v1.0
|
1
|
+
# Lookbook v1.0
|
2
2
|
|
3
|
-
This is the
|
3
|
+
> **This is the Lookbook v1.0 BETA development branch.**<br>
|
4
|
+
>_For code and documentation for the current stable release see the [main branch](https://github.com/allmarkedup/lookbook/tree/main)._
|
4
5
|
|
5
|
-
> See the [main branch](https://github.com/allmarkedup/lookbook/tree/main) for code and documentation for the current stable release.
|
6
6
|
|
7
|
-
##
|
7
|
+
## Get started
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
- [x] Rebuild app UI using ViewComponent components
|
12
|
-
- [x] Improve usability of the small screen/mobile layout
|
13
|
-
- [x] Add support for some limited UI color theme customisation
|
14
|
-
- [x] Add support for custom inspector panels
|
15
|
-
- [x] Remove the `experimental` flag from the [Pages](https://github.com/allmarkedup/lookbook#pages)
|
16
|
-
- [x] Improve the development/debugging setup, and allow previewing Lookbook's own components in Lookbook :-)
|
17
|
-
- [ ] Improve the test setup and test coverage, switch to RSpec **[in progress]**
|
18
|
-
|
19
|
-
**No breaking changes** are planned for user-facing features, although the app UI will include some minor visual updates and usability improvements.
|
20
|
-
|
21
|
-
## Demo app
|
22
|
-
|
23
|
-
There is a demo of the current v1.0-beta here: https://lookbook-demo-app-v1-0-beta.herokuapp.com/lookbook/
|
24
|
-
|
25
|
-
[![Lookbook UI](.github/assets/lookbook_screenshot_v1.0_beta.png)](https://lookbook-demo-app-v1-0-beta.herokuapp.com/lookbook/)
|
26
|
-
|
27
|
-
## 👋 Testing and feedback - help wanted!
|
28
|
-
|
29
|
-
The bulk of the v1.0 'new feature' development work is now mostly complete, although testing and bug fixing is ongoing.
|
30
|
-
|
31
|
-
**If you are an existing Lookbook user** I'd greatly appreciate if you can kick the tyres on the v1.0 beta and open an issue with any bug reports, suggestions or feedback you might have.
|
32
|
-
|
33
|
-
### Main areas/points for testing/feedback:
|
34
|
-
|
35
|
-
- Existing Lookbook setups should continue to work **with no changes required**
|
36
|
-
- It's now possible to pick from one of a small set of pre-defined **UI themes** (plus finer-grained customisation coming soon). [See below](#ui-theming) for details.
|
37
|
-
- You can now [extend Lookbook](#extending-lookbook) to more closely customise it to your needs - testing and feedback around this area would be a great help!
|
38
|
-
|
39
|
-
> Any thoughts, comments or bug reports (even if unrelated to the specific areas above) would be much appreciated!
|
40
|
-
|
41
|
-
|
42
|
-
## UI theming
|
43
|
-
|
44
|
-
Lookbook v1.0 ships with a small set of pre-defined UI themes, which can be set using the `ui_theme` config option:
|
9
|
+
If you are already using Lookbook in your project, just update the Lookbook gem to the latest beta release and then head over to the [beta documentation site](https://beta.lookbook.build/) to read more about the new features.
|
45
10
|
|
46
11
|
```ruby
|
47
|
-
|
48
|
-
config.lookbook.ui_theme = "blue"
|
12
|
+
gem "lookbook", ">= 1.0.0.beta.7"
|
49
13
|
```
|
50
14
|
|
51
|
-
|
15
|
+
If you are **new to Lookbook** then check out the <a href="https://beta.lookbook.build/guide/quick-start/">v1.0 quick start guide</a> for more detailed instructions on installing Lookbook in your project
|
52
16
|
|
53
|
-
- `indigo` (default)
|
54
|
-
- `blue`
|
55
|
-
- `zinc`
|
56
17
|
|
57
|
-
>
|
18
|
+
<h4>Useful Resources</h4>
|
58
19
|
|
59
|
-
|
20
|
+
* 👉 <a href="https://beta.lookbook.build/">v1.0 docs</a>
|
21
|
+
* 👉 <a href="https://lookbook-demo-app-v1-0-beta.herokuapp.com/lookbook">v1.0 demo app</a> <em>(The repo for the demo <a href="https://github.com/allmarkedup/lookbook-demo/tree/v1.0-beta">is here</a> if you want to dig in further)</em>
|
60
22
|
|
61
|
-
> Opening up Lookbook to more in-depth customisation is a work in progress and any feedback or use-case examples would be greatly appreciated!
|
62
23
|
|
63
|
-
* [Lifecycle Hooks](#lifecycle-hooks)
|
64
|
-
* [Adding inspector panels](#adding-inspector-panels)
|
65
|
-
* [Removing inspector panels](#removing-inspector-panels)
|
66
24
|
|
67
|
-
|
25
|
+
## Changes and new features in v1.0
|
68
26
|
|
69
|
-
|
27
|
+
Lookbook v1.0 includes a completely re-written UI, many under-the hood improvements and a some exciting new customisation options.
|
70
28
|
|
71
|
-
|
29
|
+
### Frontend changes:
|
72
30
|
|
73
|
-
|
31
|
+
* Completely re-written UI - now built with ViewComponents
|
32
|
+
* New [UI themes and customisation options](https://beta.lookbook.build/guide/themes/)
|
33
|
+
* Improved small-screen/mobile view
|
34
|
+
* Debug menu
|
35
|
+
* ...and many other small visual and usability improvements
|
74
36
|
|
75
|
-
|
37
|
+
### New options for extending Lookbook:
|
76
38
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
puts "There are #{app.previews.size} previews and #{app.pages.size} pages"
|
81
|
-
# other code here...
|
82
|
-
end
|
83
|
-
```
|
39
|
+
* Define [custom tags](https://beta.lookbook.build/guide/extend/tags/) for preview file annotations
|
40
|
+
* Create [your own tab panels](https://beta.lookbook.build/guide/extend/panels/) - with complete control over content/layout and access to all Lookbook data
|
41
|
+
* Use [lifecycle hooks](https://beta.lookbook.build/guide/extend/hooks/) to run your own code when Lookbook starts up, when files change or at shutdown
|
84
42
|
|
85
|
-
|
86
|
-
|
87
|
-
Run each time a change is detected to a file that Lookbook is watching, unless listening for changes has been disabled in the config.
|
88
|
-
|
89
|
-
Receives a hash as the second argument with `:modified`, `:added`, and `:removed` properties, each of which is an array of affected file paths.
|
90
|
-
|
91
|
-
```ruby
|
92
|
-
Lookbook.after_change do |app, changes|
|
93
|
-
puts "Modified files: #{changes.modified.join("\n")}"
|
94
|
-
puts "Added files: #{changes.added.join("\n")}"
|
95
|
-
puts "Removed files: #{changes.removed.join("\n")}"
|
96
|
-
end
|
97
|
-
```
|
43
|
+
### Other changes
|
98
44
|
|
99
|
-
|
45
|
+
* 'Workbench' app for developing Lookbook's UI components in Lookbook
|
46
|
+
* New Rspec-based test suite and dummy app
|
47
|
+
* All new documentation site built using [Bridgetown](https://www.bridgetownrb.com/)
|
100
48
|
|
101
|
-
Run when the current process exits, after Lookbook has stopped any listeners.
|
102
|
-
|
103
|
-
```ruby
|
104
|
-
Lookbook.after_initialize do |app|
|
105
|
-
puts "Shutting down..."
|
106
|
-
end
|
107
|
-
```
|
108
|
-
|
109
|
-
### Adding inspector panels
|
110
|
-
|
111
|
-
It's now possible to add custom inspector panels/tabs to Lookbook using the `:define_panel` method:
|
112
|
-
|
113
|
-
```ruby
|
114
|
-
Lookbook.define_panel(<name>, <opts>)
|
115
|
-
```
|
116
|
-
|
117
|
-
* `<name>`: A unique name for the panel
|
118
|
-
* `<opts>`: A `Hash` of options (see below for details)
|
119
|
-
|
120
|
-
For example, a very simple 'info' panel could be created as follows:
|
121
|
-
|
122
|
-
```ruby
|
123
|
-
# config/application.rb
|
124
|
-
Lookbook.define_panel(:info, {
|
125
|
-
label: "Extra Info",
|
126
|
-
partial: "panels/info"
|
127
|
-
})
|
128
|
-
```
|
129
|
-
|
130
|
-
```erb
|
131
|
-
<!-- views/panels/_info.html.erb -->
|
132
|
-
<div>
|
133
|
-
<h2>Some information</h2>
|
134
|
-
<ul>
|
135
|
-
<li>You are looking at the '<%= preview.label %>' preview</li>
|
136
|
-
<li>The preview file path is: '<%= preview.full_path %>'<li>
|
137
|
-
<li>There are <%= examples.size %> examples in this preview<li>
|
138
|
-
</ul>
|
139
|
-
</div>
|
140
|
-
```
|
141
|
-
|
142
|
-
#### Panel templates
|
143
|
-
|
144
|
-
The panel partial template will have access to any `locals` defined in the [panel options](#panel-options), plus the following variables:
|
145
|
-
|
146
|
-
#### `panel`
|
147
|
-
|
148
|
-
The resolved panel options object (see below for details)
|
149
|
-
|
150
|
-
```erb
|
151
|
-
<h2><%= panel.label =></h2>
|
152
|
-
```
|
153
49
|
|
154
|
-
|
155
|
-
|
156
|
-
An object representing the current preview:
|
157
|
-
|
158
|
-
* `preview.id`
|
159
|
-
* `preview.label`
|
160
|
-
* `preview.full_path`
|
161
|
-
* `preview.url_path`
|
162
|
-
* ...
|
163
|
-
|
164
|
-
#### `examples`
|
165
|
-
|
166
|
-
An array of objects representing the individual examples being rendered in the current preview. (For non-grouped previews, this array will always only have one item.)
|
167
|
-
|
168
|
-
Each example has the following properties:
|
169
|
-
|
170
|
-
* `example.output` - the rendered preview example output (String)
|
171
|
-
* `example.source` - the example source code (String)
|
172
|
-
* `example.source_lang` - a hash of information about the source language (Ruby or HTML/ERB, depending on whether the example uses a preview template)
|
173
|
-
* `example.id`
|
174
|
-
* `example.label`
|
175
|
-
* `example.full_path`
|
176
|
-
* `example.url_path`
|
177
|
-
* ...
|
178
|
-
|
179
|
-
|
180
|
-
#### `components`
|
181
|
-
|
182
|
-
An array of objects representing the components that are rendered in the preview. The components are 'guessed' from the Preview class name but if that doesn't work then they can be manually specified via annotations.
|
183
|
-
|
184
|
-
Each component object has the following properties:
|
185
|
-
|
186
|
-
* `component.name`
|
187
|
-
* `component.full_path`
|
188
|
-
* `component.dir_path`
|
189
|
-
* `component.template_path`
|
190
|
-
* `component.inline?`
|
191
|
-
|
192
|
-
To manually specify one or more components in the preview class, you can use the `@component` tag at the class level:
|
193
|
-
|
194
|
-
```ruby
|
195
|
-
# @component Elements::BigDangerButton
|
196
|
-
class ButtonComponentPreview < ViewComponent::Preview
|
197
|
-
|
198
|
-
def default
|
199
|
-
render Elements::BigDangerButton.new do
|
200
|
-
"Click here"
|
201
|
-
end
|
202
|
-
end
|
203
|
-
|
204
|
-
end
|
205
|
-
```
|
206
|
-
|
207
|
-
#### `context`
|
208
|
-
|
209
|
-
An object containing data about the request context:
|
210
|
-
|
211
|
-
* `context.preview_params`
|
212
|
-
* `context.path`
|
213
|
-
|
214
|
-
#### `app`
|
215
|
-
|
216
|
-
The main `Lookbook` app instance.
|
217
|
-
|
218
|
-
* `app.previews` - Array of preview objects
|
219
|
-
* `app.pages` - Array of page objects
|
220
|
-
* `app.logger` - Logger instance
|
221
|
-
|
222
|
-
#### Panel options
|
223
|
-
|
224
|
-
```ruby
|
225
|
-
{
|
226
|
-
label: "New Panel",
|
227
|
-
position: 1,
|
228
|
-
partial: "path/to/view_partial",
|
229
|
-
content: "Some **markdown** content",
|
230
|
-
hotkey: "ctrl.n",
|
231
|
-
disabled: false,
|
232
|
-
show: true,
|
233
|
-
copy: "Content to be copied",
|
234
|
-
locals: {}
|
235
|
-
}
|
236
|
-
```
|
237
|
-
|
238
|
-
* `label`: the text to be displayed in the tab
|
239
|
-
* `position`: used for ordering the tabs
|
240
|
-
* `partial`: the path to the view template partial used to render the panel
|
241
|
-
* `content`: the default partial renders and displays the contents of this (markdown supported)
|
242
|
-
* `hotkey`: [keyboard shortcut](https://alpinejs.dev/directives/on#keyboard-events) to make panel become the active tab
|
243
|
-
* `disabled`: `true` or `false` - disabled tabs are still accessible but are greyed out in the UI
|
244
|
-
* `show`: `true` or `false` - whether or not to display the tab/panel
|
245
|
-
* `copy`: if present, the panel will display a copy button that copies the value of this property to the clipboard when clicked
|
246
|
-
* `locals`: a `Hash` of local variables that will be made available to the partial when rendering the panel
|
247
|
-
|
248
|
-
|
249
|
-
All panel option values can be provided either as a **simple static value** or as a **lambda function** which will receive a hash of data relating to the currently active preview/example. For example:
|
250
|
-
|
251
|
-
```ruby
|
252
|
-
{
|
253
|
-
label: "Params",
|
254
|
-
disabled: ->(data) { data.preview.params.none? } # grey out the Params tab if no params are set for the current preview
|
255
|
-
}
|
256
|
-
```
|
257
|
-
|
258
|
-
The `data` hash contains the same set of objects that are passed to the panel partial template:
|
259
|
-
|
260
|
-
* `data.preview`
|
261
|
-
* `data.examples`
|
262
|
-
* `data.components`
|
263
|
-
* `data.context`
|
264
|
-
* `data.app`
|
265
|
-
|
266
|
-
**See the [panel templates section above]((#panel-templates)) for more details.**
|
267
|
-
|
268
|
-
### Removing inspector panels
|
269
|
-
|
270
|
-
To remove a panel entirely from the UI you can use the `Lookbook.remove_panel` method:
|
271
|
-
|
272
|
-
```ruby
|
273
|
-
# config/application.rb
|
274
|
-
Lookbook.remove_panel(:notes)
|
275
|
-
```
|
50
|
+
[![Lookbook UI](.github/assets/lookbook_screenshot_v1.0_beta.png)](https://lookbook-demo-app-v1-0-beta.herokuapp.com/lookbook/)
|
276
51
|
|
277
|
-
##
|
52
|
+
## Workbench
|
278
53
|
|
279
54
|
As of this release, Lookbook's UI is itself built using ViewComponent components. To help with development it is possible to preview these components (in a Lookbook instance!) by running the included 'Workbench" app, as follows:
|
280
55
|
|
@@ -286,7 +61,7 @@ As of this release, Lookbook's UI is itself built using ViewComponent components
|
|
286
61
|
This will start the Workbench app in development mode and any changes to Lookbooks views or assets will immediately be visible in the UI.
|
287
62
|
|
288
63
|
|
289
|
-
##
|
64
|
+
## Running tests
|
290
65
|
|
291
66
|
The test suite is in the process of being completely overhauled.
|
292
67
|
|
@@ -50,6 +50,6 @@
|
|
50
50
|
.form-input {
|
51
51
|
@apply text-lookbook-input-text placeholder:text-lookbook-input-text-placeholder placeholder:italic;
|
52
52
|
@apply border-lookbook-input-border focus:ring-lookbook-input-border-focus focus:border-lookbook-input-border-focus;
|
53
|
-
@apply rounded-md text-sm w-full bg-lookbook-input;
|
53
|
+
@apply rounded-md text-sm w-full bg-lookbook-input-bg;
|
54
54
|
}
|
55
55
|
}
|
@@ -1,42 +1,63 @@
|
|
1
1
|
:root {
|
2
|
-
--lookbook-
|
3
|
-
--lookbook-
|
4
|
-
--lookbook-
|
5
|
-
--lookbook-
|
6
|
-
--lookbook-
|
7
|
-
--lookbook-
|
8
|
-
--lookbook-
|
9
|
-
--lookbook-
|
10
|
-
--lookbook-
|
2
|
+
--lookbook-white: theme("colors.white");
|
3
|
+
--lookbook-accent-50: theme("colors.blue.50");
|
4
|
+
--lookbook-accent-100: theme("colors.blue.100");
|
5
|
+
--lookbook-accent-200: theme("colors.blue.200");
|
6
|
+
--lookbook-accent-300: theme("colors.blue.300");
|
7
|
+
--lookbook-accent-400: theme("colors.blue.400");
|
8
|
+
--lookbook-accent-500: theme("colors.blue.500");
|
9
|
+
--lookbook-accent-600: theme("colors.blue.600");
|
10
|
+
--lookbook-accent-700: theme("colors.blue.700");
|
11
|
+
--lookbook-accent-800: theme("colors.blue.800");
|
12
|
+
--lookbook-accent-900: theme("colors.blue.900");
|
13
|
+
--lookbook-base-50: theme("colors.zinc.50");
|
14
|
+
--lookbook-base-100: theme("colors.zinc.100");
|
15
|
+
--lookbook-base-200: theme("colors.zinc.200");
|
16
|
+
--lookbook-base-300: theme("colors.zinc.300");
|
17
|
+
--lookbook-base-400: theme("colors.zinc.400");
|
18
|
+
--lookbook-base-500: theme("colors.zinc.500");
|
19
|
+
--lookbook-base-600: theme("colors.zinc.600");
|
20
|
+
--lookbook-base-700: theme("colors.zinc.700");
|
21
|
+
--lookbook-base-800: theme("colors.zinc.800");
|
22
|
+
--lookbook-base-900: theme("colors.zinc.900");
|
23
|
+
--lookbook-text: var(--lookbook-base-800);
|
24
|
+
--lookbook-divider: var(--lookbook-base-300);
|
25
|
+
--lookbook-icon-button-stroke: var(--lookbook-base-400);
|
26
|
+
--lookbook-icon-button-stroke-hover: var(--lookbook-accent-600);
|
27
|
+
--lookbook-tooltip-bg: var(--lookbook-accent-500);
|
28
|
+
--lookbook-tooltip-text: var(--lookbook-white);
|
29
|
+
--lookbook-scrollbar: var(--lookbook-base-200);
|
30
|
+
--lookbook-scrollbar-hover: var(--lookbook-base-300);
|
31
|
+
--lookbook-toolbar-bg: var(--lookbook-white);
|
11
32
|
--lookbook-toolbar-divider: var(--lookbook-divider);
|
12
33
|
--lookbook-nav-text: var(--lookbook-text);
|
13
|
-
--lookbook-nav-toggle:
|
14
|
-
--lookbook-nav-icon:
|
15
|
-
--lookbook-nav-item-hover:
|
16
|
-
--lookbook-nav-item-active:
|
17
|
-
--lookbook-input:
|
18
|
-
--lookbook-input-border:
|
19
|
-
--lookbook-input-border-focus:
|
20
|
-
--lookbook-input-text:
|
21
|
-
--lookbook-input-text-placeholder:
|
22
|
-
--lookbook-input-toggle:
|
23
|
-
--lookbook-input-toggle-active:
|
24
|
-
--lookbook-prose:
|
25
|
-
--lookbook-prose-text:
|
26
|
-
--lookbook-prose-link:
|
27
|
-
--lookbook-tabs-text:
|
28
|
-
--lookbook-tabs-text-hover:
|
29
|
-
--lookbook-tabs-text-disabled:
|
30
|
-
--lookbook-tabs-
|
31
|
-
--lookbook-viewport-handle:
|
32
|
-
--lookbook-viewport-handle-icon:
|
33
|
-
--lookbook-viewport-handle-icon-hover:
|
34
|
-
--lookbook-sidebar:
|
35
|
-
--lookbook-page:
|
36
|
-
--lookbook-drawer:
|
37
|
-
--lookbook-header:
|
38
|
-
--lookbook-header-text:
|
39
|
-
--lookbook-header-border:
|
34
|
+
--lookbook-nav-toggle: var(--lookbook-base-500);
|
35
|
+
--lookbook-nav-icon-stroke: var(--lookbook-accent-500);
|
36
|
+
--lookbook-nav-item-hover: var(--lookbook-base-100);
|
37
|
+
--lookbook-nav-item-active: var(--lookbook-accent-50);
|
38
|
+
--lookbook-input-bg: var(--lookbook-white);
|
39
|
+
--lookbook-input-border: var(--lookbook-base-300);
|
40
|
+
--lookbook-input-border-focus: var(--lookbook-accent-200);
|
41
|
+
--lookbook-input-text: var(--lookbook-base-600);
|
42
|
+
--lookbook-input-text-placeholder: var(--lookbook-base-400);
|
43
|
+
--lookbook-input-toggle: var(--lookbook-base-300);
|
44
|
+
--lookbook-input-toggle-active: var(--lookbook-accent-500);
|
45
|
+
--lookbook-prose-bg: var(--lookbook-white);
|
46
|
+
--lookbook-prose-text: var(--lookbook-base-600);
|
47
|
+
--lookbook-prose-link: var(--lookbook-accent-900);
|
48
|
+
--lookbook-tabs-text: var(--lookbook-base-500);
|
49
|
+
--lookbook-tabs-text-hover: var(--lookbook-base-700);
|
50
|
+
--lookbook-tabs-text-disabled: var(--lookbook-base-300);
|
51
|
+
--lookbook-tabs-border-active: var(--lookbook-accent-400);
|
52
|
+
--lookbook-viewport-handle: var(--lookbook-white);
|
53
|
+
--lookbook-viewport-handle-icon-stroke: var(--lookbook-base-300);
|
54
|
+
--lookbook-viewport-handle-icon-stroke-hover: var(--lookbook-base-700);
|
55
|
+
--lookbook-sidebar-bg: var(--lookbook-base-50);
|
56
|
+
--lookbook-page-bg: var(--lookbook-white);
|
57
|
+
--lookbook-drawer-bg: var(--lookbook-base-50);
|
58
|
+
--lookbook-header-bg: var(--lookbook-accent-600);
|
59
|
+
--lookbook-header-text: var(--lookbook-white);
|
60
|
+
--lookbook-header-border: var(--lookbook-accent-700);
|
40
61
|
--lookbook-branding-text: var(--lookbook-header-text);
|
41
62
|
--lookbook-draggable-hint: rgb(224 231 255 / 0.2);
|
42
|
-
}
|
63
|
+
}
|
@@ -1,42 +1,63 @@
|
|
1
1
|
:root {
|
2
|
-
--lookbook-
|
3
|
-
--lookbook-
|
4
|
-
--lookbook-
|
5
|
-
--lookbook-
|
6
|
-
--lookbook-
|
7
|
-
--lookbook-
|
8
|
-
--lookbook-
|
9
|
-
--lookbook-
|
10
|
-
--lookbook-
|
2
|
+
--lookbook-white: theme("colors.white");
|
3
|
+
--lookbook-accent-50: theme("colors.indigo.50");
|
4
|
+
--lookbook-accent-100: theme("colors.indigo.100");
|
5
|
+
--lookbook-accent-200: theme("colors.indigo.200");
|
6
|
+
--lookbook-accent-300: theme("colors.indigo.300");
|
7
|
+
--lookbook-accent-400: theme("colors.indigo.400");
|
8
|
+
--lookbook-accent-500: theme("colors.indigo.500");
|
9
|
+
--lookbook-accent-600: theme("colors.indigo.600");
|
10
|
+
--lookbook-accent-700: theme("colors.indigo.700");
|
11
|
+
--lookbook-accent-800: theme("colors.indigo.800");
|
12
|
+
--lookbook-accent-900: theme("colors.indigo.900");
|
13
|
+
--lookbook-base-50: theme("colors.zinc.50");
|
14
|
+
--lookbook-base-100: theme("colors.zinc.100");
|
15
|
+
--lookbook-base-200: theme("colors.zinc.200");
|
16
|
+
--lookbook-base-300: theme("colors.zinc.300");
|
17
|
+
--lookbook-base-400: theme("colors.zinc.400");
|
18
|
+
--lookbook-base-500: theme("colors.zinc.500");
|
19
|
+
--lookbook-base-600: theme("colors.zinc.600");
|
20
|
+
--lookbook-base-700: theme("colors.zinc.700");
|
21
|
+
--lookbook-base-800: theme("colors.zinc.800");
|
22
|
+
--lookbook-base-900: theme("colors.zinc.900");
|
23
|
+
--lookbook-text: var(--lookbook-base-800);
|
24
|
+
--lookbook-divider: var(--lookbook-base-300);
|
25
|
+
--lookbook-icon-button-stroke: var(--lookbook-base-400);
|
26
|
+
--lookbook-icon-button-stroke-hover: var(--lookbook-accent-600);
|
27
|
+
--lookbook-tooltip-bg: var(--lookbook-accent-500);
|
28
|
+
--lookbook-tooltip-text: var(--lookbook-white);
|
29
|
+
--lookbook-scrollbar: var(--lookbook-base-200);
|
30
|
+
--lookbook-scrollbar-hover: var(--lookbook-base-300);
|
31
|
+
--lookbook-toolbar-bg: var(--lookbook-white);
|
11
32
|
--lookbook-toolbar-divider: var(--lookbook-divider);
|
12
33
|
--lookbook-nav-text: var(--lookbook-text);
|
13
|
-
--lookbook-nav-toggle:
|
14
|
-
--lookbook-nav-icon:
|
15
|
-
--lookbook-nav-item-hover:
|
16
|
-
--lookbook-nav-item-active:
|
17
|
-
--lookbook-input:
|
18
|
-
--lookbook-input-border:
|
19
|
-
--lookbook-input-border-focus:
|
20
|
-
--lookbook-input-text:
|
21
|
-
--lookbook-input-text-placeholder:
|
22
|
-
--lookbook-input-toggle:
|
23
|
-
--lookbook-input-toggle-active:
|
24
|
-
--lookbook-prose:
|
25
|
-
--lookbook-prose-text:
|
26
|
-
--lookbook-prose-link:
|
27
|
-
--lookbook-tabs-text:
|
28
|
-
--lookbook-tabs-text-hover:
|
29
|
-
--lookbook-tabs-text-disabled:
|
30
|
-
--lookbook-tabs-
|
31
|
-
--lookbook-viewport-handle:
|
32
|
-
--lookbook-viewport-handle-icon:
|
33
|
-
--lookbook-viewport-handle-icon-hover:
|
34
|
-
--lookbook-sidebar:
|
35
|
-
--lookbook-page:
|
36
|
-
--lookbook-drawer:
|
37
|
-
--lookbook-header:
|
38
|
-
--lookbook-header-text:
|
39
|
-
--lookbook-header-border:
|
34
|
+
--lookbook-nav-toggle: var(--lookbook-base-500);
|
35
|
+
--lookbook-nav-icon-stroke: var(--lookbook-accent-500);
|
36
|
+
--lookbook-nav-item-hover: var(--lookbook-base-100);
|
37
|
+
--lookbook-nav-item-active: var(--lookbook-accent-50);
|
38
|
+
--lookbook-input-bg: var(--lookbook-white);
|
39
|
+
--lookbook-input-border: var(--lookbook-base-300);
|
40
|
+
--lookbook-input-border-focus: var(--lookbook-accent-200);
|
41
|
+
--lookbook-input-text: var(--lookbook-base-600);
|
42
|
+
--lookbook-input-text-placeholder: var(--lookbook-base-400);
|
43
|
+
--lookbook-input-toggle: var(--lookbook-base-300);
|
44
|
+
--lookbook-input-toggle-active: var(--lookbook-accent-500);
|
45
|
+
--lookbook-prose-bg: var(--lookbook-white);
|
46
|
+
--lookbook-prose-text: var(--lookbook-base-600);
|
47
|
+
--lookbook-prose-link: var(--lookbook-accent-900);
|
48
|
+
--lookbook-tabs-text: var(--lookbook-base-500);
|
49
|
+
--lookbook-tabs-text-hover: var(--lookbook-base-700);
|
50
|
+
--lookbook-tabs-text-disabled: var(--lookbook-base-300);
|
51
|
+
--lookbook-tabs-border-active: var(--lookbook-accent-400);
|
52
|
+
--lookbook-viewport-handle: var(--lookbook-white);
|
53
|
+
--lookbook-viewport-handle-icon-stroke: var(--lookbook-base-300);
|
54
|
+
--lookbook-viewport-handle-icon-stroke-hover: var(--lookbook-base-700);
|
55
|
+
--lookbook-sidebar-bg: var(--lookbook-base-50);
|
56
|
+
--lookbook-page-bg: var(--lookbook-white);
|
57
|
+
--lookbook-drawer-bg: var(--lookbook-base-50);
|
58
|
+
--lookbook-header-bg: var(--lookbook-accent-600);
|
59
|
+
--lookbook-header-text: var(--lookbook-white);
|
60
|
+
--lookbook-header-border: var(--lookbook-accent-700);
|
40
61
|
--lookbook-branding-text: var(--lookbook-header-text);
|
41
62
|
--lookbook-draggable-hint: rgb(224 231 255 / 0.2);
|
42
|
-
}
|
63
|
+
}
|
@@ -1,42 +1,63 @@
|
|
1
1
|
:root {
|
2
|
-
--lookbook-
|
3
|
-
--lookbook-
|
4
|
-
--lookbook-
|
5
|
-
--lookbook-
|
6
|
-
--lookbook-
|
7
|
-
--lookbook-
|
8
|
-
--lookbook-
|
9
|
-
--lookbook-
|
10
|
-
--lookbook-
|
2
|
+
--lookbook-white: theme("colors.white");
|
3
|
+
--lookbook-accent-50: theme("colors.zinc.50");
|
4
|
+
--lookbook-accent-100: theme("colors.zinc.100");
|
5
|
+
--lookbook-accent-200: theme("colors.zinc.200");
|
6
|
+
--lookbook-accent-300: theme("colors.zinc.300");
|
7
|
+
--lookbook-accent-400: theme("colors.zinc.400");
|
8
|
+
--lookbook-accent-500: theme("colors.zinc.500");
|
9
|
+
--lookbook-accent-600: theme("colors.zinc.600");
|
10
|
+
--lookbook-accent-700: theme("colors.zinc.700");
|
11
|
+
--lookbook-accent-800: theme("colors.zinc.800");
|
12
|
+
--lookbook-accent-900: theme("colors.zinc.900");
|
13
|
+
--lookbook-base-50: theme("colors.zinc.50");
|
14
|
+
--lookbook-base-100: theme("colors.zinc.100");
|
15
|
+
--lookbook-base-200: theme("colors.zinc.200");
|
16
|
+
--lookbook-base-300: theme("colors.zinc.300");
|
17
|
+
--lookbook-base-400: theme("colors.zinc.400");
|
18
|
+
--lookbook-base-500: theme("colors.zinc.500");
|
19
|
+
--lookbook-base-600: theme("colors.zinc.600");
|
20
|
+
--lookbook-base-700: theme("colors.zinc.700");
|
21
|
+
--lookbook-base-800: theme("colors.zinc.800");
|
22
|
+
--lookbook-base-900: theme("colors.zinc.900");
|
23
|
+
--lookbook-text: var(--lookbook-base-800);
|
24
|
+
--lookbook-divider: var(--lookbook-base-300);
|
25
|
+
--lookbook-icon-button-stroke: var(--lookbook-base-400);
|
26
|
+
--lookbook-icon-button-stroke-hover: var(--lookbook-accent-600);
|
27
|
+
--lookbook-tooltip-bg: var(--lookbook-accent-500);
|
28
|
+
--lookbook-tooltip-text: var(--lookbook-white);
|
29
|
+
--lookbook-scrollbar: var(--lookbook-base-200);
|
30
|
+
--lookbook-scrollbar-hover: var(--lookbook-base-300);
|
31
|
+
--lookbook-toolbar-bg: var(--lookbook-white);
|
11
32
|
--lookbook-toolbar-divider: var(--lookbook-divider);
|
12
33
|
--lookbook-nav-text: var(--lookbook-text);
|
13
|
-
--lookbook-nav-toggle:
|
14
|
-
--lookbook-nav-icon:
|
15
|
-
--lookbook-nav-item-hover:
|
16
|
-
--lookbook-nav-item-active:
|
17
|
-
--lookbook-input:
|
18
|
-
--lookbook-input-border:
|
19
|
-
--lookbook-input-border-focus:
|
20
|
-
--lookbook-input-text:
|
21
|
-
--lookbook-input-text-placeholder:
|
22
|
-
--lookbook-input-toggle:
|
23
|
-
--lookbook-input-toggle-active:
|
24
|
-
--lookbook-prose:
|
25
|
-
--lookbook-prose-text:
|
26
|
-
--lookbook-prose-link:
|
27
|
-
--lookbook-tabs-text:
|
28
|
-
--lookbook-tabs-text-hover:
|
29
|
-
--lookbook-tabs-text-disabled:
|
30
|
-
--lookbook-tabs-
|
31
|
-
--lookbook-viewport-handle:
|
32
|
-
--lookbook-viewport-handle-icon:
|
33
|
-
--lookbook-viewport-handle-icon-hover:
|
34
|
-
--lookbook-sidebar:
|
35
|
-
--lookbook-page:
|
36
|
-
--lookbook-drawer:
|
37
|
-
--lookbook-header:
|
38
|
-
--lookbook-header-text:
|
39
|
-
--lookbook-header-border:
|
34
|
+
--lookbook-nav-toggle: var(--lookbook-base-500);
|
35
|
+
--lookbook-nav-icon-stroke: var(--lookbook-accent-500);
|
36
|
+
--lookbook-nav-item-hover: var(--lookbook-base-100);
|
37
|
+
--lookbook-nav-item-active: var(--lookbook-accent-50);
|
38
|
+
--lookbook-input-bg: var(--lookbook-white);
|
39
|
+
--lookbook-input-border: var(--lookbook-base-300);
|
40
|
+
--lookbook-input-border-focus: var(--lookbook-accent-200);
|
41
|
+
--lookbook-input-text: var(--lookbook-base-600);
|
42
|
+
--lookbook-input-text-placeholder: var(--lookbook-base-400);
|
43
|
+
--lookbook-input-toggle: var(--lookbook-base-300);
|
44
|
+
--lookbook-input-toggle-active: var(--lookbook-accent-500);
|
45
|
+
--lookbook-prose-bg: var(--lookbook-white);
|
46
|
+
--lookbook-prose-text: var(--lookbook-base-600);
|
47
|
+
--lookbook-prose-link: var(--lookbook-accent-900);
|
48
|
+
--lookbook-tabs-text: var(--lookbook-base-500);
|
49
|
+
--lookbook-tabs-text-hover: var(--lookbook-base-700);
|
50
|
+
--lookbook-tabs-text-disabled: var(--lookbook-base-300);
|
51
|
+
--lookbook-tabs-border-active: var(--lookbook-accent-400);
|
52
|
+
--lookbook-viewport-handle: var(--lookbook-white);
|
53
|
+
--lookbook-viewport-handle-icon-stroke: var(--lookbook-base-300);
|
54
|
+
--lookbook-viewport-handle-icon-stroke-hover: var(--lookbook-base-700);
|
55
|
+
--lookbook-sidebar-bg: var(--lookbook-base-50);
|
56
|
+
--lookbook-page-bg: var(--lookbook-white);
|
57
|
+
--lookbook-drawer-bg: var(--lookbook-base-50);
|
58
|
+
--lookbook-header-bg: var(--lookbook-accent-600);
|
59
|
+
--lookbook-header-text: var(--lookbook-white);
|
60
|
+
--lookbook-header-border: var(--lookbook-accent-700);
|
40
61
|
--lookbook-branding-text: var(--lookbook-header-text);
|
41
62
|
--lookbook-draggable-hint: rgb(224 231 255 / 0.2);
|
42
|
-
}
|
63
|
+
}
|