Startpunkten

This commit is contained in:
2026-04-05 14:14:07 +02:00
commit 8ad989701c
8 changed files with 324 additions and 0 deletions

43
parts/part-footer.html Normal file
View File

@@ -0,0 +1,43 @@
<!-- wp:group {"metadata":{"name":"Footer"},"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Foot 1</h3>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Text text text</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Foot 2</h3>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Text text text</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Foot 3</h3>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Text text text</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Foot 4</h3>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Text text text</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->

7
parts/part-header.html Normal file
View File

@@ -0,0 +1,7 @@
<!-- wp:group {"metadata":{"name":"Header"},"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group"><!-- wp:site-logo /-->
<!-- wp:navigation {"ref":1994} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

36
readme.txt Normal file
View File

@@ -0,0 +1,36 @@
== wp-theme-crille2026 ==
Contributors: Christian Ohlsson
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
== Description ==
Blocktema som används på crille.org
== Changelog ==
= 1.0.0 =
* Initial release
== Copyright ==
wp-theme-crille2026 WordPress Theme, (C) 2026 Christian Ohlsson
wp-theme-crille2026 is distributed under the terms of the GNU GPL.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

16
style.css Normal file
View File

@@ -0,0 +1,16 @@
/*
Theme Name: wp-theme-crille2026
Theme URI:
Author: Christian Ohlsson
Author URI:
Description: Blocktema som används på crille.org
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version:
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-theme-crille2026
Tags:
*/

7
templates/index.html Normal file
View File

@@ -0,0 +1,7 @@
<!-- wp:template-part {"slug":"part-header"} /-->
<!-- wp:group {"metadata":{"name":"Content"},"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:post-content /--></div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"part-footer"} /-->

View File

@@ -0,0 +1,7 @@
<!-- wp:template-part {"slug":"part-header"} /-->
<!-- wp:group {"metadata":{"name":"Content"},"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:post-content /--></div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"part-footer"} /-->

208
theme.json Normal file
View File

@@ -0,0 +1,208 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"settings": {
"color": {
"palette": [
{ "slug": "background-primary", "name": "Background Primary", "color": "#0E0F12" },
{
"slug": "background-secondary",
"name": "Background Secondary",
"color": "#16181D"
},
{
"slug": "background-tertiary",
"name": "Background Tertiary",
"color": "#1F2228"
},
{ "slug": "text-primary", "name": "Text Primary", "color": "#E8EAF0" },
{ "slug": "text-secondary", "name": "Text Secondary", "color": "#B6BAC6" },
{ "slug": "text-muted", "name": "Text Muted", "color": "#7A7F8A" },
{ "slug": "blue", "name": "Accent Blue", "color": "#4DA3FF" },
{ "slug": "blue-hover", "name": "Accent Blue Hover", "color": "#82C4FF" },
{ "slug": "orange", "name": "Accent Orange", "color": "#FF8F3F" },
{ "slug": "orange-hover", "name": "Accent Orange Hover", "color": "#FFB27A" },
{ "slug": "code-bg", "name": "Code Background", "color": "#1A1D23" },
{ "slug": "code-border", "name": "Code Border", "color": "#2A2E37" }
],
"duotone": [
{
"slug": "blue-orange",
"name": "Blue + Orange",
"colors": ["#4DA3FF", "#FF8F3F"]
},
{
"slug": "mono-dark",
"name": "Monochrome Dark",
"colors": ["#000000", "#AAAAAA"]
}
],
"background": true,
"text": true,
"link": true
},
"typography": {
"fontFamilies": [
{
"slug": "inter",
"name": "Inter",
"fontFamily": "\"Inter\", sans-serif"
},
{
"slug": "jetbrains-mono",
"name": "JetBrains Mono",
"fontFamily": "\"JetBrains Mono\", monospace"
}
],
"fontSizes": [
{ "slug": "small", "size": "14px" },
{ "slug": "normal", "size": "18px" },
{ "slug": "large", "size": "20px" },
{ "slug": "xl", "size": "28px" },
{ "slug": "xxl", "size": "36px" }
],
"lineHeight": "1.7"
},
"layout": {
"contentSize": "720px",
"wideSize": "1100px"
},
"spacing": {
"units": ["px", "rem", "em", "%"],
"padding": true,
"margin": true,
"blockGap": true
},
"border": {
"radius": true,
"width": true,
"color": true,
"style": true
},
"shadow": {
"presets": [
{
"slug": "soft",
"name": "Soft Shadow",
"shadow": "0 4px 14px rgba(0,0,0,0.4)"
},
{
"slug": "card",
"name": "Card Shadow",
"shadow": "0 0 12px rgba(0,0,0,0.6)"
}
]
},
"custom": {
"transition": "all 0.3s ease"
}
},
"styles": {
"color": {
"background": "var(--wp--preset--color--background-primary)",
"text": "var(--wp--preset--color--text-primary)"
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)",
"fontSize": "var(--wp--preset--font-size--normal)"
},
"spacing": {
"blockGap": "1.5rem",
"padding": {
"top": "0",
"right": "0",
"bottom": "0",
"left": "0"
}
},
"elements": {
"link": {
"color": {
"text": "var(--wp--preset--color--blue)"
},
"typography": {
"textDecoration": "none"
},
":hover": {
"color": {
"text": "var(--wp--preset--color--blue-hover)"
},
"typography": {
"textDecoration": "underline"
}
}
}
},
"blocks": {
"core/code": {
"color": {
"background": "var(--wp--preset--color--code-bg)",
"text": "var(--wp--preset--color--text-primary)"
},
"border": {
"color": "var(--wp--preset--color--code-border)",
"radius": "6px",
"width": "1px"
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--jetbrains-mono)",
"fontSize": "16px",
"lineHeight": "1.6"
},
"spacing": {
"padding": {
"top": "1.2rem",
"right": "1.2rem",
"bottom": "1.2rem",
"left": "1.2rem"
}
}
},
"core/paragraph": {
"typography": {
"lineHeight": "1.75"
}
},
"core/heading": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)"
}
},
"core/button": {
"color": {
"background": "var(--wp--preset--color--orange)",
"text": "#000000"
},
":hover": {
"color": {
"background": "var(--wp--preset--color--orange-hover)"
}
},
"border": {
"radius": "4px"
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)"
}
}
}
}
}