bareframe 0.1.0 → 0.1.1
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 +179 -0
- package/dist/bareframe.min.js +119 -0
- package/dist/components/accordion.js +66 -0
- package/dist/components/autocomplete.css +78 -15
- package/dist/components/autocomplete.js +220 -10
- package/dist/components/avatar.css +129 -17
- package/dist/components/avatar.js +47 -10
- package/dist/components/breadcrumb.css +63 -17
- package/dist/components/breadcrumb.js +140 -5
- package/dist/components/button.css +4 -0
- package/dist/components/button.js +95 -15
- package/dist/components/chart.css +163 -14
- package/dist/components/chart.js +59 -4
- package/dist/components/checkbox.css +43 -1
- package/dist/components/checkbox.js +98 -5
- package/dist/components/dialog.css +95 -0
- package/dist/components/dialog.js +172 -4
- package/dist/components/divider.css +18 -22
- package/dist/components/divider.js +31 -3
- package/dist/components/drawer.css +68 -18
- package/dist/components/drawer.js +84 -4
- package/dist/components/edge.css +54 -0
- package/dist/components/edge.js +55 -0
- package/dist/components/file-upload.css +72 -3
- package/dist/components/file-upload.js +186 -4
- package/dist/components/input.css +59 -0
- package/dist/components/input.js +369 -4
- package/dist/components/list.css +11 -0
- package/dist/components/list.js +45 -0
- package/dist/components/menu.css +20 -0
- package/dist/components/menu.js +144 -0
- package/dist/components/modal.css +30 -17
- package/dist/components/modal.js +68 -4
- package/dist/components/nav.css +39 -0
- package/dist/components/progress.css +196 -0
- package/dist/components/progress.js +304 -0
- package/dist/components/radio.css +35 -1
- package/dist/components/radio.js +86 -5
- package/dist/components/range.css +91 -0
- package/dist/components/range.js +250 -0
- package/dist/components/select.css +35 -1
- package/dist/components/select.js +255 -4
- package/dist/components/skeleton.css +108 -21
- package/dist/components/skeleton.js +57 -4
- package/dist/components/tab.css +9 -1
- package/dist/components/tab.js +66 -1
- package/dist/components/tag.css +36 -3
- package/dist/components/tag.js +32 -0
- package/dist/components/toast.css +113 -0
- package/dist/components/toast.js +265 -4
- package/dist/components/toggle.css +53 -0
- package/dist/components/toggle.js +73 -5
- package/dist/components/wizard.css +79 -14
- package/dist/components/wizard.js +141 -4
- package/dist/index.js +5147 -110
- package/dist/manifest.json +5 -42
- package/dist/themes/aurora.css +47 -0
- package/dist/themes/dark.css +12 -2
- package/dist/themes/desert.css +37 -0
- package/dist/themes/future.css +47 -0
- package/dist/themes/layout.css +191 -0
- package/dist/themes/light.css +12 -0
- package/dist/themes/matrix.css +37 -0
- package/dist/themes/modern.css +64 -0
- package/dist/themes/nature.css +47 -0
- package/dist/themes/nebula.css +37 -0
- package/dist/themes/noir.css +37 -0
- package/dist/themes/oceanic.css +37 -0
- package/dist/themes/retro.css +47 -0
- package/dist/themes/simple.css +47 -0
- package/dist/themes/sprint.css +12 -0
- package/dist/themes/sunrise.css +37 -0
- package/dist/themes/system.css +13 -0
- package/package.json +9 -2
- package/dist/components/alert.css +0 -30
- package/dist/components/alert.js +0 -31
- package/dist/components/badge.css +0 -30
- package/dist/components/badge.js +0 -31
- package/dist/components/banner.css +0 -30
- package/dist/components/banner.js +0 -31
- package/dist/components/bar-chart.css +0 -30
- package/dist/components/bar-chart.js +0 -31
- package/dist/components/bottom-sheet.css +0 -30
- package/dist/components/bottom-sheet.js +0 -31
- package/dist/components/button-group.css +0 -30
- package/dist/components/button-group.js +0 -31
- package/dist/components/chip.css +0 -30
- package/dist/components/chip.js +0 -31
- package/dist/components/color-picker.css +0 -30
- package/dist/components/color-picker.js +0 -31
- package/dist/components/context-menu.css +0 -30
- package/dist/components/context-menu.js +0 -31
- package/dist/components/donut-chart.css +0 -30
- package/dist/components/donut-chart.js +0 -31
- package/dist/components/expanded-panel.css +0 -30
- package/dist/components/expanded-panel.js +0 -31
- package/dist/components/footer.css +0 -30
- package/dist/components/footer.js +0 -31
- package/dist/components/gantt-chart.css +0 -30
- package/dist/components/gantt-chart.js +0 -31
- package/dist/components/gauge.css +0 -30
- package/dist/components/gauge.js +0 -31
- package/dist/components/graph.css +0 -30
- package/dist/components/graph.js +0 -31
- package/dist/components/header.css +0 -30
- package/dist/components/header.js +0 -31
- package/dist/components/heatmap.css +0 -30
- package/dist/components/heatmap.js +0 -31
- package/dist/components/line-chart.css +0 -30
- package/dist/components/line-chart.js +0 -31
- package/dist/components/list-item.css +0 -30
- package/dist/components/list-item.js +0 -31
- package/dist/components/menu-item.css +0 -30
- package/dist/components/menu-item.js +0 -31
- package/dist/components/multi-select.css +0 -30
- package/dist/components/multi-select.js +0 -31
- package/dist/components/notification.css +0 -30
- package/dist/components/notification.js +0 -31
- package/dist/components/pie-chart.css +0 -30
- package/dist/components/pie-chart.js +0 -31
- package/dist/components/popover.css +0 -30
- package/dist/components/popover.js +0 -31
- package/dist/components/progress-bar.css +0 -30
- package/dist/components/progress-bar.js +0 -31
- package/dist/components/progress-circle.css +0 -30
- package/dist/components/progress-circle.js +0 -31
- package/dist/components/radio-group.css +0 -30
- package/dist/components/radio-group.js +0 -31
- package/dist/components/range-slider.css +0 -30
- package/dist/components/range-slider.js +0 -31
- package/dist/components/rating.css +0 -30
- package/dist/components/rating.js +0 -31
- package/dist/components/sheet.css +0 -30
- package/dist/components/sheet.js +0 -31
- package/dist/components/slider.css +0 -30
- package/dist/components/slider.js +0 -31
- package/dist/components/snackbar.css +0 -30
- package/dist/components/snackbar.js +0 -31
- package/dist/components/sparkline.css +0 -30
- package/dist/components/sparkline.js +0 -31
- package/dist/components/stepper.css +0 -30
- package/dist/components/stepper.js +0 -31
- package/dist/components/switch.css +0 -30
- package/dist/components/switch.js +0 -31
- package/dist/components/tab-group.css +0 -30
- package/dist/components/tab-group.js +0 -31
- package/dist/components/textfield.css +0 -30
- package/dist/components/textfield.js +0 -31
- package/dist/components/tooltip.css +0 -30
- package/dist/components/tooltip.js +0 -31
- package/dist/components/treemap.css +0 -30
- package/dist/components/treemap.js +0 -31
- package/dist/components/upload-dropzone.css +0 -30
- package/dist/components/upload-dropzone.js +0 -31
package/dist/manifest.json
CHANGED
|
@@ -1,114 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-02-
|
|
3
|
-
"componentCount":
|
|
2
|
+
"generatedAt": "2026-02-25T23:39:08.504Z",
|
|
3
|
+
"componentCount": 73,
|
|
4
4
|
"components": [
|
|
5
5
|
"accordion",
|
|
6
6
|
"action-list",
|
|
7
|
-
"alert",
|
|
8
7
|
"anchor",
|
|
9
8
|
"autocomplete",
|
|
10
9
|
"avatar",
|
|
11
|
-
"badge",
|
|
12
|
-
"banner",
|
|
13
|
-
"bar-chart",
|
|
14
10
|
"bottom-navigation",
|
|
15
|
-
"bottom-sheet",
|
|
16
11
|
"breadcrumb",
|
|
17
12
|
"button",
|
|
18
|
-
"button-group",
|
|
19
13
|
"calendar",
|
|
20
14
|
"canvas",
|
|
21
15
|
"card",
|
|
22
16
|
"carousel",
|
|
23
17
|
"chart",
|
|
24
18
|
"checkbox",
|
|
25
|
-
"chip",
|
|
26
19
|
"code-block",
|
|
27
|
-
"color-picker",
|
|
28
20
|
"combobox",
|
|
29
21
|
"command-palette",
|
|
30
|
-
"context-menu",
|
|
31
22
|
"countdown",
|
|
32
23
|
"data-grid",
|
|
33
24
|
"date-picker",
|
|
34
25
|
"date-range-picker",
|
|
35
26
|
"dialog",
|
|
36
27
|
"divider",
|
|
37
|
-
"donut-chart",
|
|
38
28
|
"drawer",
|
|
39
29
|
"dropdown",
|
|
30
|
+
"edge",
|
|
40
31
|
"empty-state",
|
|
41
32
|
"error-summary",
|
|
42
|
-
"expanded-panel",
|
|
43
33
|
"fab",
|
|
44
34
|
"file-upload",
|
|
45
35
|
"filter-bar",
|
|
46
|
-
"footer",
|
|
47
36
|
"form-field",
|
|
48
|
-
"gantt-chart",
|
|
49
|
-
"gauge",
|
|
50
|
-
"graph",
|
|
51
37
|
"grid",
|
|
52
|
-
"header",
|
|
53
|
-
"heatmap",
|
|
54
38
|
"hero",
|
|
55
39
|
"icon",
|
|
56
40
|
"image",
|
|
57
41
|
"input",
|
|
58
42
|
"key-value-list",
|
|
59
|
-
"line-chart",
|
|
60
43
|
"link",
|
|
61
44
|
"list",
|
|
62
|
-
"list-item",
|
|
63
45
|
"loading-indicator",
|
|
64
46
|
"map",
|
|
65
47
|
"menu",
|
|
66
|
-
"menu-item",
|
|
67
48
|
"message",
|
|
68
49
|
"metric-card",
|
|
69
50
|
"modal",
|
|
70
|
-
"multi-select",
|
|
71
51
|
"nav",
|
|
72
|
-
"notification",
|
|
73
52
|
"number-field",
|
|
74
53
|
"otp-input",
|
|
75
54
|
"pagination",
|
|
76
|
-
"
|
|
77
|
-
"popover",
|
|
78
|
-
"progress-bar",
|
|
79
|
-
"progress-circle",
|
|
55
|
+
"progress",
|
|
80
56
|
"quick-actions",
|
|
81
57
|
"radio",
|
|
82
|
-
"
|
|
83
|
-
"range-slider",
|
|
84
|
-
"rating",
|
|
58
|
+
"range",
|
|
85
59
|
"search",
|
|
86
60
|
"segmented-control",
|
|
87
61
|
"select",
|
|
88
|
-
"sheet",
|
|
89
62
|
"skeleton",
|
|
90
|
-
"slider",
|
|
91
|
-
"snackbar",
|
|
92
|
-
"sparkline",
|
|
93
63
|
"split-button",
|
|
94
64
|
"splitter",
|
|
95
65
|
"stack",
|
|
96
|
-
"stepper",
|
|
97
|
-
"switch",
|
|
98
66
|
"tab",
|
|
99
|
-
"tab-group",
|
|
100
67
|
"table",
|
|
101
68
|
"tag",
|
|
102
69
|
"textarea",
|
|
103
|
-
"textfield",
|
|
104
70
|
"timeline",
|
|
105
71
|
"toast",
|
|
106
72
|
"toggle",
|
|
107
73
|
"toolbar",
|
|
108
|
-
"tooltip",
|
|
109
74
|
"tree-view",
|
|
110
|
-
"treemap",
|
|
111
|
-
"upload-dropzone",
|
|
112
75
|
"video-player",
|
|
113
76
|
"virtual-list",
|
|
114
77
|
"wizard"
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
3
|
+
:root,
|
|
4
|
+
[data-bf-theme='aurora'] {
|
|
5
|
+
color-scheme: light;
|
|
6
|
+
|
|
7
|
+
--bf-theme-font-family: 'Avenir Next', 'Segoe UI', sans-serif;
|
|
8
|
+
--bf-theme-border-width: 1px;
|
|
9
|
+
--bf-theme-border-style: solid;
|
|
10
|
+
--bf-theme-radius-md: 14px;
|
|
11
|
+
--bf-theme-space-2: 0.58rem;
|
|
12
|
+
--bf-theme-space-3: 0.95rem;
|
|
13
|
+
--bf-theme-cursor-button: pointer;
|
|
14
|
+
--bf-theme-opacity-hover: 0.96;
|
|
15
|
+
--bf-theme-active-translate-y: 0;
|
|
16
|
+
--bf-theme-focus-ring-width: 2px;
|
|
17
|
+
--bf-theme-focus-ring-style: solid;
|
|
18
|
+
--bf-theme-focus-ring-color: #7c3aed;
|
|
19
|
+
--bf-theme-focus-ring-offset: 2px;
|
|
20
|
+
--bf-theme-surface-1: #fdf8ff;
|
|
21
|
+
--bf-theme-surface-2: #f4f4ff;
|
|
22
|
+
--bf-theme-text-1: #2d1b44;
|
|
23
|
+
--bf-theme-text-2: #5c4b7a;
|
|
24
|
+
--bf-theme-border-1: #d5c9eb;
|
|
25
|
+
|
|
26
|
+
--bf-theme-button-primary-bg: #7c3aed;
|
|
27
|
+
--bf-theme-button-primary-color: #ffffff;
|
|
28
|
+
--bf-theme-button-primary-border-color: #6d28d9;
|
|
29
|
+
--bf-theme-button-secondary-bg: #ffffff;
|
|
30
|
+
--bf-theme-button-secondary-color: #3f2a5f;
|
|
31
|
+
--bf-theme-button-secondary-border-color: #b9a8dd;
|
|
32
|
+
|
|
33
|
+
--bf-theme-accordion-trigger-bg: #f1eaff;
|
|
34
|
+
--bf-theme-accordion-trigger-hover-bg: #e8ddff;
|
|
35
|
+
--bf-theme-accordion-trigger-open-bg: #ddd0fb;
|
|
36
|
+
--bf-theme-accordion-chevron-color: #5b3d93;
|
|
37
|
+
--bf-theme-typography-color: var(--bf-theme-text-1);
|
|
38
|
+
--bf-theme-typography-line-height: 1.5;
|
|
39
|
+
--bf-theme-typography-display-size: 2.28rem;
|
|
40
|
+
--bf-theme-typography-h1-size: 1.88rem;
|
|
41
|
+
--bf-theme-typography-h2-size: 1.48rem;
|
|
42
|
+
--bf-theme-typography-h3-size: 1.14rem;
|
|
43
|
+
--bf-theme-typography-body-size: 1rem;
|
|
44
|
+
--bf-theme-typography-caption-size: 0.875rem;
|
|
45
|
+
--bf-theme-typography-label-size: 0.875rem;
|
|
46
|
+
--bf-theme-typography-code-size: 0.9rem;
|
|
47
|
+
}
|
package/dist/themes/dark.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
1
3
|
:root,
|
|
2
4
|
[data-bf-theme='dark'] {
|
|
3
|
-
color-scheme: dark;
|
|
4
|
-
|
|
5
5
|
--bf-theme-font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
|
|
6
6
|
--bf-theme-border-width: 1px;
|
|
7
7
|
--bf-theme-border-style: solid;
|
|
@@ -37,6 +37,16 @@
|
|
|
37
37
|
--bf-theme-accordion-trigger-color: var(--bf-theme-text-1);
|
|
38
38
|
--bf-theme-accordion-panel-bg: var(--bf-theme-surface-1);
|
|
39
39
|
--bf-theme-accordion-chevron-color: var(--bf-theme-text-2);
|
|
40
|
+
--bf-theme-typography-color: var(--bf-theme-text-1);
|
|
41
|
+
--bf-theme-typography-line-height: 1.45;
|
|
42
|
+
--bf-theme-typography-display-size: 2.25rem;
|
|
43
|
+
--bf-theme-typography-h1-size: 1.75rem;
|
|
44
|
+
--bf-theme-typography-h2-size: 1.375rem;
|
|
45
|
+
--bf-theme-typography-h3-size: 1.125rem;
|
|
46
|
+
--bf-theme-typography-body-size: 1rem;
|
|
47
|
+
--bf-theme-typography-caption-size: 0.875rem;
|
|
48
|
+
--bf-theme-typography-label-size: 0.875rem;
|
|
49
|
+
--bf-theme-typography-code-size: 0.9rem;
|
|
40
50
|
/* Bareframe component defaults */
|
|
41
51
|
--bf-theme-wizard-bg: var(--bf-theme-surface-1);
|
|
42
52
|
--bf-theme-wizard-color: var(--bf-theme-text-1);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
3
|
+
:root,
|
|
4
|
+
[data-bf-theme='desert'] {
|
|
5
|
+
color-scheme: light;
|
|
6
|
+
|
|
7
|
+
--bf-theme-font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
|
|
8
|
+
--bf-theme-border-width: 1px;
|
|
9
|
+
--bf-theme-border-style: solid;
|
|
10
|
+
--bf-theme-radius-md: 10px;
|
|
11
|
+
--bf-theme-space-2: 0.55rem;
|
|
12
|
+
--bf-theme-space-3: 0.9rem;
|
|
13
|
+
--bf-theme-cursor-button: pointer;
|
|
14
|
+
--bf-theme-opacity-hover: 0.95;
|
|
15
|
+
--bf-theme-active-translate-y: 0;
|
|
16
|
+
--bf-theme-focus-ring-width: 2px;
|
|
17
|
+
--bf-theme-focus-ring-style: solid;
|
|
18
|
+
--bf-theme-focus-ring-color: #b45309;
|
|
19
|
+
--bf-theme-focus-ring-offset: 2px;
|
|
20
|
+
--bf-theme-surface-1: #fff8ec;
|
|
21
|
+
--bf-theme-surface-2: #f8ecd8;
|
|
22
|
+
--bf-theme-text-1: #4a2d16;
|
|
23
|
+
--bf-theme-text-2: #80583d;
|
|
24
|
+
--bf-theme-border-1: #d8b78f;
|
|
25
|
+
|
|
26
|
+
--bf-theme-button-primary-bg: #c26b2f;
|
|
27
|
+
--bf-theme-button-primary-color: #fff7ef;
|
|
28
|
+
--bf-theme-button-primary-border-color: #9a4f1d;
|
|
29
|
+
--bf-theme-button-secondary-bg: #fffaf1;
|
|
30
|
+
--bf-theme-button-secondary-color: #5d3a21;
|
|
31
|
+
--bf-theme-button-secondary-border-color: #c9a278;
|
|
32
|
+
|
|
33
|
+
--bf-theme-accordion-trigger-bg: #f4e0c1;
|
|
34
|
+
--bf-theme-accordion-trigger-hover-bg: #edd1a7;
|
|
35
|
+
--bf-theme-accordion-trigger-open-bg: #e3be8a;
|
|
36
|
+
--bf-theme-accordion-chevron-color: #7c4a22;
|
|
37
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
3
|
+
:root,
|
|
4
|
+
[data-bf-theme='future'] {
|
|
5
|
+
color-scheme: dark;
|
|
6
|
+
|
|
7
|
+
--bf-theme-font-family: 'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
|
|
8
|
+
--bf-theme-border-width: 1px;
|
|
9
|
+
--bf-theme-border-style: solid;
|
|
10
|
+
--bf-theme-radius-md: 12px;
|
|
11
|
+
--bf-theme-space-2: 0.6rem;
|
|
12
|
+
--bf-theme-space-3: 1rem;
|
|
13
|
+
--bf-theme-cursor-button: pointer;
|
|
14
|
+
--bf-theme-opacity-hover: 0.97;
|
|
15
|
+
--bf-theme-active-translate-y: 1px;
|
|
16
|
+
--bf-theme-focus-ring-width: 2px;
|
|
17
|
+
--bf-theme-focus-ring-style: solid;
|
|
18
|
+
--bf-theme-focus-ring-color: #22d3ee;
|
|
19
|
+
--bf-theme-focus-ring-offset: 2px;
|
|
20
|
+
--bf-theme-surface-1: #070b14;
|
|
21
|
+
--bf-theme-surface-2: #0d1322;
|
|
22
|
+
--bf-theme-text-1: #e8f3ff;
|
|
23
|
+
--bf-theme-text-2: #8aa3c2;
|
|
24
|
+
--bf-theme-border-1: #26364d;
|
|
25
|
+
|
|
26
|
+
--bf-theme-button-primary-bg: #00bcd4;
|
|
27
|
+
--bf-theme-button-primary-color: #03131a;
|
|
28
|
+
--bf-theme-button-primary-border-color: #06b6d4;
|
|
29
|
+
--bf-theme-button-secondary-bg: #0d1322;
|
|
30
|
+
--bf-theme-button-secondary-color: #d5e6ff;
|
|
31
|
+
--bf-theme-button-secondary-border-color: #2f4565;
|
|
32
|
+
|
|
33
|
+
--bf-theme-accordion-trigger-bg: #0f1a2d;
|
|
34
|
+
--bf-theme-accordion-trigger-hover-bg: #14233c;
|
|
35
|
+
--bf-theme-accordion-trigger-open-bg: #1a2c49;
|
|
36
|
+
--bf-theme-accordion-chevron-color: #8ddfff;
|
|
37
|
+
--bf-theme-typography-color: var(--bf-theme-text-1);
|
|
38
|
+
--bf-theme-typography-line-height: 1.5;
|
|
39
|
+
--bf-theme-typography-display-size: 2.3rem;
|
|
40
|
+
--bf-theme-typography-h1-size: 1.9rem;
|
|
41
|
+
--bf-theme-typography-h2-size: 1.5rem;
|
|
42
|
+
--bf-theme-typography-h3-size: 1.15rem;
|
|
43
|
+
--bf-theme-typography-body-size: 1rem;
|
|
44
|
+
--bf-theme-typography-caption-size: 0.875rem;
|
|
45
|
+
--bf-theme-typography-label-size: 0.875rem;
|
|
46
|
+
--bf-theme-typography-code-size: 0.9rem;
|
|
47
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
[row] {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: flex-start;
|
|
6
|
+
flex-wrap: wrap;
|
|
7
|
+
gap: var(--bf-theme-space-2, 0.55rem);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[row='left'] { justify-content: flex-start; }
|
|
11
|
+
[row='center'] { justify-content: center; }
|
|
12
|
+
[row='right'] { justify-content: flex-end; }
|
|
13
|
+
|
|
14
|
+
[stack] {
|
|
15
|
+
display: grid;
|
|
16
|
+
gap: var(--bf-theme-space-2, 0.55rem);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[stack='xs'] { gap: calc(var(--bf-theme-space-2, 0.55rem) * 0.5); }
|
|
20
|
+
[stack='sm'] { gap: calc(var(--bf-theme-space-2, 0.55rem) * 0.75); }
|
|
21
|
+
[stack='md'] { gap: var(--bf-theme-space-2, 0.55rem); }
|
|
22
|
+
[stack='lg'] { gap: calc(var(--bf-theme-space-2, 0.55rem) * 1.5); }
|
|
23
|
+
[stack='xl'] { gap: calc(var(--bf-theme-space-2, 0.55rem) * 2); }
|
|
24
|
+
|
|
25
|
+
[stack][inline] {
|
|
26
|
+
display: inline-grid;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[col] {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
justify-content: flex-start;
|
|
33
|
+
min-width: 0;
|
|
34
|
+
flex: 1 1 0;
|
|
35
|
+
gap: var(--bf-theme-space-2, 0.55rem);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[col='top'] { justify-content: flex-start; }
|
|
39
|
+
[col='center'] { justify-content: center; }
|
|
40
|
+
[col='bottom'] { justify-content: flex-end; }
|
|
41
|
+
|
|
42
|
+
[col='1'] { flex: 0 0 calc(100% / 12 * 1); max-width: calc(100% / 12 * 1); }
|
|
43
|
+
[col='2'] { flex: 0 0 calc(100% / 12 * 2); max-width: calc(100% / 12 * 2); }
|
|
44
|
+
[col='3'] { flex: 0 0 calc(100% / 12 * 3); max-width: calc(100% / 12 * 3); }
|
|
45
|
+
[col='4'] { flex: 0 0 calc(100% / 12 * 4); max-width: calc(100% / 12 * 4); }
|
|
46
|
+
[col='5'] { flex: 0 0 calc(100% / 12 * 5); max-width: calc(100% / 12 * 5); }
|
|
47
|
+
[col='6'] { flex: 0 0 calc(100% / 12 * 6); max-width: calc(100% / 12 * 6); }
|
|
48
|
+
[col='7'] { flex: 0 0 calc(100% / 12 * 7); max-width: calc(100% / 12 * 7); }
|
|
49
|
+
[col='8'] { flex: 0 0 calc(100% / 12 * 8); max-width: calc(100% / 12 * 8); }
|
|
50
|
+
[col='9'] { flex: 0 0 calc(100% / 12 * 9); max-width: calc(100% / 12 * 9); }
|
|
51
|
+
[col='10'] { flex: 0 0 calc(100% / 12 * 10); max-width: calc(100% / 12 * 10); }
|
|
52
|
+
[col='11'] { flex: 0 0 calc(100% / 12 * 11); max-width: calc(100% / 12 * 11); }
|
|
53
|
+
[col='12'] { flex: 0 0 100%; max-width: 100%; }
|
|
54
|
+
|
|
55
|
+
[typography],
|
|
56
|
+
[display],
|
|
57
|
+
[h1],
|
|
58
|
+
[h2],
|
|
59
|
+
[h3],
|
|
60
|
+
[body],
|
|
61
|
+
[caption],
|
|
62
|
+
[label],
|
|
63
|
+
[code] {
|
|
64
|
+
color: var(--bf-theme-typography-color, var(--bf-theme-text-1, #111827));
|
|
65
|
+
font-family: var(--bf-theme-font-family, inherit);
|
|
66
|
+
line-height: var(--bf-theme-typography-line-height, 1.45);
|
|
67
|
+
letter-spacing: var(--bf-theme-typography-letter-spacing, 0);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[typography='display'],
|
|
71
|
+
[display] {
|
|
72
|
+
font-size: var(--bf-theme-typography-display-size, 2.25rem);
|
|
73
|
+
font-weight: var(--bf-theme-typography-display-weight, 700);
|
|
74
|
+
line-height: 1.2;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[typography='h1'],
|
|
78
|
+
[h1] {
|
|
79
|
+
font-size: var(--bf-theme-typography-h1-size, 1.75rem);
|
|
80
|
+
font-weight: var(--bf-theme-typography-h1-weight, 700);
|
|
81
|
+
line-height: 1.25;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[typography='h2'],
|
|
85
|
+
[h2] {
|
|
86
|
+
font-size: var(--bf-theme-typography-h2-size, 1.375rem);
|
|
87
|
+
font-weight: var(--bf-theme-typography-h2-weight, 700);
|
|
88
|
+
line-height: 1.3;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[typography='h3'],
|
|
92
|
+
[h3] {
|
|
93
|
+
font-size: var(--bf-theme-typography-h3-size, 1.125rem);
|
|
94
|
+
font-weight: var(--bf-theme-typography-h3-weight, 600);
|
|
95
|
+
line-height: 1.35;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[typography='body'],
|
|
99
|
+
[body] {
|
|
100
|
+
font-size: var(--bf-theme-typography-body-size, 1rem);
|
|
101
|
+
font-weight: var(--bf-theme-typography-body-weight, 400);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
[typography='caption'],
|
|
105
|
+
[caption] {
|
|
106
|
+
font-size: var(--bf-theme-typography-caption-size, 0.875rem);
|
|
107
|
+
font-weight: var(--bf-theme-typography-caption-weight, 400);
|
|
108
|
+
color: var(--bf-theme-text-2, #4b5563);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
[typography='label'],
|
|
112
|
+
[label] {
|
|
113
|
+
font-size: var(--bf-theme-typography-label-size, 0.875rem);
|
|
114
|
+
font-weight: var(--bf-theme-typography-label-weight, 600);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
[typography='code'],
|
|
118
|
+
[code] {
|
|
119
|
+
font-size: var(--bf-theme-typography-code-size, 0.9rem);
|
|
120
|
+
font-weight: var(--bf-theme-typography-code-weight, 500);
|
|
121
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
|
|
122
|
+
'Courier New', monospace;
|
|
123
|
+
background: var(--bf-theme-surface-2, #f3f4f6);
|
|
124
|
+
padding: 0.1rem 0.3rem;
|
|
125
|
+
border-radius: 4px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[sticky] {
|
|
129
|
+
position: sticky;
|
|
130
|
+
z-index: var(--bf-theme-z-sticky, 100);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
[fixed] {
|
|
134
|
+
position: fixed;
|
|
135
|
+
left: 0;
|
|
136
|
+
right: 0;
|
|
137
|
+
z-index: var(--bf-theme-z-fixed, 200);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
[header][sticky],
|
|
141
|
+
[header][fixed] {
|
|
142
|
+
top: 0;
|
|
143
|
+
bottom: auto;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
[footer][sticky],
|
|
147
|
+
[footer][fixed] {
|
|
148
|
+
bottom: 0;
|
|
149
|
+
top: auto;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
[table] {
|
|
153
|
+
display: block;
|
|
154
|
+
width: 100%;
|
|
155
|
+
overflow-x: auto;
|
|
156
|
+
border: 1px solid var(--bf-theme-border-1, #d1d5db);
|
|
157
|
+
border-radius: var(--bf-theme-radius-md, 8px);
|
|
158
|
+
background: var(--bf-theme-surface-1, #ffffff);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
[table][dense] [th],
|
|
162
|
+
[table][dense] [td] {
|
|
163
|
+
padding: 0.38rem 0.5rem;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
[thead] { display: table-header-group; }
|
|
167
|
+
[tbody] { display: table-row-group; }
|
|
168
|
+
[tr] { display: table-row; }
|
|
169
|
+
|
|
170
|
+
[th],
|
|
171
|
+
[td] {
|
|
172
|
+
display: table-cell;
|
|
173
|
+
padding: 0.52rem 0.7rem;
|
|
174
|
+
vertical-align: middle;
|
|
175
|
+
text-align: left;
|
|
176
|
+
border-bottom: 1px solid var(--bf-theme-border-1, #d1d5db);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
[th] {
|
|
180
|
+
font-weight: 700;
|
|
181
|
+
color: var(--bf-theme-text-1, #111827);
|
|
182
|
+
background: var(--bf-theme-surface-2, #f3f4f6);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
[tbody] [tr]:nth-child(even) [td] {
|
|
186
|
+
background: color-mix(in srgb, var(--bf-theme-surface-2, #f3f4f6) 50%, transparent);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
[tbody] [tr]:last-child [td] {
|
|
190
|
+
border-bottom: 0;
|
|
191
|
+
}
|
package/dist/themes/light.css
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
1
3
|
:root,
|
|
2
4
|
[data-bf-theme='light'] {
|
|
3
5
|
color-scheme: light;
|
|
@@ -37,6 +39,16 @@
|
|
|
37
39
|
--bf-theme-accordion-trigger-color: var(--bf-theme-text-1);
|
|
38
40
|
--bf-theme-accordion-panel-bg: var(--bf-theme-surface-1);
|
|
39
41
|
--bf-theme-accordion-chevron-color: var(--bf-theme-text-2);
|
|
42
|
+
--bf-theme-typography-color: var(--bf-theme-text-1);
|
|
43
|
+
--bf-theme-typography-line-height: 1.45;
|
|
44
|
+
--bf-theme-typography-display-size: 2.25rem;
|
|
45
|
+
--bf-theme-typography-h1-size: 1.75rem;
|
|
46
|
+
--bf-theme-typography-h2-size: 1.375rem;
|
|
47
|
+
--bf-theme-typography-h3-size: 1.125rem;
|
|
48
|
+
--bf-theme-typography-body-size: 1rem;
|
|
49
|
+
--bf-theme-typography-caption-size: 0.875rem;
|
|
50
|
+
--bf-theme-typography-label-size: 0.875rem;
|
|
51
|
+
--bf-theme-typography-code-size: 0.9rem;
|
|
40
52
|
/* Bareframe component defaults */
|
|
41
53
|
--bf-theme-wizard-bg: var(--bf-theme-surface-1);
|
|
42
54
|
--bf-theme-wizard-color: var(--bf-theme-text-1);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
3
|
+
:root,
|
|
4
|
+
[data-bf-theme='matrix'] {
|
|
5
|
+
color-scheme: dark;
|
|
6
|
+
|
|
7
|
+
--bf-theme-font-family: 'Courier New', 'Lucida Console', monospace;
|
|
8
|
+
--bf-theme-border-width: 1px;
|
|
9
|
+
--bf-theme-border-style: solid;
|
|
10
|
+
--bf-theme-radius-md: 4px;
|
|
11
|
+
--bf-theme-space-2: 0.5rem;
|
|
12
|
+
--bf-theme-space-3: 0.85rem;
|
|
13
|
+
--bf-theme-cursor-button: pointer;
|
|
14
|
+
--bf-theme-opacity-hover: 0.98;
|
|
15
|
+
--bf-theme-active-translate-y: 0;
|
|
16
|
+
--bf-theme-focus-ring-width: 2px;
|
|
17
|
+
--bf-theme-focus-ring-style: solid;
|
|
18
|
+
--bf-theme-focus-ring-color: #22c55e;
|
|
19
|
+
--bf-theme-focus-ring-offset: 2px;
|
|
20
|
+
--bf-theme-surface-1: #070c09;
|
|
21
|
+
--bf-theme-surface-2: #0e1712;
|
|
22
|
+
--bf-theme-text-1: #90f7b8;
|
|
23
|
+
--bf-theme-text-2: #56c27f;
|
|
24
|
+
--bf-theme-border-1: #1f6b3a;
|
|
25
|
+
|
|
26
|
+
--bf-theme-button-primary-bg: #2adb72;
|
|
27
|
+
--bf-theme-button-primary-color: #04120b;
|
|
28
|
+
--bf-theme-button-primary-border-color: #21b95f;
|
|
29
|
+
--bf-theme-button-secondary-bg: #0e1712;
|
|
30
|
+
--bf-theme-button-secondary-color: #90f7b8;
|
|
31
|
+
--bf-theme-button-secondary-border-color: #1f6b3a;
|
|
32
|
+
|
|
33
|
+
--bf-theme-accordion-trigger-bg: #102117;
|
|
34
|
+
--bf-theme-accordion-trigger-hover-bg: #153121;
|
|
35
|
+
--bf-theme-accordion-trigger-open-bg: #1b402a;
|
|
36
|
+
--bf-theme-accordion-chevron-color: #6df2a1;
|
|
37
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
3
|
+
:root,
|
|
4
|
+
[data-bf-theme='modern'] {
|
|
5
|
+
color-scheme: light dark;
|
|
6
|
+
|
|
7
|
+
--bf-theme-font-family: 'Inter', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
|
|
8
|
+
--bf-theme-border-width: 1px;
|
|
9
|
+
--bf-theme-border-style: solid;
|
|
10
|
+
--bf-theme-radius-md: 14px;
|
|
11
|
+
--bf-theme-space-2: 0.6rem;
|
|
12
|
+
--bf-theme-space-3: 1rem;
|
|
13
|
+
--bf-theme-cursor-button: pointer;
|
|
14
|
+
--bf-theme-opacity-hover: 0.97;
|
|
15
|
+
--bf-theme-active-translate-y: 1px;
|
|
16
|
+
--bf-theme-focus-ring-width: 2px;
|
|
17
|
+
--bf-theme-focus-ring-style: solid;
|
|
18
|
+
--bf-theme-focus-ring-color: #60a5fa;
|
|
19
|
+
--bf-theme-focus-ring-offset: 2px;
|
|
20
|
+
--bf-theme-surface-1: #ffffff;
|
|
21
|
+
--bf-theme-surface-2: #f3f6fb;
|
|
22
|
+
--bf-theme-text-1: #0b1220;
|
|
23
|
+
--bf-theme-text-2: #475569;
|
|
24
|
+
--bf-theme-border-1: #cbd5e1;
|
|
25
|
+
|
|
26
|
+
--bf-theme-button-primary-bg: #0ea5e9;
|
|
27
|
+
--bf-theme-button-primary-color: #f8fafc;
|
|
28
|
+
--bf-theme-button-primary-border-color: #0284c7;
|
|
29
|
+
--bf-theme-button-secondary-bg: #ffffff;
|
|
30
|
+
--bf-theme-button-secondary-color: #0f172a;
|
|
31
|
+
--bf-theme-button-secondary-border-color: #94a3b8;
|
|
32
|
+
|
|
33
|
+
--bf-theme-accordion-trigger-bg: #eef2ff;
|
|
34
|
+
--bf-theme-accordion-trigger-hover-bg: #e0e7ff;
|
|
35
|
+
--bf-theme-accordion-trigger-open-bg: #dbeafe;
|
|
36
|
+
--bf-theme-accordion-chevron-color: #334155;
|
|
37
|
+
--bf-theme-typography-color: var(--bf-theme-text-1);
|
|
38
|
+
--bf-theme-typography-line-height: 1.5;
|
|
39
|
+
--bf-theme-typography-display-size: 2.35rem;
|
|
40
|
+
--bf-theme-typography-h1-size: 1.85rem;
|
|
41
|
+
--bf-theme-typography-h2-size: 1.45rem;
|
|
42
|
+
--bf-theme-typography-h3-size: 1.15rem;
|
|
43
|
+
--bf-theme-typography-body-size: 1rem;
|
|
44
|
+
--bf-theme-typography-caption-size: 0.875rem;
|
|
45
|
+
--bf-theme-typography-label-size: 0.875rem;
|
|
46
|
+
--bf-theme-typography-code-size: 0.9rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media (prefers-color-scheme: dark) {
|
|
50
|
+
:root:not([data-bf-theme]),
|
|
51
|
+
[data-bf-theme='modern'] {
|
|
52
|
+
--bf-theme-surface-1: #0b1220;
|
|
53
|
+
--bf-theme-surface-2: #111827;
|
|
54
|
+
--bf-theme-text-1: #e2e8f0;
|
|
55
|
+
--bf-theme-text-2: #94a3b8;
|
|
56
|
+
--bf-theme-border-1: #334155;
|
|
57
|
+
--bf-theme-button-secondary-bg: #0f172a;
|
|
58
|
+
--bf-theme-button-secondary-color: #cbd5e1;
|
|
59
|
+
--bf-theme-button-secondary-border-color: #334155;
|
|
60
|
+
--bf-theme-accordion-trigger-bg: #172033;
|
|
61
|
+
--bf-theme-accordion-trigger-hover-bg: #1f2b44;
|
|
62
|
+
--bf-theme-accordion-trigger-open-bg: #1e293b;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
3
|
+
:root,
|
|
4
|
+
[data-bf-theme='nature'] {
|
|
5
|
+
color-scheme: light;
|
|
6
|
+
|
|
7
|
+
--bf-theme-font-family: 'Trebuchet MS', 'Gill Sans', Arial, sans-serif;
|
|
8
|
+
--bf-theme-border-width: 1px;
|
|
9
|
+
--bf-theme-border-style: solid;
|
|
10
|
+
--bf-theme-radius-md: 10px;
|
|
11
|
+
--bf-theme-space-2: 0.55rem;
|
|
12
|
+
--bf-theme-space-3: 0.9rem;
|
|
13
|
+
--bf-theme-cursor-button: pointer;
|
|
14
|
+
--bf-theme-opacity-hover: 0.96;
|
|
15
|
+
--bf-theme-active-translate-y: 0;
|
|
16
|
+
--bf-theme-focus-ring-width: 2px;
|
|
17
|
+
--bf-theme-focus-ring-style: solid;
|
|
18
|
+
--bf-theme-focus-ring-color: #2f855a;
|
|
19
|
+
--bf-theme-focus-ring-offset: 2px;
|
|
20
|
+
--bf-theme-surface-1: #f6fbf3;
|
|
21
|
+
--bf-theme-surface-2: #e9f3e4;
|
|
22
|
+
--bf-theme-text-1: #1f3a2a;
|
|
23
|
+
--bf-theme-text-2: #4c6b58;
|
|
24
|
+
--bf-theme-border-1: #b7d1bf;
|
|
25
|
+
|
|
26
|
+
--bf-theme-button-primary-bg: #2f855a;
|
|
27
|
+
--bf-theme-button-primary-color: #f7fff9;
|
|
28
|
+
--bf-theme-button-primary-border-color: #276749;
|
|
29
|
+
--bf-theme-button-secondary-bg: #f6fbf3;
|
|
30
|
+
--bf-theme-button-secondary-color: #1f3a2a;
|
|
31
|
+
--bf-theme-button-secondary-border-color: #94b8a0;
|
|
32
|
+
|
|
33
|
+
--bf-theme-accordion-trigger-bg: #e6f1e2;
|
|
34
|
+
--bf-theme-accordion-trigger-hover-bg: #d8e9d3;
|
|
35
|
+
--bf-theme-accordion-trigger-open-bg: #c9dfc4;
|
|
36
|
+
--bf-theme-accordion-chevron-color: #2f5d42;
|
|
37
|
+
--bf-theme-typography-color: var(--bf-theme-text-1);
|
|
38
|
+
--bf-theme-typography-line-height: 1.5;
|
|
39
|
+
--bf-theme-typography-display-size: 2.2rem;
|
|
40
|
+
--bf-theme-typography-h1-size: 1.8rem;
|
|
41
|
+
--bf-theme-typography-h2-size: 1.4rem;
|
|
42
|
+
--bf-theme-typography-h3-size: 1.12rem;
|
|
43
|
+
--bf-theme-typography-body-size: 1rem;
|
|
44
|
+
--bf-theme-typography-caption-size: 0.875rem;
|
|
45
|
+
--bf-theme-typography-label-size: 0.875rem;
|
|
46
|
+
--bf-theme-typography-code-size: 0.9rem;
|
|
47
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@import './layout.css';
|
|
2
|
+
|
|
3
|
+
:root,
|
|
4
|
+
[data-bf-theme='nebula'] {
|
|
5
|
+
color-scheme: dark;
|
|
6
|
+
|
|
7
|
+
--bf-theme-font-family: 'Avenir Next', 'Segoe UI', sans-serif;
|
|
8
|
+
--bf-theme-border-width: 1px;
|
|
9
|
+
--bf-theme-border-style: solid;
|
|
10
|
+
--bf-theme-radius-md: 14px;
|
|
11
|
+
--bf-theme-space-2: 0.58rem;
|
|
12
|
+
--bf-theme-space-3: 0.95rem;
|
|
13
|
+
--bf-theme-cursor-button: pointer;
|
|
14
|
+
--bf-theme-opacity-hover: 0.97;
|
|
15
|
+
--bf-theme-active-translate-y: 1px;
|
|
16
|
+
--bf-theme-focus-ring-width: 2px;
|
|
17
|
+
--bf-theme-focus-ring-style: solid;
|
|
18
|
+
--bf-theme-focus-ring-color: #22d3ee;
|
|
19
|
+
--bf-theme-focus-ring-offset: 2px;
|
|
20
|
+
--bf-theme-surface-1: #10131f;
|
|
21
|
+
--bf-theme-surface-2: #171b2d;
|
|
22
|
+
--bf-theme-text-1: #e5ecff;
|
|
23
|
+
--bf-theme-text-2: #a8b6de;
|
|
24
|
+
--bf-theme-border-1: #2f3b63;
|
|
25
|
+
|
|
26
|
+
--bf-theme-button-primary-bg: #00c2ff;
|
|
27
|
+
--bf-theme-button-primary-color: #03131d;
|
|
28
|
+
--bf-theme-button-primary-border-color: #0ea5e9;
|
|
29
|
+
--bf-theme-button-secondary-bg: #171b2d;
|
|
30
|
+
--bf-theme-button-secondary-color: #dbe8ff;
|
|
31
|
+
--bf-theme-button-secondary-border-color: #41507f;
|
|
32
|
+
|
|
33
|
+
--bf-theme-accordion-trigger-bg: #1b2340;
|
|
34
|
+
--bf-theme-accordion-trigger-hover-bg: #22305a;
|
|
35
|
+
--bf-theme-accordion-trigger-open-bg: #2a3a6d;
|
|
36
|
+
--bf-theme-accordion-chevron-color: #88e7ff;
|
|
37
|
+
}
|