WordPress Basic Theme Code

style.css

/* Theme Name: Bonny Dev
   Author: Your Name
   Description: A WordPress theme for publishing developer code snippets
   Version: 1.0
   Tags: code snippets, developer, responsive, syntax highlighting */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #333;
    padding: 10px 0;
    color: white;
    text-align: center;
}

header a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.code-snippet {
    background-color: #2e2e2e;
    color: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.syntax-highlighter {
    font-family: 'Courier New', Courier, monospace;
    background: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
}

@media (max-width: 768px) {
    main {
        padding: 15px;
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: Code Blog by Crimson Themes.