PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.11
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.11
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / dark-mode-toggle / block.json

block.json in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.11, at blocks/dark-mode-toggle/block.json

156 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "apiVersion": 3,
3 "name": "blockenberg/dark-mode-toggle",
4 "title": "Dark Mode Toggle",
5 "description": "A light/dark mode switcher. Adds a toggle button that persists the user's theme preference to localStorage and applies a data attribute to the root element.",
6 "category": "bkbg-effects",
7 "icon": "image-filter",
8 "textdomain": "blockenberg",
9 "keywords": [
10 "dark mode",
11 "light mode",
12 "theme",
13 "toggle",
14 "switch"
15 ],
16 "supports": {
17 "html": false,
18 "align": [
19 "left",
20 "center",
21 "right",
22 "full"
23 ]
24 },
25 "attributes": {
26 "toggleStyle": {
27 "type": "string",
28 "default": "switch"
29 },
30 "position": {
31 "type": "string",
32 "default": "inline"
33 },
34 "floatCorner": {
35 "type": "string",
36 "default": "bottom-right"
37 },
38 "floatOffsetX": {
39 "type": "number",
40 "default": 24
41 },
42 "floatOffsetY": {
43 "type": "number",
44 "default": 24
45 },
46 "lightIcon": {
47 "type": "string",
48 "default": "☀️"
49 },
50 "darkIcon": {
51 "type": "string",
52 "default": "🌙"
53 },
54 "lightLabel": {
55 "type": "string",
56 "default": "Light"
57 },
58 "darkLabel": {
59 "type": "string",
60 "default": "Dark"
61 },
62 "showLabel": {
63 "type": "boolean",
64 "default": false
65 },
66 "showIcon": {
67 "type": "boolean",
68 "default": true
69 },
70 "storageKey": {
71 "type": "string",
72 "default": "bkdm-theme"
73 },
74 "dataAttribute": {
75 "type": "string",
76 "default": "data-theme"
77 },
78 "darkValue": {
79 "type": "string",
80 "default": "dark"
81 },
82 "lightValue": {
83 "type": "string",
84 "default": "light"
85 },
86 "defaultTheme": {
87 "type": "string",
88 "default": "light"
89 },
90 "respectSystemPref": {
91 "type": "boolean",
92 "default": true
93 },
94 "buttonSize": {
95 "type": "number",
96 "default": 44
97 },
98 "borderRadius": {
99 "type": "number",
100 "default": 50
101 },
102 "transitionDuration": {
103 "type": "number",
104 "default": 300
105 },
106 "lightBg": {
107 "type": "string",
108 "default": "#f3f4f6"
109 },
110 "lightColor": {
111 "type": "string",
112 "default": "#111827"
113 },
114 "darkBg": {
115 "type": "string",
116 "default": "#1f2937"
117 },
118 "darkColor": {
119 "type": "string",
120 "default": "#f9fafb"
121 },
122 "switchTrackLight": {
123 "type": "string",
124 "default": "#d1d5db"
125 },
126 "switchTrackDark": {
127 "type": "string",
128 "default": "#4f46e5"
129 },
130 "switchThumbColor": {
131 "type": "string",
132 "default": "#ffffff"
133 },
134 "hoverScale": {
135 "type": "boolean",
136 "default": true
137 },
138 "shadow": {
139 "type": "boolean",
140 "default": true
141 },
142 "labelFontSize": {
143 "type": "number",
144 "default": 14
145 },
146 "typoLabel": {
147 "type": "object",
148 "default": {}
149 }
150 },
151 "editorScript": "bkbg-dark-mode-toggle-editor",
152 "editorStyle": "bkbg-dark-mode-toggle-style",
153 "style": "bkbg-dark-mode-toggle-style",
154 "viewScript": "bkbg-dark-mode-toggle-frontend"
155 }
156