You've already forked wp-bootstrap
Initial theme scaffolding (v0.0.1)
- Bootstrap 5 CSS/JS integration via Yarn (served locally) - Dart Sass build pipeline with PostCSS, Autoprefixer, cssnano - Twig 3.0 via Composer with PSR-4 autoloading - FSE block theme templates (index, home, single, page, archive, search, 404) - Template parts (header, footer) and block patterns - theme.json with Bootstrap 5-aligned design tokens - Gitea CI/CD workflow for automated release packages - WordPress i18n support (en_US base, de_CH translation) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
398
theme.json
Normal file
398
theme.json
Normal file
@@ -0,0 +1,398 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/wp/6.7/theme.json",
|
||||
"version": 3,
|
||||
"settings": {
|
||||
"appearanceTools": true,
|
||||
"color": {
|
||||
"defaultDuotone": false,
|
||||
"defaultGradients": false,
|
||||
"defaultPalette": false,
|
||||
"palette": [
|
||||
{
|
||||
"color": "#FFFFFF",
|
||||
"name": "Base",
|
||||
"slug": "base"
|
||||
},
|
||||
{
|
||||
"color": "#212529",
|
||||
"name": "Contrast",
|
||||
"slug": "contrast"
|
||||
},
|
||||
{
|
||||
"color": "#0d6efd",
|
||||
"name": "Primary",
|
||||
"slug": "primary"
|
||||
},
|
||||
{
|
||||
"color": "#6c757d",
|
||||
"name": "Secondary",
|
||||
"slug": "secondary"
|
||||
},
|
||||
{
|
||||
"color": "#198754",
|
||||
"name": "Success",
|
||||
"slug": "success"
|
||||
},
|
||||
{
|
||||
"color": "#dc3545",
|
||||
"name": "Danger",
|
||||
"slug": "danger"
|
||||
},
|
||||
{
|
||||
"color": "#ffc107",
|
||||
"name": "Warning",
|
||||
"slug": "warning"
|
||||
},
|
||||
{
|
||||
"color": "#0dcaf0",
|
||||
"name": "Info",
|
||||
"slug": "info"
|
||||
},
|
||||
{
|
||||
"color": "#f8f9fa",
|
||||
"name": "Light",
|
||||
"slug": "light"
|
||||
},
|
||||
{
|
||||
"color": "#343a40",
|
||||
"name": "Dark",
|
||||
"slug": "dark"
|
||||
}
|
||||
]
|
||||
},
|
||||
"layout": {
|
||||
"contentSize": "720px",
|
||||
"wideSize": "1140px"
|
||||
},
|
||||
"spacing": {
|
||||
"defaultSpacingSizes": false,
|
||||
"spacingSizes": [
|
||||
{
|
||||
"name": "3xs",
|
||||
"size": "0.25rem",
|
||||
"slug": "10"
|
||||
},
|
||||
{
|
||||
"name": "2xs",
|
||||
"size": "0.5rem",
|
||||
"slug": "20"
|
||||
},
|
||||
{
|
||||
"name": "xs",
|
||||
"size": "1rem",
|
||||
"slug": "30"
|
||||
},
|
||||
{
|
||||
"name": "s",
|
||||
"size": "1.5rem",
|
||||
"slug": "40"
|
||||
},
|
||||
{
|
||||
"name": "m",
|
||||
"size": "clamp(1.5rem, 3vw, 3rem)",
|
||||
"slug": "50"
|
||||
},
|
||||
{
|
||||
"name": "l",
|
||||
"size": "clamp(2rem, 5vw, 4rem)",
|
||||
"slug": "60"
|
||||
},
|
||||
{
|
||||
"name": "xl",
|
||||
"size": "clamp(3rem, 7vw, 6rem)",
|
||||
"slug": "70"
|
||||
},
|
||||
{
|
||||
"name": "2xl",
|
||||
"size": "clamp(4rem, 10vw, 8rem)",
|
||||
"slug": "80"
|
||||
}
|
||||
],
|
||||
"units": ["%", "px", "em", "rem", "vh", "vw"]
|
||||
},
|
||||
"typography": {
|
||||
"writingMode": true,
|
||||
"defaultFontSizes": false,
|
||||
"fluid": true,
|
||||
"fontSizes": [
|
||||
{
|
||||
"fluid": false,
|
||||
"name": "Small",
|
||||
"size": "0.875rem",
|
||||
"slug": "small"
|
||||
},
|
||||
{
|
||||
"fluid": {
|
||||
"max": "1.125rem",
|
||||
"min": "1rem"
|
||||
},
|
||||
"name": "Medium",
|
||||
"size": "1rem",
|
||||
"slug": "medium"
|
||||
},
|
||||
{
|
||||
"fluid": {
|
||||
"max": "1.25rem",
|
||||
"min": "1.125rem"
|
||||
},
|
||||
"name": "Large",
|
||||
"size": "1.25rem",
|
||||
"slug": "large"
|
||||
},
|
||||
{
|
||||
"fluid": {
|
||||
"max": "1.75rem",
|
||||
"min": "1.5rem"
|
||||
},
|
||||
"name": "Extra Large",
|
||||
"size": "1.5rem",
|
||||
"slug": "x-large"
|
||||
},
|
||||
{
|
||||
"fluid": {
|
||||
"max": "2.5rem",
|
||||
"min": "2rem"
|
||||
},
|
||||
"name": "Huge",
|
||||
"size": "2rem",
|
||||
"slug": "xx-large"
|
||||
}
|
||||
],
|
||||
"fontFamilies": [
|
||||
{
|
||||
"fontFamily": "system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
|
||||
"name": "System Sans Serif",
|
||||
"slug": "system-sans-serif"
|
||||
},
|
||||
{
|
||||
"fontFamily": "SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",
|
||||
"name": "System Monospace",
|
||||
"slug": "system-monospace"
|
||||
}
|
||||
]
|
||||
},
|
||||
"useRootPaddingAwareAlignments": true
|
||||
},
|
||||
"styles": {
|
||||
"color": {
|
||||
"background": "var:preset|color|base",
|
||||
"text": "var:preset|color|contrast"
|
||||
},
|
||||
"spacing": {
|
||||
"blockGap": "1.5rem",
|
||||
"padding": {
|
||||
"left": "var:preset|spacing|50",
|
||||
"right": "var:preset|spacing|50"
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"fontFamily": "var:preset|font-family|system-sans-serif",
|
||||
"fontSize": "var:preset|font-size|medium",
|
||||
"fontWeight": "400",
|
||||
"lineHeight": "1.5"
|
||||
},
|
||||
"elements": {
|
||||
"button": {
|
||||
"color": {
|
||||
"background": "var:preset|color|primary",
|
||||
"text": "var:preset|color|base"
|
||||
},
|
||||
"border": {
|
||||
"radius": "0.375rem"
|
||||
},
|
||||
":hover": {
|
||||
"color": {
|
||||
"background": "#0b5ed7",
|
||||
"text": "var:preset|color|base"
|
||||
}
|
||||
},
|
||||
"spacing": {
|
||||
"padding": {
|
||||
"bottom": "0.5rem",
|
||||
"left": "1rem",
|
||||
"right": "1rem",
|
||||
"top": "0.5rem"
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "var:preset|font-size|medium"
|
||||
}
|
||||
},
|
||||
"heading": {
|
||||
"typography": {
|
||||
"fontWeight": "500",
|
||||
"lineHeight": "1.2"
|
||||
}
|
||||
},
|
||||
"h1": {
|
||||
"typography": {
|
||||
"fontSize": "var:preset|font-size|xx-large"
|
||||
}
|
||||
},
|
||||
"h2": {
|
||||
"typography": {
|
||||
"fontSize": "var:preset|font-size|x-large"
|
||||
}
|
||||
},
|
||||
"h3": {
|
||||
"typography": {
|
||||
"fontSize": "var:preset|font-size|large"
|
||||
}
|
||||
},
|
||||
"h4": {
|
||||
"typography": {
|
||||
"fontSize": "var:preset|font-size|medium"
|
||||
}
|
||||
},
|
||||
"h5": {
|
||||
"typography": {
|
||||
"fontSize": "var:preset|font-size|small"
|
||||
}
|
||||
},
|
||||
"h6": {
|
||||
"typography": {
|
||||
"fontSize": "var:preset|font-size|small",
|
||||
"textTransform": "uppercase"
|
||||
}
|
||||
},
|
||||
"link": {
|
||||
"color": {
|
||||
"text": "var:preset|color|primary"
|
||||
},
|
||||
":hover": {
|
||||
"color": {
|
||||
"text": "#0a58ca"
|
||||
},
|
||||
"typography": {
|
||||
"textDecoration": "underline"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"blocks": {
|
||||
"core/button": {
|
||||
"variations": {
|
||||
"outline": {
|
||||
"border": {
|
||||
"color": "var:preset|color|primary",
|
||||
"width": "1px"
|
||||
},
|
||||
"color": {
|
||||
"background": "transparent",
|
||||
"text": "var:preset|color|primary"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"core/code": {
|
||||
"typography": {
|
||||
"fontFamily": "var:preset|font-family|system-monospace",
|
||||
"fontSize": "var:preset|font-size|small"
|
||||
},
|
||||
"color": {
|
||||
"background": "var:preset|color|light"
|
||||
},
|
||||
"spacing": {
|
||||
"padding": {
|
||||
"top": "var:preset|spacing|30",
|
||||
"right": "var:preset|spacing|30",
|
||||
"bottom": "var:preset|spacing|30",
|
||||
"left": "var:preset|spacing|30"
|
||||
}
|
||||
}
|
||||
},
|
||||
"core/navigation": {
|
||||
"typography": {
|
||||
"fontSize": "var:preset|font-size|medium"
|
||||
},
|
||||
"elements": {
|
||||
"link": {
|
||||
":hover": {
|
||||
"typography": {
|
||||
"textDecoration": "underline"
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"textDecoration": "none"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"core/post-title": {
|
||||
"elements": {
|
||||
"link": {
|
||||
":hover": {
|
||||
"typography": {
|
||||
"textDecoration": "underline"
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"textDecoration": "none"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"core/post-date": {
|
||||
"color": {
|
||||
"text": "var:preset|color|secondary"
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "var:preset|font-size|small"
|
||||
}
|
||||
},
|
||||
"core/site-title": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
},
|
||||
"elements": {
|
||||
"link": {
|
||||
"typography": {
|
||||
"textDecoration": "none"
|
||||
},
|
||||
":hover": {
|
||||
"typography": {
|
||||
"textDecoration": "underline"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"core/separator": {
|
||||
"border": {
|
||||
"color": "currentColor",
|
||||
"style": "solid",
|
||||
"width": "0 0 1px 0"
|
||||
},
|
||||
"color": {
|
||||
"text": "var:preset|color|secondary"
|
||||
}
|
||||
},
|
||||
"core/quote": {
|
||||
"border": {
|
||||
"style": "solid",
|
||||
"width": "0 0 0 4px",
|
||||
"color": "var:preset|color|primary"
|
||||
},
|
||||
"spacing": {
|
||||
"padding": {
|
||||
"left": "var:preset|spacing|30",
|
||||
"top": "var:preset|spacing|20",
|
||||
"bottom": "var:preset|spacing|20"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"templateParts": [
|
||||
{
|
||||
"area": "header",
|
||||
"name": "header",
|
||||
"title": "Header"
|
||||
},
|
||||
{
|
||||
"area": "footer",
|
||||
"name": "footer",
|
||||
"title": "Footer"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user