You've already forked wp-bootstrap
v0.1.0 - Core Theme: patterns, dark mode, block styles, style variations
- Add 16 block patterns across 7 new categories (hero, features, CTA, testimonials, pricing, contact, text) - Add dark mode toggle with localStorage persistence and system preference detection (Bootstrap 5.3 data-bs-theme) - Register 17 custom block styles mapping Bootstrap components to WordPress blocks (cards, alerts, tables, buttons, etc.) - Add 4 style variations: Ocean, Forest, Sunset, Midnight - Add sidebar template part and "Blog with Sidebar" custom template - Add Inter and Lora variable fonts with fontFace declarations - Add Display font size (fluid 2.5rem-3.5rem) - Update translations (en_US .pot, de_CH .po) with all new strings - Bump version to 0.1.0 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
74
theme.json
74
theme.json
@@ -156,6 +156,15 @@
|
||||
"name": "Huge",
|
||||
"size": "2rem",
|
||||
"slug": "xx-large"
|
||||
},
|
||||
{
|
||||
"fluid": {
|
||||
"max": "3.5rem",
|
||||
"min": "2.5rem"
|
||||
},
|
||||
"name": "Display",
|
||||
"size": "2.5rem",
|
||||
"slug": "display"
|
||||
}
|
||||
],
|
||||
"fontFamilies": [
|
||||
@@ -164,6 +173,41 @@
|
||||
"name": "System Sans Serif",
|
||||
"slug": "system-sans-serif"
|
||||
},
|
||||
{
|
||||
"fontFamily": "Inter, system-ui, -apple-system, sans-serif",
|
||||
"name": "Inter",
|
||||
"slug": "inter",
|
||||
"fontFace": [
|
||||
{
|
||||
"fontFamily": "Inter",
|
||||
"fontDisplay": "swap",
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": "100 900",
|
||||
"src": ["file:./assets/fonts/inter/InterVariable.woff2"]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"fontFamily": "Lora, Georgia, 'Times New Roman', serif",
|
||||
"name": "Lora",
|
||||
"slug": "lora",
|
||||
"fontFace": [
|
||||
{
|
||||
"fontFamily": "Lora",
|
||||
"fontDisplay": "swap",
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": "400 700",
|
||||
"src": ["file:./assets/fonts/lora/Lora-VariableFont.woff2"]
|
||||
},
|
||||
{
|
||||
"fontFamily": "Lora",
|
||||
"fontDisplay": "swap",
|
||||
"fontStyle": "italic",
|
||||
"fontWeight": "400 700",
|
||||
"src": ["file:./assets/fonts/lora/Lora-Italic-VariableFont.woff2"]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"fontFamily": "SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",
|
||||
"name": "System Monospace",
|
||||
@@ -380,9 +424,34 @@
|
||||
"bottom": "var:preset|spacing|20"
|
||||
}
|
||||
}
|
||||
},
|
||||
"core/table": {
|
||||
"border": {
|
||||
"color": "var:preset|color|light"
|
||||
}
|
||||
},
|
||||
"core/pullquote": {
|
||||
"typography": {
|
||||
"fontSize": "var:preset|font-size|x-large",
|
||||
"fontWeight": "300",
|
||||
"lineHeight": "1.3"
|
||||
},
|
||||
"spacing": {
|
||||
"padding": {
|
||||
"top": "var:preset|spacing|30",
|
||||
"bottom": "var:preset|spacing|30"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"customTemplates": [
|
||||
{
|
||||
"name": "home-sidebar",
|
||||
"postTypes": ["page"],
|
||||
"title": "Blog with Sidebar"
|
||||
}
|
||||
],
|
||||
"templateParts": [
|
||||
{
|
||||
"area": "header",
|
||||
@@ -393,6 +462,11 @@
|
||||
"area": "footer",
|
||||
"name": "footer",
|
||||
"title": "Footer"
|
||||
},
|
||||
{
|
||||
"area": "uncategorized",
|
||||
"name": "sidebar",
|
||||
"title": "Sidebar"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user